I have made a software in vb.net that has a specific purpose.
It has to compare two strings at a particular point, say they are x and y. The code is
If x.Contains(y) then
'do things here
End If
If y is 'Hello' and x is 'hello there', then the if statement must be true according to my requirement, but it turns out the Contains() control is case sensitive.
How do I make it case insensitive?
EDIT: My question is in vb.net and not C#. Though they are mostly similar, I do not understand C# and don't know how to implement the answers in my scenario because both of these are different langauages. So my question is not duplicate of the one mentioned.