RuntimeHelpers.PrepareDelegate Method (Delegate)

 

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)

[SecurityCriticalAttribute]
public static void PrepareDelegate(
	Delegate d
)

Parameters

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).

SecurityCriticalAttribute

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
Show: