• 大小: 18.51M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: MVC  语言  多语言  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Text;
using System.Threading.Tasks;

namespace ViewEnginePlus.ViewEngines
{
    public class RazorThemeViewEngine : IViewEngine
    {
        private readonly RazorViewEngine fallbackViewEngine = new RazorViewEngine();
        private string lastTheme;
        private RazorViewEngine lastEngine;
        private readonly object @lock = new object();

        // Temp
        private string activeTheme;

        // Implementations for IViewEngine

        public ViewEngineResult FindPartialView(ControllerContext controllerContext string partialViewName bool useCache)
        {
            return ThemeViewEngine().FindPartialView(controllerContext partialViewName useCache

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-04-23 15:42  ViewEnginePlus-master\
     文件        1651  2015-04-23 15:42  ViewEnginePlus-master\.gitignore
     文件         780  2015-04-23 15:42  ViewEnginePlus-master\README.md
     文件        4362  2015-04-23 15:42  ViewEnginePlus-master\RazorThemeViewEngine.cs
     文件         927  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo.sln
     目录           0  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\
     目录           0  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Data\
     文件     3211264  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Data\aspnet-ViewEnginePlus.Demo-20140114224521.mdf
     文件     1048576  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Data\aspnet-ViewEnginePlus.Demo-20140114224521_log.ldf
     目录           0  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Start\
     文件         976  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Start\AuthConfig.cs
     文件         651  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Start\BundleConfig.cs
     文件         273  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Start\FilterConfig.cs
     文件         717  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Start\RouteConfig.cs
     文件         887  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\App_Start\WebApiConfig.cs
     目录           0  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Controllers\
     文件       15525  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Controllers\AccountController.cs
     文件         298  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Controllers\DebugController.cs
     文件         680  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Controllers\HomeController.cs
     文件         476  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Controllers\LanguageController.cs
     文件         401  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Controllers\ThemesController.cs
     目录           0  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Filters\
     文件        2020  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Filters\InitializeSimpleMembershipAttribute.cs
     文件         110  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Global.asax
     文件        3263  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Global.asax.cs
     目录           0  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Images\
     文件         528  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Images\accent.png
     文件        2867  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Images\bullet.png
     文件         572  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Images\heroAccent.png
     文件        3424  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Images\orderedList0.png
     文件         653  2015-04-23 15:42  ViewEnginePlus-master\ViewEnginePlus.Demo\Images\orderedList1.png
............此处省略563个文件信息

评论

共有 条评论