I'm using .NET 2.0 I have a large array of string. I want to check whether a particular string is there in the array or not, I'm not sure, whether following code is optimized or I need to make it more optimized. please guide.
string []test_arr= new string[]{"key1","key2","key3"};
Boolean testCondition = (new List<string>(test_arr)).Contains("key3");
I also wants to know more about
- .NET Generics
- .NET Attributes
- .NET Reflections
is there any good reference or book, that someone has already refer then help me out !