I wonder if there is a method to check if the value is the description of an Enum. I know
Enum.IsDefined(typeof(EnumEntity),value)
could be used to check if the value is in the Enum, but how about the description?
For example,
public enum LicenseTypes
{
[Description("A License")]
A,
[Description("B License")]
B,
[Description("C License")]
C
}
Is there a way to check "A License" is a description of enum LicenseTypes?