I have HahSet collection of int[9] arrays and want know if HashSe already contains that array. for example
HashSet<int[]> set = new HashSet<int[]>();
int[] a=new int[9]{1,2,3,4,5,6,7,8,9};
set.Add(a);
int[] a2=new int[9]{1,2,3,4,5,6,7,8,9};
if(!set.Contains(a2))
set.Add(a2);
How can I override or implement own Equals method so that HastSet.Contains would behave like Arrays.SequenceEquals?