text: public Record FindNextRecordBySid(short sid, int pos){int matches = 0;for (IEnumerator iterator = records.GetEnumerator(); iterator.MoveNext(); ){Record record = (Record)iterator.Current;if (record.Sid == sid){if (matches++ == pos)return record;}}return null;}