StringUtils.FirstCharToUpper method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings
Assembly Skybrud.Essentials.dll

FirstCharToUpper(string)

Static

Uppercases the first character of a the specified str. If str is either null or empty, an empty string will be returned instead.

public static string FirstCharToUpper(string str)

Parameters

str String

The string which first character should be uppercased.

Returns

The input string with the first character has been uppercased.