CommonTypeConvertToString(Object) Method

Converts value to a String using an appropriate TypeConverter.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.137 -- Release Build+84492f84208b356bfb930d6c506a4bce06d2449a
public static string TypeConvertToString(
	Object value
)

Parameters

value  Object
Value to convert to a String.

Return Value

String
value converted to a String.

Remarks

If TypeConverter fails, the value's ToString() value will be returned. Returned value will never be null, if no value exists an empty string ("") will be returned.

You can use the ConvertToTypeT(String) string extension method or TypeConvertFromString(String, Type) to convert the string back to its original Type.

See Also