Domain-Specific Language Tools Reference
ToStringHelper..::.ToStringWithCulture Method

Updated: November 2007

Returns a String that represents the specified Object.

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

Syntax

Visual Basic (Declaration)
Public Shared Function ToStringWithCulture ( _
    objectToConvert As Object _
) As String
Visual Basic (Usage)
Dim objectToConvert As Object
Dim returnValue As String

returnValue = ToStringHelper.ToStringWithCulture(objectToConvert)
C#
public static string ToStringWithCulture(
    Object objectToConvert
)
Visual C++
public:
static String^ ToStringWithCulture(
    Object^ objectToConvert
)
JScript
public static function ToStringWithCulture(
    objectToConvert : Object
) : String

Parameters

objectToConvert
Type: System..::.Object

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.

Permissions

See Also

Reference

Tags :


Page view tracker