Fastest way to compare a string with an array of strings in C#2.0
.net, arrays, c#, comparison, string
Solution
You mean to see if the string is in the array? I can't remember if arrays support the .Contains() method, so if not, create a List< string >, add your array to the list via AddRange(), then call list.Contains({string to compare}). Will return a boolean value indicating whether or not the string is in the array.
Problem
What is the fastest way to compare a string with an array of strings in C#2.0