FreeAndNil opened a new pull request, #326:
URL: https://github.com/apache/logging-log4net/pull/326
One `ReflectionExtensions` in the test assembly replaces 27 hand written
lookups over 13 files.
Test only, no production change, no changelog entry.
```csharp
// before
=> (string)typeof(LocalSyslogAppender)
.GetMethod("EscapePercent", BindingFlags.Static | BindingFlags.NonPublic)!
.Invoke(null, [message])!;
// after
=> typeof(LocalSyslogAppender).Invoke<string>(nameof(EscapePercent),
[message]);
```
A renamed member now fails with its own name instead of a
`NullReferenceException`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]