Interface IOperatorStateReader
Represents an operator state reader.
Namespace: Reaqtive
Assembly: Reaqtive.Interfaces.dll
Syntax
public interface IOperatorStateReader : IDisposable
Methods
CreateChild()
Creates a child state reader.
Declaration
IOperatorStateReader CreateChild()
Returns
| Type | Description |
|---|---|
| IOperatorStateReader | Child state reader. |
Read<T>()
Reads a value of the provided type.
Declaration
T Read<T>()
Returns
| Type | Description |
|---|---|
| T | The value of the element. |
Type Parameters
| Name | Description |
|---|---|
| T | The expected type of the element to retrieve. |
Remarks
Note that reading must be done in the same sequential order as the writing.
Reset()
Reset the operator state reader.
Declaration
void Reset()
TryRead<T>(out T)
Try to read the next value of the provided type.
Declaration
bool TryRead<T>(out T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The value. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Type Parameters
| Name | Description |
|---|---|
| T | The expected type of the element to retrieve. |