Click or drag to resize

EnumExtensionGetEnumValueFromDescriptionTEnum Method

This method searches for an enum value that has a description attribute matching the provided descriptionValue. It iterates through all values of the specified enum type and compares their descriptions. If a match is found, it returns the corresponding enum value. If no matching value is found, it throws an ArgumentException indicating that no enum value matches the given description attribute value.

Namespace: QsInformatica.Utils
Assembly: QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
public static TEnum GetEnumValueFromDescription<TEnum>(
	string descriptionValue
)

Parameters

descriptionValue  String

[Missing <param name="descriptionValue"/> documentation for "M:QsInformatica.Utils.EnumExtension.GetEnumValueFromDescription``1(System.String)"]

Type Parameters

TEnum

[Missing <typeparam name="TEnum"/> documentation for "M:QsInformatica.Utils.EnumExtension.GetEnumValueFromDescription``1(System.String)"]

Return Value

TEnum

[Missing <returns> documentation for "M:QsInformatica.Utils.EnumExtension.GetEnumValueFromDescription``1(System.String)"]

Exceptions
ExceptionCondition
ArgumentException
See Also