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;
}