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