12 instantiations of NotNullWhen
Microsoft.Build.Framework (11)
ItemSpecModifiers.cs (3)
338
public static bool IsItemSpecModifier([
NotNullWhen
(true)] string? name)
348
public static bool IsDerivableItemSpecModifier([
NotNullWhen
(true)] string? name)
616
private static bool TryGetFileInfo(string itemSpec, [
NotNullWhen
(true)] out FileInfo? result)
Logging\LoggerParametersHelper.cs (1)
19
public static bool TryParseVerbosityParameter(string parameterValue, [
NotNullWhen
(true)] out LoggerVerbosity? verbosity)
NodeMode.cs (2)
54
public static bool TryParse(string value, [
NotNullWhen
(true)] out NodeMode? nodeMode)
79
private static bool TryParseImpl(string value, [
NotNullWhen
(true)] out NodeMode? nodeMode)
SolutionConfiguration.cs (5)
137
public bool TryGetProjectByGuid(string projectGuid, [
NotNullWhen
(true)] out XmlElement? projectElement) => _cachedProjectElements.TryGetValue(projectGuid, out projectElement);
139
public bool TryGetProjectByAbsolutePath(string projectFullPath, [
NotNullWhen
(true)] out XmlElement? projectElement) => _cachedProjectElementsByAbsolutePath.TryGetValue(projectFullPath, out projectElement);
141
public bool TryGetProjectGuidByAbsolutePath(string projectFullPath, [
NotNullWhen
(true)] out string? projectGuid) => _cachedProjectGuidsByAbsolutePath.TryGetValue(projectFullPath, out projectGuid);
143
public bool TryGetProjectDependencies(string projectGuid, [
NotNullWhen
(true)] out List<string>? dependencyProjectGuids) => _cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out dependencyProjectGuids);
145
public bool TryGetProjectPathByGuid(string projectGuid, [
NotNullWhen
(true)] out string? projectPath) => _cachedProjectAbsolutePathsByGuid.TryGetValue(projectGuid, out projectPath);
Microsoft.Build.Tasks.Core (1)
ZipDirectory.cs (1)
151
static bool TryParseCompressionLevel(string levelString, [
NotNullWhen
(returnValue: true)] out CompressionLevel? level)