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