ObjectWithIdCollectionBaseT Methods |
The ObjectWithIdCollectionBaseT generic type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add(T) | |
![]() | Add(ObjectWithIdCollectionBaseT) | |
![]() | AddX(IEnumerableX) | |
![]() | AddX(ObjectWithIdCollectionBaseX) | |
![]() | Assign(IEnumerableT) | |
![]() | Assign(ObjectWithIdCollectionBaseT) | |
![]() | AssignX(ObjectWithIdCollectionBaseX) | |
![]() | BinarySearch | |
![]() | Clear | |
![]() | Clone | |
![]() | Contains(Int32) |
Returns true of the collection contains the 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.
|
![]() | ConvertAllTOutput | |
![]() | CopyTo | |
![]() | CountPass |
Count how many elements fullfill a predicate. The list is not modified.
|
![]() | Equals | (Overrides ObjectEquals(Object).) |
![]() | Exists |
Check wether a predicate is true for at least one item in the list
|
![]() | Filter |
The provided filter is applied to the list.
Elements in the list which does not pass the filter are removed.
|
![]() | FilterX(PredicateT) |
The provided filter is applied to the list.
Elements in the list which does not pass the filter are removed.
|
![]() | FilterX(IFilterT) |
The provided filter is applied to the list.
Elements in the list which does not pass the filter are removed.
|
![]() | Find | |
![]() | FindAll(PredicateT) | |
![]() | FindAll(PredicateT, ObjectWithIdCollectionBaseT) |
Add all items for which the predicate is true to the result.
|
![]() | FindAllRESULTTYPE(PredicateT) | |
![]() | FindIndex | |
![]() | FindLast | |
![]() | FindLastIndex | |
![]() | ForEach | |
![]() | FormatExceptionMsg | |
![]() | GetById |
Returns an object from the collection with the provided ID.
If the collection is sorted (by id) then binary search is used, else it linear.
Returns null if the ID is not found.
|
![]() | GetByIdCheck |
Returns an object from the collection with the provided ID.
If the collection is sorted (by id) then binary search is used, else it linear.
Raises an exception if the ID is not found.
|
![]() | GetByIdList(IEnumerableInt32) | |
![]() | GetByIdListRESULTTYPE(IntegerList) | |
![]() | GetByIdListCheck(IntegerList) |
Get a sublist of items having the ids in the idList. Throws exception if
idList contains id not in the current collection
|
![]() | GetByIdListCheck(IEnumerableInt32) |
Get a sublist of items having the ids in the idList. Throws exception if
idList contains id not in the current collection
|
![]() | GetByIdMulti | |
![]() | GetByUId |
Returns the object with the provided UID or null of the object is not found.
The method can only by used on objects which implement the interface IObjectWithGuid!
|
![]() | GetByUIdCheck |
Returns the object with the provided UID. An exception is raised if the object is not found
The method can only by used on objects which implement the interface IObjectWithGuid!
|
![]() | GetDelimitedIdString | |
![]() | GetEnumerator | |
![]() | GetHashCode | (Overrides ObjectGetHashCode.) |
![]() | GetIdList | |
![]() | GetIndexById |
Returns the index of the object from the collection with the provided ID.
If the collection is sorted (by id) then binary search is used, else it linear.
Returns -1 if the ID is not found.
|
![]() | GetIndexByUId |
Returns the index of an object with the provided UID or -1 of the object is not found.
The method can only by used on objects which implement the interface 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 | |
![]() | Insert | |
![]() | Remove(IEnumerableInt32) | |
![]() | Remove(IEnumerableT) | |
![]() | Remove(Int32) |
Removes an object with the provided ID from the collection.
|
![]() | Remove(T) |
Fjerner objekt med samme id som obj fra collection.
|
![]() | Remove(ObjectWithIdCollectionBaseT) | |
![]() | RemoveAll |
The provided filter is applied to the list.
Elements in the list which does not pass the filter are removed.
|
![]() | RemoveAt | |
![]() | RemoveIdDuplets |
Sorts the list (ascending) on id and removes id duplets
|
![]() | SetNotSortedById | |
![]() | Sort(IComparerT) | |
![]() | Sort(ComparisonT) | |
![]() | SortById | |
![]() | TrueForAll |
Check wether a predicate is true for all items in the list
|
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. |