TypedReference TypedReference TypedReference TypedReference Struct

Definition

Important

This API is not CLS-compliant.

Describes objects that contain both a managed pointer to a location and a runtime representation of the type that may be stored at that location.

public value class TypedReference
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public struct TypedReference
type TypedReference = struct
Public Structure TypedReference
Inheritance
TypedReferenceTypedReferenceTypedReferenceTypedReference
Attributes

Remarks

A typed reference is a type/value combination used for varargs and other support. TypedReference is a built-in value type that can be used for parameters and local variables.

Arrays of TypedReference objects cannot be created. For example, the following call is invalid:

Assembly::Load("mscorlib.dll")->GetType("System.TypedReference[]");
Assembly.Load("mscorlib.dll").GetType("System.TypedReference[]");
Assembly.Load("mscorlib.dll").GetType("System.TypedReference[]")

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Checks if this object is equal to the specified object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code of this object.

GetTargetType(TypedReference) GetTargetType(TypedReference) GetTargetType(TypedReference) GetTargetType(TypedReference)

Returns the type of the target of the specified TypedReference.

MakeTypedReference(Object, FieldInfo[]) MakeTypedReference(Object, FieldInfo[]) MakeTypedReference(Object, FieldInfo[]) MakeTypedReference(Object, FieldInfo[])

Makes a TypedReference for a field identified by a specified object and list of field descriptions.

SetTypedReference(TypedReference, Object) SetTypedReference(TypedReference, Object) SetTypedReference(TypedReference, Object) SetTypedReference(TypedReference, Object)

Converts the specified value to a TypedReference. This method is not supported.

TargetTypeToken(TypedReference) TargetTypeToken(TypedReference) TargetTypeToken(TypedReference) TargetTypeToken(TypedReference)

Returns the internal metadata type handle for the specified TypedReference.

ToObject(TypedReference) ToObject(TypedReference) ToObject(TypedReference) ToObject(TypedReference)

Converts the specified TypedReference to an Object.

Applies to