private static IDictionary GetExpressionEditorsCache(IWebApplication webApp) { IDictionaryService service = (IDictionaryService)webApp.GetService(typeof(IDictionaryService)); if (service == null) { return(null); } IDictionary dictionary = (IDictionary)service.GetValue("ExpressionEditors"); if (dictionary == null) { dictionary = new HybridDictionary(true); service.SetValue("ExpressionEditors", dictionary); } return(dictionary); }
private static IDictionary GetExpressionEditorsCache(IWebApplication webApp) { IDictionaryService service = (IDictionaryService) webApp.GetService(typeof(IDictionaryService)); if (service == null) { return null; } IDictionary dictionary = (IDictionary) service.GetValue("ExpressionEditors"); if (dictionary == null) { dictionary = new HybridDictionary(true); service.SetValue("ExpressionEditors", dictionary); } return dictionary; }