Example #1
0
 private void Write4_WorkHoursTimeZone(string n, string ns, WorkHoursTimeZone o, bool isNullable, bool needType)
 {
     if (o == null)
     {
         if (isNullable)
         {
             base.WriteNullTagLiteral(n, ns);
         }
         return;
     }
     if (!needType)
     {
         Type type = o.GetType();
         if (!(type == typeof(WorkHoursTimeZone)))
         {
             throw base.CreateUnknownTypeException(o);
         }
     }
     base.WriteStartElement(n, ns, o, false, null);
     if (needType)
     {
         base.WriteXsiType("WorkHoursTimeZone", "WorkingHours.xsd");
     }
     base.WriteElementStringRaw("Bias", "WorkingHours.xsd", XmlConvert.ToString(o.Bias));
     this.Write3_ZoneTransition("Standard", "WorkingHours.xsd", o.Standard, false, false);
     this.Write3_ZoneTransition("DaylightSavings", "WorkingHours.xsd", o.DaylightSavings, false, false);
     base.WriteElementString("Name", "WorkingHours.xsd", o.Name);
     base.WriteEndElement(o);
 }