Ejemplo n.º 1
0
 internal GenericTypeParameterBuilder(string name, TypeBuilder type, MethodBuilder method, int position)
 {
     this.name     = name;
     this.type     = type;
     this.method   = method;
     this.position = position;
     GenericParamTable.Record rec = new GenericParamTable.Record();
     rec.Number            = (short)position;
     rec.Flags             = 0;
     rec.Owner             = type != null ? type.MetadataToken : method.MetadataToken;
     rec.Name              = this.ModuleBuilder.Strings.Add(name);
     this.paramPseudoIndex = this.ModuleBuilder.GenericParam.AddRecord(rec);
 }
Ejemplo n.º 2
0
		internal GenericTypeParameterBuilder(string name, TypeBuilder type, MethodBuilder method, int position)
		{
			this.name = name;
			this.type = type;
			this.method = method;
			this.position = position;
			GenericParamTable.Record rec = new GenericParamTable.Record();
			rec.Number = (short)position;
			rec.Flags = 0;
			rec.Owner = type != null ? type.MetadataToken : method.MetadataToken;
			rec.Name = this.ModuleBuilder.Strings.Add(name);
			this.paramPseudoIndex = this.ModuleBuilder.GenericParam.AddRecord(rec);
		}
Ejemplo n.º 3
0
 private GenericTypeParameterBuilder(string name, TypeBuilder type, MethodBuilder method, int position, byte sigElementType)
     : base(sigElementType)
 {
     this.name     = name;
     this.type     = type;
     this.method   = method;
     this.position = position;
     GenericParamTable.Record rec = new GenericParamTable.Record();
     rec.Number            = (short)position;
     rec.Flags             = 0;
     rec.Owner             = type != null ? type.MetadataToken : method.MetadataToken;
     rec.Name              = this.ModuleBuilder.Strings.Add(name);
     this.paramPseudoIndex = this.ModuleBuilder.GenericParam.AddRecord(rec);
     this.interfTypes      = Type.EmptyTypes;
 }