1 // Compiler options: -langversion:linq
5 static class SimpleTest
7 public static string Prefix (this string s, string prefix)
15 public static int Main ()
17 SimpleTest.Prefix ("foo", "1");
18 string s = "foo".Prefix ("1");
20 Type ex_attr = typeof (System.Runtime.CompilerServices.ExtensionAttribute);
21 if (!typeof (SimpleTest).IsDefined (ex_attr, false))
24 if (!typeof (SimpleTest).Assembly.IsDefined (ex_attr, false))
27 if (!typeof (SimpleTest).GetMethod ("Prefix").IsDefined (ex_attr, false))
33 Console.WriteLine (s);