コード例 #1
0
        protected override IQueryable <T> GetQueryable <T>()
        {
            ImmutableList <T> entries = null;

            if (!_entries.TryGetValue(typeof(T), out Unsafe.As <ImmutableList <T>, IEnumerable>(ref entries)))
            {
                entries = ImmutableList <T> .Empty;
            }

            return(entries.AsQueryable());
        }