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.​TypedReference
Assembly: System.Runtime
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.
Methods
public
bool
Equals​(object o)
Checks if this object is equal to the specified object.
Returns <see langword="true" /> if this object is equal to the specified object; otherwise, <see langword="false" /> .
o
The object with which to compare the current object.
public
int
GetHashCode​()
Returns the hash code of this object.
Returns The hash code of this object.
public static
Type
GetTargetType​(TypedReference value)
Returns the type of the target of the specified <see langword="TypedReference" /> .
Returns The type of the target of the specified <see langword="TypedReference" /> .
value
The value whose target's type is to be returned.
public static
TypedReference
MakeTypedReference​(object target,
FieldInfo[] flds)
Makes a <see langword="TypedReference" /> for a field identified by a specified object and list of field descriptions.
Returns A <see cref="T:System.TypedReference" /> for the field described by the last element of <paramref name="flds" /> .
target
An object that contains the field described by the first element of <paramref name="flds" /> .
flds
A list of field descriptions where each element describes a field that contains the field described by the succeeding element. Each described field must be a value type. The field descriptions must be <see langword="RuntimeFieldInfo" /> objects supplied by the type system.
public static
void
SetTypedReference​(TypedReference target,
object value)
Converts the specified value to a <see langword="TypedReference" /> . This method is not supported.
target
The target of the conversion.
value
The value to be converted.
public static
RuntimeTypeHandle
TargetTypeToken​(TypedReference value)
Returns the internal metadata type handle for the specified <see langword="TypedReference" /> .
Returns The internal metadata type handle for the specified <see langword="TypedReference" /> .
value
The <see langword="TypedReference" /> for which the type handle is requested.
public static
object
ToObject​(TypedReference value)
Converts the specified <see langword="TypedReference" /> to an <see langword="Object" /> .
Returns An <see cref="T:System.Object" /> converted from a <see langword="TypedReference" /> .
value
The <see langword="TypedReference" /> to be converted.
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" /> .