using System.Collections.Generic; using System.Linq; namespace NTERA.Engine { public static class Utility { public static IEnumerable GetEnumAttributes(TEnum enumValue) { return typeof(TEnum).GetField(enumValue.ToString()).GetCustomAttributes(typeof(TAttribute), false).Cast(); } } }