/// <summary>
		/// Create a new parameter for a method
		/// </summary>
		/// <param name="mode">param mode (in, out, opt)</param>
		/// <param name="parName">parameter name</param>
		/// <param name="parType">parameter type</param>
		public Param(ParamAttr mode, string parName, Type parType) 
		{
			pName = parName;
			pType = parType;
			parMode = (ushort)mode;
			tabIx = MDTable.Param;
		}
示例#2
0
文件: PERWAPI.cs 项目: nomit007/f4
 public void AddAttribute(ParamAttr att)
 {
     this.parMode |= (ushort)att;
 }
示例#3
0
文件: PERWAPI.cs 项目: nomit007/f4
 public void SetAttributes(ParamAttr att)
 {
     this.parMode = (ushort)att;
 }
示例#4
0
 /*-------------------- Constructors ---------------------------------*/
 /// <summary>
 /// Create a new parameter for a method
 /// </summary>
 /// <param name="mode">param mode (in, out, opt)</param>
 /// <param name="parName">parameter name</param>
 /// <param name="parType">parameter type</param>
 public Param(ParamAttr mode, string parName, Type parType)
 {
     pName = parName;
     pType = parType;
     Contract.Requires(parName != null);
     parMode = (ushort)mode;
     tabIx = MDTable.Param;
 }