Ajeet Singh

Ajeet Singh

  • NA
  • 193
  • 18.5k

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'?

Answers (4)