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.​ModuleHandle

Assembly: System.Runtime

Implemented Interfaces

Represents a runtime handle for a module.

Fields and Constants

public static readonly ModuleHandle
EmptyHandle
Represents an empty module handle.

Properties

public int
MDStreamVersion
Gets the metadata stream version.

Methods

public bool
Equals​(ModuleHandle handle)
Returns a <see cref="T:System.Boolean" /> value indicating whether the specified <see cref="T:System.ModuleHandle" /> structure is equal to the current <see cref="T:System.ModuleHandle" /> .
Returns <see langword="true" /> if <paramref name="handle" /> is equal to the current <see cref="T:System.ModuleHandle" /> structure; otherwise <see langword="false" /> .
handle The <see cref="T:System.ModuleHandle" /> structure to be compared with the current <see cref="T:System.ModuleHandle" /> .
public bool
Equals​(object obj)
Returns a <see cref="T:System.Boolean" /> value indicating whether the specified object is a <see cref="T:System.ModuleHandle" /> structure, and equal to the current <see cref="T:System.ModuleHandle" /> .
Returns <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.ModuleHandle" /> structure, and is equal to the current <see cref="T:System.ModuleHandle" /> structure; otherwise, <see langword="false" /> .
obj The object to be compared with the current <see cref="T:System.ModuleHandle" /> structure.
public int
GetHashCode​()
Returns the hash code for this instance.
Returns A 32-bit signed integer that is the hash code for this instance.
GetRuntimeFieldHandleFromMetadataToken​(int fieldToken)
Returns a runtime handle for the field identified by the specified metadata token.
Returns A <see cref="T:System.RuntimeFieldHandle" /> for the field identified by <paramref name="fieldToken" /> .
fieldToken A metadata token that identifies a field in the module.
GetRuntimeMethodHandleFromMetadataToken​(int methodToken)
Returns a runtime method handle for the method or constructor identified by the specified metadata token.
Returns A <see cref="T:System.RuntimeMethodHandle" /> for the method or constructor identified by <paramref name="methodToken" /> .
methodToken A metadata token that identifies a method or constructor in the module.
GetRuntimeTypeHandleFromMetadataToken​(int typeToken)
Returns a runtime type handle for the type identified by the specified metadata token.
Returns A <see cref="T:System.RuntimeTypeHandle" /> for the type identified by <paramref name="typeToken" /> .
typeToken A metadata token that identifies a type in the module.
ResolveFieldHandle​(int fieldToken)
Returns a runtime handle for the field identified by the specified metadata token.
Returns A <see cref="T:System.RuntimeFieldHandle" /> for the field identified by <paramref name="fieldToken" /> .
fieldToken A metadata token that identifies a field in the module.
ResolveFieldHandle​(int fieldToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
Returns a runtime field handle for the field identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.
Returns A <see cref="T:System.RuntimeFieldHandle" /> for the field identified by <paramref name="fieldToken" /> .
fieldToken A metadata token that identifies a field in the module.
typeInstantiationContext An array of <see cref="T:System.RuntimeTypeHandle" /> structures representing the generic type arguments of the type where the token is in scope, or <see langword="null" /> if that type is not generic.
methodInstantiationContext An array of <see cref="T:System.RuntimeTypeHandle" /> structures representing the generic type arguments of the method where the token is in scope, or <see langword="null" /> if that method is not generic.
ResolveMethodHandle​(int methodToken)
Returns a runtime method handle for the method or constructor identified by the specified metadata token.
Returns A <see cref="T:System.RuntimeMethodHandle" /> for the method or constructor identified by <paramref name="methodToken" /> .
methodToken A metadata token that identifies a method or constructor in the module.
ResolveMethodHandle​(int methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
Returns a runtime method handle for the method or constructor identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.
Returns A <see cref="T:System.RuntimeMethodHandle" /> for the method or constructor identified by <paramref name="methodToken" /> .
methodToken A metadata token that identifies a method or constructor in the module.
typeInstantiationContext An array of <see cref="T:System.RuntimeTypeHandle" /> structures representing the generic type arguments of the type where the token is in scope, or <see langword="null" /> if that type is not generic.
methodInstantiationContext An array of <see cref="T:System.RuntimeTypeHandle" /> structures representing the generic type arguments of the method where the token is in scope, or <see langword="null" /> if that method is not generic.
ResolveTypeHandle​(int typeToken)
Returns a runtime type handle for the type identified by the specified metadata token.
Returns A <see cref="T:System.RuntimeTypeHandle" /> for the type identified by <paramref name="typeToken" /> .
typeToken A metadata token that identifies a type in the module.
ResolveTypeHandle​(int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
Returns a runtime type handle for the type identified by the specified metadata token, specifying the generic type arguments of the type and method where the token is in scope.
Returns A <see cref="T:System.RuntimeTypeHandle" /> for the type identified by <paramref name="typeToken" /> .
typeToken A metadata token that identifies a type in the module.
typeInstantiationContext An array of <see cref="T:System.RuntimeTypeHandle" /> structures representing the generic type arguments of the type where the token is in scope, or <see langword="null" /> if that type is not generic.
methodInstantiationContext An array of <see cref="T:System.RuntimeTypeHandle" /> structures objects representing the generic type arguments of the method where the token is in scope, or <see langword="null" /> if that method is not generic.
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" /> .