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

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