mscorlib(4.0.0.0) API with additions
|
Provides access to the metadata and MSIL for the body of a method. More...
Public Member Functions | |
virtual byte [] | GetILAsByteArray () |
Returns the MSIL for the method body, as an array of bytes. More... | |
Public Attributes | |
virtual int | LocalSignatureMetadataToken => m_localSignatureMetadataToken |
Gets a metadata token for the signature that describes the local variables for the method in metadata. More... | |
virtual IList< LocalVariableInfo > | LocalVariables => Array.AsReadOnly(m_localVariables) |
Gets the list of local variables declared in the method body. More... | |
virtual int | MaxStackSize => m_maxStackSize |
Gets the maximum number of items on the operand stack when the method is executing. More... | |
virtual bool | InitLocals => m_initLocals |
Gets a value indicating whether local variables in the method body are initialized to the default values for their types. More... | |
virtual IList< ExceptionHandlingClause > | ExceptionHandlingClauses => Array.AsReadOnly(m_exceptionHandlingClauses) |
Gets a list that includes all the exception-handling clauses in the method body. More... | |
Protected Member Functions | |
MethodBody () | |
Initializes a new instance of the T:System.Reflection.MethodBody class. More... | |
Provides access to the metadata and MSIL for the body of a method.
Definition at line 8 of file MethodBody.cs.
|
protected |
Initializes a new instance of the T:System.Reflection.MethodBody class.
Definition at line 46 of file MethodBody.cs.
|
virtual |
Returns the MSIL for the method body, as an array of bytes.
Definition at line 52 of file MethodBody.cs.
virtual IList<ExceptionHandlingClause> System.Reflection.MethodBody.ExceptionHandlingClauses => Array.AsReadOnly(m_exceptionHandlingClauses) |
Gets a list that includes all the exception-handling clauses in the method body.
Definition at line 43 of file MethodBody.cs.
virtual bool System.Reflection.MethodBody.InitLocals => m_initLocals |
Gets a value indicating whether local variables in the method body are initialized to the default values for their types.
true
if the method body contains code to initialize local variables to null
for reference types, or to the zero-initialized value for value types; otherwise, false
.Definition at line 39 of file MethodBody.cs.
virtual int System.Reflection.MethodBody.LocalSignatureMetadataToken => m_localSignatureMetadataToken |
Gets a metadata token for the signature that describes the local variables for the method in metadata.
Definition at line 26 of file MethodBody.cs.
virtual IList<LocalVariableInfo> System.Reflection.MethodBody.LocalVariables => Array.AsReadOnly(m_localVariables) |
Gets the list of local variables declared in the method body.
Definition at line 30 of file MethodBody.cs.
virtual int System.Reflection.MethodBody.MaxStackSize => m_maxStackSize |
Gets the maximum number of items on the operand stack when the method is executing.
Definition at line 34 of file MethodBody.cs.