예제 #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));
 }