public override string ToString() { var sb = new StringBuilder("Xtruct("); int tmp5 = 0; if ((String_thing != null) && __isset.string_thing) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("String_thing: "); String_thing.ToString(sb); } if (__isset.byte_thing) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("Byte_thing: "); Byte_thing.ToString(sb); } if (__isset.i32_thing) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("I32_thing: "); I32_thing.ToString(sb); } if (__isset.i64_thing) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("I64_thing: "); I64_thing.ToString(sb); } sb.Append(')'); return(sb.ToString()); }
public override string ToString() { var sb = new StringBuilder("Xtruct3("); int tmp9 = 0; if ((String_thing != null) && __isset.string_thing) { if (0 < tmp9++) { sb.Append(", "); } sb.Append("String_thing: "); String_thing.ToString(sb); } if (__isset.changed) { if (0 < tmp9++) { sb.Append(", "); } sb.Append("Changed: "); Changed.ToString(sb); } if (__isset.i32_thing) { if (0 < tmp9++) { sb.Append(", "); } sb.Append("I32_thing: "); I32_thing.ToString(sb); } if (__isset.i64_thing) { if (0 < tmp9++) { sb.Append(", "); } sb.Append("I64_thing: "); I64_thing.ToString(sb); } sb.Append(')'); return(sb.ToString()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if ((String_thing != null) && __isset.string_thing) { hashcode = (hashcode * 397) + String_thing.GetHashCode(); } if (__isset.byte_thing) { hashcode = (hashcode * 397) + Byte_thing.GetHashCode(); } if (__isset.i32_thing) { hashcode = (hashcode * 397) + I32_thing.GetHashCode(); } if (__isset.i64_thing) { hashcode = (hashcode * 397) + I64_thing.GetHashCode(); } } return(hashcode); }