71 references to NullReferenceException
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (2)
1207throw new NullReferenceException(); 1217throw new NullReferenceException();
InMemory.FunctionalTests (1)
Http3\WebTransport\WebTransportTestUtilities.cs (1)
130throw new NullReferenceException();
Metrics (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Metrics.Legacy (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1271throw new NullReferenceException(); 1276throw new NullReferenceException();
Microsoft.CodeAnalysis.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1271throw new NullReferenceException(); 1276throw new NullReferenceException();
Microsoft.CodeAnalysis.Collections.Package (2)
Extensions\ImmutableArrayExtensions.cs (2)
1271throw new NullReferenceException(); 1276throw new NullReferenceException();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (1)
429var expectedMessage = new NullReferenceException().Message;
Microsoft.CodeAnalysis.EditorFeatures (6)
Lightup\LightupHelpers.cs (6)
514throw new NullReferenceException(); 531throw new NullReferenceException(); 546throw new NullReferenceException(); 561throw new NullReferenceException(); 578throw new NullReferenceException(); 595throw new NullReferenceException();
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1271throw new NullReferenceException(); 1276throw new NullReferenceException();
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Microsoft.CodeAnalysis.Threading.Package (2)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1271throw new NullReferenceException(); 1276throw new NullReferenceException();
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1271throw new NullReferenceException(); 1276throw new NullReferenceException();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1271throw new NullReferenceException(); 1276throw new NullReferenceException();
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
1154throw new NullReferenceException();
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\CompilerServices\VB6BinaryFile.vb (1)
196Dim JustNeedTheMessage As New NullReferenceException ' We don't have access to the localized resources for this string.
Microsoft\VisualBasic\CompilerServices\VB6File.vb (3)
1359Throw New NullReferenceException 1664Throw New NullReferenceException 2713Dim JustNeedTheMessage As New NullReferenceException ' We don't have access to the localized resources for this string.
PresentationCore (2)
System\Windows\Media\ColorContext.cs (1)
215throw new NullReferenceException();
System\Windows\Media\ImageSourceConverter.cs (1)
146throw new NullReferenceException();
PresentationFramework (1)
System\Windows\Controls\Primitives\Popup.cs (1)
1868Exception nre = new NullReferenceException();
Roslyn.Diagnostics.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
349throw new NullReferenceException();
System.Private.CoreLib (4)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
326ExceptionIDs.NullReference => new NullReferenceException(),
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
18throw new NullReferenceException();
src\System\RuntimeHandles.cs (2)
1708throw new NullReferenceException(); 1721throw new NullReferenceException();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Assignability.cs (1)
14throw new NullReferenceException();
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
28throw new NullReferenceException(); //Desktop compat: this is the wrong exception to throw but it is the compatible one.
System.Windows.Forms.Tests (2)
System\Windows\Forms\BindingTests.cs (2)
377yield return new object[] { null, new NullReferenceException() }; 378yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success, BindingCompleteContext.ControlUpdate), new NullReferenceException() };
Test.Utilities (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();
Text.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
87throw new NullReferenceException(); 141throw new NullReferenceException(); 187throw new NullReferenceException();