Class State
Concrete IState: a set of transactions observed at a single time-point.
public sealed class State : IState
- Inheritance
-
State
- Implements
- Inherited Members
Properties
Empty
An empty state with no transactions.
public static State Empty { get; }
Property Value
Transactions
The transactions observed in this state.
public IEnumerable<ITransaction> Transactions { get; }
Property Value
TransactionsList
The underlying transactions.
public IReadOnlyList<Transaction> TransactionsList { get; }
Property Value
Methods
Of(IEnumerable<Transaction>)
Construct a state from an arbitrary enumerable of transactions.
public static State Of(IEnumerable<Transaction> transactions)
Parameters
transactionsIEnumerable<Transaction>
Returns
Of(IReadOnlyList<Transaction>)
Construct a state from a list of transactions.
public static State Of(IReadOnlyList<Transaction> transactions)
Parameters
transactionsIReadOnlyList<Transaction>Transactions observed.