Cambiata visualizzazione calendario e aggiunto formAttività
This commit is contained in:
@@ -8,4 +8,12 @@ public static class UtilityString
|
||||
.Split(' ', StringSplitOptions.RemoveEmptyEntries)
|
||||
.Select(word => char.ToUpper(word[0])));
|
||||
}
|
||||
|
||||
public static string FirstCharToUpper(this string input) =>
|
||||
input switch
|
||||
{
|
||||
null => throw new ArgumentNullException(nameof(input)),
|
||||
"" => throw new ArgumentException($"{nameof(input)} cannot be empty", nameof(input)),
|
||||
_ => input[0].ToString().ToUpper() + input.Substring(1)
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user