Example #1
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIAbstractArtifactElement(");
            bool          __first = true;

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