TypedReference Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)]
public ref struct TypedReference
[System.CLSCompliant(false)]
public struct TypedReference
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public struct TypedReference
[<System.CLSCompliant(false)>]
type TypedReference = struct
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TypedReference = struct
Public Structure TypedReference
- Inheritance
- 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[]"
Assembly.Load("mscorlib.dll").GetType("System.TypedReference[]")
Methods
Equals(Object) |
Checks if this object is equal to the specified object. |
GetHashCode() |
Returns the hash code of this object. |
GetTargetType(TypedReference) |
Returns the type of the target of the specified |
MakeTypedReference(Object, FieldInfo[]) |
Makes a |
SetTypedReference(TypedReference, Object) |
Converts the specified value to a |
TargetTypeToken(TypedReference) |
Returns the internal metadata type handle for the specified |
ToObject(TypedReference) |
Converts the specified |