diff --git a/src/Generator/Utils/Utils.cs b/src/Generator/Utils/Utils.cs index 3485a3d2..73aba765 100644 --- a/src/Generator/Utils/Utils.cs +++ b/src/Generator/Utils/Utils.cs @@ -175,6 +175,17 @@ namespace Cxxi yield return result; } } + + public static string UppercaseFirst(string s) + { + // Check for empty string. + if (string.IsNullOrEmpty(s)) + { + return string.Empty; + } + // Return char and concat substring. + return char.ToUpper(s[0]) + s.Substring(1); + } } public static class AssemblyHelpers