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