Click or drag to resize

ObjectToDescriptionConverterConvert Method (Object, Type)

Converts the specified value to the description taken from it's DescriptionAttribute

[NotNull]

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

Parameters

value
Type: SystemObject
The value.

[NotNull]

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

[CanBeNull]

Return Value

Type: String
The description of the value.
See Also