16 references to NotNullWhen
Microsoft.Build (9)
BackEnd\Shared\BuildResult.cs (1)
606
public bool TryGetResultsForTarget(string target, [
NotNullWhen
(true)] out TargetResult? value)
Collections\RetrievableEntryHashSet\IRetrievableUnescapedValuedEntryHashSet.cs (1)
21
bool TryGetUnescapedValue(string key, [
NotNullWhen
(returnValue: true)] out string? unescapedValue);
Evaluation\PropertiesUseTracker.cs (1)
104
internal bool TryGetPropertyElementLocation(string propertyName, [
NotNullWhen
(returnValue: true)] out IElementLocation? elementLocation)
SegmentedHashSetEqualityComparer`1.cs (1)
86
public override bool Equals([
NotNullWhen
(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
SolutionConfiguration.cs (5)
136
public bool TryGetProjectByGuid(string projectGuid, [
NotNullWhen
(true)] out XmlElement? projectElement) => _cachedProjectElements.TryGetValue(projectGuid, out projectElement);
138
public bool TryGetProjectByAbsolutePath(string projectFullPath, [
NotNullWhen
(true)] out XmlElement? projectElement) => _cachedProjectElementsByAbsolutePath.TryGetValue(projectFullPath, out projectElement);
140
public bool TryGetProjectGuidByAbsolutePath(string projectFullPath, [
NotNullWhen
(true)] out string? projectGuid) => _cachedProjectGuidsByAbsolutePath.TryGetValue(projectFullPath, out projectGuid);
142
public bool TryGetProjectDependencies(string projectGuid, [
NotNullWhen
(true)] out List<string>? dependencyProjectGuids) => _cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out dependencyProjectGuids);
144
public bool TryGetProjectPathByGuid(string projectGuid, [
NotNullWhen
(true)] out string? projectPath) => _cachedProjectAbsolutePathsByGuid.TryGetValue(projectGuid, out projectPath);
Microsoft.Build.Framework (1)
Logging\LoggerParametersHelper.cs (1)
19
public static bool TryParseVerbosityParameter(string parameterValue, [
NotNullWhen
(true)] out LoggerVerbosity? verbosity)
Microsoft.Build.Tasks.Core (6)
SolutionConfiguration.cs (5)
136
public bool TryGetProjectByGuid(string projectGuid, [
NotNullWhen
(true)] out XmlElement? projectElement) => _cachedProjectElements.TryGetValue(projectGuid, out projectElement);
138
public bool TryGetProjectByAbsolutePath(string projectFullPath, [
NotNullWhen
(true)] out XmlElement? projectElement) => _cachedProjectElementsByAbsolutePath.TryGetValue(projectFullPath, out projectElement);
140
public bool TryGetProjectGuidByAbsolutePath(string projectFullPath, [
NotNullWhen
(true)] out string? projectGuid) => _cachedProjectGuidsByAbsolutePath.TryGetValue(projectFullPath, out projectGuid);
142
public bool TryGetProjectDependencies(string projectGuid, [
NotNullWhen
(true)] out List<string>? dependencyProjectGuids) => _cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out dependencyProjectGuids);
144
public bool TryGetProjectPathByGuid(string projectGuid, [
NotNullWhen
(true)] out string? projectPath) => _cachedProjectAbsolutePathsByGuid.TryGetValue(projectGuid, out projectPath);
ZipDirectory.cs (1)
145
static bool TryParseCompressionLevel(string levelString, [
NotNullWhen
(returnValue: true)] out CompressionLevel? level)