From a9ac640202d70162623d573c5cd01daabbc1193d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:05:54 +0200 Subject: [PATCH] Added ToLowerAt(s) (#136) --- PeyrSharp.Extensions/StringExtensions.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PeyrSharp.Extensions/StringExtensions.cs b/PeyrSharp.Extensions/StringExtensions.cs index ddf50132..14fbbf8b 100644 --- a/PeyrSharp.Extensions/StringExtensions.cs +++ b/PeyrSharp.Extensions/StringExtensions.cs @@ -184,6 +184,13 @@ public static string DecryptAes(this string encrypted, string key) /// The input string with the first letter uppercased. public static string ToUpperAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToUpper(s[0]) + s[1..]; + /// + /// Uppercases the first letter of a string. + /// + /// The string to capitalize. + /// The input string with the first letter uppercased. + public static string ToLowerAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToLower(s[0]) + s[1..]; + /// /// Reverses a . ///