/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">Religion Code</param> /// public Religion( ReligionType code ) : base(CommonDTD.RELIGION) { this.SetCode( code ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">Religion Code</param> /// public Religion(ReligionType code) : base(CommonDTD.RELIGION) { this.SetCode(code); }
/// <summary> /// Sets the value of the <c><Code></c> element. /// </summary> /// <param name="val">A ReligionType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Religion Code"</para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetCode( ReligionType val ) { SetField( CommonDTD.RELIGION_CODE, val ); }
///<summary>Sets the value of the <c><Religion></c> element.</summary> /// <param name="Code">Religion Code</param> ///<remarks> /// <para>This form of <c>setReligion</c> is provided as a convenience method /// that is functionally equivalent to the <c>Religion</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetReligion( ReligionType Code ) { RemoveChild( CommonDTD.DEMOGRAPHICS_RELIGION); AddChild( CommonDTD.DEMOGRAPHICS_RELIGION, new Religion( Code ) ); }