static readonly Type generic_icollection_type;
static readonly Type generic_ienumerable_type;
static readonly Type icloneable_type;
-#if NET_4_0
- static readonly Type istructuralequatable_type = typeof (IStructuralEquatable);
- static readonly Type istructuralcomparable_type = typeof (IStructuralComparable);
-#endif
static InterfaceTester ()
{
ifaces.Add (icollection_type, State.Missing);
ifaces.Add (ienumerable_type, State.Missing);
ifaces.Add (icloneable_type, State.Missing);
-#if NET_4_0
- ifaces.Add (istructuralequatable_type, State.Missing);
- ifaces.Add (istructuralcomparable_type, State.Missing);
-#endif
-
+ ifaces.Add (typeof (IStructuralEquatable), State.Missing);
+ ifaces.Add (typeof (IStructuralComparable), State.Missing);
Type array_type = t.MakeArrayType ();
if (Debug) {
ifaces.Add (generic_ilist_type.MakeGenericType (gargs), State.Missing);
ifaces.Add (generic_icollection_type.MakeGenericType (gargs), State.Missing);
ifaces.Add (generic_ienumerable_type.MakeGenericType (gargs), State.Missing);
+
+#if NET_4_5
+ ifaces.Add (typeof (IReadOnlyCollection<>).MakeGenericType (gargs), State.Missing);
+ ifaces.Add (typeof (IReadOnlyList<>).MakeGenericType (gargs), State.Missing);
+#endif
}
foreach (Type iface in array_type.GetInterfaces ()) {
return 0;
}
- static int Main ()
+ public static int Main ()
{
int result = Test ();
if (result == 0)