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