locked
Remove white space with LINQ query RRS feed

  • Question

  • I am trying to do a query: 

     var contact = (from c in Context.AccountSet
                                           where c.Telephone1.Replace(" ", "") == mobile
                                           select c);

    I need to remove the whitespaces in the "Telephone1" field, I've tried the above and it gives me error. Anyone know why?

    Monday, September 22, 2014 3:31 PM

All replies