What is the fastest way to implement something like this in C#:
private List<string> _myMatches = new List<string>(){"one","two","three"};
private bool Exists(string foo) {
return _myMatches.Contains(foo);
}
note, this is just a example. i just need to perform low level filtering on some values that originate as strings. I could intern them, but still need to support comparison of one or more strings. Meaning, either string to string comparison (1 filter), or if string exists in string list (multiple filters).