Click or drag to resize

ObjectWithIdCollectionBaseTGetIndexById Method

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.

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