EnumerableExtensions

StockSharp.Xaml.Charting.Common.Extensions

メソッド

EnumerateUntilGap(IEnumerator<Tuple<Point, Point>>) : IEnumerable<Tuple<Point, Point>>
iterator
must be set to first non-NaN point in collection
EnumerateUntilNonGap(IEnumerator<Tuple<Point, Point>>) : bool
iterator
must be set to first NaN point in collection
FindIndex(IList, bool, IComparable, SearchMode) : int

Finds the index of the item in the List according to the desired SearchMode. If is true, uses fast binary search

list
The list to search
isSorted
If true, will use fast binary search
value
The value to find the index for
searchMode
The SearchMode options

戻り値: The found index, or -1 if not found

FindIndex``1(IList<T>, bool, IComparable, SearchMode)

Finds the index of the item in the List according to the desired SearchMode. If is true, uses fast binary search

list
The list to search
isSorted
If true, will use fast binary search
value
The value to find the index for
searchMode
The SearchMode options

戻り値: The found index, or -1 if not found

MaxOrNullable``1(IEnumerable<T>)

Returns the maximum value or null if sequence is empty.

that
The sequence to retrieve the maximum value from.

戻り値: The maximum value or null.

MinOrNullable``1(IEnumerable<T>)

Returns the minimum value or null if sequence is empty.

that
The sequence to retrieve the minimum value from.

戻り値: The minimum value or null.

SplitToSinglePointInfo(IEnumerable<SeriesInfo>) : IEnumerable<SeriesInfo>

Splits single BandSeriesInfo onto two instances in order to siplify working with SeriesInfo collections

infos
ToUncheckedList``1(IList<T>)

戻り値: warning: returned array may contain padding zeros in end