lundi 20 avril 2020

Any.Equals to case insensitive [duplicate]

I want to make this case insensitive:

 if (usernames.Any(newName.Equals))

i have earlier used stringcomparer and regex to make things case insensitive but here the problem is that the method don't allow more arguments. I'm thankful for any help! :)

Edit: Forgot to say that usernames is a string array and newName is a string(my inputfield) if that matters.

Aucun commentaire:

Enregistrer un commentaire