StringExtensions.FirstCharToUpper method

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

FirstCharToUpper(string)

Extension method

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(this string str)

Parameters

str String

The string which first character should be uppercased.

Returns

The input string with the first character has been uppercased.