T4Scaffolding.Cmdlets.InvokeScaffoldTemplateCmdlet.DetermineLanguageForTemplate C# (CSharp) Method

DetermineLanguageForTemplate() private static method

private static DetermineLanguageForTemplate ( string templateContent ) : string
templateContent string
return string
        private static string DetermineLanguageForTemplate(string templateContent)
        {
            // Only support VB and C#
            if (Regex.IsMatch(templateContent, @"\<\#\@\s*\bTemplate\b(.*?\b)?Language=""VB[^""]*""(.*?)\#\>", RegexOptions.Singleline | RegexOptions.IgnoreCase))
                return "vb";
            return "cs";
        }