Show / Hide Table of Contents

Class FieldAccesssor<T>

Member Accessor implementation specialized on accessing fields.

Inheritance
System.Object
FieldAccesssor<T>
Implements
IMemberAccessor<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Xirkit
Assembly: Fusee.Xirkit.dll
Syntax
public class FieldAccesssor<T> : IMemberAccessor<T>
Type Parameters
Name Description
T

The type of the pin.

Constructors

FieldAccesssor(FieldInfo)

Initializes a new instance of the FieldAccesssor<T> class.

Declaration
public FieldAccesssor(FieldInfo fieldInfo)
Parameters
Type Name Description
System.Reflection.FieldInfo fieldInfo

The field information.

Methods

Get(Object)

Retrieves the value currently stored in the object o. his instance holds information about which field of o the value should be retrieved from and how to perform this retrieval.

Declaration
public T Get(object o)
Parameters
Type Name Description
System.Object o

The object from which the field identified with this instance's field accessor the value is to be retrieved from.

Returns
Type Description
T

The value currently stored in o's field.

Set(Object, T)

Sets the specified value to the given object. This instance holds information about which field is to be filled with the value and how to perform this assignment.

Declaration
public void Set(object o, T val)
Parameters
Type Name Description
System.Object o

The object on which the field identified with this instance's field accessor the given value is to be assigned to.

T val

The value that should be assigned.

Implements

IMemberAccessor<T>

See Also

IMemberAccessor<T>
Generated by DocFX
GitHub Repo
Back to top