A game about forced loneliness, made by TACStudios
1namespace UnityEditor.ShaderGraph.Serialization 2{ 3 struct MultiJsonEntry 4 { 5 public string id { get; } 6 public string type { get; } 7 public string json { get; } 8 9 public MultiJsonEntry(string type, string id, string json) 10 { 11 this.id = id; 12 this.type = type; 13 this.json = json; 14 } 15 16 public bool Equals(MultiJsonEntry other) 17 { 18 return id == other.id && type == other.type && json == other.json; 19 } 20 21 public override bool Equals(object obj) 22 { 23 return obj is MultiJsonEntry other && Equals(other); 24 } 25 26 public override int GetHashCode() 27 { 28 unchecked 29 { 30 var hashCode = (id != null ? id.GetHashCode() : 0); 31 hashCode = (hashCode * 397) ^ (type != null ? type.GetHashCode() : 0); 32 hashCode = (hashCode * 397) ^ (json != null ? json.GetHashCode() : 0); 33 return hashCode; 34 } 35 } 36 37 public override string ToString() 38 { 39 return $"{nameof(id)}: {id}, {nameof(type)}: {type}, {nameof(json)}:\n{json}"; 40 } 41 } 42}