Visitor

This allows you to define a new operation on a group of classes without changing the classes
Extension methods provide a convenient way to implement this pattern
Lets assume you have a collection of classes that may or may not be related related by inheritance


How can you define a new method without changing the original classes
We want to add a method that will perform a common function on all the classes





© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrev