Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git] / tests / gtest-exmethod-12.cs
blob3962299261ce4029aad6fe899dc0fdd4f154aabe
3 using System;
4 using System.Collections.Specialized;
6 class Program
8 static void Main(string[] args)
10 var chat = new ChatClient();
11 var lines = new StringCollection() { "a", "b", "c" };
12 chat.Say("test", lines);
16 class ChatClient
18 public void Say(string to, string message)
20 Console.WriteLine("{0}: {1}", to, message);
25 static class ChatExtensions
27 public static void Say(this ChatClient chat, string to, StringCollection lines)
29 foreach (string line in lines)
31 chat.Say(to, line);