Click or drag to resize

UniqueListT Class

Provides a faster way to store individual objects both maintaining the order that they were added and providing a fast lookup. Based on code developed by ewbi at http://ewbi.blogs.com/develops/2010/10/uniquestringlis.html
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesUniqueListT
    SD.LLBLGen.Pro.ORMSupportClassesUniqueValueListT

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntax
[SerializableAttribute]
public class UniqueList<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
the type of the elements contained in the uniquelist.

The UniqueListT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollectionT.
Public propertyIsReadOnly
Gets a value indicating whether the ICollectionT is read-only.
Public propertyItem
Gets or sets the instance at the specified index.
Top
Methods
  NameDescription
Public methodAdd
Adds the specified item.
Public methodAddOrGet
Adds the item or if it's already present it gets its instance
Public methodClear
Removes all items from the ICollectionT.
Public methodContains
Determines whether the ICollectionT contains a specific value.
Public methodCopyTo
Copies the elements of the ICollectionT to an Array, starting at a particular Array 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
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Determines the index of a specific item in the IListT.
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
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollectionTAdd
Adds an item to the ICollectionT.
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate methodIListTInsert
Inserts an item to the IListT at the specified index.
Explicit interface implementationPrivate methodICollectionTRemove
Removes the first occurrence of a specific object from the ICollectionT.
Explicit interface implementationPrivate methodIListTRemoveAt
Removes the IListT item at the specified index.
Top
See Also