AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

StringExtensions..::..ToCamelCase Method

Inserts spaces into a PascalCase or camelCase string to produce human-readable text.

Namespace:  AdvantageCMS.Core.Common
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static string ToCamelCase(
	this string str
)

Parameters

str
Type: String
The camelCase or PascalCase string.

Return Value

The string with spaces inserted before uppercase transitions.

Examples


C#
string readable = "FirstName".ToCamelCase(); // returns "First Name"