0
kicks
How to use delegates to remove duplicated code
Sometimes you have duplicated code, that is not easy to remove with “ordinary” coding approaches. Think about the following example. You have two or more methods that needs to be encapsulated with try-catch blocks.