Click or drag to resize
SerialNumbersT Class
Assigns serial number of objects
Inheritance Hierarchy
SystemObject
  Bio.UtilSerialNumbersT

Namespace: Bio.Util
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class SerialNumbers<T>

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Bio.Util.SerialNumbers`1"]

The SerialNumbersT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
The number of items to which serial numbers have been assigned. This is always one more than the largest serial number.
Public propertyLast
The last serial number assigned.
Top
Methods
  NameDescription
Public methodContains
Tells if an item already has a serial number
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetItem
Given a serialNumber, return the item with that serial number
Public methodGetNew
Assigns a serial number to a new item. Raises an exception of the item is not new.
Public methodGetNewOrOld
Returns the serial number of an item. If the item has already been assigned a serial number, returns that number; otherwise, assigns a new number to the item and returns that new number.
Public methodGetOld
Finds the serial number of item to which a serial number has already been assigned. Raises an exception of the item is new.
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 methodSave
Write the items in order to a TextWriter
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetOld
Finds the serial number of item to which a serial number has already been assigned.
Top
Fields
  NameDescription
Public fieldItemList
A list of the items in order.
Public fieldItemToSerialNumber
A mapping from items to serial numbers
Top
See Also