예제 #1
0
        // 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);
        }
예제 #2
0
 // 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;
 }