Anonymous Delegates

his lesson briefs over anonymous delegates in C#.

Anonymous delegates are a short way to write delegate code, specified using the delegate keyword. The delegate code can also reference local variables of the function in which they are declared.

Anonymous delegates are automatically converted into methods by the compiler.

For example:

Get hands-on with 1200+ tech skills courses.