Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
If your list gets really big (say >10,000 sprocs or so), you'll want to go with a tool that is designed for searching within text. However, if it's small, you won't notice any lag if you use the methods on the System.IO.File class such as ReadAllLines() which will return a string array of all of the lines in the file, and if you're file is formatted right, each of the entries in the array will be a sproc name. Then, you can just do an Array.Contains() or even put them in a System.Collections.Generic.List<string> and use the Find() methods to search case-insensitively.
|