What
are the different Behavioral Design Patterns that can be used in .NET
Architecture?
Behavioral
Patterns provide ways for establishing communication among objects.
Ten different behavioral patterns exist and they are listed below:
Chain
of Responsibility: It is used to decouple two objects.
Command Pattern: It is used to signify software command
execution.
Interpreter Pattern: It is used to define a methodology
where by your program can include different language elements.
Iterator Pattern: It is used to iterate over a set of data
available inside a class.
Mediator Pattern: It is used to establish communication
among objects by defining a distinct object to prevent all objects knowing
each other.
Observer Pattern: It is used to define an approach for providing
notifications to objects when a change happens.
State Pattern: It is used to modify existing behavior of
an object when there is a state change for that object.
Strategy Pattern: It is used to wrap an algorithm within
a class.
Template Method Pattern: It is used to give an abstract
and simple definition for an algorithm.
Visitor Pattern: It is used to define functions that are
polymorphic in nature in a class using a non-persistent approach.