GenericFilterDescriptor to ignore case

Thread is closed for posting
2 posts, 0 answers
  1. dtc
    dtc avatar
    2 posts
    Member since:
    Apr 2010

    Posted 19 Mar 2014 Link to this post


    I have a jumplist that i want filtered by a text box as the user enters information.  Using the a simple string list I was hoping I could use the code below to filter and ignore case.  It doesn't seem to like the StringComparer for some reason.   

    GenericFilterDescriptor<string> filterByText = new GenericFilterDescriptor<string>(days => days.Contains(txtFilter.Text,StringComparer.InvariantCultureIgnoreCase))

    Any suggestions?

  2. Deyan
    Deyan avatar
    2147 posts

    Posted 24 Mar 2014 Link to this post

    Hi Doug,

    Thanks for writing.

    Based on the code snippet you are sharing I cannot exactly say what goes wrong on your side.

    Is it possible that you attach a sample project in a ZIP archive and send it to us for further investigation?


    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top