Add code examples, and documentation
This commit is contained in:
16
patterns/bridge/Bridge Example/EmailSender.cs
Normal file
16
patterns/bridge/Bridge Example/EmailSender.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
#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}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user