ObjectWithIdCollectionBaseReadOnlyT Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public abstract class ObjectWithIdCollectionBaseReadOnly<T> : IEnumerable<T>, IEnumerable where T : class, IObjectWithId, ICloneable
The ObjectWithIdCollectionBaseReadOnlyT type exposes the following members.
Name | Description | |
---|---|---|
![]() | Count | |
![]() | IsEmpty | |
![]() | IsReadOnly | |
![]() | Item | |
![]() | SortedById |
Name | Description | |
---|---|---|
![]() | BinarySearch | |
![]() | Contains(Int32) |
Returns true of the collection contains an object with the provided ID.
|
![]() | Contains(T) |
Returnerer om collection rummer objekt med samme id som obj.
|
![]() | ContainsSameIds(IntegerList) | |
![]() | ContainsSameIds(ObjectWithIdCollectionBaseT) |
Returnerer true if the collection contains the same objects as the source.
The collections must contain the same elements.
The sort order is irrelevant and not considered.
The objects are only compared in their ID.
|
![]() | CopyTo | |
![]() | Exists |
Check wether a predicate is true for at least one item in the list
|
![]() | Find | |
![]() | FindAll(PredicateT) | |
![]() | FindAll(PredicateT, ObjectWithIdCollectionBaseT) |
Add all items for whch the predicate is true to the result.
|
![]() | FindAllTResulttype(PredicateT) | |
![]() | FindIndex | |
![]() | FindLast | |
![]() | FindLastIndex | |
![]() | FormatExceptionMsg | |
![]() | GetById |
Returns an object from the collection with the provided ID.
If the collection is sorted by ID, binary search is used, else its linear.
Returns null if the object is not found.
|
![]() | GetByIdCheck |
Returns an object from the collection with the provided ID.
If the collection is sorted by ID, binary search is used, else its linear.
Raises an exception if the object is not found.
|
![]() | GetByIdList | |
![]() | GetByIdListCheck | |
![]() | GetByIdMulti | |
![]() | GetByUId |
Returns the object from the collection with the provided UID.
Returns null if the ID is not found.
The method can only be used on object which implements IObjectWithGuid!
|
![]() | GetByUIdCheck |
Returns the object from the collection with the provided UID.
An exception is raised if the ID is not found.
The method can only be used on object which implements IObjectWithGuid!
|
![]() | GetDelimitedIdString | |
![]() | GetEnumerator | |
![]() | GetIdList | |
![]() | GetIndexById |
Returns an index of the object from the collection with the provided ID.
If the collection is sorted by id, binary search is used, else it's a linear search.
Returns -1 if the object is not found.
|
![]() | GetIndexByUId |
Returns the index of the object from the collection with the provided UID.
Returns -1 if the ID is not found.
The method can only be used on object which implements IObjectWithGuid!
|
![]() | GetRange |
Unlike the list class, this may return less than count elements
|
![]() | HasCommonItems(IntegerList) |
Returns true if the collection contains at least one element which is also in the source.
|
![]() | HasCommonItems(ObjectWithIdCollectionBaseT) |
Returns true if the collection contains at least one element which is also in the source.
|
![]() | IndexOf | |
![]() | TrueForAll |
Check wether a predicate is true for all items in the list
|
Name | Description | |
---|---|---|
![]() | m_sortedById |
Name | Description | |
---|---|---|
![]() | ContainsSameElementsT |
Checks if two collections have same length and exactly same elements, but ignores the order.
(Defined by EnumerableExtensions.) |
![]() | OrderBySequenceT, TId |
Sorts the elements of a sequence based
on the sorting of another sequence
(Defined by LinqExtensions.) |
![]() | OrderByWithDirectionT, TKey |
Sorts the elements of a sequence according to the key
with the provided order
(Defined by LinqExtensions.) |
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |
Name | Description | |
---|---|---|
![]() ![]() | IEnumerableGetEnumerator | Returns an enumerator that iterates through a collection. |