public System.Xml.XmlNode Generate(XCRI.Interfaces.XCRICAP11.IStudyMode studyMode) { return(this._GetGeneratedNode((w) => { this.XmlGenerator.Write(w, studyMode); })); }
public void Write ( System.Xml.XmlWriter xmlWriter, XCRI.Interfaces.XCRICAP11.IStudyMode studyMode ) { if (studyMode == null) { throw new ArgumentNullException("studyMode"); } if ((studyMode.CompatibleWith & XCRIProfiles.XCRI_v1_1) == 0) { return; } string value = studyMode.GetElementValueAsString(); if (String.IsNullOrEmpty(value)) { return; } this._Write ( xmlWriter, "studyMode", Configuration.Namespaces.XCRICAP11NamespaceUri, value, false, studyMode.XsiTypeValue, studyMode.XsiTypeValueNamespace, studyMode.XmlLanguage ); }