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.

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)

public void CreateMethodBody(
	byte[] il,
	int count


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


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

© 2014 Microsoft