blob: 912527e6f3ba5c334bff664d6f9ce422082c4358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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;
}
}
|