예제 #1
0
        static void Main(string[] args)
        {
            var email = new CustomEmail();

            // Not cascading
            //email.To("Me");
            //email.From("You");
            //email.Subject("Hi");
            //email.MessageBody("Hello there");

            //email.Send();

            email.To("Me")
            .From("You")
            .Subject("Hi")
            .MessageBody("Hello there");

            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            var email = new CustomEmail();

            // Not cascading
            //email.To("Me");
            //email.From("You");
            //email.Subject("Hi");
            //email.MessageBody("Hello there");

            //email.Send();

            email.To("Me")
                 .From("You")
                 .Subject("Hi")
                 .MessageBody("Hello there");

            Console.ReadLine();
        }