Click or drag to resize
DigitalRuneDataStoreTIndexOfId Method
Searches for the index of the item with the given ID.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public int IndexOfId(
	int id
)

Parameters

id
Type: SystemInt32
The ID to search for.

Return Value

Type: Int32

The index of the specified item, if id is found.

If id is not found and id is less than one or more IDs in the collection, a negative number which is the bitwise complement of the index of the first ID that is larger.

If id is not found and id is greater than any of the IDs in the collection, a negative number which is the bitwise complement of (the index of the last ID plus 1).

See Also