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); }
Notice this is just an example. I just need to do low-level filtering for some values ββthat start as strings. I could intern them, but you still need to maintain a comparison of one or more lines. Value: either a string for comparing strings (1 filter), or a string exists in the list of strings (several filters).
performance string c #
Sonic soul
source share