Table of Contents

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

T

The 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

int

this[int]

Indexes into this window, where index 0 is the most recently entered value

T this[int i] { get; }

Parameters

i int

the 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

long

Size

Gets the size of this window

int Size { get; }

Property Value

int