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
Just like:
void Sample(object objCanNotBeNull != null)
On developing , IDE should warn 'Sample(null)'.
On runtime , application should throw a exception.
In most cases,we don't want the function arguments to be null,then we must write 'if(obj==null) throw new exception'.It's boring and absolutely no need.Can we add this feature in new C#?
The text was updated successfully, but these errors were encountered:
See Mads's recent overview of "non-nullable reference types" being prototyped for C# 8.0. Stay tuned for updates.
I'll go ahead and close this issue. Thanks
Just like:
void Sample(object objCanNotBeNull != null)
On developing , IDE should warn 'Sample(null)'.
On runtime , application should throw a exception.
In most cases,we don't want the function arguments to be null,then we must write 'if(obj==null) throw new exception'.It's boring and absolutely no need.Can we add this feature in new C#?
The text was updated successfully, but these errors were encountered: