2 instantiations of MemberExpressionCacheKey
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
CachedExpressionCompiler.cs (1)
158var key = new MemberExpressionCacheKey(typeof(TModel), memberExpression);
MemberExpressionCacheKey.cs (1)
36return new MemberExpressionCacheKey(ModelType, members.ToArray());
12 references to MemberExpressionCacheKey
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
CachedExpressionCompiler.cs (4)
37private static readonly ConcurrentDictionary<MemberExpressionCacheKey, Func<TModel, object>> _chainedMemberAccessCache = 38new ConcurrentDictionary<MemberExpressionCacheKey, Func<TModel, object>>(MemberExpressionCacheKeyComparer.Instance); 158var key = new MemberExpressionCacheKey(typeof(TModel), memberExpression); 164var cacheableKey = key.MakeCacheable();
MemberExpressionCacheKey.cs (2)
28public MemberExpressionCacheKey MakeCacheable() 53public Enumerator(in MemberExpressionCacheKey key)
MemberExpressionCacheKeyComparer.cs (4)
6internal sealed class MemberExpressionCacheKeyComparer : IEqualityComparer<MemberExpressionCacheKey> 10public bool Equals(MemberExpressionCacheKey x, MemberExpressionCacheKey y) 37public int GetHashCode(MemberExpressionCacheKey obj)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
MemberExpressionCacheKeyComparerTest.cs (2)
163var cachedKey1 = key1.MakeCacheable(); 180var cachedKey1 = key1.MakeCacheable();