438 references to NotNullIfNotNull
Aspire.Dashboard (4)
Extensions\StringExtensions.cs (1)
41[return: NotNullIfNotNull(nameof(defaultValue))]
src\Shared\IConfigurationExtensions.cs (3)
63[return: NotNullIfNotNull(nameof(defaultValue))] 93[return: NotNullIfNotNull(nameof(defaultValue))] 133[return: NotNullIfNotNull(nameof(defaultValue))]
Aspire.Hosting (4)
Publishing\ManifestPublishingContext.cs (1)
53[return: NotNullIfNotNull(nameof(path))]
src\Shared\IConfigurationExtensions.cs (3)
63[return: NotNullIfNotNull(nameof(defaultValue))] 93[return: NotNullIfNotNull(nameof(defaultValue))] 133[return: NotNullIfNotNull(nameof(defaultValue))]
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
61[return: NotNullIfNotNull(nameof(path))]
InMemory.FunctionalTests (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.AspNetCore.Authorization.Policy (1)
src\Http\Routing\src\DataSourceDependentCache.cs (1)
43[NotNullIfNotNull(nameof(_value))]
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.AspNetCore.Hosting (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
13[return: NotNullIfNotNull("contentPath")]
Microsoft.AspNetCore.Mvc.Abstractions (2)
IUrlHelper.cs (1)
47[return: NotNullIfNotNull("contentPath")]
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\ModelBindingHelper.cs (1)
595[return: NotNullIfNotNull("value")]
Routing\UrlHelperBase.cs (2)
50[return: NotNullIfNotNull("contentPath")] 295[return: NotNullIfNotNull("contentPath")]
src\Http\Routing\src\DataSourceDependentCache.cs (1)
43[NotNullIfNotNull(nameof(_value))]
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
13[return: NotNullIfNotNull("contentPath")]
Microsoft.AspNetCore.OpenApi (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.AspNetCore.Routing (1)
DataSourceDependentCache.cs (1)
43[NotNullIfNotNull(nameof(_value))]
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
37[return: NotNullIfNotNull("item")]
Microsoft.CodeAnalysis (34)
CaseInsensitiveComparison.cs (1)
369[return: NotNullIfNotNull(parameterName: nameof(value))]
Collections\ArrayElement.cs (2)
31[return: NotNullIfNotNull(parameterName: nameof(items))] 48[return: NotNullIfNotNull(parameterName: nameof(items))]
Collections\HashSetExtensions.cs (1)
18internal static bool InitializeAndAdd<T>([NotNullIfNotNull(parameterName: nameof(item)), NotNullWhen(returnValue: true)] ref HashSet<T>? hashSet, [NotNullWhen(returnValue: true)] T? item)
CommandLine\CommandLineParser.cs (2)
317[return: NotNullIfNotNull(nameof(path))] 896[return: NotNullIfNotNull(parameterName: nameof(arg))]
CommandLine\CommonCompiler.cs (1)
166[return: NotNullIfNotNull(nameof(hash))]
Compilation\Compilation.cs (1)
900[return: NotNullIfNotNull(nameof(symbol))]
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
56[return: NotNullIfNotNull(nameof(typeReference))]
FileSystem\PathUtilities.cs (6)
114[return: NotNullIfNotNull(parameterName: nameof(path))] 127[return: NotNullIfNotNull(nameof(path))] 133[return: NotNullIfNotNull(nameof(path))] 185[return: NotNullIfNotNull(parameterName: nameof(path))] 191[return: NotNullIfNotNull(parameterName: nameof(path))] 461[return: NotNullIfNotNull(nameof(path))]
Generated\Operations.Generated.cs (1)
10791[return: NotNullIfNotNull("node")]
InternalUtilities\FileNameUtilities.cs (4)
82[return: NotNullIfNotNull(parameterName: nameof(path))] 107[return: NotNullIfNotNull(parameterName: nameof(path))] 140[return: NotNullIfNotNull(parameterName: nameof(path))] 189[return: NotNullIfNotNull(parameterName: nameof(path))]
InternalUtilities\InterlockedOperations.cs (1)
137[return: NotNullIfNotNull(parameterName: nameof(initializedValue))]
InternalUtilities\RoslynLazyInitializer.cs (2)
22public static T EnsureInitialized<T>([NotNull] ref T? target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock) 26public static T EnsureInitialized<T>([NotNull] ref T? target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory)
InternalUtilities\StringExtensions.cs (3)
60[return: NotNullIfNotNull(parameterName: nameof(shortName))] 68[return: NotNullIfNotNull(parameterName: nameof(shortName))] 76[return: NotNullIfNotNull(parameterName: nameof(shortName))]
Operations\ControlFlowGraphBuilder.cs (3)
1400[return: NotNullIfNotNull(nameof(result))] 7861[return: NotNullIfNotNull(nameof(operation))] 7871[return: NotNullIfNotNull(nameof(operation))]
Operations\Operation.cs (1)
147[return: NotNullIfNotNull(nameof(operation))]
Operations\OperationCloner.cs (1)
13[return: NotNullIfNotNull(nameof(operation))]
Symbols\ITypeSymbol.cs (1)
249[return: NotNullIfNotNull(parameterName: nameof(type))]
Syntax\SyntaxNode.cs (1)
1361[return: NotNullIfNotNull(nameof(node))]
Syntax\SyntaxNodeExtensions.cs (1)
433[return: NotNullIfNotNull(nameof(node))]
Microsoft.CodeAnalysis.CSharp (63)
BoundTree\BoundTreeRewriter.cs (2)
15[return: NotNullIfNotNull(nameof(type))] 78[return: NotNullIfNotNull(nameof(node))]
BoundTree\UnboundLambda.cs (1)
1207[return: NotNullIfNotNull(nameof(lambda))] BoundLambda? rebind(BoundLambda? lambda)
Lowering\Instrumentation\Instrumenter.cs (1)
142[return: NotNullIfNotNull(nameof(collectionVarDecl))]
Lowering\LocalRewriter\LocalRewriter.cs (1)
220[return: NotNullIfNotNull(nameof(node))]
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
654[NotNullIfNotNull(nameof(rewrittenReceiver))] ref BoundExpression? rewrittenReceiver,
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
1275private void InstrumentForEachStatementCollectionVarDeclaration(BoundNode node, [NotNullIfNotNull(nameof(collectionVarDecl))] ref BoundStatement? collectionVarDecl)
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
241[return: NotNullIfNotNull(nameof(initializerExpressionOpt))]
Lowering\MethodToClassRewriter.cs (3)
209[return: NotNullIfNotNull(nameof(type))] 615[return: NotNullIfNotNull(nameof(method))] 653[return: NotNullIfNotNull(nameof(property))]
Lowering\SyntheticBoundNodeFactory.cs (2)
506[return: NotNullIfNotNull(nameof(first)), NotNullIfNotNull(nameof(second))]
Operations\CSharpOperationFactory.cs (1)
27[return: NotNullIfNotNull(nameof(boundNode))]
Operations\CSharpOperationFactory_Methods.cs (1)
92[return: NotNullIfNotNull(nameof(boundLocal))]
Parser\LanguageParser.cs (2)
411[NotNullIfNotNull(nameof(openBraceOrSemicolon))] ref SyntaxToken? openBraceOrSemicolon, 563[NotNullIfNotNull(nameof(openBraceOrSemicolon))] ref SyntaxToken? openBraceOrSemicolon,
Symbols\Source\SourceCustomEventSymbol.cs (1)
232[return: NotNullIfNotNull(parameterName: nameof(syntaxOpt))]
Symbols\SymbolExtensions.cs (40)
383[return: NotNullIfNotNull(nameof(symbol))] 401[return: NotNullIfNotNull(nameof(symbol))] 407[return: NotNullIfNotNull(nameof(symbol))] 413[return: NotNullIfNotNull(nameof(symbol))] 419[return: NotNullIfNotNull(nameof(symbol))] 425[return: NotNullIfNotNull(nameof(symbol))] 431[return: NotNullIfNotNull(nameof(symbol))] 437[return: NotNullIfNotNull(nameof(symbol))] 555[return: NotNullIfNotNull(nameof(symbol))] 562[return: NotNullIfNotNull(nameof(symbol))] 568[return: NotNullIfNotNull(nameof(symbol))] 574[return: NotNullIfNotNull(nameof(symbol))] 580[return: NotNullIfNotNull(nameof(symbol))] 586[return: NotNullIfNotNull(nameof(symbol))] 592[return: NotNullIfNotNull(nameof(symbol))] 598[return: NotNullIfNotNull(nameof(symbol))] 604[return: NotNullIfNotNull(nameof(symbol))] 610[return: NotNullIfNotNull(nameof(symbol))] 616[return: NotNullIfNotNull(nameof(symbol))] 622[return: NotNullIfNotNull(nameof(symbol))] 628[return: NotNullIfNotNull(nameof(symbol))] 634[return: NotNullIfNotNull(nameof(symbol))] 640[return: NotNullIfNotNull(nameof(symbol))] 646[return: NotNullIfNotNull(nameof(symbol))] 652[return: NotNullIfNotNull(nameof(symbol))] 658[return: NotNullIfNotNull(nameof(symbol))] 664[return: NotNullIfNotNull(nameof(symbol))] 670[return: NotNullIfNotNull(nameof(symbol))] 676[return: NotNullIfNotNull(nameof(symbol))] 682[return: NotNullIfNotNull(nameof(symbol))] 764[return: NotNullIfNotNull(nameof(symbol))] 771[return: NotNullIfNotNull(nameof(symbol))] 777[return: NotNullIfNotNull(nameof(symbol))] 783[return: NotNullIfNotNull(nameof(symbol))] 789[return: NotNullIfNotNull(nameof(symbol))] 795[return: NotNullIfNotNull(nameof(symbol))] 801[return: NotNullIfNotNull(nameof(symbol))] 807[return: NotNullIfNotNull(nameof(symbol))] 813[return: NotNullIfNotNull(nameof(symbol))] 819[return: NotNullIfNotNull(nameof(symbol))]
Syntax\CSharpSyntaxRewriter.cs (1)
33[return: NotNullIfNotNull(nameof(node))]
Syntax\SyntaxNodeRemover.cs (1)
164[return: NotNullIfNotNull(nameof(node))]
Syntax\SyntaxReplacer.cs (3)
179[return: NotNullIfNotNull(nameof(node))] 327[return: NotNullIfNotNull(nameof(node))] 383[return: NotNullIfNotNull(nameof(node))]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (17)
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (1)
369[return: NotNullIfNotNull(parameterName: nameof(value))]
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (6)
114[return: NotNullIfNotNull(parameterName: nameof(path))] 127[return: NotNullIfNotNull(nameof(path))] 133[return: NotNullIfNotNull(nameof(path))] 185[return: NotNullIfNotNull(parameterName: nameof(path))] 191[return: NotNullIfNotNull(parameterName: nameof(path))] 461[return: NotNullIfNotNull(nameof(path))]
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (4)
82[return: NotNullIfNotNull(parameterName: nameof(path))] 107[return: NotNullIfNotNull(parameterName: nameof(path))] 140[return: NotNullIfNotNull(parameterName: nameof(path))] 189[return: NotNullIfNotNull(parameterName: nameof(path))]
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (1)
137[return: NotNullIfNotNull(parameterName: nameof(initializedValue))]
src\Compilers\Core\Portable\InternalUtilities\RoslynLazyInitializer.cs (2)
22public static T EnsureInitialized<T>([NotNull] ref T? target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock) 26public static T EnsureInitialized<T>([NotNull] ref T? target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (3)
60[return: NotNullIfNotNull(parameterName: nameof(shortName))] 68[return: NotNullIfNotNull(parameterName: nameof(shortName))] 76[return: NotNullIfNotNull(parameterName: nameof(shortName))]
Microsoft.Extensions.Configuration.Abstractions (1)
ConfigurationPath.cs (1)
49[return: NotNullIfNotNull(nameof(path))]
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
170[return: NotNullIfNotNull(nameof(defaultValue))] 202[return: NotNullIfNotNull(nameof(defaultValue))]
Microsoft.Extensions.DependencyInjection (3)
DependencyInjectionEventSource.cs (1)
319[return: NotNullIfNotNull(nameof(e))]
ServiceLookup\ServiceProviderEngineScope.cs (1)
77[return: NotNullIfNotNull(nameof(service))]
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
35[return: NotNullIfNotNull(nameof(item))]
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
853[return: NotNullIfNotNull(nameof(s))]
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
35[return: NotNullIfNotNull(nameof(item))]
Microsoft.Extensions.Http (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
35[return: NotNullIfNotNull(nameof(item))]
Microsoft.Extensions.Localization.Abstractions (1)
LocalizedString.cs (1)
58[return: NotNullIfNotNull("localizedString")]
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
35[return: NotNullIfNotNull(nameof(item))]
Microsoft.Net.Http.Headers (1)
ContentRangeHeaderValue.cs (1)
120[NotNullIfNotNull(nameof(Length))]
Microsoft.Win32.Registry (2)
artifacts\obj\Microsoft.Win32.Registry\Debug\net10.0\Microsoft.Win32.Registry.notsupported.cs (2)
60[return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("defaultValue")] 62[return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("defaultValue")]
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\Primitives\SerializableCompositionElement.cs (1)
30[return: NotNullIfNotNull(nameof(element))]
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
91[return: NotNullIfNotNull(nameof(types))]
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
241[return: NotNullIfNotNull(nameof(parameters))]
System.ComponentModel.TypeConverter (3)
System\ComponentModel\ArrayConverter.cs (1)
32[return: NotNullIfNotNull(nameof(value))]
System\ComponentModel\TypeDescriptor.cs (2)
2777[return: NotNullIfNotNull(nameof(instance))] 3060[return: NotNullIfNotNull(nameof(instance))]
System.Data.Common (1)
System\Data\Common\DBCommandBuilder.cs (1)
1367[return: NotNullIfNotNull(nameof(column))]
System.Formats.Tar (2)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
218[return: NotNullIfNotNull(nameof(path))]
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
38[return: NotNullIfNotNull(nameof(path))]
System.IO.FileSystem.Watcher (2)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
218[return: NotNullIfNotNull(nameof(path))]
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
38[return: NotNullIfNotNull(nameof(path))]
System.Linq.Expressions (5)
System\Linq\Expressions\Compiler\VariableBinder.cs (1)
36[return: NotNullIfNotNull(nameof(node))]
System\Linq\Expressions\ExpressionVisitor.cs (3)
34[return: NotNullIfNotNull(nameof(node))] 129[return: NotNullIfNotNull(nameof(node))] 320[return: NotNullIfNotNull(nameof(node))]
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (1)
25[return: NotNullIfNotNull(nameof(expression))]
System.Net.Http (1)
System\Net\Http\Headers\HttpHeaders.cs (1)
658[return: NotNullIfNotNull(nameof(source))]
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
161[return: NotNullIfNotNull(nameof(inputServiceName))]
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
1176[return: NotNullIfNotNull(nameof(str))]
System.Private.CoreLib (47)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
218[return: NotNullIfNotNull(nameof(path))]
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (1)
38[return: NotNullIfNotNull(nameof(path))]
src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
122[return: NotNullIfNotNull(nameof(value))] 128[return: NotNullIfNotNull(nameof(value))] 222[return: NotNullIfNotNull(nameof(value))] 228[return: NotNullIfNotNull(nameof(value))] 2032[return: NotNullIfNotNull(nameof(value))] 2038[return: NotNullIfNotNull(nameof(value))]
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (2)
16[return: NotNullIfNotNull(nameof(a))] 17[return: NotNullIfNotNull(nameof(b))]
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (2)
202[return: NotNullIfNotNull(nameof(str))] 268[return: NotNullIfNotNull(nameof(array))]
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (4)
41[return: NotNullIfNotNull(nameof(path))] 180[return: NotNullIfNotNull(nameof(path))] 220[return: NotNullIfNotNull(nameof(path))] 250[return: NotNullIfNotNull(nameof(path))]
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (8)
21[return: NotNullIfNotNull(nameof(value))] 154[return: NotNullIfNotNull(nameof(value))] 303[return: NotNullIfNotNull(nameof(value))] 375[return: NotNullIfNotNull(nameof(value))] 446[return: NotNullIfNotNull(nameof(value))] 509[return: NotNullIfNotNull(nameof(bytes))] 557[return: NotNullIfNotNull(nameof(encodedValue))] 563[return: NotNullIfNotNull(nameof(encodedValue))]
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\Unsafe.cs (1)
63[return: NotNullIfNotNull(nameof(o))]
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.NoCom.cs (1)
49[return: NotNullIfNotNull(nameof(o))]
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
904[return: NotNullIfNotNull(nameof(value))]
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
321[return: NotNullIfNotNull(nameof(str))]
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (3)
241[return: NotNullIfNotNull(nameof(location1))] 243public static unsafe T Exchange<T>([NotNullIfNotNull(nameof(value))] ref T location1, T value) 494[return: NotNullIfNotNull(nameof(location1))]
src\libraries\System.Private.CoreLib\src\System\Threading\LazyInitializer.cs (3)
133public static T EnsureInitialized<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>([AllowNull] ref T target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock) 193public static T EnsureInitialized<T>([AllowNull] ref T target, ref bool initialized, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory) 242public static T EnsureInitialized<T>([NotNull] ref T? target, [NotNullIfNotNull(nameof(syncLock))] ref object? syncLock, Func<T> valueFactory) where T : class =>
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (3)
565[return: NotNullIfNotNull(nameof(address))] 566public static object? VolatileRead([NotNullIfNotNull(nameof(address))] ref object? address) => Volatile.Read(ref address); 610public static void VolatileWrite([NotNullIfNotNull(nameof(value))] ref object? address, object? value) => Volatile.Write(ref address, value);
src\libraries\System.Private.CoreLib\src\System\Threading\Volatile.cs (3)
220[return: NotNullIfNotNull(nameof(location))] 221public static T Read<T>([NotNullIfNotNull(nameof(location))] ref readonly T location) where T : class? => 226public static void Write<T>([NotNullIfNotNull(nameof(value))] ref T location, T value) where T : class? =>
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
139[return: NotNullIfNotNull(nameof(obj))]
src\System\Threading\Interlocked.CoreCLR.cs (6)
94[return: NotNullIfNotNull(nameof(location1))] 95public static object? Exchange([NotNullIfNotNull(nameof(value))] ref object? location1, object? value) 102[return: NotNullIfNotNull(nameof(location1))] 104private static extern object? ExchangeObject([NotNullIfNotNull(nameof(value))] ref object? location1, object? value); 160[return: NotNullIfNotNull(nameof(location1))] 169[return: NotNullIfNotNull(nameof(location1))]
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\DataContract.cs (1)
2048internal static void CheckAndAdd(Type type, Dictionary<Type, Type> typesChecked, [NotNullIfNotNull(nameof(nameToDataContractTable))] ref DataContractDictionary? nameToDataContractTable)
System\Runtime\Serialization\DataContractSerializer.cs (1)
523[return: NotNullIfNotNull(nameof(oldObj))]
System\Runtime\Serialization\DataContractSurrogateCaller.cs (2)
23[return: NotNullIfNotNull(nameof(obj))] 35[return: NotNullIfNotNull(nameof(obj))]
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
383[return: NotNullIfNotNull(nameof(xmlName))]
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
1553[return: NotNullIfNotNull(nameof(val))]
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
353[return: NotNullIfNotNull(nameof(oldItemContract))]
System\Runtime\Serialization\SchemaImporter.cs (1)
46internal void Import([NotNullIfNotNull(nameof(_elements))] out List<XmlQualifiedName>? elementTypeNames)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
473[return: NotNullIfNotNull(nameof(str))]
System\Xml\XmlDictionaryString.cs (1)
36[return: NotNullIfNotNull(nameof(s))]
System.Private.Xml (68)
System\Xml\Core\XmlCharCheckingWriter.cs (1)
364[return: NotNullIfNotNull(nameof(str))]
System\Xml\Core\XmlTextReaderImpl.cs (1)
9738static partial void ConvertAbsoluteUnixPathToAbsoluteUri([NotNullIfNotNull(nameof(url))] ref string? url, XmlResolver? resolver);
System\Xml\Core\XmlTextReaderImpl.Unix.cs (1)
10static partial void ConvertAbsoluteUnixPathToAbsoluteUri([NotNullIfNotNull(nameof(url))] ref string? url, XmlResolver? resolver)
System\Xml\Dom\XmlAttributeCollection.cs (1)
114[return: NotNullIfNotNull(nameof(node))]
System\Xml\Dom\XmlElement.cs (1)
349[return: NotNullIfNotNull(nameof(value))]
System\Xml\Schema\Asttree.cs (1)
431[return: NotNullIfNotNull(nameof(axis))]
System\Xml\Schema\SchemaSetCompiler.cs (1)
1454[return: NotNullIfNotNull(nameof(particle))]
System\Xml\Schema\XmlSchemaAttribute.cs (1)
116[return: NotNullIfNotNull(nameof(schemaSet))]
System\Xml\Schema\XmlSchemaComplexType.cs (1)
455[return: NotNullIfNotNull(nameof(particle))]
System\Xml\Schema\XmlSchemaElement.cs (1)
192[return: NotNullIfNotNull(nameof(schemaSet))]
System\Xml\Schema\XmlSchemaType.cs (1)
206[return: NotNullIfNotNull(nameof(schemaSet))]
System\Xml\Serialization\CodeIdentifier.cs (1)
279[return: NotNullIfNotNull(nameof(identifier))]
System\Xml\Serialization\Compilation.cs (1)
562[return: NotNullIfNotNull(nameof(encodingStyle))]
System\Xml\Serialization\Mappings.cs (3)
103[return: NotNullIfNotNull(nameof(name))] 110[return: NotNullIfNotNull(nameof(name))] 125[return: NotNullIfNotNull(nameof(name))]
System\Xml\Serialization\SchemaObjectWriter.cs (1)
227[return: NotNullIfNotNull(nameof(list))]
System\Xml\Serialization\Xmlcustomformatter.cs (13)
36[return: NotNullIfNotNull(nameof(value))] 124[return: NotNullIfNotNull(nameof(name))] 130[return: NotNullIfNotNull(nameof(ncName))] 136[return: NotNullIfNotNull(nameof(nmToken))] 142[return: NotNullIfNotNull(nameof(nmTokens))] 171[return: NotNullIfNotNull(nameof(value))] 413[return: NotNullIfNotNull(nameof(value))] 419[return: NotNullIfNotNull(nameof(value))] 425[return: NotNullIfNotNull(nameof(value))] 431[return: NotNullIfNotNull(nameof(value))] 437[return: NotNullIfNotNull(nameof(value))] 447[return: NotNullIfNotNull(nameof(value))] 469[return: NotNullIfNotNull(nameof(value))]
System\Xml\Serialization\XmlSchemas.cs (1)
483[return: NotNullIfNotNull(nameof(o))]
System\Xml\Serialization\XmlSerializationILGen.cs (1)
139[return: NotNullIfNotNull(nameof(value))]
System\Xml\Serialization\XmlSerializationReader.cs (9)
882[return: NotNullIfNotNull(nameof(value))] 913[return: NotNullIfNotNull(nameof(value))] 928[return: NotNullIfNotNull(nameof(value))] 1110[return: NotNullIfNotNull(nameof(value))] 1116[return: NotNullIfNotNull(nameof(value))] 1122[return: NotNullIfNotNull(nameof(value))] 1128[return: NotNullIfNotNull(nameof(value))] 1368[return: NotNullIfNotNull(nameof(value))] 1374[return: NotNullIfNotNull(nameof(value))]
System\Xml\Serialization\XmlSerializationWriter.cs (5)
117[return: NotNullIfNotNull(nameof(value))] 158[return: NotNullIfNotNull(nameof(name))] 164[return: NotNullIfNotNull(nameof(ncName))] 170[return: NotNullIfNotNull(nameof(nmToken))] 176[return: NotNullIfNotNull(nameof(nmTokens))]
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
2573[return: NotNullIfNotNull(nameof(value))] 2578[return: NotNullIfNotNull(nameof(value))]
System\Xml\XmlConvert.cs (6)
45[return: NotNullIfNotNull(nameof(name))] 55[return: NotNullIfNotNull(nameof(name))] 65[return: NotNullIfNotNull(nameof(name))] 75[return: NotNullIfNotNull(nameof(name))] 170[return: NotNullIfNotNull(nameof(name))] 401[return: NotNullIfNotNull(nameof(token))]
System\Xml\XPath\Internal\Query.cs (3)
69[return: NotNullIfNotNull(nameof(input))] 79[return: NotNullIfNotNull(nameof(input))] 89[return: NotNullIfNotNull(nameof(input))]
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
168[return: NotNullIfNotNull(nameof(node))]
System\Xml\Xsl\QIL\QilPatternVisitor.cs (1)
67[return: NotNullIfNotNull(nameof(node))]
System\Xml\Xsl\XPath\IXpathBuilder.cs (1)
17[return: NotNullIfNotNull(nameof(result))]
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
72[return: NotNullIfNotNull(nameof(result))]
System\Xml\Xsl\Xslt\KeyMatchBuilder.cs (1)
37[return: NotNullIfNotNull(nameof(result))]
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
1057[return: NotNullIfNotNull(nameof(avt))] 1684[return: NotNullIfNotNull(nameof(attName))]
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
64[return: NotNullIfNotNull(nameof(result))]
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
681[return: NotNullIfNotNull(nameof(formatString))]
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
664[return: NotNullIfNotNull(nameof(argument))]
System\Xml\Xslt\XsltException.cs (1)
141[return: NotNullIfNotNull(nameof(key))]
System.Private.Xml.Linq (29)
System\Xml\Linq\XAttribute.cs (13)
234[return: NotNullIfNotNull(nameof(attribute))] 271[return: NotNullIfNotNull(nameof(attribute))] 308[return: NotNullIfNotNull(nameof(attribute))] 345[return: NotNullIfNotNull(nameof(attribute))] 382[return: NotNullIfNotNull(nameof(attribute))] 419[return: NotNullIfNotNull(nameof(attribute))] 456[return: NotNullIfNotNull(nameof(attribute))] 493[return: NotNullIfNotNull(nameof(attribute))] 530[return: NotNullIfNotNull(nameof(attribute))] 567[return: NotNullIfNotNull(nameof(attribute))] 604[return: NotNullIfNotNull(nameof(attribute))] 641[return: NotNullIfNotNull(nameof(attribute))] 678[return: NotNullIfNotNull(nameof(attribute))]
System\Xml\Linq\XContainer.cs (1)
1369[return: NotNullIfNotNull(nameof(content))]
System\Xml\Linq\XElement.cs (13)
1340[return: NotNullIfNotNull(nameof(element))] 1383[return: NotNullIfNotNull(nameof(element))] 1426[return: NotNullIfNotNull(nameof(element))] 1469[return: NotNullIfNotNull(nameof(element))] 1512[return: NotNullIfNotNull(nameof(element))] 1555[return: NotNullIfNotNull(nameof(element))] 1598[return: NotNullIfNotNull(nameof(element))] 1641[return: NotNullIfNotNull(nameof(element))] 1684[return: NotNullIfNotNull(nameof(element))] 1727[return: NotNullIfNotNull(nameof(element))] 1770[return: NotNullIfNotNull(nameof(element))] 1813[return: NotNullIfNotNull(nameof(element))] 1856[return: NotNullIfNotNull(nameof(element))]
System\Xml\Linq\XName.cs (1)
104[return: NotNullIfNotNull(nameof(expandedName))]
System\Xml\Linq\XNamespace.cs (1)
129[return: NotNullIfNotNull(nameof(namespaceName))]
System.Reflection.Context (36)
System\Reflection\Context\CustomReflectionContext.Projector.cs (16)
49[return: NotNullIfNotNull(nameof(value))] 60[return: NotNullIfNotNull(nameof(value))] 71[return: NotNullIfNotNull(nameof(value))] 82[return: NotNullIfNotNull(nameof(value))] 93[return: NotNullIfNotNull(nameof(value))] 104[return: NotNullIfNotNull(nameof(value))] 115[return: NotNullIfNotNull(nameof(value))] 126[return: NotNullIfNotNull(nameof(value))] 143[return: NotNullIfNotNull(nameof(value))] 154[return: NotNullIfNotNull(nameof(value))] 165[return: NotNullIfNotNull(nameof(value))] 176[return: NotNullIfNotNull(nameof(value))] 187[return: NotNullIfNotNull(nameof(value))] 198[return: NotNullIfNotNull(nameof(value))] 209[return: NotNullIfNotNull(nameof(value))] 220[return: NotNullIfNotNull(nameof(value))]
System\Reflection\Context\Projection\Projector.cs (20)
12[return: NotNullIfNotNull(nameof(values))] 23[return: NotNullIfNotNull(nameof(values))] 45[return: NotNullIfNotNull(nameof(value))] 47[return: NotNullIfNotNull(nameof(value))] 49[return: NotNullIfNotNull(nameof(value))] 51[return: NotNullIfNotNull(nameof(value))] 53[return: NotNullIfNotNull(nameof(value))] 55[return: NotNullIfNotNull(nameof(value))] 57[return: NotNullIfNotNull(nameof(value))] 59[return: NotNullIfNotNull(nameof(value))] 61[return: NotNullIfNotNull(nameof(value))] 63[return: NotNullIfNotNull(nameof(value))] 65[return: NotNullIfNotNull(nameof(value))] 67[return: NotNullIfNotNull(nameof(value))] 69[return: NotNullIfNotNull(nameof(value))] 71[return: NotNullIfNotNull(nameof(value))] 73[return: NotNullIfNotNull(nameof(value))] 78[return: NotNullIfNotNull(nameof(value))] 81[return: NotNullIfNotNull(nameof(values))] 96[return: NotNullIfNotNull(nameof(value))]
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Helpers.cs (2)
21[return: NotNullIfNotNull(nameof(original))] 37[return: NotNullIfNotNull(nameof(original))]
System.Security.Cryptography (8)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
230[return: NotNullIfNotNull(nameof(oid))]
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (1)
510[return: NotNullIfNotNull(nameof(attributes))]
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (1)
54[return: NotNullIfNotNull(nameof(src))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9ContentType.cs (1)
55[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
66[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
66[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
48[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9MessageDigest.cs (1)
54[return: NotNullIfNotNull(nameof(rawData))]
System.Security.Cryptography.Pkcs (7)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
230[return: NotNullIfNotNull(nameof(oid))]
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (1)
54[return: NotNullIfNotNull(nameof(src))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9ContentType.cs (1)
55[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
66[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
66[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
48[return: NotNullIfNotNull(nameof(rawData))]
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9MessageDigest.cs (1)
54[return: NotNullIfNotNull(nameof(rawData))]
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
579[return: NotNullIfNotNull(nameof(data))]
System.Text.Json (7)
System\Text\Json\Nodes\JsonNode.Operators.cs (1)
199[return: NotNullIfNotNull(nameof(value))]
System\Text\Json\Nodes\JsonValue.CreateOverloads.cs (1)
227[return: NotNullIfNotNull(nameof(value))]
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (2)
99[return: NotNullIfNotNull(nameof(value))] 134[return: NotNullIfNotNull(nameof(value))]
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
102[return: NotNullIfNotNull(nameof(ensureNotNull))]
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (1)
86[return: NotNullIfNotNull(nameof(converter))]
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
395[return: NotNullIfNotNull(nameof(method))]
System.Web.HttpUtility (32)
System\Web\HttpUtility.cs (23)
136[return: NotNullIfNotNull(nameof(s))] 141[return: NotNullIfNotNull(nameof(s))] 144[return: NotNullIfNotNull(nameof(value))] 155[return: NotNullIfNotNull(nameof(s))] 160[return: NotNullIfNotNull(nameof(str))] 163[return: NotNullIfNotNull(nameof(str))] 166[return: NotNullIfNotNull(nameof(str))] 170[return: NotNullIfNotNull(nameof(bytes))] 173[return: NotNullIfNotNull(nameof(bytes))] 176[return: NotNullIfNotNull(nameof(str))] 179[return: NotNullIfNotNull(nameof(bytes))] 183[return: NotNullIfNotNull(nameof(str))] 186[return: NotNullIfNotNull(nameof(str))] 189[return: NotNullIfNotNull(nameof(bytes))] 192[return: NotNullIfNotNull(nameof(str))] 195[return: NotNullIfNotNull(nameof(str))] 215[return: NotNullIfNotNull(nameof(bytes))] 218[return: NotNullIfNotNull(nameof(str))] 221[return: NotNullIfNotNull(nameof(bytes))] 225[return: NotNullIfNotNull(nameof(str))] 228[return: NotNullIfNotNull(nameof(str))] 233[return: NotNullIfNotNull(nameof(bytes))] 237[return: NotNullIfNotNull(nameof(bytes))]
System\Web\Util\HttpEncoder.cs (9)
31[return: NotNullIfNotNull(nameof(value))] 106[return: NotNullIfNotNull(nameof(value))] 116[return: NotNullIfNotNull(nameof(value))] 196[return: NotNullIfNotNull(nameof(bytes))] 240[return: NotNullIfNotNull(nameof(bytes))] 305[return: NotNullIfNotNull(nameof(value))] 389[return: NotNullIfNotNull(nameof(bytes))] 476[return: NotNullIfNotNull(nameof(value))] 521[return: NotNullIfNotNull(nameof(value))]
System.Windows.Forms (6)
System\Resources\ResxFileRef.Converter.cs (1)
38[return: NotNullIfNotNull(nameof(stringValue))]
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (1)
316[return: NotNullIfNotNull(nameof(defaultName))]
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1776[return: NotNullIfNotNull(nameof(gridEntry))]
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
200[return: NotNullIfNotNull(nameof(list))]
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
243[return: NotNullIfNotNull(nameof(text))]
System\Windows\Forms\PropertyStore.cs (1)
187[return: NotNullIfNotNull(nameof(value))]
System.Windows.Forms.Design (8)
System\ComponentModel\Design\InheritanceService.cs (1)
274[return: NotNullIfNotNull(nameof(type))]
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
152[return: NotNullIfNotNull(nameof(value))]
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
202private static IComponent? ResolveNestedName(IDesignerSerializationManager? manager, string name, [NotNullIfNotNull(nameof(manager))] out string? outerComponent)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
32[return: NotNullIfNotNull(nameof(modified))]
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
166[return: NotNullIfNotNull(nameof(value))]
System\Drawing\Design\ToolboxItem.cs (1)
761[return: NotNullIfNotNull(nameof(value))]
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
646[return: NotNullIfNotNull(nameof(commentString))]
System\Windows\Forms\Design\DesignerUtils.cs (1)
699[return: NotNullIfNotNull(nameof(types))]
System.Windows.Forms.Primitives (1)
System\Windows\Forms\FontExtensions.cs (1)
19[return: NotNullIfNotNull(nameof(templateFont))]
xunit.assert (3)
Sdk\AssertHelper.cs (1)
286 [return: NotNullIfNotNull(nameof(data))]
Sdk\CollectionTrackerExtensions.cs (2)
65 [return: NotNullIfNotNull(nameof(enumerable))] 106 [return: NotNullIfNotNull(nameof(enumerable))]