mscorlib 2.0.0.0 4.0.0.0 System.Object System.Runtime.InteropServices.ComVisible(true)

The class provides access to information about the local variables and exception-handling clauses in a method body, and to the Microsoft intermediate language (MSIL) that makes up the method body.

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

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" and "Partition III: CIL Instruction Set". The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

To obtain a object for a given method, first obtain a object for the method, then call the object's method.

Provides access to the metadata and MSIL for the body of a method.

- Constructor
  4.0.0.0

  This constructor is invoked by derived classes during the construction of objects.

  Initializes a new instance of the class.

- Property
  2.0.0.0
  4.0.0.0
  System.Collections.Generic.IList<System.Reflection.ExceptionHandlingClause> To be added.

  The list includes all clauses from all try blocks in the method body. Each object contains information that identifies the try block with which it is associated.

  Working with exception-handling clauses 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" and "Partition III: CIL Instruction Set". The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

  Gets a list that includes all the exception-handling clauses in the method body.

- Method
  2.0.0.0
  4.0.0.0
  System.Byte[]

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

  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" and "Partition III: CIL Instruction Set". The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

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

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

- Property
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  The property refers to variables that are not explicitly initialized; that is, variables that are declared with syntax such as int x; in C# or Dim x As Integer in Visual Basic.

  Reference variables are initialized to null by default. Numeric variables are initialized to zero.

  Gets a value indicating whether local variables in the method body are initialized to the default values for their types.

- Property
  2.0.0.0
  4.0.0.0
  System.Int32 To be added.

  Use the property to obtain information about the method's local variables.

  Information about local variable signatures can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

  Gets a metadata token for the signature that describes the local variables for the method in metadata.

- Property
  2.0.0.0
  4.0.0.0
  System.Collections.Generic.IList<System.Reflection.LocalVariableInfo> To be added.

  You do not need the metadata token for the local variable signature provided by the property.

  Gets the list of local variables declared in the method body.

- Property
  2.0.0.0
  4.0.0.0
  System.Int32 To be added.

  For more information, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

  Gets the maximum number of items on the operand stack when the method is executing.