public int FindFirstRecordLocBySid(short sid){int index = 0;for (IEnumerator iterator = records.GetEnumerator(); iterator.MoveNext(); ){Record record = (Record)iterator.Current;if (record.Sid == sid){return index;}index++;}return -1;}