Summary description for ConstantElem.
Inheritance: MetaDataElement
コード例 #1
0
		/// <summary>
		/// Add a value for this field
		/// </summary>
		/// <param name="val">the value for the field</param>
		public void AddValue(Constant val) 
		{
			constVal = new ConstantElem(this,val);
			flags |= HasDefault;
		}
コード例 #2
0
		/// <summary>
		/// Add a default value to this parameter
		/// </summary>
		/// <param name="c">the default value for the parameter</param>
		public void AddDefaultValue(Constant cVal) 
		{
			defaultVal = new ConstantElem(this,cVal);
			parMode |= (ushort) ParamAttr.HasDefault;
		}
コード例 #3
0
		/// <summary>
		/// Add an initial value for this property
		/// </summary>
		/// <param name="constVal">the initial value for this property</param>
		public void AddInitValue(Constant constVal) 
		{
			this.constVal = new ConstantElem(this,constVal);
		}
コード例 #4
0
 /// <summary>
 /// Add a default value to this parameter
 /// </summary>
 /// <param name="c">the default value for the parameter</param>
 public void AddDefaultValue(Constant cVal) {
   defaultVal = new ConstantElem(this,cVal);
   parMode |= hasDefault;
 }