public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIAbstractSystem(");
            bool          __first = true;

            if (UsedSystem != null && __isset.UsedSystem)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UsedSystem: ");
                __sb.Append(UsedSystem == null ? "<null>" : UsedSystem.ToString());
            }
            if (__isset.UsedSystemType)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UsedSystemType: ");
                __sb.Append(UsedSystemType);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIAbstractSystem");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (UsedSystem != null && __isset.UsedSystem)
         {
             field.Name = "UsedSystem";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             UsedSystem.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (__isset.UsedSystemType)
         {
             field.Name = "UsedSystemType";
             field.Type = TType.I32;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             oprot.WriteI32((int)UsedSystemType);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }