SecurityTrie

StockSharp.Algo

Security trie collection.

実装: ICollection<Security>, IEnumerable<Security>, IEnumerable

コンストラクター

SecurityTrie()

Initializes a new instance of the SecurityTrie.

プロパティ

Count : int

Gets the number of instruments contained in the SecurityTrie.

IsReadOnly : bool

Gets a value indicating whether the ICollection is read-only.

戻り値: if the ICollection is read-only; otherwise, .

メソッド

Add(Security)

Add new instrument.

security
New instrument.
Clear()

Remove all instruments.

Contains(Security) : bool

Determines whether the ICollection contains a specific value.

item
The object to locate in the ICollection.

戻り値: if is found in the ICollection; otherwise, .

CopyTo(Security[], int)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

array
Destination array.
arrayIndex
Start index.
GetById(SecurityId) : Security

To get the instrument by the identifier.

id
Security ID.

戻り値: The got instrument. If there is no instrument by given criteria, is returned.

GetEnumerator() : IEnumerator<Security>

Returns an enumerator that iterates through the collection.

戻り値: A IEnumerator that can be used to iterate through the collection.

Remove(Security) : bool

Remove the instrument.

security
The instrument.

戻り値: if was successfully removed from the SecurityTrie; otherwise, .

RemoveRange(IEnumerable<Security>)

Remove the instruments.

securities
The instruments.
Retrieve(string) : IEnumerable<Security>

Find all instrument by filter.

filter
Filter

戻り値: Found instruments.

System#Collections#IEnumerable#GetEnumerator()

Returns an enumerator that iterates through a collection.

戻り値: An IEnumerator object that can be used to iterate through the collection.