Esempio n. 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());
        }
Esempio n. 2
0
 public T MemberAccess(MethodInfo access)
 {
     AccessScript = AccessReverser.GetAccess(access);
     return(Link);
 }
Esempio n. 3
0
 public T MemberAccess(AccessTypes access)
 {
     AccessScript = AccessReverser.GetAccess(access);
     return(Link);
 }
Esempio n. 4
0
 public T ClassAccess(AccessTypes enumAccess)
 {
     AccessScript = AccessReverser.GetAccess(enumAccess);
     return(Link);
 }
Esempio n. 5
0
 public T ClassAccess(MethodInfo reflectMethodInfo)
 {
     AccessScript = AccessReverser.GetAccess(reflectMethodInfo);
     return(Link);
 }
Esempio n. 6
0
 public T MethodAccess(AccessTypes access)
 {
     OnceAccessScript = AccessReverser.GetAccess(access);
     return(Link);
 }