RuntimeHelpers.PrepareDelegate Method (Delegate)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Indicates that the specified delegate should 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


Type: System.Delegate

The delegate type to prepare.

Compilers use this method to prepare a delegate's invocation method and to prepare the target of that invocation (and the delegate's statically determinable call graph) as a constrained execution region (CER).


requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
Available since 2.0
Return to top