예제 #1
0
        public static void SayHello()
        {
            Console.WriteLine("Hello!");

            var subject = "test";
            var body    = "This is another test";
            var email   = "*****@*****.**";

            DerivedEmailer.SayHello(subject, body, email);
        }
예제 #2
0
        public static void ConditionalMail(int one, int two)
        {
            var subject = "test";
            var body    = "This is another test";
            var email   = "*****@*****.**";

            if (one < two)
            {
                body = one + " is less than " + two;
            }
            if (one > two)
            {
                body = one + " is more than " + two;
            }
            if (one == two)
            {
                body = one + " is equal to" + two;
            }
            DerivedEmailer.SayHello(subject, body, email);
        }