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
They should perhaps be added. Ideally not just for the public API surface, but for the whole code base. This could then replace quite a few Debug.Assertions that guard against null references internally.
(This might potentially be a good first issue for new contributors. I expect that there will be some code locations where it isn't immediately clear whether null is allowed or not, and where one would have to study the code & execution paths through it for a bit... but even that shouldn't be too tough.)
The text was updated successfully, but these errors were encountered:
I had a quick look at this last night and noticed that adding nullable markings started to cause a few false-positive warnings. This looks to be due to targeting of net462 and netstandard20, which are missing some of the nicer nullable compiler enhancements.
I could work around this by adding augmenting the Guard class so that is decorated with attributes that help the compiler understand what's going on (Example here, which uses polyfill attributes.
Is this the sort of direction that feels appropriate? One thing to note is that it results in a change in behaviour as there is potential for exceptions where previously there was not (although, if the nullability is interpreted correctly, all should be good).
Due to lack of recent activity, this issue has been labeled as 'stale'.
It will be closed if no further activity occurs within 30 more days.
Any new comment will remove the label.
They should perhaps be added. Ideally not just for the public API surface, but for the whole code base. This could then replace quite a few
Debug.Assert
ions that guard against null references internally.(This might potentially be a good first issue for new contributors. I expect that there will be some code locations where it isn't immediately clear whether
null
is allowed or not, and where one would have to study the code & execution paths through it for a bit... but even that shouldn't be too tough.)The text was updated successfully, but these errors were encountered: