.NET Guard Class Library?

后端 未结 6 1553
无人及你
无人及你 2020-12-13 15:00

I\'m looking for a library or source code that provides guard methods such as checking for null arguments. Obviously this is rather simple to build, but I\'m wondering if th

6条回答
  •  庸人自扰
    2020-12-13 15:53

    Given Microsoft's Code Contracts coming out with .NET 4.0 I'd try to find one which is mostly compatible, if possible - and if not, write it yourself. That way when you upgrade to .NET 4.0 (eventually) the migration will be easier.

提交回复
热议问题