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.​RuntimeTypeHandle
Assembly: System.Runtime
Represents a type using an internal metadata token.
Properties
public
nint
Value
Gets a handle to the type represented by this instance.
Methods
public
bool
Equals​(object obj)
obj
An object to compare to the current instance.
Returns <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.RuntimeTypeHandle" /> structure and is equal to the value of this instance; otherwise, <see langword="false" /> .
Indicates whether the specified object is equal to the current <see cref="T:System.RuntimeTypeHandle" /> structure.
public
bool
Equals​(RuntimeTypeHandle handle)
handle
The <see cref="T:System.RuntimeTypeHandle" /> structure to compare to the current instance.
Returns <see langword="true" /> if the value of <paramref name="handle" /> is equal to the value of this instance; otherwise, <see langword="false" /> .
Indicates whether the specified <see cref="T:System.RuntimeTypeHandle" /> structure is equal to the current <see cref="T:System.RuntimeTypeHandle" /> structure.
public
int
GetHashCode​() Returns A 32-bit signed integer hash code.
Returns the hash code for the current instance.
public
ModuleHandle
GetModuleHandle​() Returns A <see cref="T:System.ModuleHandle" /> structure representing a handle to the module that contains the type represented by the current instance.
Gets a handle to the module that contains the type represented by the current instance.
public
void
GetObjectData​(SerializationInfo info,
StreamingContext context)
info
The object to be populated with serialization information.
context
(Reserved) The location where serialized data will be stored and retrieved.
Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data necessary to deserialize the type represented by the current instance.
public
string
ToString​()
Inherited from ValueType
Returns The fully qualified type name.
Returns the fully qualified type name of this instance.
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
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .