示例#1
0
 /// <summary>
 /// 获取字段的访问权限修饰符
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public static MemberAccess GetAccess(this FieldInfo info)
 {
     return(AccessAnalysis.GetAccess(info));
 }
 /// <summary>
 /// 获取访问权限修饰符
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public static MemberAccess GetAccess(this PropertyInfo info)
 {
     return(AccessAnalysis.GetAccess(info));
 }
 /// <summary>
 /// 识别方法的访问权限
 /// </summary>
 /// <param name="method"></param>
 /// <returns></returns>
 public static MemberAccess GetAccess(this MethodInfo method)
 {
     return(AccessAnalysis.GetAccess(method));
 }
示例#4
0
 /// <summary>
 /// 获取访问权限
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public static MemberAccess GetAccess(this Type type)
 {
     return(AccessAnalysis.GetAccess(type));
 }