/// <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; }
/// <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; }
/// <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); }
/// <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; }