Interface IReadOnlyWindow<T>
- Namespace
- FinanceSharp
- Assembly
- FinanceSharp.dll
Interface type used to pass windows around without worry of external modification
public interface IReadOnlyWindow<out T> : IEnumerable<T>, IEnumerable
Type Parameters
TThe type of data in the window
- Inherited Members
- Extension Methods
Properties
Count
Gets the current number of elements in this window
int Count { get; }
Property Value
this[int]
Indexes into this window, where index 0 is the most recently entered value
T this[int i] { get; }
Parameters
iintthe index, i
Property Value
- T
the ith most recent entry
MostRecentlyRemoved
Gets the most recently removed item from the window. This is the piece of data that just 'fell off' as a result of the most recent add. If no items have been removed, this will throw an exception.
T MostRecentlyRemoved { get; }
Property Value
- T
Samples
Gets the samples count.
long Samples { get; }
Property Value
Size
Gets the size of this window
int Size { get; }