Click here to Skip to main content
16,004,901 members
Articles / Web Development / ASP.NET

Pascal and Camel Case to Display Text Conversion

Rate me:
Please Sign up or sign in to vote.
4.86/5 (4 votes)
8 Jun 2011CPOL 16.8K   2  
Why not take care of the first character before the loop, instead of checking it every time (not that it makes a big difference on modern hardware)? This also moves the char declaration out of the loop.private string createDisplayText(string propertyName){ if...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions