Пример #1
0
 /// <summary>
 /// 检测指定的成员元数据是否存在特定的Attribute
 /// </summary>
 /// <param name="member">目标成员元数据</param>
 public static bool IsDefined <T>(this MemberInfo member)
     where T : Attribute
 {
     ExceptionUtils.CheckOnNull(member, "member");
     return(Attribute.IsDefined(member, typeof(T)));
 }