Home
Manage Your Code
Snippet: Find in Generic Lists (C#)
Title: Find in Generic Lists Language: C#
Description: A Class FileEntry ist stored in a generic List<FileEntry> and should be searched Views: 262
Author: - - Date Added: 4/28/2008
Copy Code  
1FileEntry fileentry = this.fileList.Find(f => f.FileName == Path.GetFileName(file));
Usage
just a way to search a list via the attributes of the objects stored there. will work in c# 3.0 and above