/// <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; }
public void AddAttribute(ParamAttr att) { this.parMode |= (ushort)att; }
public void SetAttributes(ParamAttr att) { this.parMode = (ushort)att; }
/*-------------------- 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; }