mscorlib(4.0.0.0) API with additions
System.RuntimeMethodHandle Struct Reference

T:System.RuntimeMethodHandle is a handle to the internal metadata representation of a method. More...

Inheritance diagram for System.RuntimeMethodHandle:
[legend]
Collaboration diagram for System.RuntimeMethodHandle:
[legend]

Public Member Functions

internal RuntimeMethodHandle (IRuntimeMethodInfo method)
 
internal IRuntimeMethodInfo GetMethodInfo ()
 
void GetObjectData (SerializationInfo info, StreamingContext context)
 Populates a T:System.Runtime.Serialization.SerializationInfo with the data necessary to deserialize the field represented by this instance. More...
 
override int GetHashCode ()
 Returns the hash code for this instance. More...
 
override bool Equals (object obj)
 Indicates whether this instance is equal to a specified object. More...
 
bool Equals (RuntimeMethodHandle handle)
 Indicates whether this instance is equal to a specified T:System.RuntimeMethodHandle. More...
 
internal bool IsNullHandle ()
 
static internal IntPtr GetFunctionPointer (RuntimeMethodHandleInternal handle)
 
IntPtr GetFunctionPointer ()
 Obtains a pointer to the method represented by this instance. More...
 
static internal void CheckLinktimeDemands (IRuntimeMethodInfo method, RuntimeModule module, bool isDecoratedTargetSecurityTransparent)
 
static internal bool IsCAVisibleFromDecoratedType (RuntimeTypeHandle attrTypeHandle, IRuntimeMethodInfo attrCtor, RuntimeTypeHandle sourceTypeHandle, RuntimeModule sourceModule)
 
static internal MethodAttributes GetAttributes (RuntimeMethodHandleInternal method)
 
static internal MethodImplAttributes GetImplAttributes (IRuntimeMethodInfo method)
 
static internal RuntimeType GetDeclaringType (RuntimeMethodHandleInternal method)
 
static internal int GetSlot (RuntimeMethodHandleInternal method)
 
static internal int GetMethodDef (IRuntimeMethodInfo method)
 
static internal string GetName (RuntimeMethodHandleInternal method)
 
static internal bool MatchesNameHash (RuntimeMethodHandleInternal method, uint hash)
 
static internal object InvokeMethod (object target, object[] arguments, Signature sig, bool constructor)
 
static internal uint GetSpecialSecurityFlags (IRuntimeMethodInfo method)
 
static internal void PerformSecurityCheck (object obj, RuntimeMethodHandleInternal method, RuntimeType parent, uint invocationFlags)
 
static internal void SerializationInvoke (IRuntimeMethodInfo method, object target, SerializationInfo info, ref StreamingContext context)
 
static internal bool _IsTokenSecurityTransparent (RuntimeModule module, int metaDataToken)
 
static internal bool HasMethodInstantiation (RuntimeMethodHandleInternal method)
 
static internal RuntimeMethodHandleInternal GetStubIfNeeded (RuntimeMethodHandleInternal method, RuntimeType declaringType, RuntimeType[] methodInstantiation)
 
static internal RuntimeMethodHandleInternal GetMethodFromCanonical (RuntimeMethodHandleInternal method, RuntimeType declaringType)
 
static internal bool IsGenericMethodDefinition (RuntimeMethodHandleInternal method)
 
static internal bool IsTypicalMethodDefinition (IRuntimeMethodInfo method)
 
static internal bool IsDynamicMethod (RuntimeMethodHandleInternal method)
 
static internal void Destroy (RuntimeMethodHandleInternal method)
 
static internal Resolver GetResolver (RuntimeMethodHandleInternal method)
 
static internal MethodBody GetMethodBody (IRuntimeMethodInfo method, RuntimeType declaringType)
 
static internal bool IsConstructor (RuntimeMethodHandleInternal method)
 
static internal LoaderAllocator GetLoaderAllocator (RuntimeMethodHandleInternal method)
 

Static Public Member Functions

static internal IRuntimeMethodInfo EnsureNonNullMethodInfo (IRuntimeMethodInfo method)
 
static bool operator== (RuntimeMethodHandle left, RuntimeMethodHandle right)
 Indicates whether two instances of T:System.RuntimeMethodHandle are equal. More...
 
static bool operator != (RuntimeMethodHandle left, RuntimeMethodHandle right)
 Indicates whether two instances of T:System.RuntimeMethodHandle are not equal. More...
 
static internal IRuntimeMethodInfo GetCurrentMethod (ref StackCrawlMark stackMark)
 
static internal MethodAttributes GetAttributes (IRuntimeMethodInfo method)
 
static internal string ConstructInstantiation (IRuntimeMethodInfo method, TypeNameFormatFlags format)
 
static internal RuntimeType GetDeclaringType (IRuntimeMethodInfo method)
 
static internal int GetSlot (IRuntimeMethodInfo method)
 
static internal string GetName (IRuntimeMethodInfo method)
 
internal static unsafe Utf8String GetUtf8Name (RuntimeMethodHandleInternal method)
 
static internal INVOCATION_FLAGS GetSecurityFlags (IRuntimeMethodInfo handle)
 
static internal void PerformSecurityCheck (object obj, IRuntimeMethodInfo method, RuntimeType parent, uint invocationFlags)
 
static internal bool IsTokenSecurityTransparent (Module module, int metaDataToken)
 
static internal bool IsSecurityCritical (IRuntimeMethodInfo method)
 
static internal bool IsSecuritySafeCritical (IRuntimeMethodInfo method)
 
static internal bool IsSecurityTransparent (IRuntimeMethodInfo method)
 
static internal RuntimeType [] GetMethodInstantiationInternal (IRuntimeMethodInfo method)
 
static internal RuntimeType [] GetMethodInstantiationInternal (RuntimeMethodHandleInternal method)
 
static internal Type [] GetMethodInstantiationPublic (IRuntimeMethodInfo method)
 
static internal bool HasMethodInstantiation (IRuntimeMethodInfo method)
 
static internal bool IsGenericMethodDefinition (IRuntimeMethodInfo method)
 
static internal IRuntimeMethodInfo GetTypicalMethodDefinition (IRuntimeMethodInfo method)
 
static internal IRuntimeMethodInfo StripMethodInstantiation (IRuntimeMethodInfo method)
 
static internal RuntimeType GetCallerType (ref StackCrawlMark stackMark)
 

Static Public Attributes

static internal RuntimeMethodHandle EmptyHandle => default(RuntimeMethodHandle)
 

Properties

IntPtr Value [get]
 Gets the value of this instance. More...
 

Detailed Description

T:System.RuntimeMethodHandle is a handle to the internal metadata representation of a method.

Definition at line 17 of file RuntimeMethodHandle.cs.

Member Function Documentation

◆ Equals() [1/2]

override bool System.RuntimeMethodHandle.Equals ( object  obj)

Indicates whether this instance is equal to a specified object.

Parameters
objA T:System.Object to compare to this instance.
Returns
true if obj is a T:System.RuntimeMethodHandle and equal to the value of this instance; otherwise, false.

Definition at line 117 of file RuntimeMethodHandle.cs.

◆ Equals() [2/2]

bool System.RuntimeMethodHandle.Equals ( RuntimeMethodHandle  handle)

Indicates whether this instance is equal to a specified T:System.RuntimeMethodHandle.

Parameters
handleA T:System.RuntimeMethodHandle to compare to this instance.
Returns
true if handle is equal to the value of this instance; otherwise, false.

Definition at line 155 of file RuntimeMethodHandle.cs.

◆ GetFunctionPointer()

IntPtr System.RuntimeMethodHandle.GetFunctionPointer ( )

Obtains a pointer to the method represented by this instance.

Returns
A pointer to the method represented by this instance.
Exceptions
T:System.Security.SecurityExceptionThe caller does not have the necessary permission to perform this operation.

Definition at line 174 of file RuntimeMethodHandle.cs.

◆ GetHashCode()

override int System.RuntimeMethodHandle.GetHashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer hash code.

Definition at line 105 of file RuntimeMethodHandle.cs.

◆ GetObjectData()

void System.RuntimeMethodHandle.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Populates a T:System.Runtime.Serialization.SerializationInfo with the data necessary to deserialize the field represented by this instance.

Parameters
infoThe object to populate with serialization information.
context(Reserved) The place to store and retrieve serialized data.
Exceptions
T:System.ArgumentNullExceptioninfo is null.
T:System.Runtime.Serialization.SerializationExceptionP:System.RuntimeMethodHandle.Value is invalid.

Implements System.Runtime.Serialization.ISerializable.

Definition at line 87 of file RuntimeMethodHandle.cs.

◆ operator !=()

static bool System.RuntimeMethodHandle.operator != ( RuntimeMethodHandle  left,
RuntimeMethodHandle  right 
)
static

Indicates whether two instances of T:System.RuntimeMethodHandle are not equal.

Parameters
leftA T:System.RuntimeMethodHandle to compare to right .
rightA T:System.RuntimeMethodHandle to compare to left .
Returns
true if the value of left is unequal to the value of right ; otherwise, false.

Definition at line 143 of file RuntimeMethodHandle.cs.

◆ operator==()

static bool System.RuntimeMethodHandle.operator== ( RuntimeMethodHandle  left,
RuntimeMethodHandle  right 
)
static

Indicates whether two instances of T:System.RuntimeMethodHandle are equal.

Parameters
leftA T:System.RuntimeMethodHandle to compare to right .
rightA T:System.RuntimeMethodHandle to compare to left .
Returns
true if the value of left is equal to the value of right ; otherwise, false.

Definition at line 132 of file RuntimeMethodHandle.cs.

Property Documentation

◆ Value

IntPtr System.RuntimeMethodHandle.Value
get

Gets the value of this instance.

Returns
A T:System.RuntimeMethodHandle that is the internal metadata representation of a method.

Definition at line 26 of file RuntimeMethodHandle.cs.


The documentation for this struct was generated from the following file: