Returns the zero-based index of the first occurrence of a value in the collection or in a portion of it.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public int IndexOf(
	Packet..::.CommandCodeType commandCode
)
Visual Basic (Declaration)
Public Function IndexOf ( _
	commandCode As Packet..::.CommandCodeType _
) As Integer
Visual C++
public:
int IndexOf(
	Packet..::.CommandCodeType commandCode
)

Parameters

commandCode
Type: Bespoke.Robotics.BrainStem..::.Packet..::.CommandCodeType
The Packet..::.CommandCodeType to locate in the collection.

Return Value

The zero-based index of the first occurrence of commandCode within the entire collection, if found; otherwise, -1.

See Also