RuntimeHelpers.PrepareDelegate Method

Note: This method is new in the .NET Framework version 2.0.

Indicates that the specified delegate be prepared for inclusion in a Constrained Execution Region (CER).

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)

public static void PrepareDelegate (
	Delegate d
public static void PrepareDelegate (
	Delegate d
public static function PrepareDelegate (
	d : Delegate



The Delegate type to prepare.

This method prepares the delegate's invocation method, and prepares the target of that invocation (and the delegate's statically determinable call graph) as a Constrained Execution Region (CER).

The classes in System.Runtime.CompilerServices are for compiler writers' use only.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions