// Return the arguments and result from the p.o.v. of the CLR. Ie any implicit // 'this' argument is explicit. public static List <Type> ExplodeSimpleMethodInfo(SimpleMethodInfo method, out Type resType) { var argTypes = new List <Type>(); if (!method.IsStatic) { argTypes.Add(method.DeclaringType); } foreach (var pi in method.GetParameters()) { argTypes.Add(pi.ParameterType); } if (IsVoid(method.ReturnType)) { resType = null; } else { resType = method.ReturnType; } return(argTypes); }
// Return the arguments and result from the p.o.v. of the CLR. Ie any implicit // 'this' argument is explicit. public static List<Type> ExplodeSimpleMethodInfo(SimpleMethodInfo method, out Type resType) { var argTypes = new List<Type>(); if (!method.IsStatic) argTypes.Add(method.DeclaringType); foreach (var pi in method.GetParameters()) argTypes.Add(pi.ParameterType); if (IsVoid(method.ReturnType)) resType = null; else resType = method.ReturnType; return argTypes; }