using System; public class WebSocketChannleKey { public string name; public string type; public WebSocketChannleKey(string name, string type) { this.name = name; this.type = type; } public override bool Equals(object obj) { return obj is WebSocketChannleKey key && name == key.name && type == key.type; } public override int GetHashCode() { return HashCode.Combine(name, type); } }