Exemple #1
0
 public GenericTypeParameterBuilder[] DefineGenericParameters(params string[] names)
 {
     typeFlags |= TypeFlags.IsGenericTypeDefinition;
     gtpb       = new GenericTypeParameterBuilder[names.Length];
     for (int i = 0; i < names.Length; i++)
     {
         gtpb[i] = new GenericTypeParameterBuilder(names[i], this, i);
     }
     return((GenericTypeParameterBuilder[])gtpb.Clone());
 }
 public GenericTypeParameterBuilder[] DefineGenericParameters(params string[] names)
 {
     CheckSig();
     if (gtpb != null)
     {
         throw new InvalidOperationException("Generic parameters already defined.");
     }
     gtpb = new GenericTypeParameterBuilder[names.Length];
     for (int i = 0; i < names.Length; i++)
     {
         gtpb[i] = new GenericTypeParameterBuilder(names[i], this, i);
     }
     return((GenericTypeParameterBuilder[])gtpb.Clone());
 }