Ejemplo n.º 1
0
 void Write21_CiscoIPPhoneExecuteType(string n, string ns, CiscoIPPhoneExecuteType o, bool isNullable, bool needType) {
     if ((object)o == null) {
         if (isNullable) WriteNullTagLiteral(n, ns);
         return;
     }
     if (!needType) {
         System.Type t = o.GetType();
         if (t == typeof(CiscoIPPhoneExecuteType)) {
         }
         else {
             throw CreateUnknownTypeException(o);
         }
     }
     WriteStartElement(n, ns, o, false, null);
     if (needType) WriteXsiType(@"CiscoIPPhoneExecuteType", @"");
     {
         CiscoIPPhoneExecuteItemType[] a = (CiscoIPPhoneExecuteItemType[])o.@ExecuteItem;
         if (a != null) {
             for (int ia = 0; ia < a.Length; ia++) {
                 Write6_CiscoIPPhoneExecuteItemType(@"ExecuteItem", @"", ((CiscoIPPhoneExecuteItemType)a[ia]), false, false);
             }
         }
     }
     WriteEndElement(o);
 }