This project is read-only.

ObservableCollectionView.Filter with a wildcard

Dec 12, 2014 at 10:19 PM
Is this the best way to set a Filter with Regex as the closes thing to SQL LIKE 'A%':
view.Filter = fn => Regex.IsMatch(fn.FirstName, "A.*[mn]")
Second Question:

What is the preferred setting for the source, as an ObservableCollection or a BindingList?
Dec 15, 2014 at 11:21 PM
  1. I think this should be correct, however using fn.StartsWith/EndsWith instead of a regex may be faster
  2. I only tested it with ObservableCollection... Is BindingList working as well? Do you see performance differences?

Thanks for using the library, if you like it please follow the project and/or write a review.