using System; using System.Collections.Generic; namespace ScreenConnect; public struct HashableListWrapper(IList? list) : IEquatable> { public IList? List { get; } = list; public override int GetHashCode() { return HashCode.Seed.AndList(List); } public override bool Equals(object? obj) { if (obj is HashableListWrapper other) { return Equals(other); } return false; } public bool Equals(HashableListWrapper other) { return List.ListEquals(other.List); } }