230 instantiations of AllowNull
Microsoft.AspNetCore.Mvc.Core (1)
FileResult.cs (1)
37[AllowNull]
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
RemoteAttributeBase.cs (1)
57[AllowNull]
Microsoft.AspNetCore.SignalR.Core (3)
Internal\Utf8HashLookup.cs (3)
58internal bool TryGetValue(ReadOnlySpan<byte> encodedValue, [MaybeNullWhen(false), AllowNull] out string value) 76private bool TryGetValueSlow(ReadOnlySpan<byte> encodedValue, [MaybeNullWhen(false), AllowNull] out string value) 95private bool TryGetValueFromChars(ReadOnlySpan<char> key, [MaybeNullWhen(false), AllowNull] out string value)
Microsoft.JSInterop.WebAssembly (3)
InternalCalls.cs (3)
18public static extern TRes InvokeJS<T0, T1, T2, TRes>(out string exception, ref JSCallInfo callInfo, [AllowNull] T0 arg0, [AllowNull] T1 arg1, [AllowNull] T2 arg2);
System.Data.Common (48)
System\Data\Common\DataColumnMapping.cs (2)
31[AllowNull] 51[AllowNull]
System\Data\Common\DataTableMapping.cs (2)
63[AllowNull] 83[AllowNull]
System\Data\Common\DbCommand.cs (1)
19[AllowNull]
System\Data\Common\DBCommandBuilder.cs (4)
387[AllowNull] 460[AllowNull] 475[AllowNull] 494[AllowNull]
System\Data\Common\DbConnection.cs (1)
27[AllowNull]
System\Data\Common\DbConnectionStringBuilder.cs (2)
77[AllowNull] 135[AllowNull]
System\Data\Common\DbDataSource.cs (1)
276[AllowNull]
System\Data\Common\DbParameter.cs (2)
31[AllowNull] 61[AllowNull]
System\Data\Constraint.cs (1)
29[AllowNull]
System\Data\DataColumn.cs (7)
315[AllowNull] 352[AllowNull] 421[AllowNull] 476[AllowNull] 641[AllowNull] 709[AllowNull] 953[AllowNull]
System\Data\DataError.cs (1)
28[AllowNull]
System\Data\DataRelation.cs (1)
349[AllowNull]
System\Data\DataRow.cs (7)
88[AllowNull] 181[AllowNull] 253[AllowNull] 274[AllowNull] 366[AllowNull] 382[AllowNull] 398[AllowNull]
System\Data\DataRowView.cs (2)
52[AllowNull] 72[AllowNull]
System\Data\DataSet.cs (2)
769[AllowNull] 810[AllowNull]
System\Data\DataTable.cs (5)
1270[AllowNull] 1623[AllowNull] 1765[AllowNull] 1895[AllowNull] 2059[AllowNull]
System\Data\DataView.cs (1)
410[AllowNull]
System\Data\DataViewSetting.cs (2)
55[AllowNull] 83[AllowNull]
System\Data\IDataParameter.cs (2)
13[AllowNull] 15[AllowNull]
System\Data\IDbCommand.cs (1)
12[AllowNull]
System\Data\IDbConnection.cs (1)
10[AllowNull]
System.Diagnostics.Process (6)
System\Diagnostics\ProcessStartInfo.cs (5)
74[AllowNull] 133[AllowNull] 146[AllowNull] 156[AllowNull] 164[AllowNull]
System\Diagnostics\ProcessStartInfo.Unix.cs (1)
23[AllowNull]
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListener.cs (1)
50[AllowNull]
System.DirectoryServices (3)
artifacts\obj\System.DirectoryServices\Debug\net9.0\System.DirectoryServices.notsupported.cs (3)
164[System.Diagnostics.CodeAnalysis.AllowNullAttribute] 214[System.Diagnostics.CodeAnalysis.AllowNullAttribute] 315[System.Diagnostics.CodeAnalysis.AllowNullAttribute]
System.IO.Compression (2)
System\IO\Compression\ZipArchive.cs (1)
220[AllowNull]
System\IO\Compression\ZipArchiveEntry.cs (1)
200[AllowNull]
System.IO.FileSystem.DriveInfo (1)
System\IO\DriveInfo.UnixOrDefault.cs (1)
38[AllowNull]
System.Linq.Parallel (63)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (2)
403internal bool TryDequeue([MaybeNullWhen(false), AllowNull] ref T item) 479internal bool TryDequeue([MaybeNullWhen(false), AllowNull] ref T item, ref bool isDone)
System\Linq\Parallel\Enumerables\EmptyEnumerable.cs (1)
44internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref T currentElement, ref int currentKey)
System\Linq\Parallel\Enumerables\RepeatEnumerable.cs (1)
102internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TResult currentElement, ref int currentKey)
System\Linq\Parallel\Partitioning\OrderedHashRepartitionEnumerator.cs (1)
107internal override bool MoveNext(ref Pair<TInputOutput, THashKey> currentElement, [AllowNull] ref TOrderKey currentKey)
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (5)
258internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref T currentElement, ref int currentKey) 363internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref T currentElement, ref int currentKey) 429internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref T currentElement, ref int currentKey) 534internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref T currentElement, ref int currentKey) 610internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref T currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
259internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TIntermediate currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Binary\ConcatQueryOperator.cs (5)
187internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TSource currentElement, ref ConcatKey<TLeftKey, TRightKey> currentKey) 303private ConcatKey([AllowNull] TLeftKey leftKey, [AllowNull] TRightKey rightKey, bool isLeft) 310internal static ConcatKey<TLeftKey, TRightKey> MakeLeft([AllowNull] TLeftKey leftKey) 315internal static ConcatKey<TLeftKey, TRightKey> MakeRight([AllowNull] TRightKey rightKey)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (3)
169internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, ref int currentKey) 262internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, [AllowNull] ref TLeftKey currentKey)
System\Linq\Parallel\QueryOperators\Binary\HashJoinQueryOperatorEnumerator.cs (2)
93internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TOutput currentElement, [AllowNull] ref TOutputKey currentKey)
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (3)
157internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, ref int currentKey) 261internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, [AllowNull] ref TLeftKey currentKey)
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (2)
215internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, ref int currentKey) 333internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, ref ConcatKey<TLeftKey, TRightKey> currentKey)
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperatorEnumerator.cs (2)
54internal sealed override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TIntermediate currentElement, ref int currentKey) 67protected abstract bool MoveNextCore([MaybeNullWhen(false), AllowNull] ref TIntermediate currentElement);
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (2)
216internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TElement currentElement, ref int currentKey) 251internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TElement currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\QueryOperatorEnumerator.cs (2)
26internal abstract bool MoveNext([MaybeNullWhen(false), AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey);
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (2)
144internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TSource currentElement, [AllowNull] ref TKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (3)
144internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, ref int currentKey) 224internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, [AllowNull] ref TKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
197internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TSource currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (1)
161internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TSource currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
149internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInput currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (4)
256internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref IGrouping<TGroupKey, TElement> currentElement, [AllowNull] ref TOrderKey currentKey) 462internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref IGrouping<TGroupKey, TElement> currentElement, [AllowNull] ref TOrderKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\IndexedSelectQueryOperator.cs (1)
155internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TOutput currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (1)
163internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (1)
157internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TSource currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (2)
127internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TSource currentElement, [AllowNull] ref TKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (2)
273internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TOutput currentElement, ref Pair<int, int> currentKey) 402internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TOutput currentElement, ref Pair<TLeftKey, int> currentKey)
System\Linq\Parallel\QueryOperators\Unary\SelectQueryOperator.cs (2)
114internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TOutput currentElement, [AllowNull] ref TKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
125internal override bool MoveNext([AllowNull] ref TSource currentElement, ref int currentKey)
System\Linq\Parallel\QueryOperators\Unary\SortQueryOperator.cs (2)
193internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, [AllowNull] ref TSortKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (2)
193internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TResult currentElement, [AllowNull] ref TKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (2)
252internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TResult currentElement, [AllowNull] ref TKey currentKey)
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (2)
128internal override bool MoveNext([MaybeNullWhen(false), AllowNull] ref TInputOutput currentElement, [AllowNull] ref TKey currentKey)
System\Linq\Parallel\Utils\HashLookup.cs (1)
49internal bool TryGetValue(TKey key, [MaybeNullWhen(false), AllowNull] ref TValue value)
System.Net.Http (3)
System\Net\Http\HttpResponseMessage.cs (1)
41[AllowNull]
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (2)
51[AllowNull] 197[AllowNull]
System.Net.Mail (4)
System\Net\Mail\Attachment.cs (1)
195[AllowNull]
System\Net\Mail\MailMessage.cs (2)
167[AllowNull] 212[AllowNull]
System\Net\Mime\ContentType.cs (1)
113[AllowNull]
System.Net.Primitives (9)
System\Net\Cookie.cs (5)
120[AllowNull] 171[AllowNull] 254[AllowNull] 570[AllowNull] 651[AllowNull]
System\Net\NetworkCredential.cs (4)
70[AllowNull] 82[AllowNull] 103[AllowNull] 130[AllowNull]
System.Net.Requests (1)
System\Net\GlobalProxySelection.cs (1)
12[AllowNull]
System.Net.WebClient (3)
System\Net\WebClient.cs (3)
152[AllowNull] 188[AllowNull] 195[AllowNull]
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
70[AllowNull]
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (1)
35[AllowNull]
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
1024[AllowNull]
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (1)
62[AllowNull]
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (3)
107[AllowNull] 695[AllowNull] 778[AllowNull]
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\Unsafe.cs (7)
232public static bool AreSame<T>([AllowNull] ref readonly T left, [AllowNull] ref readonly T right) 388public static bool IsAddressGreaterThan<T>([AllowNull] ref readonly T left, [AllowNull] ref readonly T right) 411public static bool IsAddressLessThan<T>([AllowNull] ref readonly T left, [AllowNull] ref readonly T right) 689public static IntPtr ByteOffset<T>([AllowNull] ref readonly T origin, [AllowNull] ref readonly T target)
src\libraries\System.Private.CoreLib\src\System\Threading\LazyInitializer.cs (4)
138public static T EnsureInitialized<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>([AllowNull] ref T target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock) 160private static T EnsureInitializedCore<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>([AllowNull] ref T target, ref bool initialized, [NotNull] ref object? syncLock) 198public static T EnsureInitialized<T>([AllowNull] ref T target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory) 222private static T EnsureInitializedCore<T>([AllowNull] ref T target, ref bool initialized, [NotNull] ref object? syncLock, Func<T> valueFactory)
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
72[AllowNull]
System.Private.DataContractSerialization (1)
System\Xml\XmlBaseWriter.cs (1)
195private void StartAttribute([AllowNull] ref string prefix, string localName, string? ns, XmlDictionaryString? xNs)
System.Private.Uri (7)
System\UriBuilder.cs (7)
107[AllowNull] 139[AllowNull] 150[AllowNull] 161[AllowNull] 190[AllowNull] 203[AllowNull] 219[AllowNull]
System.Private.Xml (48)
System\Xml\Core\XmlParserContext.cs (6)
105[AllowNull] 118[AllowNull] 131[AllowNull] 144[AllowNull] 157[AllowNull] 170[AllowNull]
System\Xml\Dom\XmlAttribute.cs (2)
86[AllowNull] 109[AllowNull]
System\Xml\Dom\XmlCharacterData.cs (1)
38[AllowNull]
System\Xml\Dom\XmlDeclaration.cs (2)
44[AllowNull] 53[AllowNull]
System\Xml\Dom\XmlDocument.cs (1)
1366[AllowNull]
System\Xml\Dom\XmlElement.cs (1)
102[AllowNull]
System\Xml\Dom\XmlNode.cs (1)
831[AllowNull]
System\Xml\Dom\XmlProcessingInstruction.cs (3)
32[AllowNull] 44[AllowNull] 69[AllowNull]
System\Xml\Schema\SchemaAttDef.cs (1)
144[AllowNull]
System\Xml\Schema\SchemaDeclBase.cs (1)
55[AllowNull]
System\Xml\Schema\XmlSchemaAttributeGroupref.cs (1)
15[AllowNull]
System\Xml\Schema\XmlSchemaElement.cs (3)
114[AllowNull] 122[AllowNull] 130[AllowNull]
System\Xml\Schema\XmlSchemaValidator.cs (1)
260[AllowNull]
System\Xml\Serialization\Mappings.cs (3)
54[AllowNull] 446[AllowNull] 453[AllowNull]
System\Xml\Serialization\SoapAttributeAttribute.cs (2)
25[AllowNull] 38[AllowNull]
System\Xml\Serialization\SoapElementAttribute.cs (2)
25[AllowNull] 32[AllowNull]
System\Xml\Serialization\SoapEnumAttribute.cs (1)
23[AllowNull]
System\Xml\Serialization\SoapSchemamember.cs (1)
21[AllowNull]
System\Xml\Serialization\SoapTypeAttribute.cs (1)
37[AllowNull]
System\Xml\Serialization\XmlAnyElementAttribute.cs (1)
49[AllowNull]
System\Xml\Serialization\XmlArrayAttribute.cs (1)
40[AllowNull]
System\Xml\Serialization\XmlArrayItemAttribute.cs (2)
69[AllowNull] 94[AllowNull]
System\Xml\Serialization\XmlAttributeAttribute.cs (2)
66[AllowNull] 85[AllowNull]
System\Xml\Serialization\XmlChoiceIdentifierAttribute.cs (1)
38[AllowNull]
System\Xml\Serialization\XmlElementAttribute.cs (2)
69[AllowNull] 88[AllowNull]
System\Xml\Serialization\XmlRootAttribute.cs (1)
63[AllowNull]
System\Xml\Serialization\XmlTextAttribute.cs (1)
45[AllowNull]
System\Xml\Serialization\XmlTypeAttribute.cs (1)
56[AllowNull]
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (2)
37[AllowNull] 147private void AddRecord(ScopeFlags flag, string? ncName, string? uri, [AllowNull] V value)
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509ChainStatus.cs (1)
14[AllowNull]
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (1)
73[AllowNull]
System.Transactions.Local (1)
System\Transactions\Transaction.cs (1)
1166[AllowNull]
3 references to AllowNull
mscorlib (1)
mscorlib.cs (1)
59[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.AllowNullAttribute))]
netstandard (1)
netstandard.cs (1)
619[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.AllowNullAttribute))]
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net9.0\System.Runtime.Forwards.cs (1)
126[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.AllowNullAttribute))]