Mono Class Library: System.TypedReference Overview | Members

System.TypedReference.MakeTypedReference Method

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

[System.CLSCompliant(false)]
public static TypedReference MakeTypedReference (object target, System.Reflection.FieldInfo[] flds)

Parameters

target
An object that contains the field described by the first element of flds. [Edit]
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. [Edit]

Returns

A TypedReference for the field described by the last element of flds. [Edit]

Exceptions

TypeReason
ArgumentException

The flds array has no elements.

-or-

An element of flds is not a System.Reflection.FieldInfo.

[Edit]
ArgumentNullException

target or flds is null.

-or-

An element of flds is null.

[Edit]
MissingMemberException

Parameter target does not contain the field described by the first element of flds, or an element of flds describes a field that is not contained in the field described by the succeeding element of flds.

-or-

The field described by an element of flds is not a value type.

[Edit]

Remarks

This method returns a TypedReference to the terminal field, where the target parameter contains the field described by the first element of flds, the field described by the first element of flds contains the field described by the second element of flds, and so on, until the terminal field is reached. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0