232 references to DoesNotReturnIf
CodeStyleConfigFileGenerator (7)
src\roslyn\src\Dependencies\Contracts\Contract.cs (6)
82public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 95public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 108public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfFalseInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 121public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 134public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 147public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfTrueInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
98internal static void Assert([DoesNotReturnIf(false)] bool condition, string? message = null)
dotnet (4)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26426.103\contentFiles\cs\net11.0\Debug.cs (4)
19public static void Assert([DoesNotReturnIf(false)] bool condition) => Debug.Assert(condition); 23public static void Assert([DoesNotReturnIf(false)] bool condition, string message) 28public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) 53internal static void AssertOrFailFast([DoesNotReturnIf(false)] bool condition, string? message = null)
GenerateDocumentationAndConfigFiles (12)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (4)
19public static void Assert([DoesNotReturnIf(false)] bool condition) => Debug.Assert(condition); 23public static void Assert([DoesNotReturnIf(false)] bool condition, string message) 28public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) 53internal static void AssertOrFailFast([DoesNotReturnIf(false)] bool condition, string? message = null)
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
55private static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\Contract.cs (6)
82public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 95public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 108public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfFalseInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 121public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 134public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 147public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfTrueInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
98internal static void Assert([DoesNotReturnIf(false)] bool condition, string? message = null)
Microsoft.AspNetCore.Cryptography.Internal (1)
CryptoUtil.cs (1)
20public static void Assert([DoesNotReturnIf(false)] bool condition, string message)
Microsoft.AspNetCore.Diagnostics (2)
src\aspnetcore\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\aspnetcore\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.Http.Connections.Client (2)
src\aspnetcore\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.OutputCaching.StackExchangeRedis (2)
src\aspnetcore\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.Razor.Utilities.Shared (3)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Assumed.cs (3)
69[DoesNotReturnIf(true)] bool condition, 81[DoesNotReturnIf(true)] bool condition, 95[DoesNotReturnIf(false)] bool condition,
Microsoft.AspNetCore.SignalR.Client.Core (2)
src\aspnetcore\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.Bcl.AsyncInterfaces (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
105public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instance) 113public static void ThrowIf([DoesNotReturnIf(true)] bool condition, Type type)
Microsoft.Bcl.Numerics (2)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (2)
105public static void ThrowIf([DoesNotReturnIf(true)] bool condition, object instance) 113public static void ThrowIf([DoesNotReturnIf(true)] bool condition, Type type)
Microsoft.Build (15)
src\msbuild\src\Shared\ErrorUtilities.cs (15)
63internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName) 75internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 90internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 105internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 120internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 168internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName) 176internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 184internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 192internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 200internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 212internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 224internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 237internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 250internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 263internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
Microsoft.Build.Framework (11)
Assumed.cs (4)
180[DoesNotReturnIf(false)] bool condition, 199[DoesNotReturnIf(false)] bool condition, 215[DoesNotReturnIf(true)] bool condition, 234[DoesNotReturnIf(true)] bool condition,
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\Contract.cs (6)
82public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 95public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 108public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfFalseInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 121public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 134public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 147public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfTrueInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FailFast.cs (1)
98internal static void Assert([DoesNotReturnIf(false)] bool condition, string? message = null)
Microsoft.Build.Tasks.CodeAnalysis (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (4)
19public static void Assert([DoesNotReturnIf(false)] bool condition) => Debug.Assert(condition); 23public static void Assert([DoesNotReturnIf(false)] bool condition, string message) 28public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) 53internal static void AssertOrFailFast([DoesNotReturnIf(false)] bool condition, string? message = null)
src\roslyn\src\Dependencies\Contracts\Contract.cs (6)
82public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 95public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 108public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfFalseInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 121public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 134public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 147public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfTrueInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
98internal static void Assert([DoesNotReturnIf(false)] bool condition, string? message = null)
Microsoft.Build.Tasks.Core (15)
src\msbuild\src\Shared\ErrorUtilities.cs (15)
63internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName) 75internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 90internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 105internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 120internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 168internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName) 176internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 184internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 192internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 200internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 212internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 224internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 237internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 250internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 263internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
Microsoft.Build.Tasks.Git (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.Build.Utilities.Core (15)
src\msbuild\src\Shared\ErrorUtilities.cs (15)
63internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName) 75internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 90internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 105internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 120internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 168internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName) 176internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 184internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 192internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 200internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 212internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 224internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 237internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 250internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 263internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
Microsoft.CodeAnalysis (6)
InternalUtilities\Debug.cs (4)
19public static void Assert([DoesNotReturnIf(false)] bool condition) => Debug.Assert(condition); 23public static void Assert([DoesNotReturnIf(false)] bool condition, string message) 28public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) 53internal static void AssertOrFailFast([DoesNotReturnIf(false)] bool condition, string? message = null)
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
55private static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
98internal static void Assert([DoesNotReturnIf(false)] bool condition, string? message = null)
Microsoft.CodeAnalysis.Workspaces (13)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (4)
19public static void Assert([DoesNotReturnIf(false)] bool condition) => Debug.Assert(condition); 23public static void Assert([DoesNotReturnIf(false)] bool condition, string message) 28public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) 53internal static void AssertOrFailFast([DoesNotReturnIf(false)] bool condition, string? message = null)
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
55private static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\Contract.cs (6)
82public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 95public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 108public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfFalseInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 121public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 134public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 147public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfTrueInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
98internal static void Assert([DoesNotReturnIf(false)] bool condition, string? message = null)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
1008private static void ThrowExceptionIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, string message)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (4)
19public static void Assert([DoesNotReturnIf(false)] bool condition) => Debug.Assert(condition); 23public static void Assert([DoesNotReturnIf(false)] bool condition, string message) 28public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) 53internal static void AssertOrFailFast([DoesNotReturnIf(false)] bool condition, string? message = null)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (7)
src\roslyn\src\Dependencies\Contracts\Contract.cs (6)
82public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 95public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 108public static void ThrowIfFalse([DoesNotReturnIf(parameterValue: false)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfFalseInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 121public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 134public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, string message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null) 147public static void ThrowIfTrue([DoesNotReturnIf(parameterValue: true)] bool condition, [InterpolatedStringHandlerArgument("condition")] ThrowIfTrueInterpolatedStringHandler message, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string? filePath = null)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
98internal static void Assert([DoesNotReturnIf(false)] bool condition, string? message = null)
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\Context\ARM64\ARM64Unwinder.cs (1)
1207private static void UnwinderAssert([DoesNotReturnIf(false)] bool condition, string? message = null)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
src\aspnetcore\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.Extensions.Identity.Core (2)
src\aspnetcore\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.Extensions.Identity.Stores (2)
src\aspnetcore\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.SourceLink.AzureDevOpsServer.Git (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.AzureRepos.Git (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.Bitbucket.Git (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.Common (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.Gitea (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.Gitee (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.GitHub (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.GitLab (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.SourceLink.GitWeb (2)
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (2)
107public static void Assert([DoesNotReturnIf(false)]bool b) 112public static void Assert([DoesNotReturnIf(false)]bool b, string message)
Microsoft.TestPlatform.AdapterUtilities (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.Build (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.CommunicationUtilities (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.CoreUtilities (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.CrossPlatEngine (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.Extensions.BlameDataCollector (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.PlatformAbstractions (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.TestPlatform.Utilities (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.VisualStudio.TestPlatform.Common (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
MSBuild (15)
src\msbuild\src\Shared\ErrorUtilities.cs (15)
63internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName) 75internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 90internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 105internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 120internal static void VerifyThrowInvalidOperation([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 168internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName) 176internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0) 184internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1) 192internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2) 200internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, string resourceName, object arg0, object arg1, object arg2, object arg3) 212internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 224internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 237internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 250internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 263internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3)
rzc (3)
Json\Assumed.cs (3)
67[DoesNotReturnIf(true)] bool condition, 79[DoesNotReturnIf(true)] bool condition, 93[DoesNotReturnIf(false)] bool condition,
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)
115public static void Assert([DoesNotReturnIf(false)] bool condition) 125public static void Assert([DoesNotReturnIf(false)] bool condition, [CallerArgumentExpression(nameof(condition))] string? message = null) 135public 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 (13)
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\CompilerHelpers\StartupDebug.cs (1)
17public static void Assert([DoesNotReturnIf(false)] bool condition)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (6)
83public static void Assert([DoesNotReturnIf(false)] bool condition) => 87public static void Assert([DoesNotReturnIf(false)] bool condition, [CallerArgumentExpression(nameof(condition))] string? message = null) => 91public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message) => 95public static void Assert([DoesNotReturnIf(false)] bool condition, string? message, string? detailMessage) 104public static void Assert([DoesNotReturnIf(false)] bool condition, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler message, [InterpolatedStringHandlerArgument(nameof(condition))] ref AssertInterpolatedStringHandler detailMessage) => 108public static void Assert([DoesNotReturnIf(false)] bool condition, string? message, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string detailMessageFormat, params object?[] args) =>
src\runtime\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)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\DiagnosticUtility.cs (1)
68public static void DebugAssert([DoesNotReturnIf(false)] bool condition, string message)
vstest.console (2)
NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)
vstest.console.arm64 (2)
src\vstest\src\vstest.console\NullableHelpers.cs (2)
35public static void Assert([DoesNotReturnIf(false)] bool b) 40public static void Assert([DoesNotReturnIf(false)] bool b, string message)