public static IEnumerable <ICacheResult> GetAllEntriesUntyped([NotNull] this ICacheSection cacheSection) { cacheSection.AssertArgumentNotNull(nameof(cacheSection)); var values = cacheSection .Keys .Select(key => cacheSection.GetCacheEntryUntyped(key)) .Where(cacheResult => cacheResult != null); return(values); }