I have a list of values extracted from a sql query in order to find out if x provided values are present in it.
SQL:
-Select null from table where code='x'
-resul.count>0
String:
-Loop for concatenating the codes in one string
-codesstring.Contains("x")
Hashtable:
-Loop for adding the codes to the hashtable
-codeshashtable.ContainsKey("x")
The list will be in the thousands range...whats the fastest way?