using System.Collections.Generic;
public class Test : IEquatable<Test>
public List<int> list = new List<int> {1, 2, 3};
public bool Equals(Test other)
public override int GetHashCode() { return 1; }
public static void Main()
HashSet<Test> hashSet = new HashSet<Test> { new Test() };
foreach(int i in t1.list)