Represents a collection that holds only top N elements.
Inheritance Hierarchy
NReco.NLQueryTopSetT
Namespace: NReco.NLQuery
Assembly: NReco.NLQuery (in NReco.NLQuery.dll) Version: 1.0.0
Syntax
Type Parameters
- T
The TopSetT type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TopSetT(Int32, IComparerT) |
Initializes a new instance of the [!:TopSet] class.
| |
TopSetT(Int32, ComparisonT) |
Initializes a new instance of the [!:TopSet] class.
|
Properties
Name | Description | |
---|---|---|
Count |
Returns number of elements in the collection.
| |
Max |
Gets the maximum value in the collection.
| |
Min |
Gets the minimum value in the collection.
|
Methods
Name | Description | |
---|---|---|
Add |
Adds an element into the [!:TopSet].
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToArray |
Copies top N elements to a new array. Elements are sorted in descending order.
| |
ToString | (Inherited from Object.) |
See Also