Creates the body of the method using a supplied byte array of Microsoft intermediate language (MSIL) instructions.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.Byte
An array containing valid MSIL instructions. If this parameter is a null reference (Nothing in Visual Basic), 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 a null reference (Nothing in Visual Basic).
The count is not within the range of indexes of the supplied MSIL instruction array and il is not a null reference (Nothing in Visual Basic).
The containing type was previously created using CreateType.
This method was called previously on this MethodBuilder with an il argument that was not a null reference (Nothing in Visual Basic).
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.