I’m having two string.
- string
- StriNG
Compare these two string and the result should be TRUE (ie,) both the string are same.
Thanks In Advance..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In .NET strings are case-sensitive, so
"string"is different from"String", or whatever. If you want to ignore lowercase and uppercase differences use:This will return an int (-1, 0, 1). If you want a boolean instead just use:
Anyway it results a bit difficult to understand what you are asking in this question. I hope I have guessed what you wanted to know.