Bewerken

Delen via


MethodBody.GetILAsByteArray Method

Definition

Returns the MSIL for the method body, as an array of bytes.

public:
 virtual cli::array <System::Byte> ^ GetILAsByteArray();
public:
 cli::array <System::Byte> ^ GetILAsByteArray();
public virtual byte[]? GetILAsByteArray ();
public virtual byte[] GetILAsByteArray ();
public byte[] GetILAsByteArray ();
abstract member GetILAsByteArray : unit -> byte[]
override this.GetILAsByteArray : unit -> byte[]
member this.GetILAsByteArray : unit -> byte[]
Public Overridable Function GetILAsByteArray () As Byte()
Public Function GetILAsByteArray () As Byte()

Returns

Byte[]

An array of type Byte that contains the MSIL for the method body.

Remarks

You can use the token-resolution methods of the module class, such as ResolveType, ResolveMethod, and ResolveMember, to resolve the tokens in the method body to Type objects, MethodInfo objects, and FieldInfo objects that provide detailed information about the types, methods, and fields accessed by the MSIL in the method body.

Note

Parsing method bodies requires a thorough understanding of metadata and MSIL instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics".

Applies to

See also