30 references to DoesNotReturnIf
Microsoft.AspNetCore.Cryptography.Internal (1)
CryptoUtil.cs (1)
20public static void Assert([DoesNotReturnIf(false)] bool condition, string message)
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\Diagnostics\AnalyzerDebug.cs (2)
14public static void Assert([DoesNotReturnIf(false)] bool b) => Debug.Assert(b); 18public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
src\Shared\Diagnostics\AnalyzerDebug.cs (2)
14public static void Assert([DoesNotReturnIf(false)] bool b) => Debug.Assert(b); 18public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (2)
18public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instance) 34public static void ThrowIf([DoesNotReturnIf(true)] bool condition, Type type)
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (2)
18public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instance) 34public static void ThrowIf([DoesNotReturnIf(true)] bool condition, Type type)
Microsoft.AspNetCore.SignalR.Client.Core (2)
src\Shared\ThrowHelpers\ObjectDisposedThrowHelper.cs (2)
18public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instance) 34public static void ThrowIf([DoesNotReturnIf(true)] bool condition, Type type)
System.Collections.Immutable (3)
Validation\Requires.cs (3)
84public static void Range([DoesNotReturnIf(false)] bool condition, string? parameterName, string? message = null) 113public static void Argument([DoesNotReturnIf(false)] bool condition, string? parameterName, string? message) 125public static void Argument([DoesNotReturnIf(false)] bool condition)
System.Diagnostics.TraceSource (3)
System\Diagnostics\Trace.cs (3)
117public static void Assert([DoesNotReturnIf(false)] bool condition) 127public static void Assert([DoesNotReturnIf(false)] bool condition, string? message) 137public static void Assert([DoesNotReturnIf(false)] bool condition, string? message, string? detailMessage)
System.Linq.Expressions (1)
System\Dynamic\Utils\ContractUtils.cs (1)
39public static void Requires([DoesNotReturnIf(false)] bool precondition, string paramName)
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (4)
225public static void Assume([DoesNotReturnIf(false)] bool condition) 244public static void Assume([DoesNotReturnIf(false)] bool condition, string? userMessage) 263public static void Assert([DoesNotReturnIf(false)] bool condition) 277public static void Assert([DoesNotReturnIf(false)] bool condition, string? userMessage)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (6)
81public static void Assert([DoesNotReturnIf(false)] bool condition) => 85public static void Assert([DoesNotReturnIf(false)] bool condition, string? message) => 89public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) => 93public static void Assert([DoesNotReturnIf(false)] bool condition, string? message, string? detailMessage) 102public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler detailMessage) => 106public static void Assert([DoesNotReturnIf(false)] bool condition, string? message, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string detailMessageFormat, params object?[] args) =>
src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (2)
57public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instance) 70public static void ThrowIf([DoesNotReturnIf(true)] bool condition, Type type)