Skip to content

Commit f26d915

Browse files
committed
Remove System.Diagnostics.Contract from .NET Standard.
1 parent 0dc57c3 commit f26d915

92 files changed

Lines changed: 201 additions & 165 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/MsgPack/BigEndianBinary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#endif
2424

2525
using System;
26-
#if CORE_CLR || UNITY
26+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2727
using Contract = MsgPack.MPContract;
2828
#else
2929
using System.Diagnostics.Contracts;
30-
#endif // CORE_CLR || UNITY
30+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3131

3232
namespace MsgPack
3333
{

src/MsgPack/CollectionOperation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424

2525
using System;
2626
using System.Collections.Generic;
27-
#if CORE_CLR || UNITY
27+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2828
using Contract = MsgPack.MPContract;
2929
#else
3030
using System.Diagnostics.Contracts;
31-
#endif // CORE_CLR || UNITY
31+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3232
using System.Linq;
3333

3434
namespace MsgPack

src/MsgPack/Float32Bits.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#endif
2424

2525
using System;
26-
#if CORE_CLR || UNITY
26+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2727
using Contract = MsgPack.MPContract;
2828
#else
2929
using System.Diagnostics.Contracts;
30-
#endif // CORE_CLR || UNITY
30+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3131
using System.Runtime.InteropServices;
3232

3333
namespace MsgPack

src/MsgPack/Float64Bits.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#endif
2424

2525
using System;
26-
#if CORE_CLR || UNITY
26+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2727
using Contract = MsgPack.MPContract;
2828
#else
2929
using System.Diagnostics.Contracts;
30-
#endif // CORE_CLR || UNITY
30+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3131
using System.Runtime.InteropServices;
3232

3333
namespace MsgPack

src/MsgPack/ItemsUnpacker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424

2525
using System;
2626
#if DEBUG
27-
#if CORE_CLR || UNITY
27+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2828
using Contract = MsgPack.MPContract;
2929
#else
3030
using System.Diagnostics.Contracts;
31-
#endif // CORE_CLR || UNITY
31+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3232
#endif // DEBUG
3333
using System.Globalization;
3434
using System.IO;

src/MsgPack/MessagePackConvert.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#endif
2424

2525
using System;
26-
#if CORE_CLR || UNITY
26+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2727
using Contract = MsgPack.MPContract;
2828
#else
2929
using System.Diagnostics.Contracts;
30-
#endif // CORE_CLR || UNITY
30+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3131
using System.Text;
3232

3333
namespace MsgPack

src/MsgPack/MessagePackObject.Utilities.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
using System;
2626
using System.Collections.Generic;
2727
using System.Diagnostics.CodeAnalysis;
28-
#if CORE_CLR || UNITY
28+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2929
using Contract = MsgPack.MPContract;
3030
#else
3131
using System.Diagnostics.Contracts;
32-
#endif // CORE_CLR || !UNITY
32+
#endif // CORE_CLR || !UNITY || NETSTANDARD1_1
3333
using System.Globalization;
3434
using System.Linq;
3535
#if NETFX_CORE

src/MsgPack/MessagePackObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#endif
2424

2525
using System;
26-
#if CORE_CLR || UNITY
26+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2727
using Contract = MsgPack.MPContract;
2828
#else
2929
using System.Diagnostics.Contracts;
30-
#endif // CORE_CLR || UNITY
30+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3131
using System.Runtime.InteropServices;
3232

3333
namespace MsgPack

src/MsgPack/MessagePackObject.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ Func<object, bool> IsNotCLSCompliant =
7979
#endif
8080

8181
using System;
82-
#if CORE_CLR || UNITY
82+
#if CORE_CLR || UNITY || NETSTANDARD1_1
8383
using Contract = MsgPack.MPContract;
8484
#else
8585
using System.Diagnostics.Contracts;
86-
#endif // CORE_CLR || UNITY
86+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
8787
using System.Runtime.InteropServices;
8888

8989
namespace MsgPack

src/MsgPack/MessagePackObjectDictionary.Enumerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
using System;
2626
using System.Collections;
2727
using System.Collections.Generic;
28-
#if CORE_CLR || UNITY
28+
#if CORE_CLR || UNITY || NETSTANDARD1_1
2929
using Contract = MsgPack.MPContract;
3030
#else
3131
using System.Diagnostics.Contracts;
32-
#endif // CORE_CLR || UNITY
32+
#endif // CORE_CLR || UNITY || NETSTANDARD1_1
3333

3434
namespace MsgPack
3535
{

0 commit comments

Comments
 (0)