Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
388 B
C#

using System;
using System.Collections.Generic;
interface IFoo
{
}
class ArrayEqualityComparer<T> : IEqualityComparer<T[]>
{
public bool Equals (T[] x, T[] y)
{
return false;
}
public int GetHashCode (T[] args)
{
return 0;
}
}
public class Program
{
public static int Main ()
{
var d = new Dictionary<IFoo[], IFoo> (new ArrayEqualityComparer<IFoo> ());
return 0;
}
}