| 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.UtilsAssembly: QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax public static TEnum GetEnumValueFromDescription<TEnum>(
string descriptionValue
)
Public Shared Function GetEnumValueFromDescription(Of TEnum) (
descriptionValue As String
) As TEnum
public:
generic<typename TEnum>
static TEnum GetEnumValueFromDescription(
String^ descriptionValue
)
static member GetEnumValueFromDescription :
descriptionValue : string -> 'TEnum
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 See Also