ReflectionUtils.TypedValueToString

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, 2019 • Updated: 06/23/19
Comment or report problem with topic