LANGUAGE

Delegate combination

Combines invocation lists or removes a matching final occurrence/subsequence. Calls occur only on invocation.

Formal Syntax & Structure

csharp syntaxcsharp
handler += callback; handler -= callback;

Working Example

Example Snippetcsharp
using System;Action a = () => Console.WriteLine("A");Action b = () => Console.WriteLine("B");a += b;a();
C# & .NET Reference