diff options
Diffstat (limited to 'src/mscorlib/corefx/Debug.cs')
-rw-r--r-- | src/mscorlib/corefx/Debug.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mscorlib/corefx/Debug.cs b/src/mscorlib/corefx/Debug.cs new file mode 100644 index 0000000000..3398c0e31e --- /dev/null +++ b/src/mscorlib/corefx/Debug.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Diagnostics; + +namespace System +{ + internal static class Debug + { + [Conditional("_DEBUG")] + static public void Assert(bool condition) + { + BCLDebug.Assert(condition); + } + + [Conditional("_DEBUG")] + static public void Assert(bool condition, string message) + { + BCLDebug.Assert(condition, message); + } + + [Conditional("_DEBUG")] + static public void Fail(string message) + { + BCLDebug.Assert(false, message); + } + } +}
\ No newline at end of file |