OkraFramework / Okra.Core

Okra App Framework - The Okra App Framework is designed to support the development of .Net Windows Store applications, in particular those following the MVVM pattern.
http://okraframework.github.io
Apache License 2.0
10 stars 6 forks source link

Implement automatic argument null checking #66

Closed Andy-Wilkinson closed 8 years ago

Andy-Wilkinson commented 9 years ago

The ASP.Net team have a [NotNull] attribute that is automatically code-gen'ed into the method body at compile time. Should Okra also use this? Are there any existing libraries that code-gen validation code?

Advantages,

Disadvantages,

Andy-Wilkinson commented 9 years ago

See https://github.com/aspnet/Home/wiki/Engineering-guidelines for more details

Andy-Wilkinson commented 8 years ago

The Asp.Net team no longer are planning on using [NotNull] for code-gen of argument validation code. Okra will continue to raise ArgumentNullExceptions explicitly.