1

My program has a search and update function. But it will only find a match if the user types in Jane Doe not jane doe. ATM my programs retrieving user input, converting into char array and changing the first letter of each word but this doesn't seem to work either. This is the code I'm using..

Any help on how to go about this would be great and why my method of conversion isn't working :)

Jane
  • 13

1 Answers1

0

In C#, strings have a number of comparison functions, such as the Equals function, that have case insensitive overloads.

Another possibility you might look into, if the array you're searching in is sorted, is the Array.BinarySearch<string> function.

Mr Lister
  • 274