17 lines
318 B
C#
17 lines
318 B
C#
#region
|
|
|
|
using System;
|
|
|
|
#endregion
|
|
|
|
namespace Bridge_Example;
|
|
|
|
//This is one of the concrete implementors, which implements the implementor interface IMessageSender
|
|
public class EmailSender : IMessageSender
|
|
{
|
|
public void SendMessage(string message)
|
|
{
|
|
Console.WriteLine($"Email sent: {message}");
|
|
}
|
|
}
|