Fix LinearGradientMode parameter validation to match corefx (#5672)
[mono.git] / mcs / tests / gtest-491.cs
1 using System;
2 using System.Collections.Generic;
3
4 interface IFoo
5 {
6 }
7
8 class ArrayEqualityComparer<T> : IEqualityComparer<T[]>
9 {
10         public bool Equals (T[] x, T[] y)
11         {
12                 return false;
13         }
14
15         public int GetHashCode (T[] args)
16         {
17                 return 0;
18         }
19 }
20
21 public class Program
22 {
23         public static int Main ()
24         {
25                 var d = new Dictionary<IFoo[], IFoo> (new ArrayEqualityComparer<IFoo> ());
26                 return 0;
27         }
28 }