Click or drag to resize

StringExtensionsCapitalize Method (String)

Capitalizes the first letter of each word assuming that words are separated by a single space.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public static string Capitalize(
	this string source
)

Parameters

source
Type: SystemString
The string that must be capitalized.

Return Value

Type: String
The capitalized string. If source is empty, source is returned without modifications.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also