The contract class is only needed when building for V3.5 runtimes. #ifdef it out

This commit is contained in:
Vance Morrison
2016-06-14 17:24:31 -07:00
parent 1b35fd2f8a
commit a1d0393513
+7 -1
View File
@@ -1,4 +1,8 @@
using System;
// If you are compiling for a .NET Runtime before V4.0 than you need to provide these stubs that
// define the Contract class.
#if PRE_V4_0
using System;
namespace System.Diagnostics.Contracts
{
@@ -34,3 +38,5 @@ namespace System.Diagnostics.Contracts
}
}
#endif