public bool Contains (int checkedIndex) { int [] indices = GetIndices (); for (int i = 0; i < indices.Length; i++) { if (indices [i] == checkedIndex) return true; } return false; }