diff --git a/src/Perspex.Base/Contract.cs b/src/Perspex.Base/Contract.cs
index fb568841ca..95e2976474 100644
--- a/src/Perspex.Base/Contract.cs
+++ b/src/Perspex.Base/Contract.cs
@@ -1,6 +1,8 @@
// Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
+using System.Runtime.CompilerServices;
+
namespace Perspex
{
using System;
@@ -22,14 +24,13 @@ namespace Perspex
/// The exception to throw if is false.
///
/// The precondition.
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Requires(bool condition) where TException : Exception, new()
{
-#if DEBUG
if (!condition)
{
throw new TException();
}
-#endif
}
}
}