I have a class ClassAthat uses a client that I wrote to send text messages TextClient, to send text messages through a call to the static method
TextClient.Send(string text, string destination)
However, I also have an email client class MailClientthat sends letters with the same signature:
MailClient.Send(string text, string destination)
I would like to βenterβ which of these clients should be used - is this possible?
(Note. I know about the problems that can arise when there are completely different rules for which values destinationcan be held and considered valid, but the values ββare retrieved from another place, so this class is not needed that I want to divert this in the first place.)
source
share