public int IndexOf (int checkedIndex) { int [] indices = GetIndices (); for (int i = 0; i < indices.Length; i++) { if (indices [i] == checkedIndex) return i; } return -1; } #endregion // Public Methods