Skip to content

Commit a943afa

Browse files
committed
.
1 parent 1943465 commit a943afa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/System.Linq.Dynamic.Core/DynamicGetMemberBinder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ namespace System.Linq.Dynamic.Core;
1515
internal class DynamicGetMemberBinder : GetMemberBinder
1616
{
1717
private static readonly MethodInfo DynamicGetMemberMethod = typeof(DynamicGetMemberBinder).GetMethod(nameof(GetDynamicMember))!;
18-
18+
1919
// The _metaObjectCache uses a Tuple<Type, string, bool> as the key to cache DynamicMetaObject instances.
2020
// The key components are:
2121
// - Type: The LimitType of the target object, ensuring type-specific caching.
2222
// - string: The member name being accessed.
2323
// - bool: The IgnoreCase flag, indicating whether the member name comparison is case-insensitive.
2424
// This strategy ensures that the cache correctly handles different types, member names, and case-sensitivity settings.
2525
private readonly ConcurrentDictionary<Tuple<Type, string, bool>, DynamicMetaObject> _metaObjectCache = new();
26+
2627
internal DynamicGetMemberBinder(string name, ParsingConfig? config) : base(name, config?.IsCaseSensitive != true)
2728
{
2829
}

0 commit comments

Comments
 (0)