Click or drag to resize

ObjectToDisplayNameConverterConvert Method (Object, Type)

Converts the specified value to the display name taken from it's DisplayNameAttribute

Namespace:  TomsToolbox.Wpf.Converters
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax
public static string Convert(
	Object? value,
	Type? enumType
)

Parameters

value
Type: SystemObject
The value.
enumType
Type: SystemType
An optional type of an enum to support converting Enum where the value is given as a number or string.

Return Value

Type: String
The display name of the value.
See Also