Skip to content

Instantly share code, notes, and snippets.

@nosavvy33
Created January 22, 2021 15:48
Show Gist options
  • Select an option

  • Save nosavvy33/eb6b8263ea835b9f44367812212b4663 to your computer and use it in GitHub Desktop.

Select an option

Save nosavvy33/eb6b8263ea835b9f44367812212b4663 to your computer and use it in GitHub Desktop.
// this in Services\ConsolePrinter\IPrinter
public interface IPrinter
{
void PrintToConsole(int Result);
// this was added
void PingPong();
}
// this in Services\ConsolePrinter\PrinterService
public class PrinterService : IPrinter
{
public PrinterService()
{
System.Console.WriteLine("I am a new PrinterService");
}
public void PrintToConsole(int Result)
{
System.Console.WriteLine("Result = "+Result);
}
// this was added
public void PingPong()
{
System.Console.WriteLine("Ping Pong");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment