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