コード例 #1
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIAbstractArtifactPackage(");
            bool          __first = true;

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