Export (0) Print
Expand All

MethodBuilder.CreateMethodBody Method

Do not use this member in your application. If you do, your code will throw a MethodAccessException. This member is security-critical, which restricts it to internal use by the .NET Framework for Silverlight class library.
[SECURITY CRITICAL]

Creates the body of the method using a supplied byte array of Microsoft intermediate language (MSIL) instructions.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
public void CreateMethodBody(
	byte[] il,
	int count
)

Parameters

il
Type: System.Byte[]
An array containing valid MSIL instructions. If this parameter is null, the method's body is cleared.
count
Type: System.Int32
The number of valid bytes in the MSIL array. This value is ignored if MSIL is null.

Silverlight

Supported in: 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft