If you want to check if Name contains search text:
AllApplications.Where(x => x.Name.ToUpperInvariant().Contains(txtSearch.Text.ToUpperInvariant()))).ToList();
If you want to check equality:
AllApplications.Where(x => string.Equals(x.Name, txtSearch.Text, StringComparison.OrdinalIgnoreCase)).ToList();
In the original query, you checked if x.Name result of string.Compare . I assume you did not try to do this, since string.Compare returns an integer . string.Compare is mainly used to determine the sort order.
Justin rusbatch
source share