Click or drag to resize

ObjectWithIdCollectionBaseReadOnlyT Methods

The ObjectWithIdCollectionBaseReadOnlyT generic type exposes the following members.

Methods
  NameDescription
Public methodBinarySearch
Public methodContains(Int32)
Returns true of the collection contains an 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 methodCopyTo
Public methodExists
Check wether a predicate is true for at least one item in the list
Public methodFind
Public methodFindAll(PredicateT)
Public methodFindAll(PredicateT, ObjectWithIdCollectionBaseT)
Add all items for whch the predicate is true to the result.
Public methodFindAllTResulttype(PredicateT)
Public methodFindIndex
Public methodFindLast
Public methodFindLastIndex
Protected methodFormatExceptionMsg
Public methodGetById
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.
Public methodGetByIdCheck
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.
Public methodGetByIdList
Public methodGetByIdListCheck
Public methodGetByIdMulti
Public methodGetByUId
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!
Public methodGetByUIdCheck
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!
Public methodGetDelimitedIdString
Public methodGetEnumerator
Public methodGetIdList
Public methodGetIndexById
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.
Public methodGetIndexByUId
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!
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 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