Exemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIAbstractDomainPackage(");
            bool          __first = true;

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