2 using System.Collections;
6 public static int Main ()
8 foreach (object o in QueryEnumerable<string>()) {
9 if ((string)o != "Type: System.String")
13 if (TestType<string>().GetType () != typeof (string))
19 public static IEnumerable QueryEnumerable<T> ()
21 yield return "Type: " + typeof(T);
24 public static T TestType<T> ()
26 return (T) TestType (typeof(T));
29 public static object TestType (Type t)