pascal-case

.NET - How can you split a "caps" delimited string into an array?

How do I go from this string: "ThisIsMyCapsDelimitedString" ...to this string: "This Is My Caps Delimited String" Fewest lines of code in VB.net is preferred but C# is also welcome. Cheers! ...

Pascal case edge case

Pascal case now: is it "Nontaxable", or "NonTaxable"? ...

Convert Pascal-cased setter to an underscore-separated variable name

This is not as simple as it seems. Most of you are likely thinking of the regex /([A-Z])/_$1/ like I have found all over the Internet, but my particular situation is slightly more complicated. My source string contains more content that I don't want to have converted before a portion that I do. Consider a regular setter: public funct...

The correct case&format of variable and methods and for Python

So I know some languages have expected conventions. PHP - underscore_case() [for the most part, lolo] Java - camelCase() C# - PascalCase() etc. What's the "Pythonic" naming convention? I know it doesn't matter in the end but just wondering if there is a "best practice" way that most modules are done in. ...

How to format a string to camel case in XSLT?

I'm trying to format strings in XSLT that needs to be in camel case to be used appropriately for the application I'm working with. For example: this_text would become ThisText this_long_text would become ThisLongText Is it possible to also set this up where I can send an input to the format so I do not have to recreate the format mult...

Why Hashtable is not PascalCase ?

Hello everybody I strongly try to follow general rules in coding styles. But when i look at .NET, i see that some of classes doesn't match PascalCasing rules. One of them is Hashtable and the other one which i remember is Stopwatch. I think there are more which i don't remember them. Is there a reason to leave PascalCasing rules for th...

Entity framework: Best practice for case (as in pascal-case) in database tables/columns

In C# I always use PascalCase for properties (best practice, right?), for databases i always use lowercase for tables and columnnames (best practice, right?) When I generate classes from tables using entity framework, i get lowercase property names in C#, so I manually refactor the case in C#. I wondered, is it best practice to use Pas...