System.RuntimeMethodHandle.cs

ylbtech-System.RuntimeMethodHandle.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.Runtime.ConstrainedExecution;
 using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
 using System.Security; 

namespace System 
{ 
    // 
    // Abstract:
     //      System.RuntimeMethodHandle is a handle to the internal metadata representation of a method . 
    [ComVisible ( true )]
     public  struct RuntimeMethodHandle: ISerializable
    { 
        // 
        //Summary:
         //      Get the value of this instance.
        // 
        // Return result:
         //      A System.RuntimeMethodHandle, which is the internal metadata representation of a method. 
        public IntPtr Value { get ;} 

        // 
        // Summary:
         //      Indicate whether this instance is equal to the specified object.
        // 
        // Parameter:
         //    obj:
         //System.Object      to be compared with this instance.
        // 
        // Return result:
         //      true if obj is System.RuntimeMethodHandle and value equal to this instance; otherwise false. 
        [ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)] 
        [SecuritySafeCritical]
        public  override  bool Equals ( object obj);
         // 
        // Abstract:
         //      Indicate whether this instance is equal to the specified System.RuntimeMethodHandle.
        // 
        // Parameter:
         //    handle:
         //System.RuntimeMethodHandle      to be compared with this instance.
        // 
        // Return result:
         //      true if handle is equal to the value of this instance; otherwise false. 
        [ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)] 
        [SecuritySafeCritical] 
        public  bool Equals (RuntimeMethodHandle handle);
         // 
        // Abstract:
        //      Get a pointer to the method represented by this instance.
        // 
        // Return result:
         //      Pointer to the method represented by this instance.
        // 
        // Exception:
         //    T: System.Security.SecurityException:
         // The      caller does not have the necessary permission to perform this operation. 
        [SecurityCritical]
         public IntPtr GetFunctionPointer ();
         // 
        // Summary:
         //      Return the hash code of this instance.
        // 
        // Return result:
         //      32-bit signed integer hash code. 
        [SecuritySafeCritical]
         public  override  int GetHashCode ();
         //
        // Summary:
         // It      is necessary to populate System.Runtime.Serialization.SerializationInfo to deserialize the data of the field represented by this instance.
        // 
        // Parameter:
         //    info:
         //      Object to be filled with serialized information.
        // 
        //    context:
         //      (reserved) the location of serialized data storage and retrieval.
        // 
        // Exception:
         //    T: System.ArgumentNullException:
         //      info is null.
        // 
        //    T: System.Runtime.Serialization.SerializationException:
         //      System.RuntimeMethodHandle.Value is invalid. 
        [SecurityCritical]
        public  void GetObjectData (SerializationInfo info, StreamingContext context); 

        // 
        // Summary:
         //      Indicates whether the System.RuntimeMethodHandle of two instances are equal.
        // 
        // Parameters:
         //    left:
         //      A System.RuntimeMethodHandle must be associated with right.
        // 
        //    right:
         //      A System.RuntimeMethodHandle must be left.
        // 
        // Return result:
         //      true if the value left is equal to the value right; otherwise false. 
        public  static  bool  operator ==(RuntimeMethodHandle left, RuntimeMethodHandle right);
         // 
        // Summary:
         //      Indicate whether the System.RuntimeMethodHandle of two instances are not equal.
        // 
        // Parameters:
         //    left:
         //      A System.RuntimeMethodHandle must be associated with right.
        // 
        //    right:
         //      A System.RuntimeMethodHandle must be left.
        // 
        // Return the result:
         //      true If the values ​​less than left are equal, then right; otherwise false. 
        public  static  bool  operator ! = (RuntimeMethodHandle left, RuntimeMethodHandle right); 
    }
}
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/12677609.html