Click or drag to resize

PrioritizedListT Class

A list of items sorted by their priority.
Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.CollectionsPrioritizedListT

Namespace:  Archon.SwissArmyLib.Collections
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class PrioritizedList<T> : IList<PrioritizedItem<T>>, 
	ICollection<PrioritizedItem<T>>, IEnumerable<PrioritizedItem<T>>, IEnumerable
Request Example View Source

Type Parameters

T
The type of the prioritized items.

The PrioritizedListT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the amount of items in the list.
Public propertyItem
Gets the item at the specified index.
Top
Methods
  NameDescription
Public methodAdd(T)
Adds an item to the list with priority 0.
Public methodAdd(PrioritizedItemT)
Adds a prioritized item to the list.
Public methodAdd(T, Int32)
Adds an item to the list with the specified priority.
Public methodClear
Clears all items from the list.
Public methodContains(T)
Checks whether the list contains the specified item.
Public methodContains(PrioritizedItemT)
Checks whether the list contains the specified prioritized item.
Public methodCopyTo(T, Int32)
Copies the list items to an array starting at the specified index.
Public methodCopyTo(PrioritizedItemT, Int32)
Copies the list prioritized items to an array starting at the specified index.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator for the list items.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIndexOf(T)
Gets the index of a item in the list.
Public methodIndexOf(PrioritizedItemT)
Gets the index of a prioritized item in the list.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(T)
Removes an item from the list.
Public methodRemove(PrioritizedItemT)
Removes a prioritized item from the list.
Public methodRemoveAt
Removes the item found at the specified index.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldSortDirection
Gets the sorting direction used for prioritized items in this list. Ascending: Lower priorities are placed first. Descending: Lower priorities are placed last.
Top
Extension Methods
See Also