Search with LINQ with case sensitive in C# winform
i am using code:
Activeuser.DataSource = temp.Where(x=>x.displayName.Contains(txtsearch.Text)).ToList();
var temp1 = objAvailableActiveUsersListResponse.users.Where(x => x.displayName.Contains(txtsearch.Text)).ToList();
int lstcount = temp1.Count;
Activeuser.DataSource = null;
if (lstcount > 0)
{
object[] row = new object[3];
// dataGridView1.Rows.Add(row);
for (int i = 0; i < lstcount; i++)
{
string DisplayName = temp1[i].displayName;
string uid = temp1[i].uid.ToString();
row = new object[] { DisplayName, false, uid };
Activeuser.Rows.Add(row);
}
but its search but in case of case sensitiv. its not working properly