Using reflection, how do I determine whether an enum has the Flags attribute or not
so for MyColor return true
[Flags]
public enum MyColor
{
Yellow = 1,
Green = 2,
Red = 4,
Blue = 8
}
and for MyTrade return false
public enum MyTrade
{
Stock = 1,
Floor = 2,
Net = 4,
}
If you are on .NET 4.5: