3 implementations of TryGetValue
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
CacheTagHelperTest.cs (1)
1029public bool TryGetValue(object key, out object value)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
StampedeTests.cs (1)
59bool IMemoryCache.TryGetValue(object key, out object? value) => throw new NotSupportedException("Intentionally not provided");
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
211public bool TryGetValue(object key, out object? result)
11 references to TryGetValue
HtmlGenerationWebSite (1)
TestCacheTagHelper.cs (1)
29if (MemoryCache.TryGetValue(cacheKey, out var _))
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
CacheTagHelperTest.cs (2)
40cache.Setup(c => c.TryGetValue(It.IsAny<string>(), out cacheResult)) 223.Setup(s => s.TryGetValue(It.IsAny<object>(), out value))
GlobbingUrlBuilderTest.cs (1)
522cache.Setup(c => c.TryGetValue(It.IsAny<object>(), out result))
Microsoft.Extensions.Caching.Abstractions (4)
MemoryCacheExtensions.cs (4)
23cache.TryGetValue(key, out object? value); 49if (cache.TryGetValue(key, out object? result)) 184if (!cache.TryGetValue(key, out object? result)) 224if (!cache.TryGetValue(key, out object? result))
Microsoft.Extensions.Caching.Hybrid (3)
Internal\DefaultHybridCache.cs (1)
136if (_localCache.TryGetValue(key, out var untyped)
Internal\DefaultHybridCache.Debug.cs (1)
20if (_localCache.TryGetValue(key, out var untyped) && untyped is CacheItem typed)
Internal\DefaultHybridCache.Stampede.cs (1)
59if ((flags & HybridCacheEntryFlags.DisableLocalCache) == 0 && _localCache.TryGetValue(key, out var untyped)