We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06654e7 commit 9f8fb6cCopy full SHA for 9f8fb6c
1 file changed
src/MsgPack.Xamarin.iOS/MPContract.cs
@@ -21,14 +21,12 @@
21
22
namespace MsgPack
23
{
24
-#if DEBUG
25
- // Use compiler directive to ensure compiler removal of related expressions of assertion.
26
-
27
/// <summary>
28
/// System.Contract alternative working on Xamarin.
29
/// </summary>
30
internal static class MPContract
31
+ [Conditional( "DEBUG" )]
32
public static void Assert( bool condition, string userMessage )
33
34
if ( !condition )
@@ -60,5 +58,4 @@ public static T Result<T>()
60
58
return default( T );
61
59
}
62
63
-#endif // DEBUG
64
0 commit comments