Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The error model of Microsoft's new language. Parent comment
public void MyFunction([InRange(0, 5)] int x, [NotNull] object y) { // ... }
The only downside I see is contracts like this would be hard to write concisely:
if (useFirstObject == true) Contract.AssertNotNull(firstObject); else Contract.AssertNotNull(secondObject);
There are no comments on this comment yet.
The only downside I see is contracts like this would be hard to write concisely:
[1] https://github.com/Fody/NullGuard