Suggestion: optional warning when Invoke
is called IMethod
without With
#220
Labels
enhancement
New feature or request
Invoke
is called IMethod
without With
#220
I suggest that calling
Invoke
on anIMethod
directly, without usingWith( InvokerOptions )
should report a diagnostic warning. This is in the spirit of more modern C# globalization warnings such as CA1307 ("Specify StringComparison for clarity"). Direct calls without usingWith
have the default context-dependent behaviour which may not be the developer's intent. UsingWith
makes the developer's intent clear. The warning could be suppressed if desired, or indeed it could be severityNone
by default, increased toWarning
according to user preference.Differing opinions welcome.
The text was updated successfully, but these errors were encountered: