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

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)
handle The <see cref="T:System.ModuleHandle" /> structure to be compared with 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" /> .
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" /> .
public bool
Equals​(object obj)
obj The object to be compared with the current <see cref="T:System.ModuleHandle" /> structure.
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" /> .
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" /> .
public int
GetHashCode​()
Returns A 32-bit signed integer that is the hash code for this instance.
Returns the hash code for this instance.
GetRuntimeFieldHandleFromMetadataToken​(int fieldToken)
fieldToken A metadata token that identifies a field in the module.
Returns A <see cref="T:System.RuntimeFieldHandle" /> for the field identified by <paramref name="fieldToken" /> .
Returns a runtime handle for the field identified by the specified metadata token.
GetRuntimeMethodHandleFromMetadataToken​(int methodToken)
methodToken A metadata token that identifies a method or constructor in the module.
Returns A <see cref="T:System.RuntimeMethodHandle" /> for the method or constructor identified by <paramref name="methodToken" /> .
Returns a runtime method handle for the method or constructor identified by the specified metadata token.
GetRuntimeTypeHandleFromMetadataToken​(int typeToken)
typeToken A metadata token that identifies a type in the module.
Returns A <see cref="T:System.RuntimeTypeHandle" /> for the type identified by <paramref name="typeToken" /> .
Returns a runtime type handle for the type identified by the specified metadata token.
ResolveFieldHandle​(int fieldToken)
fieldToken A metadata token that identifies a field in the module.
Returns A <see cref="T:System.RuntimeFieldHandle" /> for the field identified by <paramref name="fieldToken" /> .
Returns a runtime handle for the field identified by the specified metadata token.
ResolveFieldHandle​(int fieldToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
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.
Returns A <see cref="T:System.RuntimeFieldHandle" /> for the field identified by <paramref name="fieldToken" /> .
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.
ResolveMethodHandle​(int methodToken)
methodToken A metadata token that identifies a method or constructor in the module.
Returns A <see cref="T:System.RuntimeMethodHandle" /> for the method or constructor identified by <paramref name="methodToken" /> .
Returns a runtime method handle for the method or constructor identified by the specified metadata token.
ResolveMethodHandle​(int methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
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.
Returns A <see cref="T:System.RuntimeMethodHandle" /> for the method or constructor identified by <paramref name="methodToken" /> .
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.
ResolveTypeHandle​(int typeToken)
typeToken A metadata token that identifies a type in the module.
Returns A <see cref="T:System.RuntimeTypeHandle" /> for the type identified by <paramref name="typeToken" /> .
Returns a runtime type handle for the type identified by the specified metadata token.
ResolveTypeHandle​(int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
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.
Returns A <see cref="T:System.RuntimeTypeHandle" /> for the type identified by <paramref name="typeToken" /> .
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.
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" /> .