コード例 #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
ファイル: TypeInfo.cs プロジェクト: modulexcite/IL2JS
 // 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;
 }