コード例 #1
0
        static void Main()
        {
            // Writes out the stack trace from a decorated command:
            Decorate.Get(new EmitMessage(Console.WriteLine))
            .Execute(null);

            BenchmarkRunner.Run <Program>();
            Console.ReadKey();
        }
コード例 #2
0
 public Program(ICommand direct) : this(direct, Decorate.Get(direct), "Hello World!")
 {
 }