I was trying to use TextInfo.ToTitleCase to convert some names to proper case. it works fine for strings in lowercase and mixed case but for strings with all characters in upper case, it returns the input string as is.
Nothing about this behavior is mentioned in MSDN documentation, any insights?
I was trying to use TextInfo.ToTitleCase to convert some names to proper case. it
Share
From MSDN docs:
so it’s expected behaviour. You could lowercase your string first if it’s all uppercase, then run ToTitleCase on it.