c# - Search in a List<DataRow>? -


I have a list that I am composed of a datatabah with only one column assume that column MyColumn < / Em> Each element in the list is an object orange with my column, in this case, only one (MyColumn). Is there any definite value in that object array, what is the best way to check it?

Thanks

  var search value = SOME_VALUE; Var results = list. Where (line = & gt; line ["MyColumn"]. SearchValue); // Returns the collection of DOSR with expected value Results Results = List. Any (line = & gt; line ["MyColumn"]. Par (search value)); // check, if the required value is present in DosTar, then  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -