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

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