Converts a type to string if possible. This method supports an optional culture generically on any value. It calls the ToString() method on common types and uses a type converter on all other objects if available
public static string TypedValueToString(object rawValue, CultureInfo culture, string unsupportedReturn)
Return Value
string
Parameters
rawValue
The Value or Object to convert to a string
culture
Culture for numeric and DateTime values
unsupportedReturn
Return string for unsupported types
See also:
Class ReflectionUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic