Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# To Pascal Case

public static string PascalCase(this string word)
{
    return string.Join("" , word.Split('_')
                 .Select(w => w.Trim())
                 .Where(w => w.Length > 0)
                 .Select(w => w.Substring(0,1).ToUpper() + w.Substring(1).ToLower()));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #To #Pascal #Case
ADD COMMENT
Topic
Name
6+5 =