blob: 1d31ae384ac5f394fe6ee360a611ea603882a59f (
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
|
using System;
using System.Threading;
using System.Collections;
using System.Collections.Generic;
public class Dict : Dictionary <object, object>
{
}
public class Foo
{
public static int Main ()
{
IDictionary<object, object> dict = new Dict ();
dict.Add (new Object (), new Object ());
foreach (object kv in dict) {
Type t = kv.GetType ();
if (t.IsGenericType)
return 0;
else
return 1;
}
return 2;
}
}
|