Click or drag to resize

ObjectWithIdCollectionBaseReadOnlyTGetIndexById Method

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.

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public int GetIndexById(
	int id
)

Parameters

id
Type: SystemInt32

Return Value

Type: Int32
See Also