public static void SayHello() { Console.WriteLine("Hello!"); var subject = "test"; var body = "This is another test"; var email = "*****@*****.**"; DerivedEmailer.SayHello(subject, body, email); }
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); }