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