File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments