Click or drag to resize

ObjectWithIdCollectionBaseT Methods

The ObjectWithIdCollectionBaseT generic type exposes the following members.

Methods
  NameDescription
Public methodAdd(T)
Public methodAdd(ObjectWithIdCollectionBaseT)
Public methodAddX(IEnumerableX)
Public methodAddX(ObjectWithIdCollectionBaseX)
Public methodAssign(IEnumerableT)
Public methodAssign(ObjectWithIdCollectionBaseT)
Public methodAssignX(ObjectWithIdCollectionBaseX)
Public methodBinarySearch
Public methodClear
Public methodClone
Public methodContains(Int32)
Returns true of the collection contains the object with the provided ID.
Public methodContains(T)
Returnerer om collection rummer objekt med samme id som obj.
Public methodContainsSameIds(IntegerList)
Public methodContainsSameIds(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.
Public methodConvertAllTOutput
Public methodCopyTo
Public methodCountPass
Count how many elements fullfill a predicate. The list is not modified.
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodExists
Check wether a predicate is true for at least one item in the list
Public methodFilter
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodFilterX(PredicateT)
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodFilterX(IFilterT)
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodFind
Public methodFindAll(PredicateT)
Public methodFindAll(PredicateT, ObjectWithIdCollectionBaseT)
Add all items for which the predicate is true to the result.
Public methodFindAllRESULTTYPE(PredicateT)
Public methodFindIndex
Public methodFindLast
Public methodFindLastIndex
Public methodForEach
Protected methodFormatExceptionMsg
Public methodGetById
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.
Public methodGetByIdCheck
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.
Public methodGetByIdList(IEnumerableInt32)
Public methodGetByIdListRESULTTYPE(IntegerList)
Public methodGetByIdListCheck(IntegerList)
Get a sublist of items having the ids in the idList. Throws exception if idList contains id not in the current collection
Public methodGetByIdListCheck(IEnumerableInt32)
Get a sublist of items having the ids in the idList. Throws exception if idList contains id not in the current collection
Public methodGetByIdMulti
Public methodGetByUId
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!
Public methodGetByUIdCheck
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!
Public methodGetDelimitedIdString
Public methodGetEnumerator
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetIdList
Public methodGetIndexById
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.
Public methodGetIndexByUId
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!
Public methodGetRange
Unlike the list class, this may return less than count elements
Public methodHasCommonItems(IntegerList)
Returns true if the collection contains at least one element which is also in the source
Public methodHasCommonItems(ObjectWithIdCollectionBaseT)
Returns true if the collection contains at least one element which is also in the source
Public methodIndexOf
Public methodInsert
Public methodRemove(IEnumerableInt32)
Public methodRemove(IEnumerableT)
Public methodRemove(Int32)
Removes an object with the provided ID from the collection.
Public methodRemove(T)
Fjerner objekt med samme id som obj fra collection.
Public methodRemove(ObjectWithIdCollectionBaseT)
Public methodRemoveAll
The provided filter is applied to the list. Elements in the list which does not pass the filter are removed.
Public methodRemoveAt
Public methodRemoveIdDuplets
Sorts the list (ascending) on id and removes id duplets
Public methodSetNotSortedById
Public methodSort(IComparerT)
Public methodSort(ComparisonT)
Public methodSortById
Public methodTrueForAll
Check wether a predicate is true for all items in the list
Top
Extension Methods
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
Top
See Also