a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
388 B
C#
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;
|
|
}
|
|
}
|