public static RazorCodeLanguage Create(string extension)
 {
     RazorCodeLanguage language;
      switch (extension)
      {
          case ".cshtml":
              language = new FubuCSharpRazorCodeLanguage();
              break;
          case ".vbhtml":
              language = new VBRazorCodeLanguage();
              break;
          default:
              throw new ArgumentException("Invalid extension for Razor engine.");
      }
      return language;
 }
Exemplo n.º 2
0
        public static RazorCodeLanguage Create(string extension)
        {
            RazorCodeLanguage language;

            switch (extension)
            {
            case ".cshtml":
                language = new FubuCSharpRazorCodeLanguage();
                break;

            case ".vbhtml":
                language = new VBRazorCodeLanguage();
                break;

            default:
                throw new ArgumentException("Invalid extension for Razor engine.");
            }
            return(language);
        }