Babel.Compiler.TypeManager.GetMethodInfo C# (CSharp) Method

GetMethodInfo() public method

public GetMethodInfo ( MethodInfo method ) : string
method System.Reflection.MethodInfo
return string
        public virtual string GetMethodInfo(MethodInfo method)
        {
            string methodInfo = GetTypeName(method.DeclaringType);
            string name = GetBabelName(method);
            if (name == null)
                name = method.Name;
            methodInfo += "::" + name;
            ParameterInfo[] parameters = GetParameters(method);
            if (parameters.Length > 0) {
                methodInfo += "(";
                bool first = true;
                foreach (ParameterInfo param in parameters) {
                    if (first)
                        first = false;
                    else
                        methodInfo += ",";
                    methodInfo += GetTypeName(param.ParameterType);
                }
                methodInfo += ")";
            }
            TypeData returnType = GetReturnType(method);
            if (!returnType.IsVoid)
                methodInfo += ":" + returnType.Name;
            return methodInfo;
        }

Same methods

TypeManager::GetMethodInfo ( TypeData receiverType, string name, TypedNodeList arguments, TypeData returnType ) : string