66 instantiations of UnreachableException
Aspire.Hosting.Azure.Network (1)
AzureSubnetResource.cs (1)
114throw new UnreachableException("AddressPrefix must be set either as a string or a ParameterResource.");
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
232var projectDirectory = Path.GetDirectoryName(project.GetProjectMetadata().ProjectPath) ?? throw new UnreachableException();
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
119_ => throw new UnreachableException()
Microsoft.AspNetCore.Antiforgery (1)
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\SSRRenderModeBoundary.cs (1)
193_ => throw new UnreachableException($"Unknown render mode {RenderMode.GetType().FullName}"),
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.DataProtection (1)
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.Http.Microbenchmarks (16)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (16)
224throw new UnreachableException($"Unexpected parameter type: {parameter.ParameterType}"); 228throw new UnreachableException("Unexpected parameter name"); 251throw new UnreachableException("Unexpected parameter type"); 255throw new UnreachableException("Unexpected parameter name"); 276throw new UnreachableException("Unexpected parameter type"); 280throw new UnreachableException("Unexpected parameter name"); 303throw new UnreachableException("Unexpected parameter type"); 307throw new UnreachableException("Unexpected parameter name"); 361throw new UnreachableException("Unexpected parameter type"); 376throw new UnreachableException("We shouldn't bind from the wrong type!"); 394throw new UnreachableException("Unexpected parameter type"); 424throw new UnreachableException("Unexpected parameter type"); 428throw new UnreachableException("Unexpected parameter name"); 448throw new UnreachableException("Unexpected parameter type"); 452throw new UnreachableException("Unexpected parameter name"); 467throw new UnreachableException("We shouldn't bind from the wrong interface type!");
Microsoft.AspNetCore.HttpLogging (1)
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionMethodExecutor.cs (1)
53throw new UnreachableException();
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
22private static readonly Exception _successfullyCompletedSentinel = new UnreachableException();
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsResolver.cs (1)
485throw new UnreachableException();
System.DirectoryServices.Protocols (1)
src\libraries\Common\src\Interop\Interop.Ldap.cs (1)
198public static int* ConvertToUnmanaged(BerVal _) => throw new UnreachableException();
System.IO.Hashing (1)
System\ThrowHelper.cs (1)
12internal static void ThrowUnreachableException() => throw new UnreachableException();
System.Linq.Expressions (1)
System\Dynamic\Utils\ContractUtils.cs (1)
23return new UnreachableException();
System.Net.Security (1)
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
23throw new UnreachableException();
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64Helper.cs (1)
165throw new UnreachableException();
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (2)
186internal static unsafe void SetNextCallGenericContext(void* value) => throw new UnreachableException(); // Unconditionally expanded intrinsic 189internal static void SetNextCallAsyncContinuation(object value) => throw new UnreachableException(); // Unconditionally expanded intrinsic
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.T.cs (7)
26internal virtual T[] GetValues() => throw new UnreachableException(); 35internal virtual bool ContainsCore(T value) => throw new UnreachableException(); 37internal virtual int IndexOfAny(ReadOnlySpan<T> span) => throw new UnreachableException(); 38internal virtual int IndexOfAnyExcept(ReadOnlySpan<T> span) => throw new UnreachableException(); 39internal virtual int LastIndexOfAny(ReadOnlySpan<T> span) => throw new UnreachableException(); 40internal virtual int LastIndexOfAnyExcept(ReadOnlySpan<T> span) => throw new UnreachableException(); 46internal virtual int IndexOfAnyMultiString(ReadOnlySpan<char> span) => throw new UnreachableException();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (4)
447public static char TransformInput(char input) => throw new UnreachableException(); 448public static Vector128<byte> TransformInput(Vector128<byte> input) => throw new UnreachableException(); 449public static Vector256<byte> TransformInput(Vector256<byte> input) => throw new UnreachableException(); 450public static Vector512<byte> TransformInput(Vector512<byte> input) => throw new UnreachableException();
src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (1)
659_ => throw new UnreachableException()
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadBlockingInfo.cs (1)
95throw new UnreachableException();
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
59throw new UnreachableException();
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (3)
190private static void AsyncSuspend(Continuation continuation) => throw new UnreachableException(); 198private static Continuation? AsyncCallContinuation() => throw new UnreachableException(); 202private static void TailAwait() => throw new UnreachableException();
src\System\RuntimeType.CoreCLR.cs (1)
2017throw new UnreachableException();
src\System\RuntimeType.GenericCache.cs (1)
27void IGenericCacheEntry.InitializeCompositeCache(CompositeCacheEntry compositeEntry) => throw new UnreachableException();
src\System\StubHelpers.cs (2)
1650internal static IntPtr GetStubContext() => throw new UnreachableException(); // Unconditionally expanded intrinsic 1662internal static IntPtr NextCallReturnAddress() => throw new UnreachableException(); // Unconditionally expanded intrinsic
System.Private.Uri (1)
System\Uri.cs (1)
709_ => throw new UnreachableException()
System.Runtime.Numerics (1)
System\ThrowHelper.cs (1)
39throw new UnreachableException();
System.Security.Cryptography (5)
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (1)
23throw new UnreachableException();
System\Security\Cryptography\LiteHash.OpenSsl.cs (1)
25throw new UnreachableException();
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
59throw new UnreachableException();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
277throw new UnreachableException();
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
145throw new UnreachableException();
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCompiler.cs (1)
6450throw new UnreachableException());
5 references to UnreachableException
Microsoft.AspNetCore.Shared.Tests (1)
Buffers\RefPooledArrayBufferWriterTests.cs (1)
107catch (UnreachableException)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\UnreachableException.cs (3)
12/// Initializes a new instance of the <see cref="UnreachableException"/> class with the default error message. 20/// Initializes a new instance of the <see cref="UnreachableException"/> 30/// Initializes a new instance of the <see cref="UnreachableException"/>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
173[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.UnreachableException))]