HashtableRecord FindByTitle(IRecord[] records, string title) { foreach (HashtableRecord record in records) { if (((string)record["Title"]) == title) { return record; } } throw new ArgumentException("Record not found!"); }