public SimpleConstructorInfo(Type declaringType, Type[] parameterTypes)
 {
     this.declaringType = declaringType;
     parameters = new SimpleParameterInfo[parameterTypes.Length];
     for (var i = 0; i < parameterTypes.Length; i++)
         parameters[i] = new SimpleParameterInfo(parameterTypes[i]);
 }
 public SimpleConstructorInfo(Type declaringType, Type[] parameterTypes)
 {
     this.declaringType = declaringType;
     parameters         = new SimpleParameterInfo[parameterTypes.Length];
     for (var i = 0; i < parameterTypes.Length; i++)
     {
         parameters[i] = new SimpleParameterInfo(parameterTypes[i]);
     }
 }
Beispiel #3
0
 public SimpleMethodInfo(bool isStatic, string name, Type declaringType, Type[] parameterTypes, Type returnType)
 {
     this.isStatic = isStatic;
     this.name = name;
     this.declaringType = declaringType;
     parameters = new SimpleParameterInfo[parameterTypes.Length];
     for (var i = 0; i < parameterTypes.Length; i++)
         parameters[i] = new SimpleParameterInfo(parameterTypes[i]);
     this.returnType = returnType;
 }
 public SimpleMethodInfo(bool isStatic, string name, Type declaringType, Type[] parameterTypes, Type returnType)
 {
     this.isStatic      = isStatic;
     this.name          = name;
     this.declaringType = declaringType;
     parameters         = new SimpleParameterInfo[parameterTypes.Length];
     for (var i = 0; i < parameterTypes.Length; i++)
     {
         parameters[i] = new SimpleParameterInfo(parameterTypes[i]);
     }
     this.returnType = returnType;
 }