private void Write37_ArchiveFormatInfo(string n, string ns, ArchiveFormatInfo o, bool isNullable, bool needType)
 {
     if (o == null)
     {
         if (isNullable)
         {
             base.WriteNullTagLiteral(n, ns);
         }
     }
     else if (!needType)
     {
         System.Type type = o.GetType();
         if (type != typeof(ArchiveFormatInfo))
         {
             if (type != typeof(PersistArchiveFormatInfo))
             {
                 throw base.CreateUnknownTypeException(o);
             }
             this.Write38_PersistArchiveFormatInfo(n, ns, (PersistArchiveFormatInfo) o, isNullable, true);
         }
     }
 }