internal int IndexOf (Section target) { int idx = 0; foreach (Section s in Sections){ if (s == target) return idx; idx++; } return -1; }