What is the best way to uppercase/lowercase a string in .Net without using toUpper/toLower?
What is the best way to uppercase/lowercase a string in .Net without using toUpper/toLower?
Share
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.
and
Is what I’d use if ToLower and ToUpper is banned. Also check out The Turkey Test for why it’s better to use the invariants.
or
You could create a function that will loop through the chars, adding to the ASCII values. If you can find out the difference between the lower case and upper case chars ASCII indexes.