Tag Archives: camel case

Convert camel case into underscore case in C#

Lately I’ve been doing a lot of C#-to-python conversion. The style in C# is to use camel case where you capitalize the first letter each each word after the first one in a variable’s name as in thisIsAVariableName. The style … Continue reading

Posted in programs, strings | Tagged , , , , , , , , | 2 Comments

Convert between Pascal case, camel case, and proper case method 2 in C#

Like the previous post, Convert between Pascal case, camel case, and proper case in C#, this example shows how to use string extension methods convert strings into various case types. Thanks to Gary Winey for this version. The following ToPascalCase … Continue reading

Posted in extension methods, strings | Tagged , , , , , , , , , , , , , | Leave a comment

Convert between Pascal case, camel case, and proper case in C#

This example uses string extension methods to convert strings between Pascal case, camel case, and proper case. In Pascal case, each word is capitalized as in ThisStringIsPascalCased. In camel case, each word except the first is capitalized as in thisStringIsCamelCased. … Continue reading

Posted in extension methods, strings | Tagged , , , , , , , , , | 5 Comments