Table of Contents

Class State

Namespace
Virtufin.Base
Assembly
Virtufin.Base.dll

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

State

Transactions

The transactions observed in this state.

public IEnumerable<ITransaction> Transactions { get; }

Property Value

IEnumerable<ITransaction>

TransactionsList

The underlying transactions.

public IReadOnlyList<Transaction> TransactionsList { get; }

Property Value

IReadOnlyList<Transaction>

Methods

Of(IEnumerable<Transaction>)

Construct a state from an arbitrary enumerable of transactions.

public static State Of(IEnumerable<Transaction> transactions)

Parameters

transactions IEnumerable<Transaction>

Returns

State

Of(IReadOnlyList<Transaction>)

Construct a state from a list of transactions.

public static State Of(IReadOnlyList<Transaction> transactions)

Parameters

transactions IReadOnlyList<Transaction>

Transactions observed.

Returns

State