TopSetT Class

NReco.NLQuery Class Library Documentation
Represents a collection that holds only top N elements.
Inheritance Hierarchy

SystemObject
  NReco.NLQueryTopSetT

Namespace:  NReco.NLQuery
Assembly:  NReco.NLQuery (in NReco.NLQuery.dll) Version: 1.0.0
Syntax

public class TopSet<T>

Type Parameters

T

The TopSetT type exposes the following members.

Constructors

  NameDescription
Public methodTopSetT(Int32, IComparerT)
Initializes a new instance of the [!:TopSet] class.
Public methodTopSetT(Int32, ComparisonT)
Initializes a new instance of the [!:TopSet] class.
Top
Properties

  NameDescription
Public propertyCount
Returns number of elements in the collection.
Public propertyMax
Gets the maximum value in the collection.
Public propertyMin
Gets the minimum value in the collection.
Top
Methods

  NameDescription
Public methodAdd
Adds an element into the [!:TopSet].
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToArray
Copies top N elements to a new array. Elements are sorted in descending order.
Public methodToString (Inherited from Object.)
Top
See Also

Reference