Mid GoF Patterns

Product Interface (ILogger):?

  • This interface defines the common method Log that will be implemented by

all types of loggers (e.g., file, console).

public interface ILogger

void Log(string message);

More from Design Patterns in C#

All questions for this course