CSharp examples for System.Reflection:Modifier
Is Flags Enum
using System.Threading.Tasks; using System.Text; using System.Runtime.Serialization; using System.Runtime.CompilerServices; using System.Reflection.Emit; using System.Reflection; using System.Linq; using System.IO;/* w w w . ja v a2s . c o m*/ using System.Globalization; using System.Collections.Generic; using System; public class Main{ public static bool IsFlagsEnum(this Type enumType) { return enumType.GetCustomAttribute<FlagsAttribute>() != null; } }