Is there any way to get the total number of rows returned from a SQL query (from the IDataReader) before iterating through the rows by using reader.Read();?
I have a datatable, dtFoo, and would like to get a count of the rows that meet a certain criteria.
EDIT: This data is not stored in a database, so using SQL is not an option.
In the past, I've …
I simply have a string that looks something like this:
"7,true,NA,false:67,false,NA,false:5,false,NA,false:5,false,NA,false"
All I want to do is to count how many times the string "true" appears in that string. …