Example #1
0
        /// <summary>
        /// 根据元数据反解出函数信息
        /// </summary>
        /// <param name="methodInfo">方法元数据</param>
        /// <returns></returns>
        public static string GetMethodDeclaration(MethodInfo methodInfo)
        {
            StringBuilder declaration = new StringBuilder();

            declaration.Append(AccessReverser.GetAccess(methodInfo));
            declaration.Append(ModifierReverser.GetModifier(methodInfo));
            declaration.Append(methodInfo.ReturnType.GetDevelopName());
            declaration.Append(methodInfo.Name);
            declaration.Append(GetParameters(methodInfo));
            return(declaration.ToString());
        }
Example #2
0
 public T MemberAccess(MethodInfo access)
 {
     AccessScript = AccessReverser.GetAccess(access);
     return(Link);
 }
Example #3
0
 public T MemberAccess(AccessTypes access)
 {
     AccessScript = AccessReverser.GetAccess(access);
     return(Link);
 }
Example #4
0
 public T ClassAccess(AccessTypes enumAccess)
 {
     AccessScript = AccessReverser.GetAccess(enumAccess);
     return(Link);
 }
Example #5
0
 public T ClassAccess(MethodInfo reflectMethodInfo)
 {
     AccessScript = AccessReverser.GetAccess(reflectMethodInfo);
     return(Link);
 }
 public T MethodAccess(AccessTypes access)
 {
     OnceAccessScript = AccessReverser.GetAccess(access);
     return(Link);
 }