ToStringHelper Class
A utility class that is used to produce a culture-specific representation of an Object as a String.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TextTemplating.ToStringHelper
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.12.0 (in Microsoft.VisualStudio.TextTemplating.12.0.dll)
Syntax
'Declaration
Public NotInheritable Class ToStringHelper
public static class ToStringHelper
public ref class ToStringHelper abstract sealed
[<AbstractClass>]
[<Sealed>]
type ToStringHelper = class end
public final class ToStringHelper
The ToStringHelper type exposes the following members.
Properties
Name | Description | |
---|---|---|
FormatProvider | Gets or sets the culture-specific formatting information that is used when calling ToStringWithCulture. |
Top
Methods
Name | Description | |
---|---|---|
ToStringWithCulture | Returns a String that represents the specified Object. |
Top
Remarks
ToStringHelper is used by the text template transformation engine to convert objects within an expression block into strings.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio.TextTemplating Namespace
Other Resources
How to: Use Specific Cultures for Generating Output Strings in Text Templates