Click or drag to resize

ExtensionsToStringEx Method (Object, String, CultureInfo)

Converts the value of this instance to its equivalent string representation, using the specified format.

The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax
public static string ToStringEx(
	this Object obj,
	string format,
	CultureInfo cultureInfo
)

Parameters

obj
Type: SystemObject
The object to convert to string
format
Type: SystemString
A standard or custom format string
cultureInfo
Type: System.GlobalizationCultureInfo
An object that supplies culture-specific formatting information

Return Value

Type: String
The string representation of the value of this instance as specified by format.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also