Base object collection.
Extended Generic List:
- Add, Remove method manage T index
- Custom Sort methods
Namespace:
Hyleos.CommonAssembly: Hyleos.Common (in Hyleos.Common.dll) Version: 1.0.3.2 (1.0.3.2)
Syntax
| C# |
|---|
[SerializableAttribute] public class BaseObjectCollection<T> : List<T>, IComparable<BaseObjectCollection<T>>, IEquatable<BaseObjectCollection<T>> where T : BaseObject |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class BaseObjectCollection(Of T As BaseObject) _ Inherits List(Of T) _ Implements IComparable(Of BaseObjectCollection(Of T)), IEquatable(Of BaseObjectCollection(Of T)) |
| Visual C++ |
|---|
[SerializableAttribute] generic<typename T> where T : BaseObject public ref class BaseObjectCollection : public List<T>, IComparable<BaseObjectCollection<T>^>, IEquatable<BaseObjectCollection<T>^> |
Type Parameters
- T
- Object type
Remarks
IComparable(T) and IEquatable(T) are needed to prevent boxing from generic List method (Sort, BinarySearch).
Framework 3.5 introduces System.Core.HashSet{T} which is much more accurate then List{T}, next version should used it.
Inheritance Hierarchy
System..::.Object
System.Collections.Generic..::.List<(Of <(T>)>)
Hyleos.Common..::.BaseObjectCollection<(Of <(T>)>)
System.Collections.Generic..::.List<(Of <(T>)>)
Hyleos.Common..::.BaseObjectCollection<(Of <(T>)>)