Skip to content

Commit 998b82c

Browse files
committed
fix argument name
1 parent d41d7c7 commit 998b82c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection/MethodInfoAccessorMethodExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ internal static class MethodInfoAccessorMethodExtensions {
1010
public static bool IsPropertyAccessorMethod(this MethodInfo m)
1111
=> m is null
1212
? throw new ArgumentNullException(nameof(m))
13-
: m.DeclaringType?.GetProperties()?.FirstOrDefault(accessor =>
14-
m == accessor.GetMethod || m == accessor.SetMethod
13+
: m.DeclaringType?.GetProperties()?.FirstOrDefault(p =>
14+
m == p.GetMethod || m == p.SetMethod
1515
) != null;
1616

1717
public static bool IsEventAccessorMethod(this MethodInfo m)
1818
=> m is null
1919
? throw new ArgumentNullException(nameof(m))
20-
: m.DeclaringType?.GetEvents()?.FirstOrDefault(accessor =>
21-
m == accessor.AddMethod || m == accessor.RemoveMethod
20+
: m.DeclaringType?.GetEvents()?.FirstOrDefault(ev =>
21+
m == ev.AddMethod || m == ev.RemoveMethod
2222
) != null;
2323
}

0 commit comments

Comments
 (0)