void Write10_CiscoIPPhoneDirectoryEntryType(string n, string ns, CiscoIPPhoneDirectoryEntryType 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(CiscoIPPhoneDirectoryEntryType)) {
         }
         else {
             throw CreateUnknownTypeException(o);
         }
     }
     WriteStartElement(n, ns, o, false, null);
     if (needType) WriteXsiType(@"CiscoIPPhoneDirectoryEntryType", @"");
     WriteNullableStringLiteral(@"Name", @"", ((global::System.String)o.@Name));
     WriteElementString(@"Telephone", @"", ((global::System.String)o.@Telephone));
     WriteEndElement(o);
 }