I need to search a directory for files and folders that contain the entered text,
I can see that File.Name.Contains(txtSearch)
is the one that i need, but the problem is that it doesn't return true when characters cases (lower/upper) don't match.
Although File.Name.Equals(txtSearch,StringComparison.InvariantCultureIgnoreCase)
solves this problem it requires that the the search string should be exactly the same.