Example #1
0
        public T GetConfigurationEditor <T>(string key)
            where T : IContentmentEditorItem
        {
            if (string.IsNullOrWhiteSpace(key) == false && _listItems.TryGet(key, out var tmp) && tmp is T item)
            {
                return(item);
            }

            return(default);
        public T GetConfigurationEditor <T>(string typeName)
            where T : IContentmentListItem
        {
            if (_listItems.TryGet(typeName, out var tmp) && tmp is T item)
            {
                return(item);
            }

            return(default);