Click or drag to resize
IndexedItemT Class
IndexedItem holds an item and its index. Index is a zero based position of item. This class is used in Sparse Sequence to get the known sequence items with their positions. This class implements IComparable interface and all comparisons are based on index and not on item.
Inheritance Hierarchy
SystemObject
  BioIndexedItemT

Namespace: Bio
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class IndexedItem<T> : IComparable<IndexedItem<T>>, 
	IComparable

Type Parameters

T
The type of item in IndexedItem.

The IndexedItemT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyIndex
Gets or sets the index. Specifies the zero based position of the item.
Public propertyItem
Gets or sets the item.
Top
Methods
  NameDescription
Public methodCompareTo(Object)
Compares Index property of this instance with the Index property of specified IndexedItem and returns an indication of their relative values. Parameter obj must be of IndexedItem, else an ArgumentException will occur.
Public methodCompareTo(IndexedItemT)
Compares Index property of this instance with the Index property of specified IndexedItem and returns an indication of their relative values.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified IndexedItem. Note that this method compares both index and item. If both Index and Item of this instance and obj are equal then it returns true else returns false.
(Overrides ObjectEquals(Object).)
Public methodEquals(IndexedItemT)
Returns a value indicating whether this instance is equal to a specified IndexedItem. Note that this method compares both Index and Item. If both Index and Item of this instance and other are equal then it returns true, else returns false.
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 methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares the index of leftHandSideObject and rightHandSideObject, if index of leftHandSideObject is equal to the index of rightHandSideObject then returns true else returns false. Note that this method will compare only index and will not compare Item property.
Public operatorStatic memberGreaterThan
Compares the index of leftHandSideObject and rightHandSideObject, if index of leftHandSideObject is greater than the index of rightHandSideObject then returns true else returns false. Note that this method will compare only index and will not compare Item property.
Public operatorStatic memberGreaterThanOrEqual
Compares the index of leftHandSideObject and rightHandSideObject, if index of leftHandSideObject is greater than or equal to the index of rightHandSideObject then returns true else returns false. Note that this method will compare only index and will not compare Item property.
Public operatorStatic memberInequality
Compares the index of leftHandSideObject and rightHandSideObject, if index of leftHandSideObject is not equal to the index of rightHandSideObject then returns true else returns false. Note that this method will compare only index and will not compare Item property.
Public operatorStatic memberLessThan
Compares the index of leftHandSideObject and rightHandSideObject, if index of leftHandSideObject is less than the index of rightHandSideObject then returns true, else returns false. Note that this method will compare only index and will not compare Item property.
Public operatorStatic memberLessThanOrEqual
Compares the index of leftHandSideObject and rightHandSideObject, if index of leftHandSideObject is less than or equal to the index of rightHandSideObject then returns true else returns false. Note that this method will compare only index and will not compare Item property.
Top
See Also

Reference