I'm trying to know if a enum value has defined all flags. The enum is defined as following:
[Flags]
public enum ProgrammingSkills
{
None = 0,
CSharp = 1,
VBNet = 2,
Java = 4,
C = 8,
}
I cannot change the enum to define 'All', because that enum is defined in a dll library.
Of course I can iterate over all enum values, but is there any better/shorter/smarter way to determine if a enum value has defined ALL values?
EDIT:
I would like to have working code even the enum changes.