Delegates and Anonymous functions are very much connected to each other. Below are the simple definitions for each-
Delegates :- Delegates are function’s pointer i.e Delegates can holds the references of one or more functions.
Anonymous Functions:- Anonymous functions help us reduce the overhead of creating the named functions where we want to assign some simple line of code to a delegate.
We should use the Anonymous functions when we want to use the delegate (with some line of code) in the same fuctions.
Performance is also much better while using Anonymous functions with delegates.