TypedReference Structure

 

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.

This API is not CLS-compliant.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

<CLSCompliantAttribute(False)>
<ComVisibleAttribute(True)>
Public Structure TypedReference

NameDescription
System_CAPS_pubmethodEquals(Object)

Checks if this object is equal to the specified object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Returns the hash code of this object.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodSystem_CAPS_staticGetTargetType(TypedReference)

Returns the type of the target of the specified TypedReference.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticMakeTypedReference(Object, FieldInfo())

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

System_CAPS_pubmethodSystem_CAPS_staticSetTypedReference(TypedReference, Object)

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

System_CAPS_pubmethodSystem_CAPS_staticTargetTypeToken(TypedReference)

Returns the internal metadata type handle for the specified TypedReference.

System_CAPS_pubmethodSystem_CAPS_staticToObject(TypedReference)

Converts the specified TypedReference to an Object.

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

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[]")

.NET Framework
Available since 1.1
Silverlight
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: