Interface IMemberAccessor<T>
Base interface for all accessors. An accessor implements the connections between the Pin (IInPin or IOutPin) of a Node and a member (such as a Field or a Property) of the object "hosted" by the Node.
Namespace: Fusee.Xirkit
Assembly: Fusee.Xirkit.dll
Syntax
public interface IMemberAccessor<T>
Type Parameters
Name | Description |
---|---|
T | The type of the pin. This is not necessarily the exact type of the member exposed by the object due to Xirkits ability to perform data conversions. |
Methods
Get(Object)
Retrieves the value currently stored in the object o. his instance holds information about which member of o the value should be retrieved from and how to perform this retrieval.
Declaration
T Get(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o | The object from which the member identified with this instance's member accessor the value is to be retrieved from. |
Returns
Type | Description |
---|---|
T | The value currently stored in o's member. |
Set(Object, T)
Sets the specified value to the given object. This instance holds information about which member is to be filled with the value and how to perform this assignment.
Declaration
void Set(object o, T val)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o | The object on which the member identified with this instance's member accessor the given value is to be assigned to. |
T | val | The value that should be assigned. |