// Return the arguments and result from the p.o.v. of the unmanaged side. Ie the first // 'this' argument is not included, and the result is the constructor's declaring type // rather than void. public static List <Type> ExplodeSimpleConstructorInfo(SimpleConstructorInfo ctor, out Type resType) { var argTypes = new List <Type>(); foreach (var pi in ctor.GetParameters()) { argTypes.Add(pi.ParameterType); } resType = ctor.DeclaringType; return(argTypes); }
// Return the arguments and result from the p.o.v. of the unmanaged side. Ie the first // 'this' argument is not included, and the result is the constructor's declaring type // rather than void. public static List<Type> ExplodeSimpleConstructorInfo(SimpleConstructorInfo ctor, out Type resType) { var argTypes = new List<Type>(); foreach (var pi in ctor.GetParameters()) argTypes.Add(pi.ParameterType); resType = ctor.DeclaringType; return argTypes; }