FirstCharToLower

This commit is contained in:
Mark McDowall
2019-05-05 18:57:33 -07:00
committed by ta264
parent 77d02a03a0
commit b8b8f064c7
4 changed files with 44 additions and 1 deletions
@@ -22,9 +22,14 @@ namespace NzbDrone.Common.Extensions
return "[NULL]";
}
public static string FirstCharToLower(this string input)
{
return input.First().ToString().ToLower() + input.Substring(1);
}
public static string FirstCharToUpper(this string input)
{
return input.First().ToString().ToUpper() + string.Join("", input.Skip(1));
return input.First().ToString().ToUpper() + input.Substring(1);
}
public static string Inject(this string format, params object[] formattingArgs)