4 using System
.Collections
.Specialized
;
8 public static void Main(string[] args
)
10 var chat
= new ChatClient();
11 var lines
= new StringCollection() { "a", "b", "c" }
;
12 chat
.Say("test", lines
);
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
)