public override int GetHashCode() { int hashcode = 0; unchecked { hashcode = (hashcode * 397) ^ (Key == null ? 0 : (Key.GetHashCode())); hashcode = (hashcode * 397) ^ (Value == null ? 0 : (Value.GetHashCode())); hashcode = (hashcode * 397) ^ (Annotation_type == null ? 0 : (Annotation_type.GetHashCode())); hashcode = (hashcode * 397) ^ (Host == null ? 0 : (Host.GetHashCode())); } return(hashcode); }
public override string ToString() { var sb = new StringBuilder("BinaryAnnotation("); int tmp5 = 0; if ((Key != null) && __isset.key) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("Key: "); Key.ToString(sb); } if ((Value != null) && __isset.@value) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("Value: "); Value.ToString(sb); } if (__isset.annotation_type) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("Annotation_type: "); Annotation_type.ToString(sb); } if ((Host != null) && __isset.host) { if (0 < tmp5++) { sb.Append(", "); } sb.Append("Host: "); Host.ToString(sb); } sb.Append(')'); return(sb.ToString()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if ((Key != null) && __isset.key) { hashcode = (hashcode * 397) + Key.GetHashCode(); } if ((Value != null) && __isset.@value) { hashcode = (hashcode * 397) + Value.GetHashCode(); } if (__isset.annotation_type) { hashcode = (hashcode * 397) + Annotation_type.GetHashCode(); } if ((Host != null) && __isset.host) { hashcode = (hashcode * 397) + Host.GetHashCode(); } } return(hashcode); }