20 instantiations of NotNullWhen
Microsoft.Build (4)
BackEnd\Shared\BuildResult.cs (1)
623public bool TryGetResultsForTarget(string target, [NotNullWhen(true)] out TargetResult? value)
Collections\RetrievableEntryHashSet\IRetrievableUnescapedValuedEntryHashSet.cs (1)
21bool TryGetUnescapedValue(string key, [NotNullWhen(returnValue: true)] out string? unescapedValue);
Evaluation\PropertiesUseTracker.cs (1)
104internal bool TryGetPropertyElementLocation(string propertyName, [NotNullWhen(returnValue: true)] out IElementLocation? elementLocation)
SegmentedHashSetEqualityComparer`1.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Microsoft.Build.Framework (15)
EscapingUtilities.cs (1)
34private static bool TryGetFromCache(string value, [NotNullWhen(true)] out string? result)
ItemSpecModifiers.cs (3)
319public static bool IsItemSpecModifier([NotNullWhen(true)] string? name) 329public static bool IsDerivableItemSpecModifier([NotNullWhen(true)] string? name) 597private static bool TryGetFileInfo(string itemSpec, [NotNullWhen(true)] out FileInfo? result)
Logging\LoggerParametersHelper.cs (1)
19public static bool TryParseVerbosityParameter(string parameterValue, [NotNullWhen(true)] out LoggerVerbosity? verbosity)
NodeMode.cs (2)
54public static bool TryParse(string value, [NotNullWhen(true)] out NodeMode? nodeMode) 79private static bool TryParseImpl(string value, [NotNullWhen(true)] out NodeMode? nodeMode)
Polyfills\StringExtensions.cs (2)
11public static bool IsNullOrEmpty([NotNullWhen(false)] this string? value) 15public static bool IsNullOrWhiteSpace([NotNullWhen(false)] this string? value)
SolutionConfiguration.cs (5)
137public bool TryGetProjectByGuid(string projectGuid, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElements.TryGetValue(projectGuid, out projectElement); 139public bool TryGetProjectByAbsolutePath(string projectFullPath, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElementsByAbsolutePath.TryGetValue(projectFullPath, out projectElement); 141public bool TryGetProjectGuidByAbsolutePath(string projectFullPath, [NotNullWhen(true)] out string? projectGuid) => _cachedProjectGuidsByAbsolutePath.TryGetValue(projectFullPath, out projectGuid); 143public bool TryGetProjectDependencies(string projectGuid, [NotNullWhen(true)] out List<string>? dependencyProjectGuids) => _cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out dependencyProjectGuids); 145public bool TryGetProjectPathByGuid(string projectGuid, [NotNullWhen(true)] out string? projectPath) => _cachedProjectAbsolutePathsByGuid.TryGetValue(projectGuid, out projectPath);
Windows\Win32\System\Com\ComClassFactory.cs (1)
34[NotNullWhen(true)] out ComClassFactory? factory,
Microsoft.Build.Tasks.Core (1)
ZipDirectory.cs (1)
151static bool TryParseCompressionLevel(string levelString, [NotNullWhen(returnValue: true)] out CompressionLevel? level)