Inheritance: MetaDataElement
		public GenericParamConstraint (GenericParameter param, Type type) 
		{
			this.param = param;
			this.type = type;
			tabIx = MDTable.GenericParamConstraint;
		}
		/// <summary>
		///  Add a named generic type parameter with attributes
		/// </summary>
		public GenericParameter AddGenericParameter (short index, string name, GenericParamAttributes attr) 
		{
			GenericParameter gp = new GenericParameter (this, metaData, index, name, attr);
			metaData.AddToTable (MDTable.GenericParam, gp);
			gen_param_count ++;
			return gp;
		}
Example #3
0
 /// <summary>
 ///  Add a named generic type parameter
 /// </summary>
 public GenericParameter AddGenericParameter (short index, string name) {
         GenericParameter gp = new GenericParameter (this, metaData, index, name);
         metaData.AddToTable (MDTable.GenericParam, gp);
         return gp;
 }