示例#1
0
文件: Program.cs 项目: wushian/Stacks
        static void Main(string[] args)
        {
            var formatter = new Formatter();
            var helloPrinter = new Hello(formatter);

            helloPrinter.SayHelloToFriends(new[] { "Stan", "Scott", "John" });
        }
示例#2
0
文件: Program.cs 项目: wushian/Stacks
 public Hello(Formatter formatter)
 {
     this.formatter = formatter;
 }