public GenericTypeParameterBuilder[] DefineGenericParameters(params string[] names) { gtpb = new GenericTypeParameterBuilder[names.Length]; for (int i = 0; i < names.Length; i++) { gtpb[i] = new GenericTypeParameterBuilder(names[i], null, 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], null, this, i); } return((GenericTypeParameterBuilder[])gtpb.Clone()); }
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, null, i); } return (GenericTypeParameterBuilder[])gtpb.Clone(); }
public GenericTypeParameterBuilder[] DefineGenericParameters(params string[] names) { CheckSig(); gtpb = new GenericTypeParameterBuilder[names.Length]; for (int i = 0; i < names.Length; i++) { gtpb[i] = new GenericTypeParameterBuilder(names[i], null, 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(); }