You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using nameof() would be required on ArgumentException and things that inherit from it, such as ArgumentNullException, on any parameter where the parameter is named paramName.
This is a C# 6 feature, of course, so warnings and code fixes would only be applicable on projects using 6 or later. Thoughts?
The text was updated successfully, but these errors were encountered:
I have the following older code:
It would be nice to have some rule that would complain about arg and instead require:
Using nameof() would be required on ArgumentException and things that inherit from it, such as ArgumentNullException, on any parameter where the parameter is named paramName.
This is a C# 6 feature, of course, so warnings and code fixes would only be applicable on projects using 6 or later. Thoughts?
The text was updated successfully, but these errors were encountered: