Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​RuntimeMethodHandle
Assembly: System.Runtime
Implemented Interfaces
<see cref="T:System.RuntimeMethodHandle" /> is a handle to the internal metadata representation of a method.
Properties
public
nint
Value
Gets the value of this instance.
Methods
public
bool
Equals​(object obj)
Indicates whether this instance is equal to a specified object.
Returns <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.RuntimeMethodHandle" /> and equal to the value of this instance; otherwise, <see langword="false" /> .
obj
A <see cref="T:System.Object" /> to compare to this instance.
public
bool
Equals​(RuntimeMethodHandle handle)
Indicates whether this instance is equal to a specified <see cref="T:System.RuntimeMethodHandle" /> .
Returns <see langword="true" /> if <paramref name="handle" /> is equal to the value of this instance; otherwise, <see langword="false" /> .
handle
A <see cref="T:System.RuntimeMethodHandle" /> to compare to this instance.
public static
RuntimeMethodHandle
FromIntPtr​(nint value)
Returns a new <see cref="T:System.RuntimeMethodHandle" /> object created from a handle to a RuntimeMethodInfo.
Returns A new <see cref="T:System.RuntimeMethodHandle" /> object that corresponds to the value parameter.
value
An IntPtr handle to a RuntimeMethodInfo to create a <see cref="T:System.RuntimeMethodHandle" /> object from.
public
nint
GetFunctionPointer​()
Obtains a pointer to the method represented by this instance.
Returns A pointer to the method represented by this instance.
public
int
GetHashCode​()
Returns the hash code for this instance.
Returns A 32-bit signed integer hash code.
public
void
GetObjectData​(SerializationInfo info,
StreamingContext context)
Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data necessary to deserialize the field represented by this instance.
info
The object to populate with serialization information.
context
(Reserved) The place to store and retrieve serialized data.
public static
nint
ToIntPtr​(RuntimeMethodHandle value)
Returns the internal pointer representation of a <see cref="T:System.RuntimeMethodHandle" /> object.
Returns An <see cref="T:System.IntPtr" /> object that represents a <see cref="T:System.RuntimeMethodHandle" /> object.
value
A <see cref="T:System.RuntimeMethodHandle" /> object to retrieve an internal pointer representation from.
public
string
ToString​()
Inherited from ValueType
Returns the fully qualified type name of this instance.
Returns The fully qualified type name.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .