Method IndexOfData
IndexOfData(TOption?)
Finds the first option whose Data equals data
using the default equality comparer for TOption.
protected int IndexOfData(TOption? data)
Parameters
dataTOption
Returns
- int
The option index, or
-1if no match is found.