12 instantiations of NotNullWhen
Microsoft.Build.Framework (11)
ItemSpecModifiers.cs (3)
338public static bool IsItemSpecModifier([NotNullWhen(true)] string? name) 348public static bool IsDerivableItemSpecModifier([NotNullWhen(true)] string? name) 616private 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)
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);
Microsoft.Build.Tasks.Core (1)
ZipDirectory.cs (1)
151static bool TryParseCompressionLevel(string levelString, [NotNullWhen(returnValue: true)] out CompressionLevel? level)