SecurityTrie
Security trie collection.
Implements: ICollection<Security>, IEnumerable<Security>, IEnumerable
Constructors
SecurityTrie()
Initializes a new instance of the SecurityTrie.
Properties
IsReadOnly : bool
Gets a value indicating whether the ICollection is read-only.
Returns: if the ICollection is read-only; otherwise, .
Methods
Clear()
Remove all instruments.
Contains(Security) : bool
Determines whether the ICollection contains a specific value.
- item
- The object to locate in the ICollection.
Returns: 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.
Returns: The got instrument. If there is no instrument by given criteria, is returned.
GetEnumerator() : IEnumerator<Security>
Returns an enumerator that iterates through the collection.
Returns: A IEnumerator that can be used to iterate through the collection.
Remove(Security) : bool
Remove the instrument.
- security
- The instrument.
Returns: if was successfully removed from the SecurityTrie; otherwise, .
Retrieve(string) : IEnumerable<Security>
Find all instrument by filter.
- filter
- Filter
Returns: Found instruments.
System#Collections#IEnumerable#GetEnumerator()
Returns an enumerator that iterates through a collection.
Returns: An IEnumerator object that can be used to iterate through the collection.