in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Utils/StringExtensionMethods.cs [5:18]
public static string ToPascalCase(this string text)
{
if (string.IsNullOrEmpty(text))
{
return string.Empty;
}
if (text.Length == 1)
{
return text.ToUpper();
}
return $"{text[0].ToString().ToUpper()}{text.Substring(1)}";
}