Is there any way to compare strings in a C# LINQ expression similar to SQL\'s LIKE operator?
LIKE
Suppose I have a string list. On this list I want to search
List categoriess; private void Buscar() { try { categoriess = Contexto.Categories.ToList(); categoriess = categoriess.Where(n => n.CategoryID >= Convert.ToInt32(txtCatID.Text) && n.CategoryID <= Convert.ToInt32(txtCatID1.Text) && (n.CategoryName.Contains(txtCatName.Text)) ).ToList();