Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
C#

Delegates in C#

Define type-safe method references with delegates / Func / Action.

Delegates in C# — a practical guide to C# delegates with clear examples you can reuse in real projects.

C# Tutorial Series (82/121). Prefer one article? Read the complete C# tutorial.

Short description

Delegates underpin events and callbacks.

Func/Action

Action<string> log = Console.WriteLine;
Func<int, int, int> add = (a, b) => a + b;

Leave a reply

Your email address will not be published. Required fields are marked *