Delegates, Func, and Action


/ Published in: C#
Save to your folder(s)

A delegate is a reference to any method that has the same signature. The benefit of this is that the delegate can switch to another method with the same signature, without changing itself.

Func is a way to simplify the delegate creation and use.

Action is a Func without the return type.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.