13 references to NullReferenceException
ErrorPageMiddlewareWebSite (1)
AggregateExceptionController.cs (1)
22throw new NullReferenceException("Foo cannot be null");
Microsoft.Build.Tasks.Core (1)
SystemState.cs (1)
263throw new NullReferenceException(nameof(instanceLocalFileStateCache));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
758throw outOfMemory ? new OutOfMemoryException() : new NullReferenceException("NullRef!");
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests..cs (1)
80var ex = new InvalidOperationException("hello", new NullReferenceException("bye"));
Microsoft.Maui (1)
SemanticExtensions.cs (1)
27 throw new NullReferenceException("Can't access view from a null handler");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
280Return New NullReferenceException(Description)
PresentationCore (1)
System\Windows\Media\VisualTreeHelper.cs (1)
106throw new NullReferenceException("dpiInfo cannot be null");
PresentationFramework (1)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
111throw new NullReferenceException(SR.FilterNullGetTextBufferPointer);
PresentationUI (1)
MS\Internal\Documents\RightsManagementProvider.cs (1)
749throw new NullReferenceException("template");
ReachFramework (2)
Packaging\XpsDocument.cs (2)
473throw new NullReferenceException("signature.PackageSignature"); 477throw new NullReferenceException("signature.PackageSignature.SignaturePart");
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (1)
318throw new NullReferenceException(SR.NullReference_InvokeNullRefReturned);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
416throw new NullReferenceException(SR.Arg_NullArgumentNullRef);