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