System.Reflection.MethodBody.cs

ylbtech-System.Reflection.MethodBody.cs

 

1. Back to top
1、
#regionassembler mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
 // C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework \ .NETFramework \ v4.6.1 \ mscorlib.dll 
#endregion 

using System.Collections.Generic;
 using System.Runtime.InteropServices; 

namespace System.Reflection 
{ 
    // 
    // Abstract:
     //      Provide access to the main body of metadata and MSIL methods. 
    [ComVisible ( true )]
     public  class MethodBody 
    { 
        // 
        // Abstract:
         //      Initialize a new instance of the System.Reflection.MethodBody class. 
        protectedMethodBody (); 

        // 
        // Summary:
         //      Get the metadata tag from the signature of the local variable describing the method in the metadata.
        // 
        // Return result:
         //      An integer representing the metadata tag. 
        public  virtual  int LocalSignatureMetadataToken { get ;}
         // 
        // Abstract:
         //      Get the list of local variables declared in the method body.
        // 
        // Return result:
         //      The System.Reflection.LocalVariableInfo of System.Collections.Generic.IList`1 declares the object describing the local variable in the method body. 
        public  virtual IList <LocalVariableInfo> LocalVariables { get ;}
         // 
        //Summary:
         //      When executing this method, get the maximum number of items on the operand stack.
        // 
        // Return result:
         //      Maximum number of items on the operand stack when this method is executed. 
        public  virtual  int MaxStackSize { get ;}
         // 
        // Summary:
         //      Get a value indicating whether the local variable in the method body is initialized to its type default value.
        // 
        // Return result:
         //      true if the method body contains code to initialize to a local variable null for a reference type, or a value initialized to zero applies to a value type; otherwise it is false. 
        public  virtual  bool InitLocals { get ;}
         // 
        // Summary:
         //      Get a list of clauses containing all exception handling in the method body.
        // 
        // returns the result:
         //      System.Reflection.ExceptionHandlingClause object System.Collections.Generic.IList`1
         //      represents clause exception handling method body. 
        public  virtual IList <ExceptionHandlingClause> ExceptionHandlingClauses { get ;} 

        // 
        // Abstract:
         //      The MSIL of the method body is returned in the form of a byte array.
        // 
        // Return result:
         //      Array of type System.Byte, which contains MSIL for method body. 
        public  virtual  byte [] GetILAsByteArray (); 
    } 
}
2、
2. Back to top
 
3. Back to top
 
4. Back to top
 
5. Back to top
 
 
6. Back to top
 
warn Author: ylbtech
Source: http://ylbtech.cnblogs.com/
This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise Reserves the right to pursue legal responsibility.

Guess you like

Origin www.cnblogs.com/storebook/p/12677612.html