/// <summary> /// Returns true if a reflection ifno has an attribute of type T. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="mem"></param> /// <returns></returns> static public bool HasAttribute <T>(this IReflectionData mem) where T : class { return(mem.GetAttribute <T>() != null); }