Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EFCore/Metadata/Internal/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ private Model MakeReadonly()
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual PropertyInfo? FindIndexerPropertyInfo(Type type)
=> _indexerPropertyInfoMap.GetOrAdd(type, type.FindIndexerProperty());
=> _indexerPropertyInfoMap.GetOrAdd(type, static t => t.FindIndexerProperty());

/// <summary>
/// Gets a value indicating whether the given MethodInfo represents an indexer access.
Expand Down
2 changes: 1 addition & 1 deletion src/EFCore/Metadata/RuntimeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private string GetDisplayName(Type type)
=> _clrTypeNameMap.GetOrAdd(type, t => t.DisplayName());

private PropertyInfo? FindIndexerPropertyInfo([DynamicallyAccessedMembers(IEntityType.DynamicallyAccessedMemberTypes)] Type type)
=> _indexerPropertyInfoMap.GetOrAdd(type, type.FindIndexerProperty());
=> _indexerPropertyInfoMap.GetOrAdd(type, static t => t.FindIndexerProperty());

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down
Loading