Condividi tramite


ToStringHelper.ToStringWithCulture Method

Returns a String that represents the specified Object.

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.12.0 (in Microsoft.VisualStudio.TextTemplating.12.0.dll)

Syntax

'Declaration
Public Shared Function ToStringWithCulture ( _
    objectToConvert As Object _
) As String
public static string ToStringWithCulture(
    Object objectToConvert
)
public:
static String^ ToStringWithCulture(
    Object^ objectToConvert
)
static member ToStringWithCulture : 
        objectToConvert:Object -> string
public static function ToStringWithCulture(
    objectToConvert : Object
) : String

Parameters

Return Value

Type: System.String
A String that represents the specified Object.

Remarks

Uses the FormatProvider if the specified Object provides a ToString method that accepts an IFormatProvider as a parameter. Otherwise, calls the default ToString.

.NET Framework Security

See Also

Reference

ToStringHelper Class

Microsoft.VisualStudio.TextTemplating Namespace

FormatProvider

IFormatProvider

Object

String

ToString