public MvcViewEngineViewModel( string name, MvcTextTemplateType templateType) { this.Name = name; this.TemplateType = templateType; }
string GetFolderName(MvcTextTemplateType type, MvcTextTemplateLanguage language) { if (type.IsRazor()) { return GetRazorFolderName(language); } return GetAspxFolderName(language); }
string GetFolderName(MvcTextTemplateType type, MvcTextTemplateLanguage language) { if (type.IsRazor()) { return(GetRazorFolderName(language)); } return(GetAspxFolderName(language)); }
public static string GetViewFileExtension( MvcTextTemplateType type, MvcTextTemplateLanguage language, bool isPartialView) { if (type.IsAspx()) { return GetAspxFileExtension(isPartialView); } return GetRazorFileExtension(language); }
public static string GetViewFileExtension( MvcTextTemplateType type, MvcTextTemplateLanguage language, bool isPartialView) { if (type.IsAspx()) { return(GetAspxFileExtension(isPartialView)); } return(GetRazorFileExtension(language)); }
public MvcTextTemplateTypeFolder( MvcTextTemplateType type, MvcTextTemplateLanguage language) { name = GetFolderName(type, language); }
public static bool IsAspx(this MvcTextTemplateType templateType) { return(templateType == MvcTextTemplateType.Aspx); }
public static bool IsRazor(this MvcTextTemplateType templateType) { return(templateType == MvcTextTemplateType.Razor); }