Ajeet Singh

Ajeet Singh

  • 1.7k
  • 185
  • 3.9k

How to use variable inside Select() in linq

May 31 2019 2:15 AM
Finding the person whose SSN = 203456876 in the list"
 
foreach (DataRow o in dt.Select("SSN = '203456876'"))
{
}
string str = "asfdsfds";
 
How to use str instead ''203456876'?

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (4)