Code inspection: Use 'EventArgs.Empty'
This inspection reports new EventArgs() where the shared EventArgs.Empty instance can be used instead. This avoids unnecessary allocations and expresses the intent more clearly.
Example
E?.Invoke(this, new EventArgs());
E?.Invoke(this, EventArgs.Empty);
Quick-fix
Replace new EventArgs() with EventArgs.Empty.
29 March 2026