Check if a String contain another string by ignoring case

image_pdfimage_print
   
 

using System;


  public static class StringExtensions
  {

    public static bool ContainsIgnoreCase(this string me, string other)
    {
      return me.ToLower().Contains(other.ToLower());
    }

  }

   
     


This entry was posted in Data Types. Bookmark the permalink.