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

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