117 instantiations of DisallowNull
Aspire.Dashboard (2)
Otlp\Model\OtlpApplication.cs (1)
334public int GetHashCode([DisallowNull] KeyValuePair<string, string>[] obj)
Otlp\Model\OtlpInstrument.cs (1)
131public int GetHashCode([DisallowNull] ReadOnlyMemory<KeyValuePair<string, string>> obj)
BuildActionTelemetryTable (1)
Program.cs (1)
693public int GetHashCode([DisallowNull] Type obj)
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Microsoft.AspNetCore.Components (1)
Routing\QueryParameterNameComparer.cs (1)
18public int GetHashCode([DisallowNull] ReadOnlyMemory<char> obj)
Microsoft.AspNetCore.Components.Web (8)
Forms\InputCheckbox.cs (1)
29[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputDate.cs (1)
48[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputFile.cs (1)
40[DisallowNull]
Forms\InputNumber.cs (1)
49[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputRadio.cs (1)
44[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputSelect.cs (1)
36[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputText.cs (1)
29[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputTextArea.cs (1)
29[DisallowNull] public ElementReference? Element { get; protected set; }
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
112 [DisallowNull]
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Microsoft.AspNetCore.Mvc.Core (4)
Infrastructure\ActionContextAccessor.cs (1)
20[DisallowNull]
Infrastructure\IActionContextAccessor.cs (1)
18[DisallowNull]
ModelBinding\Metadata\BindingMetadata.cs (1)
84[DisallowNull]
Routing\HttpMethodAttribute.cs (1)
66[DisallowNull]
Microsoft.AspNetCore.RateLimiting (1)
DefaultKeyTypeEqualityComparer.cs (1)
26public int GetHashCode([DisallowNull] DefaultKeyType obj)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Microsoft.CodeAnalysis (10)
Compilation\Compilation.cs (1)
1864internal bool FilterAndAppendAndFreeDiagnostics(DiagnosticBag accumulator, [DisallowNull] ref DiagnosticBag? incoming, CancellationToken cancellationToken)
Operations\ControlFlowGraphBuilder.cs (4)
398void dispatchException([DisallowNull] ControlFlowRegion? fromRegion) 1014RegionBuilder? tryGetImplicitEntryRegion(BasicBlockBuilder block, [DisallowNull] RegionBuilder? currentRegion) 1148void collectAncestorsAndSelf([DisallowNull] RegionBuilder? from, [NotNull] ref ArrayBuilder<RegionBuilder>? builder) 5539void handleCase(ICaseClauseOperation caseClause, BasicBlockBuilder body, [DisallowNull] BasicBlockBuilder? nextCase)
Operations\OperationMapBuilder.cs (1)
35public override object? VisitBinaryOperator([DisallowNull] IBinaryOperation? operation, Dictionary<SyntaxNode, IOperation> argument)
SourceGeneration\UserFunction.cs (1)
47public int GetHashCode([DisallowNull] T obj)
Symbols\Attributes\CommonMethodEarlyWellKnownAttributeData.cs (1)
80[DisallowNull]
Symbols\Attributes\CommonPropertyEarlyWellKnownAttributeData.cs (2)
17[DisallowNull] 42[DisallowNull]
Microsoft.CodeAnalysis.CSharp (2)
BoundTree\UnboundLambda.cs (1)
1442public int GetHashCode([DisallowNull] (NamedTypeSymbol Type, bool IsExpressionTree) obj)
Symbols\MethodSymbol.cs (1)
1055static bool isGenericMethod([DisallowNull] MethodSymbol? method)
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\ProjectToLoad.cs (1)
23public int GetHashCode([DisallowNull] ProjectToLoad obj)
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestEqualityComparer.cs (1)
18public int GetHashCode([DisallowNull] T obj)
SourceGeneration\LambdaComparer.cs (1)
24public int GetHashCode([DisallowNull] T obj) => _hashCode.HasValue ? _hashCode.Value : EqualityComparer<T>.Default.GetHashCode(obj);
Microsoft.DotNet.XUnitAssert.Tests (1)
EqualityAssertsTests.cs (1)
1067 public int GetHashCode([DisallowNull] IEnumerable obj) =>
Microsoft.Extensions.Configuration (2)
ChainedConfigurationSource.cs (1)
16[DisallowNull]
StreamConfigurationSource.cs (1)
17[DisallowNull]
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
24[DisallowNull]
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\CallSiteFactory.cs (2)
716[DisallowNull] 719[DisallowNull]
ServiceLookup\CallSiteValidator.cs (1)
116[DisallowNull]
Microsoft.Extensions.FileProviders.Physical (2)
PollingFileChangeToken.cs (1)
61[DisallowNull]
PollingWildCardChangeToken.cs (1)
69[DisallowNull]
Microsoft.Extensions.Http (2)
DefaultHttpMessageHandlerBuilder.cs (1)
24[DisallowNull]
HttpMessageHandlerBuilder.cs (1)
30[DisallowNull]
Microsoft.Extensions.Http.Resilience (1)
Internal\HttpKey.cs (1)
18public int GetHashCode([DisallowNull] HttpKey obj) => StringComparer.Ordinal.GetHashCode(obj.Name);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\Schema\ColumnAttribute.cs (1)
57[DisallowNull]
System\ComponentModel\DataAnnotations\Schema\TableAttribute.cs (1)
35[DisallowNull]
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
149[DisallowNull]
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
126[DisallowNull]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\TypeDescriptor.cs (1)
2581[DisallowNull]
System.Data.Common (3)
System\Data\DataViewManager.cs (1)
44[DisallowNull]
System\Data\DataViewSettingCollection.cs (1)
89[DisallowNull]
System\Data\DBConcurrencyException.cs (1)
47[DisallowNull]
System.DirectoryServices (2)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (2)
518[System.Diagnostics.CodeAnalysis.DisallowNullAttribute] 770[System.Diagnostics.CodeAnalysis.DisallowNullAttribute]
System.Net.Http (2)
System\Net\Http\DelegatingHandler.cs (1)
19[DisallowNull]
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
65[DisallowNull]
System.Net.HttpListener (1)
System\Net\HttpListener.cs (1)
57[DisallowNull]
System.Net.Mail (5)
System\Net\Mail\MailMessage.cs (2)
67[DisallowNull] 81[DisallowNull]
System\Net\Mail\MailPriority.cs (2)
79[DisallowNull] 225[DisallowNull]
System\Net\Mail\SmtpClient.cs (1)
153[DisallowNull]
System.Net.Requests (3)
System\Net\FtpWebRequest.cs (2)
290[DisallowNull] 313[DisallowNull]
System\Net\WebRequest.cs (1)
451[DisallowNull]
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (1)
582[DisallowNull]
System\Net\Sockets\TCPClient.cs (1)
350[DisallowNull]
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (5)
38public abstract int GetHashCode([DisallowNull] T obj); 100public override int GetHashCode([DisallowNull] T obj) => 132public override int GetHashCode([DisallowNull] T obj) => 201public override int GetHashCode([DisallowNull] T obj) => 300public override int GetHashCode([DisallowNull] string obj) => obj?.GetHashCode() ?? 0;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IEqualityComparer.cs (1)
14int GetHashCode([DisallowNull] T obj);
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
221public int GetHashCode([DisallowNull] T obj)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (1)
25public int GetHashCode([DisallowNull] string? key)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
545public static void StructureToPtr<T>([DisallowNull] T structure, IntPtr ptr, bool fDeleteOld) 594public static void PtrToStructure<T>(IntPtr ptr, [DisallowNull] T structure)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.NoCom.cs (1)
88public static IntPtr GetComInterfaceForObject<T, TInterface>([DisallowNull] T o)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
256public static ComVariant Create<T>([DisallowNull] T value)
System.Private.DataContractSerialization (1)
System\Xml\XmlBaseWriter.cs (1)
2484[DisallowNull]
System.Private.Windows.Core (1)
System\Collections\Specialized\CompatibleIComparer.cs (1)
15public int GetHashCode([DisallowNull] string obj)
System.Private.Windows.Core.TestUtilities (1)
XUnit\FloatingPointToleranceComparerer.cs (1)
21public int GetHashCode([DisallowNull] T obj) => obj.GetHashCode();
System.Private.Xml (6)
System\Xml\Schema\BaseValidator.cs (1)
129[DisallowNull]
System\Xml\Schema\XmlSchemaDocumentation.cs (1)
26[DisallowNull]
System\Xml\Schema\XmlSchemaValidator.cs (1)
280[DisallowNull]
System\Xml\Serialization\CodeGenerator.cs (1)
1565[DisallowNull]
System\Xml\Serialization\Mappings.cs (1)
481[DisallowNull]
System\Xml\Xsl\QIL\QilReference.cs (1)
42[DisallowNull]
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (1)
25public int GetHashCode([DisallowNull] string? key)
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\CipherData.cs (2)
36[DisallowNull] 52[DisallowNull]
System\Security\Cryptography\Xml\EncryptionProperty.cs (1)
43[DisallowNull]
System.Text.Json (4)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
66public override void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\JsonPrimitiveConverter.cs (1)
16public sealed override void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options)
System\Text\Json\Serialization\JsonConverterOfT.cs (2)
624public virtual void WriteAsPropertyName(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options) 636internal virtual void WriteAsPropertyNameCore(Utf8JsonWriter writer, [DisallowNull] T value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.cs (2)
181[CLSCompliant(false), DisallowNull] 196[CLSCompliant(false), DisallowNull]
System.Transactions.Local (1)
System\Transactions\TransactionManager.cs (1)
106[DisallowNull]
System.Windows.Forms (5)
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
352[DisallowNull]
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1140[DisallowNull]
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
533[DisallowNull]
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
478[DisallowNull]
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
937[DisallowNull]
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
45[DisallowNull]
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
70[DisallowNull]
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
21[DisallowNull]
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
xunit.assert (1)
Sdk\AssertHelper.cs (1)
764 public int GetHashCode([DisallowNull] object obj) =>
6 references to DisallowNull
mscorlib (1)
mscorlib.cs (1)
60[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DisallowNullAttribute))]
netstandard (1)
netstandard.cs (1)
620[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DisallowNullAttribute))]
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
132[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.DisallowNullAttribute))]
System.Text.Json (3)
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
797/// <see cref="AllowNullAttribute"/> and <see cref="DisallowNullAttribute"/>.
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (1)
68/// from attributes such as <see cref="AllowNullAttribute"/> or <see cref="DisallowNullAttribute"/>.
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
277/// from attributes such as <see cref="AllowNullAttribute"/> or <see cref="DisallowNullAttribute"/>.