20 references to NotNullWhen
Microsoft.Build (4)
BackEnd\Shared\BuildResult.cs (1)
623
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>;
Microsoft.Build.Framework (15)
EscapingUtilities.cs (1)
34
private static bool TryGetFromCache(string value, [
NotNullWhen
(true)] out string? result)
ItemSpecModifiers.cs (3)
319
public static bool IsItemSpecModifier([
NotNullWhen
(true)] string? name)
329
public static bool IsDerivableItemSpecModifier([
NotNullWhen
(true)] string? name)
597
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)
Polyfills\StringExtensions.cs (2)
11
public static bool IsNullOrEmpty([
NotNullWhen
(false)] this string? value)
15
public static bool IsNullOrWhiteSpace([
NotNullWhen
(false)] this string? value)
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);
Windows\Win32\System\Com\ComClassFactory.cs (1)
34
[
NotNullWhen
(true)] out ComClassFactory? factory,
Microsoft.Build.Tasks.Core (1)
ZipDirectory.cs (1)
151
static bool TryParseCompressionLevel(string levelString, [
NotNullWhen
(returnValue: true)] out CompressionLevel? level)