示例#1
0
 internal GenericParameter(int position, GenericParameterType type, ModuleDefinition module) : base(string.Empty, string.Empty)
 {
     if (module == null)
     {
         throw new ArgumentNullException();
     }
     this.position = position;
     this.type     = type;
     this.etype    = GenericParameter.ConvertGenericParameterType(type);
     this.module   = module;
     this.token    = new MetadataToken(TokenType.GenericParam);
 }
示例#2
0
 public GenericParameter(string name, IGenericParameterProvider owner) : base(string.Empty, name)
 {
     if (owner == null)
     {
         throw new ArgumentNullException();
     }
     this.position = -1;
     this.owner    = owner;
     this.type     = owner.GenericParameterType;
     this.etype    = GenericParameter.ConvertGenericParameterType(this.type);
     this.token    = new MetadataToken(TokenType.GenericParam);
 }