static private IsGenericMethod ( MethodInfo md ) : bool | ||
md | MethodInfo | |
return | bool |
public string GetTotalName() { string[] ss = new string[args.Length]; for (int i = 0; i < args.Length; i++) { ss[i] = GetTypeStr(args[i].GetType()); } if (!ToLuaExport.IsGenericMethod(method)) { return(Name + "(" + string.Join(",", ss) + ")"); } else { Type[] gts = method.GetGenericArguments(); string[] ts = new string[gts.Length]; for (int i = 0; i < gts.Length; i++) { ts[i] = GetTypeStr(gts[i]); } return(Name + "<" + string.Join(",", ts) + ">" + "(" + string.Join(",", ss) + ")"); } }