public static string TypeConvertToString(
Object? value,
CultureInfo? culture,
bool throwOnFail = false
)
Public Shared Function TypeConvertToString (
value As Object,
culture As CultureInfo,
Optional throwOnFail As Boolean = false
) As String
public:
static String^ TypeConvertToString(
Object^ value,
CultureInfo^ culture,
bool throwOnFail = false
)
Gemstone.Common.TypeConvertToString = function(value, culture, throwOnFail);
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, CultureInfo) string extension method or [!:TypeConvertFromString(string, Type, CultureInfo)] to convert the string back to its original Type.