/// <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()); }
public T MemberAccess(MethodInfo access) { AccessScript = AccessReverser.GetAccess(access); return(Link); }
public T MemberAccess(AccessTypes access) { AccessScript = AccessReverser.GetAccess(access); return(Link); }
public T ClassAccess(AccessTypes enumAccess) { AccessScript = AccessReverser.GetAccess(enumAccess); return(Link); }
public T ClassAccess(MethodInfo reflectMethodInfo) { AccessScript = AccessReverser.GetAccess(reflectMethodInfo); return(Link); }
public T MethodAccess(AccessTypes access) { OnceAccessScript = AccessReverser.GetAccess(access); return(Link); }