Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » sorting   (RSS)

What is Title Case?

Disclaimer: I'm not an English teacher (that's my mom), so I'm sure my description of title casing in English probably has exceptions/variations. Title casing has an interesting history in computer programming. Programmers like to use CamelCase to make

How come Substring(0, xxx) matches something, but StartsWith returns false?

I was asked how a string can match a substring of another string, yet StartsWith can return false? For example: string str = "Mu\x0308nchen"; string find = "Mu"; Console.WriteLine("Substring: " + (str.Substring(0,2) == find)); Console.WriteLine("StartsWith:"
Posted by shawnste | 0 Comments
Filed under:
 
Page view tracker