Descriptor for a field of a class defined in another assembly/module
Inheritance: Field
Esempio n. 1
0
		/// <summary>
		/// Add a field in another module
		/// </summary>
		/// <param name="name">field name</param>
		/// <param name="fType">field type</param>
		/// <returns>a descriptor for this field in another module</returns>
		public FieldRef AddField(string name, Type fType) 
		{
			FieldRef field = new FieldRef(this,name,fType);
			metaData.AddToTable(MDTable.MemberRef,field);
			return field;
		}
Esempio n. 2
0
 public FieldRef AddFieldToTypeSpec (Type item, string name, Type fType) {
         FieldRef field = new FieldRef (item.GetTypeSpec (metaData), name,fType);
         metaData.AddToTable (MDTable.MemberRef,field);
         return field;
 }