Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<Instruction> ReadIL(MethodBase, Type)

Declaration

public static IEnumerable<Instruction> ReadIL(
    MethodBase method,
    Type genericContext
)

Summary

Decodes the IL inside the specified method.

Parameters

MethodBasemethodThe method whose IL to decode. This may be a constructor, too.
TypegenericContextThe type in which the method is declared, to provide context to resolve members that involve generics.

Returns

The sequence of Instruction instances describing the instructions in the method.