LANGUAGE

Method group conversion

Converts a compatible method group into a delegate without invoking the method.

Formal Syntax & Structure

csharp syntaxcsharp
DelegateType handler = MethodName;

Working Example

Example Snippetcsharp
using System;Action<string> write = Console.WriteLine;write("Ready");
C# & .NET Reference