Chain-of-responsibility pattern: Difference between revisions

Content deleted Content added
Bluelinking 1 books for verifiability.) #IABot (v2.1alpha3
m C# example: format code
Line 162:
Logger lastLogger = this;
 
while (lastLogger.next != null)
{
lastLogger = lastLogger.next;
Line 173:
public void Message(string msg, LogLevel severity)
{
if ((severity & logMask) != 0) // True only if any of the logMask bits are set in severity
{
WriteMessage(msg);