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();
        }
Esempio n. 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();
        }