I am trying to have the Description of an enum pulled from the resx file, but I get the above error.
Here is my code:
public enum FinalStatus
{
[Description(StringResources.MyStrings.Status_0)]
Error = 0,
[Description(StringResources.MyStrings.Status_1)]
Ok = 1,
[Description(StringResources.MyStrings.Status_5)]
Warning = 2,
[Description(StringResources.MyStrings.Status_4)]
Unknown = 3
}