static string ToTitleCase( string source )

robot_2Generated
code_blocksInput

Description

The ToTitleCase method is an extension method for the System.String type. It converts the specified string to title case, where the first letter of each word is capitalized and the rest are in lowercase. This method is useful for formatting strings to a more readable or standardized form, such as titles or headings.

Usage

To use the ToTitleCase method, simply call it on any string instance. This method is static and can be accessed directly through the SandboxSystemExtensions class if needed, but is typically used as an extension method.

Example usage:

string title = "this is a sample title".ToTitleCase();
// title will be "This Is A Sample Title"

Example

string title = "this is a sample title".ToTitleCase();
// title will be "This Is A Sample Title"