11547 references to IsNullOrEmpty
aspire (479)
Acquisition\IdentityChannelReader.cs (1)
104if (metadata is null || string.IsNullOrEmpty(metadata.Value))
Acquisition\IdentityResolver.cs (9)
125if (!string.IsNullOrEmpty(sidecarValue)) 131if (!string.IsNullOrEmpty(assemblyValue)) 150if (!string.IsNullOrEmpty(sidecarValue)) 168if (!string.IsNullOrEmpty(sidecarValue)) 186if (!string.IsNullOrEmpty(sidecarValue)) 205if (!string.IsNullOrEmpty(sidecarValue)) 304if (string.IsNullOrEmpty(raw)) 316if (string.IsNullOrEmpty(_binaryDir)) 345if (string.IsNullOrEmpty(informational))
Acquisition\InstallationDiscovery.cs (15)
78var binaryDir = !string.IsNullOrEmpty(canonicalPath) ? Path.GetDirectoryName(canonicalPath) : null; 80var sidecar = !string.IsNullOrEmpty(binaryDir) && _sidecarReader.TryRead(binaryDir) is InstallSidecarReadResult.Ok selfSidecar 185var canonical = !string.IsNullOrEmpty(candidate.CanonicalPath) 188if (string.IsNullOrEmpty(canonical)) 204var sidecarResult = !string.IsNullOrEmpty(binaryDir) 245if (string.IsNullOrEmpty(channel) && sidecar.Source == InstallSource.Pr) 249if (string.IsNullOrEmpty(channel)) 321if (string.IsNullOrEmpty(bin)) 327if (string.IsNullOrEmpty(prDir)) 333if (string.IsNullOrEmpty(dogfoodDir) || 345if (string.IsNullOrEmpty(label) || !label.StartsWith("pr-", StringComparison.Ordinal)) 381if (string.IsNullOrEmpty(version)) 431=> sidecar.Source.ToWireString() ?? (string.IsNullOrEmpty(sidecar.RawSource) ? null : sidecar.RawSource); 442if (!string.IsNullOrEmpty(canonical)) 462if (string.IsNullOrEmpty(canonicalPath))
Acquisition\InstallSidecarReader.cs (1)
45if (string.IsNullOrEmpty(binaryDir))
Acquisition\IWindowsRegistryReader.cs (2)
42if (string.IsNullOrEmpty(processPath)) 90|| string.IsNullOrEmpty(portableTarget))
Acquisition\PeerInstallProbe.cs (5)
69if (string.IsNullOrEmpty(binaryPath) || !File.Exists(binaryPath)) 126if (string.IsNullOrEmpty(versionLine)) 306if (string.IsNullOrEmpty(stderr)) 316return string.IsNullOrEmpty(reason) 404if (string.IsNullOrEmpty(stderr))
Acquisition\WingetFirstRunProbe.cs (2)
36if (string.IsNullOrEmpty(binaryDir)) 48if (string.IsNullOrEmpty(processPath))
Agents\AspireSkills\AspireSkillsBundleProvider.cs (3)
506if (!string.IsNullOrEmpty(destinationFileDirectory)) 545if (!string.IsNullOrEmpty(destinationFileDirectory)) 617if (!string.IsNullOrEmpty(targetFileDirectory))
Agents\ClaudeCode\ClaudeCodeCliRunner.cs (1)
57if (string.IsNullOrEmpty(versionString))
Agents\CopilotCli\CopilotCliRunner.cs (1)
77if (string.IsNullOrEmpty(versionString))
Agents\Hooks\TelemetryHookConfigurator.cs (1)
301if (!string.IsNullOrEmpty(copilotHome))
Agents\OpenCode\OpenCodeCliRunner.cs (1)
57if (string.IsNullOrEmpty(versionString))
Agents\Playwright\PlaywrightCliInstaller.cs (2)
129if (!string.IsNullOrEmpty(versionOverride)) 430if (!string.IsNullOrEmpty(targetFileDir))
Agents\Playwright\PlaywrightCliRunner.cs (1)
53if (string.IsNullOrEmpty(versionString))
Agents\VsCode\VsCodeCliRunner.cs (1)
57if (string.IsNullOrEmpty(output))
Backchannel\AppHostAuxiliaryBackchannel.cs (4)
568if (!string.IsNullOrEmpty(urlsState?.BaseUrlWithLoginToken)) 572if (!string.IsNullOrEmpty(urlsState?.CodespacesUrlWithLoginToken)) 615if (!string.IsNullOrEmpty(request?.Filter)) 658if (!string.IsNullOrEmpty(filter) && !snapshot.Name.Contains(filter, StringComparison.OrdinalIgnoreCase))
Backchannel\AppHostConnectionHelper.cs (1)
45if (!string.IsNullOrEmpty(selectedPath))
Backchannel\AuxiliaryBackchannelMonitor.cs (4)
155if (!string.IsNullOrEmpty(SelectedAppHostPath)) 200if (string.IsNullOrEmpty(appHostPath)) 328if (!string.IsNullOrEmpty(hash) && 379if (string.IsNullOrEmpty(hash))
Backchannel\ExtensionBackchannel.cs (1)
814Debug.Assert(!string.IsNullOrEmpty(serverCertificate));
Backchannel\ResourceSnapshotMapper.cs (1)
141if (!string.IsNullOrEmpty(dashboardBaseUrl))
Bundles\BundleService.cs (13)
85if (string.IsNullOrEmpty(extractDir)) 104if (string.IsNullOrEmpty(extractDir)) 201if (string.IsNullOrEmpty(processPath)) 214if (!string.IsNullOrEmpty(binaryDir)) 221if (string.IsNullOrEmpty(extractDir)) 455if (string.IsNullOrEmpty(processPath)) 462if (string.IsNullOrEmpty(binaryDir)) 678if (!string.IsNullOrEmpty(existingVersion)) 699if (string.IsNullOrEmpty(target)) 802if (string.IsNullOrEmpty(processPath)) 853return string.IsNullOrEmpty(content) ? null : content; 886if (string.IsNullOrEmpty(relativePath)) 923if (string.IsNullOrEmpty(entry.LinkName))
Certificates\CertificateGeneration\CertificateManager.cs (2)
442if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 660if (!string.IsNullOrEmpty(targetDirectoryPath))
Certificates\CertificateGeneration\UnixCertificateManager.cs (6)
76if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 117if (string.IsNullOrEmpty(sslCertDirString)) 391if (!string.IsNullOrEmpty(existingSslCertDir)) 654if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable("WSL_INTEROP"))) 805if (!string.IsNullOrEmpty(@override)) 831if (string.IsNullOrEmpty(nssDbOverride))
Certificates\CertificateHelpers.cs (1)
50return !string.IsNullOrEmpty(overridePath) ? overridePath : s_defaultDevCertsTrustPath;
Certificates\CertificateService.cs (1)
186if (!string.IsNullOrEmpty(currentSslCertDir))
Commands\AddCommand.cs (4)
328if (string.IsNullOrEmpty(source) && 491if (!string.IsNullOrEmpty(preferredVersion)) 559return !string.IsNullOrEmpty(configuredChannel) 670var configuredGroup = string.IsNullOrEmpty(configuredChannel)
Commands\AgentInitCommand.cs (1)
720if (!string.IsNullOrEmpty(directory) && !Directory.Exists(directory))
Commands\AppHostLauncher.cs (5)
175if (!string.IsNullOrEmpty(launchProfile)) 194if (string.IsNullOrEmpty(appHostSelectionOrigin) && passedAppHostProjectFile is null) 270if (string.IsNullOrEmpty(launchProfile)) 414if (isDotnetHost && !string.IsNullOrEmpty(entryAssemblyPath) && entryAssemblyPath.EndsWith(".dll", StringComparison.OrdinalIgnoreCase)) 465if (!string.IsNullOrEmpty(appHostSelectionOrigin))
Commands\DeployCommand.cs (2)
55if (!string.IsNullOrEmpty(logLevel)) 67if (!string.IsNullOrEmpty(environment))
Commands\DescribeCommand.cs (4)
317if (!string.IsNullOrEmpty(dashboardBaseUrl)) 347var healthText = !string.IsNullOrEmpty(state.HealthStatus) ? $" ({ColorHealth(state.HealthStatus.EscapeMarkup())})" : ""; 360if (string.IsNullOrEmpty(state)) 383var text = !string.IsNullOrEmpty(displayName) ? displayName : url;
Commands\DestroyCommand.cs (2)
55if (!string.IsNullOrEmpty(logLevel)) 67if (!string.IsNullOrEmpty(environment))
Commands\DoCommand.cs (6)
37if (!string.IsNullOrEmpty(step)) 63return !string.IsNullOrEmpty(step) ? [step] : []; 71if (string.IsNullOrEmpty(targetStep) 81if (!string.IsNullOrEmpty(targetStep)) 93if (!string.IsNullOrEmpty(logLevel)) 105if (!string.IsNullOrEmpty(environment))
Commands\DoctorCommand.cs (3)
178var hasDetails = !string.IsNullOrEmpty(result.Details); 179var hasFix = !string.IsNullOrEmpty(result.Fix); 180var hasLink = !string.IsNullOrEmpty(result.Link);
Commands\ExportCommand.cs (2)
90if (string.IsNullOrEmpty(outputPath)) 98if (!string.IsNullOrEmpty(directory))
Commands\GroupedHelpWriter.cs (3)
39if (!string.IsNullOrEmpty(command.Description)) 273return string.IsNullOrEmpty(args) ? cmd.Name : $"{cmd.Name} {args}"; 309if (!string.IsNullOrEmpty(option.Name))
Commands\IdentityVersionAction.cs (2)
37if (string.IsNullOrEmpty(commit)) 45var output = string.IsNullOrEmpty(commit) ? version : $"{version}+{commit}";
Commands\InitCommand.cs (3)
512if (!string.IsNullOrEmpty(resolvedChannel)) 515if (!string.IsNullOrEmpty(existing)) 586if (!string.IsNullOrEmpty(channel) && settings["channel"] is null)
Commands\InstallationInfoOutput.cs (4)
118if (string.IsNullOrEmpty(processPath)) 124if (!string.IsNullOrEmpty(binaryDir)) 157var pathDisplay = string.IsNullOrEmpty(install.Path) 190if (!string.IsNullOrEmpty(value))
Commands\IntegrationPackageSearchService.cs (1)
107return hasHives || !string.IsNullOrEmpty(configuredChannel)
Commands\LogsCommand.cs (3)
247if (!string.IsNullOrEmpty(search)) 313if (!string.IsNullOrEmpty(search)) 355if (!string.IsNullOrEmpty(search) && !MatchesSearch(entry, search))
Commands\McpCallCommand.cs (1)
75if (!string.IsNullOrEmpty(inputJson))
Commands\PipelineCommandBase.cs (7)
165&& string.IsNullOrEmpty(_configuration[KnownConfigNames.ExtensionDebugSessionId]) 779if (!string.IsNullOrEmpty(activity.Data.CompletionMessage)) 938task.CompletionMessage = !string.IsNullOrEmpty(activity.Data.CompletionMessage) 945var message = !string.IsNullOrEmpty(task.CompletionMessage) 963if (IsCompletionStateError(task.CompletionState) && string.IsNullOrEmpty(stepInfo.FailureReason)) 1225if (string.IsNullOrEmpty(input.Name)) 1262if (!string.IsNullOrEmpty(input.FileFilter))
Commands\PsCommand.cs (1)
429if (!string.IsNullOrEmpty(appHost.DashboardUrl))
Commands\PublishCommand.cs (2)
64if (!string.IsNullOrEmpty(logLevel)) 76if (!string.IsNullOrEmpty(environment))
Commands\RenderCommand.cs (1)
118if (!string.IsNullOrEmpty(requestedScenario))
Commands\ResourceCommand.cs (9)
101if (string.IsNullOrEmpty(resourceName) || IsOptionLikeToken(resourceName)) 108if (string.IsNullOrEmpty(commandName) || IsOptionLikeToken(commandName)) 247.FirstOrDefault(static description => !string.IsNullOrEmpty(description)); 461string.IsNullOrEmpty(argument.Value); 552if (string.IsNullOrEmpty(value)) 722return !string.IsNullOrEmpty(appHostPath) && 737var hasResourceName = !string.IsNullOrEmpty(resourceName) && !IsOptionLikeToken(resourceName); 741var hasNoCommandName = string.IsNullOrEmpty(commandName) || 873if (argument.Required && string.IsNullOrEmpty(argument.Value))
Commands\ResourceCommandHelper.cs (2)
177return string.IsNullOrEmpty(errorMessage) ? "Unknown error occurred." : errorMessage; 216if (string.IsNullOrEmpty(value))
Commands\ResourceCommandHelpParser.cs (2)
37if (string.IsNullOrEmpty(resourceName) || 39string.IsNullOrEmpty(commandName) ||
Commands\RunCommand.cs (5)
191&& string.IsNullOrEmpty(_configuration[KnownConfigNames.ExtensionDebugSessionId]); 216&& string.IsNullOrEmpty(_configuration[KnownConfigNames.ExtensionDebugSessionId])) 1071if (!string.IsNullOrEmpty(dashboardUrl)) 1078if (!string.IsNullOrEmpty(codespacesUrl)) 1222if (!string.IsNullOrEmpty(launchProfile))
Commands\Sdk\SdkDumpCommand.cs (10)
378var location = string.IsNullOrEmpty(diag.Location) ? "" : $" [{diag.Location}]"; 422var loc = string.IsNullOrEmpty(d.Location) ? "" : string.Format(CultureInfo.InvariantCulture, " [{0}]", d.Location); 456if (!string.IsNullOrEmpty(t.Description)) 467var desc = !string.IsNullOrEmpty(p.Description) ? string.Format(CultureInfo.InvariantCulture, " # {0}", p.Description) : ""; 491var descriptionSuffix = string.IsNullOrEmpty(value.Description) 555if (!string.IsNullOrEmpty(d.Location)) 599if (!string.IsNullOrEmpty(t.Description)) 610if (!string.IsNullOrEmpty(p.Description)) 648if (!string.IsNullOrEmpty(value.Description)) 678if (!string.IsNullOrEmpty(c.Description))
Commands\Sdk\SdkGenerateCommand.cs (1)
183if (!string.IsNullOrEmpty(fileDirectory))
Commands\SetupCommand.cs (5)
48if (string.IsNullOrEmpty(processPath)) 56if (string.IsNullOrEmpty(installPath)) 61if (string.IsNullOrEmpty(installPath)) 103if (string.IsNullOrEmpty(processPath)) 109return string.IsNullOrEmpty(binaryDir) ? null : Path.GetDirectoryName(binaryDir);
Commands\StartCommand.cs (2)
77&& string.IsNullOrEmpty(_configuration[KnownConfigNames.ExtensionDebugSessionId])) 110if (!string.IsNullOrEmpty(launchProfile))
Commands\StopCommand.cs (3)
540if (string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath)) 553return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath) 560return string.IsNullOrEmpty(connection.AppHostInfo?.AppHostPath)
Commands\TelemetryCommandHelpers.cs (5)
314if (!string.IsNullOrEmpty(apiToken)) 478if (string.IsNullOrEmpty(resourceName)) 548if (string.IsNullOrEmpty(dashboardUrl) || string.IsNullOrEmpty(traceId)) 616if (!string.IsNullOrEmpty(line))
Commands\TelemetryTracesCommand.cs (4)
98if (!string.IsNullOrEmpty(traceId)) 339var rootSpans = spans.Where(s => string.IsNullOrEmpty(s.ParentSpanId)).ToList(); 355.Where(s => !string.IsNullOrEmpty(s.ParentSpanId)) 362.Where(s => string.IsNullOrEmpty(s.ParentSpanId) || !spanIds.Contains(s.ParentSpanId!))
Commands\TerminalAttachCommand.cs (1)
126var canonicalName = !string.IsNullOrEmpty(matches[0].DisplayName)
Commands\UpdateCommand.cs (9)
135if (string.IsNullOrEmpty(processPath)) 142if (string.IsNullOrEmpty(binaryDir)) 380!string.IsNullOrEmpty(channel.CliDownloadBaseUrl)) 565string.IsNullOrEmpty(channel.CliDownloadBaseUrl) || 671if (string.IsNullOrEmpty(channel)) 718if (string.IsNullOrEmpty(currentExePath)) 753if (string.IsNullOrEmpty(currentExePath)) 759if (string.IsNullOrEmpty(installDir)) 883if (string.IsNullOrEmpty(pathEnv))
Configuration\AspireConfigFile.cs (2)
367if (string.IsNullOrEmpty(trimmedValue)) 411if (!string.IsNullOrEmpty(settings.SdkVersion))
Configuration\AspireJsonConfiguration.cs (1)
207if (string.IsNullOrEmpty(trimmedValue))
Configuration\ConfigurationService.cs (1)
346var key = string.IsNullOrEmpty(prefix) ? normalizedKey : $"{prefix}.{normalizedKey}";
Configuration\Features.cs (1)
20if (string.IsNullOrEmpty(value))
Diagnostics\FileLoggerProvider.cs (2)
72if (!string.IsNullOrEmpty(directory)) 234if (string.IsNullOrEmpty(message) && exception is null)
Documentation\CachedHttpDocumentFetcher.cs (3)
40if (!string.IsNullOrEmpty(cachedETag)) 66if (!string.IsNullOrEmpty(retryETag)) 80if (!string.IsNullOrEmpty(newETag))
Documentation\Docs\DocsFetcher.cs (2)
63if (!string.IsNullOrEmpty(legacyETag)) 68if (legacyContent is not null || !string.IsNullOrEmpty(legacyETag))
Documentation\Docs\DocsIndexService.cs (4)
436if (!string.IsNullOrEmpty(section)) 782if (string.IsNullOrEmpty(text)) 832if (string.IsNullOrEmpty(lowerText)) 991if (string.IsNullOrEmpty(content))
Documentation\Docs\DocsSearchService.cs (1)
74if (!string.IsNullOrEmpty(result.Section))
Documentation\Docs\DocsSourceConfiguration.cs (1)
88if (string.IsNullOrEmpty(href))
Documentation\Docs\LlmsTxtParser.cs (1)
702if (string.IsNullOrEmpty(headingText))
Documentation\FileBackedDocumentContentCache.cs (2)
169if (!string.IsNullOrEmpty(requiredETagKey)) 172if (string.IsNullOrEmpty(etag))
Documentation\LexicalScoring.cs (1)
72if (string.IsNullOrEmpty(lowerText))
DotNet\DotNetCliRunner.cs (6)
366if (string.IsNullOrEmpty(sanitized)) 452if (!string.IsNullOrEmpty(debugSessionInfo)) 618if (string.IsNullOrEmpty(cliDirectory)) 636if (!string.IsNullOrEmpty(resolvedCliDirectory) && IsUnbundledFrameworkDependentCliPath(resolvedCliDirectory)) 914string[] launchProfileSwitch = !string.IsNullOrEmpty(launchProfile) 1321if (!string.IsNullOrEmpty(nugetSource))
DotNet\DotNetSdkInstaller.cs (1)
166if (!string.IsNullOrEmpty(overrideVersion))
Git\GitRepository.cs (1)
65if (string.IsNullOrEmpty(rootPath))
Git\GitWorktree.cs (3)
200return string.IsNullOrEmpty(directory) ? fullPath : directory; 268if (string.IsNullOrEmpty(metadataDirectory) || 361if (string.IsNullOrEmpty(root))
Interaction\ConsoleInteractionService.cs (7)
78string.IsNullOrEmpty(statusText) || 120if (!string.IsNullOrEmpty(statusText)) 151if (!string.IsNullOrEmpty(initialStatusText)) 162if (!string.IsNullOrEmpty(text)) 197if (!string.IsNullOrEmpty(statusText)) 757if (!string.IsNullOrEmpty(updateCommand)) 811if (required && string.IsNullOrEmpty(value))
Interaction\SpectreConsoleLoggerProvider.cs (1)
52if (string.IsNullOrEmpty(message) && exception is null)
Layout\LayoutConfiguration.cs (1)
57if (string.IsNullOrEmpty(LayoutPath))
Layout\LayoutDiscovery.cs (8)
58if (!string.IsNullOrEmpty(envLayoutPath)) 108if (string.IsNullOrEmpty(aspireHome) || !Directory.Exists(aspireHome)) 127if (!string.IsNullOrEmpty(envPath) && Directory.Exists(envPath)) 188if (string.IsNullOrEmpty(cliPath)) 214if (string.IsNullOrEmpty(cliDir)) 234if (!string.IsNullOrEmpty(parentDir)) 321if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable(BundleDiscovery.DcpPathEnvVar))) 325if (!string.IsNullOrEmpty(_environment.GetEnvironmentVariable(BundleDiscovery.ManagedPathEnvVar)))
Mcp\Tools\ExecuteResourceCommandTool.cs (2)
70if (string.IsNullOrEmpty(resourceName) || string.IsNullOrEmpty(commandName))
Mcp\Tools\ListConsoleLogsTool.cs (3)
55if (string.IsNullOrEmpty(resourceName)) 97if (!string.IsNullOrEmpty(search)) 116var totalLogsCount = string.IsNullOrEmpty(search)
Mcp\Tools\ListDocsTool.cs (1)
65if (!string.IsNullOrEmpty(doc.Summary))
Mcp\Tools\ListIntegrationsTool.cs (2)
158if (!string.IsNullOrEmpty(appHostPath)) 161if (!string.IsNullOrEmpty(appHostDirectory) && Directory.Exists(appHostDirectory))
Mcp\Tools\ListStructuredLogsTool.cs (2)
75if (!string.IsNullOrEmpty(resourceName) && auxiliaryBackchannelMonitor is not null) 106if (resourceLogs is not null && string.IsNullOrEmpty(resourceName) && auxiliaryBackchannelMonitor is not null)
Mcp\Tools\ListTracesTool.cs (2)
75if (!string.IsNullOrEmpty(resourceName) && auxiliaryBackchannelMonitor is not null) 106if (resourceSpans is not null && string.IsNullOrEmpty(resourceName) && auxiliaryBackchannelMonitor is not null)
Mcp\Tools\ListTraceStructuredLogsTool.cs (1)
61if (string.IsNullOrEmpty(traceId))
Mcp\Tools\McpToolHelpers.cs (1)
110if (!string.IsNullOrEmpty(token))
Npm\INpmProvenanceChecker.cs (1)
151if (string.IsNullOrEmpty(refString))
Npm\NpmRunner.cs (2)
262if (string.IsNullOrEmpty(lastLine)) 276return !string.IsNullOrEmpty(version);
NuGet\BundleNuGetPackageCache.cs (1)
222if (string.IsNullOrEmpty(output))
NuGet\BundleNuGetService.cs (4)
135if (!string.IsNullOrEmpty(runtimeIdentifier)) 160if (!string.IsNullOrEmpty(nugetConfigPath)) 222if (!string.IsNullOrEmpty(runtimeIdentifier)) 320if (string.IsNullOrEmpty(managedPath))
OpenCode\OpenCodeCliRunner.cs (1)
50if (string.IsNullOrEmpty(versionString))
Packaging\NuGetConfigMerger.cs (23)
217if (!string.IsNullOrEmpty(key) && !string.IsNullOrEmpty(value)) 282if (string.IsNullOrEmpty(key)) 292if (requiredSources.Contains(key) || (!string.IsNullOrEmpty(value) && requiredSources.Contains(value))) 320if (string.IsNullOrEmpty(sourceKey)) 331if (string.IsNullOrEmpty(pattern)) 446if (!string.IsNullOrEmpty(pattern)) 507return !string.IsNullOrEmpty(key) && urlToExistingKey.TryGetValue(key, out var properKey) && 567.Where(key => !string.IsNullOrEmpty(key)) 575.Where(key => !string.IsNullOrEmpty(key)) 620if (string.IsNullOrEmpty(urlToCheck)) 642if (string.IsNullOrEmpty(pattern)) 656if (string.IsNullOrEmpty(sourceKey) && string.IsNullOrEmpty(sourceValue)) 664if (!string.IsNullOrEmpty(urlToCheck) && urlToCheck.Contains(".aspire") && urlToCheck.Contains("hives")) 671if (!string.IsNullOrEmpty(urlToCheck) && urlToCheck.Contains("pkgs.dev.azure.com")) 706if (!string.IsNullOrEmpty(sourceKey) && !sourcesInUse.Contains(sourceKey)) 762.Where(key => !string.IsNullOrEmpty(key)) 769.Where(key => !string.IsNullOrEmpty(key)) 858if (!string.IsNullOrEmpty(key) && !string.IsNullOrEmpty(value)) 886if (string.IsNullOrEmpty(sourceKey)) 895if (string.IsNullOrEmpty(pattern))
Packaging\PackageSourceOverrideMappings.cs (4)
75var fallbackSource = string.IsNullOrEmpty(nugetServiceIndexOverride) 103(!string.IsNullOrEmpty(uri.UserInfo) || 104!string.IsNullOrEmpty(uri.Query) || 105!string.IsNullOrEmpty(uri.Fragment));
Packaging\PackagingService.cs (17)
291string.IsNullOrEmpty(processPath)) 300if (string.IsNullOrEmpty(binaryDirectoryPath)) 339if (!string.IsNullOrEmpty(overrideVersion)) 346return string.IsNullOrEmpty(commit) ? version : $"{version}+{commit}"; 365if (!string.IsNullOrEmpty(overrideChannel) && IdentityChannelReader.IsValidChannel(overrideChannel)) 381if (string.IsNullOrEmpty(identityOverride) && string.IsNullOrEmpty(versionOverride)) 392string.IsNullOrEmpty(identityOverride) ? "(unset)" : identityOverride, 394string.IsNullOrEmpty(versionOverride) ? "(unset)" : versionOverride); 417var hasExplicitFeedOverride = !string.IsNullOrEmpty(_configuration[OverrideStagingFeedConfigKey]); 525if (!string.IsNullOrEmpty(_configuration[OverrideStagingFeedConfigKey])) 553if (!string.IsNullOrEmpty(overrideFeed)) 578?? (string.IsNullOrEmpty(_executionContext.IdentityCommit) ? null : _executionContext.IdentityCommit); 580if (string.IsNullOrEmpty(commitHash)) 616if (!string.IsNullOrEmpty(overrideQuality)) 627return string.IsNullOrEmpty(overrideQuality) ? defaultQuality : PackageChannelQuality.Stable; 642return string.IsNullOrEmpty(informationalVersion) ? null : StripBuildMetadata(informationalVersion);
Profiling\ProfileCaptureService.cs (2)
199if (string.IsNullOrEmpty(repoRoot)) 335if (!string.IsNullOrEmpty(outputDirectory))
Projects\AppHostCandidateFinder.cs (1)
465if (string.IsNullOrEmpty(relativeDirectory))
Projects\AppHostServerClosureSnapshots.cs (1)
431if (!string.IsNullOrEmpty(destinationDirectory))
Projects\DotNetAppHostProject.cs (11)
1613if (!string.IsNullOrEmpty(isolatedUserSecretsId)) 1969return string.IsNullOrEmpty(launchProfile); 2024if (!hasExplicitApplicationArgs && !hasRunArguments && !string.IsNullOrEmpty(profile.CommandLineArgs)) 2106if (!string.IsNullOrEmpty(requestedProfileName)) 2169profileName = string.IsNullOrEmpty(requestedProfileName) 2280if (!string.IsNullOrEmpty(config.AppHost?.Path)) 2308if (profile is null || string.IsNullOrEmpty(profile.ApplicationUrl)) 2494if (!string.IsNullOrEmpty(userSecretsId) || !autoInit) 2558if (!HasEnvironmentOverride(env, "AspireCliBundlePath") && !string.IsNullOrEmpty(layout?.LayoutPath)) 2663if (!string.IsNullOrEmpty(userSecretsId)) 2667if (!string.IsNullOrEmpty(isolatedUserSecretsId))
Projects\DotNetBasedAppHostServerProject.cs (1)
332var matchedChannels = !string.IsNullOrEmpty(configuredChannelName)
Projects\FallbackProjectParser.cs (6)
208return string.IsNullOrEmpty(version) ? null : version; 222.Where(e => !string.IsNullOrEmpty(e.Attribute("Include")?.Value) || !string.IsNullOrEmpty(e.Attribute("Update")?.Value)); 227if (string.IsNullOrEmpty(identity)) 255.Where(e => !string.IsNullOrEmpty(e.Attribute("Include")?.Value)); 260if (string.IsNullOrEmpty(include))
Projects\GuestAppHostProject.cs (3)
136if (!string.IsNullOrEmpty(configuredVersion)) 1024if (!string.IsNullOrEmpty(profile.ApplicationUrl)) 1673if (!string.IsNullOrEmpty(directory))
Projects\PrebuiltAppHostServer.cs (7)
268var hasChannel = !string.IsNullOrEmpty(requestedChannel); 972if (!string.IsNullOrEmpty(channelName)) 1030var channels = !string.IsNullOrWhiteSpace(packageSourceOverride) && string.IsNullOrEmpty(requestedChannel) 1108if (!string.IsNullOrEmpty(requestedChannel)) 1130if (string.IsNullOrEmpty(requestedChannel)) 1250if (string.IsNullOrEmpty(requestedChannel)) 1317if (!string.IsNullOrEmpty(requestedChannel))
Projects\ProjectLocator.cs (4)
1220var hasConfiguredSelectionOrigin = !string.IsNullOrEmpty(configuredSelectionOrigin); 1284if (!string.IsNullOrEmpty(inheritedSdkVersion)) 1384if (!string.IsNullOrEmpty(envPath)) 1390if (!string.IsNullOrEmpty(userProfile))
Projects\ProjectUpdater.cs (8)
415if (!string.IsNullOrEmpty(sdkVersion) && IsValidSemanticVersion(sdkVersion) && sdkVersion == latestSdkPackage?.Version) 1005if (string.IsNullOrEmpty(packageVersion) || packageVersion == "*") 1314if (!string.IsNullOrEmpty(key) && !string.IsNullOrEmpty(value)) 1342if (!string.IsNullOrEmpty(sourceKey)) 1351if (!string.IsNullOrEmpty(pattern)) 1532var currentChannel = string.IsNullOrEmpty(CurrentChannel) 1540var currentSdkVersion = string.IsNullOrEmpty(CurrentSdkVersion)
Scaffolding\ScaffoldingService.cs (5)
112if (!string.IsNullOrEmpty(context.Channel)) 119!string.IsNullOrEmpty(context.Channel)) 186if (!string.IsNullOrEmpty(fileDirectory)) 492if (!string.IsNullOrEmpty(fileDirectory)) 564if (string.IsNullOrEmpty(existingContent))
Secrets\SecretStoreResolver.cs (1)
43if (string.IsNullOrEmpty(userSecretsId))
src\Shared\BackchannelConstants.cs (2)
705=> !string.IsNullOrEmpty(value) && value.All(static c => char.IsAsciiHexDigit(c)); 708=> !string.IsNullOrEmpty(value) && value.All(static c => char.IsAsciiLetterOrDigit(c) || c is '-' or '_');
src\Shared\BundleDiscovery.cs (5)
130if (string.IsNullOrEmpty(baseDirectory) || !Directory.Exists(baseDirectory)) 161if (string.IsNullOrEmpty(baseDirectory) || !Directory.Exists(baseDirectory)) 269if (string.IsNullOrEmpty(repoRoot)) 360if (!string.IsNullOrEmpty(baseDir) && Directory.Exists(baseDir)) 376if (string.IsNullOrEmpty(processPath))
src\Shared\ConsoleLogs\PromptContext.cs (1)
33if (string.IsNullOrEmpty(input))
src\Shared\ConsoleLogs\SharedAIHelpers.cs (5)
394var rootSpan = trace.Spans.FirstOrDefault(s => string.IsNullOrEmpty(s.Span.ParentSpanId)) ?? trace.Spans.FirstOrDefault(); 638return string.IsNullOrEmpty(value) ? null : value; 681if (!string.IsNullOrEmpty(stackTrace)) 687if (!string.IsNullOrEmpty(message)) 690if (!string.IsNullOrEmpty(type))
src\Shared\FormatHelpers.cs (2)
109if (string.IsNullOrEmpty(text)) 124return string.Join(separator, parts.Where(p => !string.IsNullOrEmpty(p)));
src\Shared\IConfigurationExtensions.cs (1)
245if (string.IsNullOrEmpty(value))
src\Shared\Json\JsonFlattener.cs (2)
60var key = string.IsNullOrEmpty(prefix) 62: string.IsNullOrEmpty(kvp.Key)
src\Shared\LocaleHelpers.cs (1)
82if (string.IsNullOrEmpty(localeOverride))
src\Shared\Model\ResourceSourceViewModel.cs (5)
15!string.IsNullOrEmpty(projectPath)) 22!string.IsNullOrEmpty(toolPackage)) 28!string.IsNullOrEmpty(executablePath)) 34!string.IsNullOrEmpty(containerImage)) 40!string.IsNullOrEmpty(source))
src\Shared\PathNormalizer.cs (5)
10if (string.IsNullOrEmpty(path)) 132if (string.IsNullOrEmpty(path)) 147if (string.IsNullOrEmpty(root)) 222if (string.IsNullOrEmpty(path)) 236if (string.IsNullOrEmpty(root))
src\Shared\UserSecrets\IsolatedUserSecretsHelper.cs (2)
37if (!string.IsNullOrEmpty(isolatedSecretsDir) && !Directory.Exists(isolatedSecretsDir)) 70if (!string.IsNullOrEmpty(secretsDir) && Directory.Exists(secretsDir))
src\Shared\UserSecrets\SecretsStore.cs (1)
74if (!string.IsNullOrEmpty(directory) && !Directory.Exists(directory))
src\Shared\UserSecrets\UserSecretsPathHelper.cs (2)
41if (string.IsNullOrEmpty(root)) 51return !string.IsNullOrEmpty(appData)
src\Shared\X509Certificate2Extensions.cs (1)
117return certificate.Extensions.OfType<X509SubjectKeyIdentifierExtension>().Any(ski => !string.IsNullOrEmpty(ski.SubjectKeyIdentifier));
Telemetry\AspireCliTelemetry.cs (4)
285if (!string.IsNullOrEmpty(internalMicrosoftResult.Source)) 290if (!string.IsNullOrEmpty(internalMicrosoftResult.Alias)) 295if (!string.IsNullOrEmpty(internalMicrosoftResult.Domain)) 310if (!string.IsNullOrEmpty(_executionContext.IdentityCommit))
Telemetry\CIEnvironmentDetector.cs (7)
55if (!string.IsNullOrEmpty(_configuration["CODEBUILD_BUILD_ID"]) && 56!string.IsNullOrEmpty(_configuration["AWS_REGION"])) 62if (!string.IsNullOrEmpty(_configuration["BUILD_ID"]) && 63!string.IsNullOrEmpty(_configuration["BUILD_URL"])) 69if (!string.IsNullOrEmpty(_configuration["BUILD_ID"]) && 70!string.IsNullOrEmpty(_configuration["PROJECT_ID"])) 78if (!string.IsNullOrEmpty(_configuration[varName]))
Telemetry\CodingAgentDetector.cs (1)
81if (!string.IsNullOrEmpty(value))
Telemetry\InternalMicrosoftDetector.cs (2)
333if (string.IsNullOrEmpty(directory)) 1153var extensions = _environment.IsWindows() && string.IsNullOrEmpty(Path.GetExtension(command))
Telemetry\MachineInformationProviderBase.cs (1)
63.FirstOrDefault(x => !string.IsNullOrEmpty(x));
Telemetry\ProfilingTelemetry.cs (7)
532activity.SetAddSourceSpecified(!string.IsNullOrEmpty(source)); 787if (string.IsNullOrEmpty(executableName)) 910SetTag(Tags.AddVersionSpecified, !string.IsNullOrEmpty(version)); 911SetTag(Tags.AddSourceSpecified, !string.IsNullOrEmpty(source)); 924SetTag(Tags.AddVersionSpecified, !string.IsNullOrEmpty(version)); 964SetTag(Tags.AppHostDashboardHasUrl, !string.IsNullOrEmpty(dashboardUrls?.BaseUrlWithLoginToken)); 965SetTag(Tags.AppHostDashboardHasCodespacesUrl, !string.IsNullOrEmpty(dashboardUrls?.CodespacesUrlWithLoginToken));
Telemetry\TelemetryConfiguration.cs (1)
48var requestedOtlpExporter = !string.IsNullOrEmpty(configuration[AspireCliTelemetry.OtlpExporterEndpointConfigKey]);
Telemetry\WindowsMachineInformationProvider.cs (1)
75return !string.IsNullOrEmpty(existingValue);
Templating\CliTemplateFactory.cs (1)
327if (!string.IsNullOrEmpty(fileDirectory))
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
74if (!string.IsNullOrEmpty(inputs.Channel))
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
69if (!string.IsNullOrEmpty(inputs.Channel))
Templating\CliTemplateFactory.JavaStarterTemplate.cs (1)
71if (!string.IsNullOrEmpty(inputs.Channel))
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
83if (!string.IsNullOrEmpty(inputs.Channel))
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
69if (!string.IsNullOrEmpty(inputs.Channel))
Templating\TemplateNuGetConfigService.cs (2)
270else if (!string.IsNullOrEmpty(query.RequestedChannel)) 380if (!string.IsNullOrEmpty(query.RequestedChannel))
Utils\ArchiveHelper.cs (3)
43if (string.IsNullOrEmpty(entry.FullName)) 81if (string.IsNullOrEmpty(entry.Name)) 117if (string.IsNullOrEmpty(entry.LinkName))
Utils\AspireAnsiConsoleOutput.cs (1)
66if (!string.IsNullOrEmpty(consoleWidthOverride) &&
Utils\AspireRepositoryDetector.cs (7)
63if (!string.IsNullOrEmpty(repoRoot)) 69if (!string.IsNullOrEmpty(envRoot) && Directory.Exists(envRoot)) 75if (!string.IsNullOrEmpty(processPath)) 78if (!string.IsNullOrEmpty(repoRoot)) 89if (string.IsNullOrEmpty(startPath)) 95while (!string.IsNullOrEmpty(currentDirectory)) 123return string.IsNullOrEmpty(parentDirectory) ? fullPath : parentDirectory;
Utils\CliDownloader.cs (1)
43if (string.IsNullOrEmpty(channel.CliDownloadBaseUrl))
Utils\CliHostEnvironment.cs (6)
113if (!string.IsNullOrEmpty(nonInteractive) && 141if (!string.IsNullOrEmpty(nonInteractive) && 193if (!string.IsNullOrEmpty(noColor)) 206return !string.IsNullOrEmpty(ansiPassThru) && 216if (!string.IsNullOrEmpty(value)) 237return !string.IsNullOrEmpty(playgroundMode) &&
Utils\CliPathHelper.cs (7)
112if (string.IsNullOrEmpty(processPath)) 119if (string.IsNullOrEmpty(binaryDir)) 139if (string.IsNullOrEmpty(prDir)) 145if (string.IsNullOrEmpty(dogfoodDir) || 181if (string.IsNullOrEmpty(path)) 191if (string.IsNullOrEmpty(path)) 264if (string.IsNullOrEmpty(path) || !path.StartsWith("/private/", StringComparison.Ordinal))
Utils\ConsoleActivityLogger.cs (2)
332if (!string.IsNullOrEmpty(_finalStatusHeader)) 499var reason = rec.State == ActivityState.Failure && !string.IsNullOrEmpty(rec.FailureReason)
Utils\DotNetToolDetection.cs (4)
150if (string.IsNullOrEmpty(processDirectory)) 190if (string.IsNullOrEmpty(processDirectory)) 203while (!string.IsNullOrEmpty(currentDirectory)) 208if (!string.IsNullOrEmpty(parentDirectory))
Utils\EnvironmentChecker\AspireVersionCheck.cs (3)
173if (string.IsNullOrEmpty(channel)) 190if (string.IsNullOrEmpty(channel)) 350if (string.IsNullOrEmpty(directory))
Utils\EnvironmentChecker\DevCertsCheck.cs (2)
261!string.IsNullOrEmpty(c.Thumbprint)) 565if (!string.IsNullOrEmpty(currentSslCertDir))
Utils\FileLock.cs (1)
61if (!string.IsNullOrEmpty(directory))
Utils\FirstTimeUseNoticeSentinel.cs (1)
39if (!string.IsNullOrEmpty(directory) && !Directory.Exists(directory))
Utils\Markdown\MarkdownToSpectreConverter.Renderable.cs (2)
199var column = new TableColumn(string.IsNullOrEmpty(headerMarkup) ? Text.Empty : new Markup(headerMarkup)); 232cells[i] = string.IsNullOrEmpty(markup)
Utils\MarkupHelpers.cs (1)
86if (string.IsNullOrEmpty(filePath))
Utils\PackageSourceRedactor.cs (4)
30if (string.IsNullOrEmpty(source)) 54var hasUserInfo = !string.IsNullOrEmpty(uri.UserInfo); 55var hasQuery = !string.IsNullOrEmpty(uri.Query); 56var hasFragment = !string.IsNullOrEmpty(uri.Fragment);
Utils\ReparsePoint.cs (4)
41if (string.IsNullOrEmpty(linkPath)) 46if (string.IsNullOrEmpty(target)) 161if (!string.IsNullOrEmpty(dirInfo.LinkTarget)) 167if (!string.IsNullOrEmpty(fileInfo.LinkTarget))
Utils\StringUtils.cs (1)
12if (string.IsNullOrEmpty(input))
aspire-managed (10)
NuGet\Commands\ManifestCommand.cs (1)
95if (!string.IsNullOrEmpty(outputDirectory))
NuGet\Commands\NuGetPackageAssetResolver.cs (2)
116if (!string.IsNullOrEmpty(packagesPath)) 359if (string.IsNullOrEmpty(locale))
NuGet\Commands\SearchCommand.cs (2)
181if (!string.IsNullOrEmpty(configPath) && File.Exists(configPath)) 295if (!string.IsNullOrEmpty(pkg.Description))
src\Shared\BundleDiscovery.cs (5)
130if (string.IsNullOrEmpty(baseDirectory) || !Directory.Exists(baseDirectory)) 161if (string.IsNullOrEmpty(baseDirectory) || !Directory.Exists(baseDirectory)) 269if (string.IsNullOrEmpty(repoRoot)) 360if (!string.IsNullOrEmpty(baseDir) && Directory.Exists(baseDir)) 376if (string.IsNullOrEmpty(processPath))
Aspire.Acquisition.Tests (4)
Scripts\Common\ScriptHostFixture.cs (1)
174if (string.IsNullOrEmpty(requestPath) || _scriptsDirectory is null)
Scripts\PRScriptInstallerModeTests.cs (1)
418if (!string.IsNullOrEmpty(parent))
tests\Shared\TemplatesTesting\CommandResult.cs (1)
30if (!string.IsNullOrEmpty(Output))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
Aspire.Azure.AI.Inference (6)
AspireAzureAIInferenceExtensions.cs (4)
155if (!string.IsNullOrEmpty(settings.Key)) 266var chatCompletionsClient = string.IsNullOrEmpty(builder.ServiceKey) ? 408if (!string.IsNullOrEmpty(settings.Key)) 519var embeddingsClient = string.IsNullOrEmpty(builder.ServiceKey) ?
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.AI.OpenAI (4)
AspireAzureOpenAIExtensions.cs (1)
107if (!string.IsNullOrEmpty(settings.Key))
AspireConfigurableOpenAIExtensions.cs (1)
94if (serviceUri == null && string.IsNullOrEmpty(apiKey))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Data.Tables (5)
AspireTablesExtensions.cs (2)
105if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 110return !string.IsNullOrEmpty(connectionString) ? new TableServiceClient(connectionString, options) :
AzureDataTablesSettings.cs (1)
54if (!string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Messaging.EventHubs (22)
AzureMessagingEventHubsSettings.cs (1)
103if (!string.IsNullOrEmpty(connectionString))
EventHubBufferedProducerClientComponent.cs (2)
38if (string.IsNullOrEmpty(settings.ConnectionString)) 44if (string.IsNullOrEmpty(settings.EventHubName))
EventHubConsumerClientComponent.cs (2)
39if (string.IsNullOrEmpty(settings.ConnectionString)) 45if (string.IsNullOrEmpty(settings.EventHubName))
EventHubProducerClientComponent.cs (2)
37if (string.IsNullOrEmpty(settings.ConnectionString)) 43if (string.IsNullOrEmpty(settings.EventHubName))
EventHubsComponent.cs (4)
46if (string.IsNullOrEmpty(settings.ConnectionString)) 51else if (string.IsNullOrEmpty(settings.EventHubName)) 124if (string.IsNullOrEmpty(connectionString) && string.IsNullOrEmpty(settings.FullyQualifiedNamespace))
EventProcessorClientComponent.cs (3)
51if (string.IsNullOrEmpty(settings.ConnectionString)) 59if (string.IsNullOrEmpty(settings.EventHubName)) 78var blobClient = !string.IsNullOrEmpty(settings.BlobClientServiceKey) ?
PartitionReceiverClientComponent.cs (3)
38if (string.IsNullOrEmpty(settings.PartitionId)) 46if (string.IsNullOrEmpty(settings.ConnectionString)) 57if (string.IsNullOrEmpty(settings.EventHubName))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
584=> string.IsNullOrEmpty(key) ? $"{prefix}:{suffix}" : $"{prefix}:{key}:{suffix}";
Aspire.Azure.Messaging.ServiceBus (13)
AspireServiceBusExtensions.cs (6)
76if (string.IsNullOrEmpty(connectionString) && string.IsNullOrEmpty(settings.FullyQualifiedNamespace)) 81return !string.IsNullOrEmpty(connectionString) ? 88=> !string.IsNullOrEmpty(settings.HealthCheckQueueName) 115=> !string.IsNullOrEmpty(settings.HealthCheckQueueName) || !string.IsNullOrEmpty(settings.HealthCheckTopicName);
AzureMessagingServiceBusSettings.cs (2)
94if (!string.IsNullOrEmpty(connectionString)) 135if (string.IsNullOrEmpty(entityPath))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Messaging.WebPubSub (10)
AspireWebPubSubExtensions.cs (4)
69if (string.IsNullOrEmpty(settings.HubName)) 108if (string.IsNullOrEmpty(connectionString) && settings.Endpoint == null) 115if (string.IsNullOrEmpty(hubName)) 122return !string.IsNullOrEmpty(connectionString) ?
AzureMessagingWebPubSubSettings.cs (1)
59if (!string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Npgsql (2)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (2)
26if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Username)) 52if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Password))
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (2)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (2)
26if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Username)) 52if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Password))
Aspire.Azure.Search.Documents (2)
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Security.KeyVault (3)
AzureSecurityKeyVaultSettings.cs (1)
45if (!string.IsNullOrEmpty(connectionString) &&
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Storage.Blobs (9)
AspireBlobStorageExtensions.BlobStorageComponent.cs (2)
28if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 33return !string.IsNullOrEmpty(connectionString) ? new BlobServiceClient(connectionString, options) :
AspireBlobStorageExtensions.BlobStorageContainerComponent.cs (3)
27if (string.IsNullOrEmpty(settings.BlobContainerName)) 33if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 38var blobServiceClient = !string.IsNullOrEmpty(connectionString) ? new BlobServiceClient(connectionString, options) :
AzureBlobStorageContainerSettings.cs (1)
25if (string.IsNullOrEmpty(connectionString))
AzureStorageBlobsSettings.cs (1)
55if (string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Storage.Blobs.Tests (1)
AzureBlobStorageContainerSettingsTests.cs (1)
62Assert.True(string.IsNullOrEmpty(settings.ConnectionString));
Aspire.Azure.Storage.Files.DataLake (9)
AspireDataLakeExtensions.DataLakeComponent.cs (2)
30if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 36return !string.IsNullOrEmpty(connectionString) ?
AspireDataLakeExtensions.DataLakeFileSystemComponent.cs (3)
29if (string.IsNullOrEmpty(settings.FileSystemName)) 36if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 42var dataLakeServiceClient = !string.IsNullOrEmpty(connectionString) ?
AzureDataLakeFileSystemSettings.cs (1)
25if (string.IsNullOrEmpty(connectionString))
AzureDataLakeSettings.cs (1)
55if (string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Storage.Files.DataLake.Tests (1)
AzureDataLakeFileSystemSettingsTests.cs (1)
62Assert.True(string.IsNullOrEmpty(settings.ConnectionString));
Aspire.Azure.Storage.Queues (12)
AspireQueueStorageExtensions.cs (5)
190if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 195return !string.IsNullOrEmpty(connectionString) 238if (string.IsNullOrEmpty(settings.QueueName)) 244if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 249var queueServiceClient = !string.IsNullOrEmpty(connectionString) ? new QueueServiceClient(connectionString, options) :
AzureStorageQueueSettings.cs (1)
25if (string.IsNullOrEmpty(connectionString))
AzureStorageQueuesSettings.cs (1)
55if (string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Storage.Queues.Tests (1)
AzureStorageQueueSettingsTests.cs (1)
62Assert.True(string.IsNullOrEmpty(settings.ConnectionString));
Aspire.Cli.EndToEnd.Tests (45)
ChannelUpdateWorkflowTests.cs (2)
103if (string.IsNullOrEmpty(initialChannel) || 389if (string.IsNullOrEmpty(initialChannel) ||
DotnetToolSmokeTests.cs (3)
121if (!string.IsNullOrEmpty(source)) 125return string.IsNullOrEmpty(version) 134if (!string.IsNullOrEmpty(builtNugetsPath) && Directory.Exists(builtNugetsPath))
Helpers\CliE2EAutomatorHelpers.cs (4)
51return string.IsNullOrEmpty(additionalArguments) ? command : $"{command} {additionalArguments}"; 659return !string.IsNullOrEmpty(majorVersion) && !string.IsNullOrEmpty(minorVersion) 773var extraArgs = !string.IsNullOrEmpty(additionalArgs) ? $" {additionalArgs}" : "";
Helpers\CliE2ETestHelpers.cs (11)
37!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTIONS")); 48if (string.IsNullOrEmpty(prNumberStr)) 59!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_PR_NUMBER")) || 72if (string.IsNullOrEmpty(commitSha)) 246if (!string.IsNullOrEmpty(cliVersionOutputDir)) 274if (!string.IsNullOrEmpty(options.DockerfilePath) || !string.IsNullOrEmpty(options.BuildContext)) 657if (string.IsNullOrEmpty(raw)) 794if (string.IsNullOrEmpty(finalUrl)) 1030if (string.IsNullOrEmpty(sdkVersion)) 1179var baseDir = !string.IsNullOrEmpty(githubWorkspace)
Helpers\CliInstallStrategyTests.cs (6)
201Assert.True(string.IsNullOrEmpty(options.DockerfilePath)); 202Assert.True(string.IsNullOrEmpty(options.BuildContext)); 271Assert.True(string.IsNullOrEmpty(options.DockerfilePath)); 272Assert.True(string.IsNullOrEmpty(options.BuildContext)); 302Assert.True(string.IsNullOrEmpty(options.DockerfilePath)); 303Assert.True(string.IsNullOrEmpty(options.BuildContext));
tests\Shared\CliInstallStrategy.cs (15)
342if (string.IsNullOrEmpty(prNumber) || string.IsNullOrEmpty(headSha)) 448if (!string.IsNullOrEmpty(archivePath)) 455if (!string.IsNullOrEmpty(dotnetToolSource)) 458var strategy = !string.IsNullOrEmpty(toolVersion) 486if (!string.IsNullOrEmpty(version)) 501if (!string.IsNullOrEmpty(archiveDir)) 509if (!string.IsNullOrEmpty(prNumber) && !string.IsNullOrEmpty(headSha)) 515if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("CI")) || 516!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTIONS"))) 545if (!string.IsNullOrEmpty(ghToken)) 555if (string.IsNullOrEmpty(ArchiveDir)) 617if (string.IsNullOrEmpty(qualityStr)) 632return string.IsNullOrEmpty(version) && quality is CliInstallQuality.Dev or CliInstallQuality.Staging;
tests\Shared\CliPackageDiscovery.cs (1)
53if (string.IsNullOrEmpty(fileName)
tests\Shared\Hex1bTestHelpers.cs (2)
123if (!string.IsNullOrEmpty(githubWorkspace)) 149return !string.IsNullOrEmpty(fromXunit) ? fromXunit : callerMemberName;
TypeScriptStarterSmokeTests.cs (1)
134var channelExpectsPrerelease = !string.IsNullOrEmpty(channel) &&
Aspire.Cli.Tests (25)
Agents\SigstoreNpmProvenanceCheckerTests.cs (2)
860Assert.False(string.IsNullOrEmpty(owner)); 861Assert.False(string.IsNullOrEmpty(repo));
AssemblyMetadataChannelTests.cs (1)
28Assert.False(string.IsNullOrEmpty(metadata.Value), "AspireCliChannel must have a non-empty value.");
CliBootstrapTests.cs (1)
50Assert.False(string.IsNullOrEmpty(bakedChannel));
Commands\AgentMcpCommandTests.cs (1)
125Assert.False(string.IsNullOrEmpty(tool.Description), $"Tool '{tool.Name}' should have a description");
Commands\AppHostLauncherTests.cs (1)
1319var workingDirectory = string.IsNullOrEmpty(startInfo.WorkingDirectory) ? Directory.GetCurrentDirectory() : startInfo.WorkingDirectory;
Commands\DashboardRunCommandTests.cs (2)
274Assert.False(string.IsNullOrEmpty(capturedEnv["DASHBOARD__FRONTEND__BROWSERTOKEN"])); 276Assert.False(string.IsNullOrEmpty(capturedEnv["DASHBOARD__API__PRIMARYAPIKEY"]));
Commands\NewCommandChannelResolutionTests.cs (3)
602var channelArg = string.IsNullOrEmpty(channelOptionArg) ? "" : $" --channel {channelOptionArg}"; 603var versionArg = string.IsNullOrEmpty(versionOptionArg) ? "" : $" --version {versionOptionArg}"; 604var sourceArg = string.IsNullOrEmpty(sourceOptionArg) ? "" : $" --source {sourceOptionArg}";
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
396var channelArg = string.IsNullOrEmpty(explicitChannelArg) ? "" : $" --channel {explicitChannelArg}";
Commands\PsCommandTests.cs (2)
826string[] capabilities = string.IsNullOrEmpty(sdkVersion) 855DashboardHealthy = !string.IsNullOrEmpty(appHostPath)
Projects\AppHostServerSessionTests.cs (1)
122Assert.False(string.IsNullOrEmpty(session.AuthenticationToken));
Projects\DotNetAppHostProjectTests.cs (1)
4175if (!string.IsNullOrEmpty(directory))
Projects\PrebuiltAppHostServerTests.cs (4)
766Assert.False(string.IsNullOrEmpty(gpfValue)); 825Assert.False(string.IsNullOrEmpty(gpfValue)); 948Assert.False(string.IsNullOrEmpty(gpfValue)); 2854if (!string.IsNullOrEmpty(sourcePathDirectory))
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
TestServices\TestAuxiliaryBackchannelMonitor.cs (2)
70if (!string.IsNullOrEmpty(SelectedAppHostPath)) 107if (string.IsNullOrEmpty(appHostPath))
TestServices\TestProcessExecutionFactory.cs (1)
133string.IsNullOrEmpty(startInfo.WorkingDirectory) ? Directory.GetCurrentDirectory() : startInfo.WorkingDirectory);
Utils\PathNormalizerTests.cs (1)
93Assert.False(string.IsNullOrEmpty(resolved));
Aspire.Components.Common.TestUtilities (2)
ConformanceTests.cs (2)
253=> string.IsNullOrEmpty(key) 683=> string.IsNullOrEmpty(key) ? $"{prefix}:{suffix}" : $"{prefix}:{key}:{suffix}";
Aspire.Confluent.Kafka (6)
AspireKafkaConsumerExtensions.cs (1)
226if (string.IsNullOrEmpty(json))
AspireKafkaProducerExtensions.cs (1)
226if (string.IsNullOrEmpty(json))
KafkaProducerSettings.cs (1)
65if (string.IsNullOrEmpty(Config.BootstrapServers))
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (1)
352var spanName = string.IsNullOrEmpty(topicPartitionOffset?.Topic)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (1)
150var spanName = string.IsNullOrEmpty(topicPartitionOffset?.Topic)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (1)
80if (string.IsNullOrEmpty(value))
Aspire.Dashboard (159)
Api\ApiAuthenticationHandler.cs (1)
63if (string.IsNullOrEmpty(providedApiKey))
Api\TelemetryApiService.cs (5)
188if (!string.IsNullOrEmpty(traceId)) 199if (!string.IsNullOrEmpty(severity) && Enum.TryParse<LogLevel>(severity, ignoreCase: true, out var logLevel)) 300if (!string.IsNullOrEmpty(traceId)) 310if (!string.IsNullOrEmpty(severity) && Enum.TryParse<LogLevel>(severity, ignoreCase: true, out var parsedLevel)) 372if (!string.IsNullOrEmpty(search))
Components\Controls\ApplicationName.razor.cs (1)
90_pageTitle = string.IsNullOrEmpty(AdditionalText)
Components\Controls\AspireMenu.razor.cs (1)
147if (RestoreFocusOnItemClick && !string.IsNullOrEmpty(Anchor))
Components\Controls\Chart\PlotlyChart.razor.cs (1)
164else if (!string.IsNullOrEmpty(exemplar.TraceId))
Components\Controls\LogViewer.razor.cs (1)
210if (string.IsNullOrEmpty(value))
Components\Controls\SpanDetails.razor.cs (3)
125if (!string.IsNullOrEmpty(_viewModel.Span.Scope.Version)) 129if (!string.IsNullOrEmpty(_viewModel.Span.TraceId)) 133if (!string.IsNullOrEmpty(_viewModel.Span.ParentSpanId))
Components\Controls\StructuredLogDetails.razor.cs (2)
84if (!string.IsNullOrEmpty(_viewModel.LogEntry.EventName)) 176if (string.IsNullOrEmpty(value))
Components\Controls\TerminalView.razor.cs (3)
77if (string.IsNullOrEmpty(ResourceName)) 225if (!string.IsNullOrEmpty(newResourceName)) 234if (string.IsNullOrEmpty(newResourceName))
Components\Dialogs\ExemplarsDialog.razor.cs (1)
68if (!string.IsNullOrEmpty(Content.Instrument.Unit))
Components\Dialogs\GenAIVisualizerDialog.razor.cs (5)
281if (string.IsNullOrEmpty(vm.ToolDefinition.Description)) 299if (!string.IsNullOrEmpty(blobPart.Content)) 314if (!string.IsNullOrEmpty(uriPart.Uri)) 336if (!string.IsNullOrEmpty(mimeType)) 346if (!string.IsNullOrEmpty(currentFileName))
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
220if (!string.IsNullOrEmpty(inputModel.Input.Placeholder))
Components\Interactions\InteractionsProvider.cs (4)
280if (string.IsNullOrEmpty(item.PrimaryButtonText)) 443if (!string.IsNullOrEmpty(notification.LinkText)) 462if (!string.IsNullOrEmpty(primaryButtonText)) 475if (item.ShowSecondaryButton && !string.IsNullOrEmpty(secondaryButtonText))
Components\Pages\ComponentTelemetryContext.cs (1)
76if (value.Value is string s && string.IsNullOrEmpty(s))
Components\Pages\ConsoleLogs.razor.cs (1)
444else if (!string.IsNullOrEmpty(selectedResourceName) && !_consoleLogsSubscriptions.ContainsKey(selectedResourceName))
Components\Pages\Error.razor.cs (1)
19private bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Components\Pages\Metrics.razor.cs (2)
159if (viewModel.Instruments != null && !string.IsNullOrEmpty(MeterName)) 162if (viewModel.SelectedMeter != null && !string.IsNullOrEmpty(InstrumentName))
Components\Pages\Resources.razor.cs (1)
826return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.Resource.ParentName)));
Components\Pages\StructuredLogs.razor.cs (4)
173if (!string.IsNullOrEmpty(TraceId)) 180if (!string.IsNullOrEmpty(SpanId)) 512if (string.IsNullOrEmpty(logEntry.SpanId) || string.IsNullOrEmpty(logEntry.TraceId))
Configuration\DashboardOptions.cs (8)
41if (!string.IsNullOrEmpty(Url)) 114if (!string.IsNullOrEmpty(GrpcEndpointUrl) && !OptionsHelpers.TryParseBindingAddress(GrpcEndpointUrl, out _parsedGrpcEndpointAddress)) 120if (!string.IsNullOrEmpty(HttpEndpointUrl) && !OptionsHelpers.TryParseBindingAddress(HttpEndpointUrl, out _parsedHttpEndpointAddress)) 126if (string.IsNullOrEmpty(HttpEndpointUrl) && !string.IsNullOrEmpty(Cors.AllowedOrigins)) 212public bool IsCorsEnabled => !string.IsNullOrEmpty(AllowedOrigins); 249if (string.IsNullOrEmpty(EndpointUrls)) 408if (!string.IsNullOrEmpty(ServerCertificate))
Configuration\PostConfigureDashboardOptions.cs (2)
74if (options.Frontend.AuthMode == FrontendAuthMode.BrowserToken && string.IsNullOrEmpty(options.Frontend.BrowserToken)) 84if (options.Api.AuthMode == ApiAuthMode.ApiKey && string.IsNullOrEmpty(options.Api.PrimaryApiKey))
Configuration\ValidateDashboardOptions.cs (8)
45if (string.IsNullOrEmpty(options.Frontend.BrowserToken)) 69var hasOtlpEndpoint = !string.IsNullOrEmpty(options.Otlp.GrpcEndpointUrl) || !string.IsNullOrEmpty(options.Otlp.HttpEndpointUrl); 77if (string.IsNullOrEmpty(options.Otlp.PrimaryApiKey)) 86if (string.IsNullOrEmpty(allowedCertRule.Thumbprint)) 113if (string.IsNullOrEmpty(options.Api.PrimaryApiKey)) 142if (string.IsNullOrEmpty(options.ResourceServiceClient.ClientCertificate.FilePath)) 148if (string.IsNullOrEmpty(options.ResourceServiceClient.ClientCertificate.Subject))
DashboardEndpointsBuilder.cs (1)
58if (string.IsNullOrEmpty(redirectUrl))
DashboardWebApplication.cs (2)
253var allowedHeaders = !string.IsNullOrEmpty(corsOptions.AllowedHeaders) 455if (!string.IsNullOrEmpty(dashboardOptions.Otlp.Cors.AllowedOrigins))
Extensions\ResourceViewModelExtensions.cs (1)
62public static bool HasNoState(this ResourceViewModel resource) => string.IsNullOrEmpty(resource.State);
Model\BrowserTimeProvider.cs (1)
36if (string.IsNullOrEmpty(timeZone) || !TimeZoneInfo.TryFindSystemTimeZoneById(timeZone, out var timeZoneInfo))
Model\ConnectionStringParser.cs (10)
229if (Uri.TryCreate(connectionString, UriKind.Absolute, out var uri) && !string.IsNullOrEmpty(uri.Host)) 287else if (!string.IsNullOrEmpty(token)) 318if (!string.IsNullOrEmpty(hostPart)) 388if (!string.IsNullOrEmpty(hostPart)) 439if (string.IsNullOrEmpty(value)) 465if (string.IsNullOrEmpty(scheme)) 490if (string.IsNullOrEmpty(s)) 526if (!string.IsNullOrEmpty(key) && !string.IsNullOrEmpty(value)) 580return Uri.TryCreate(fakeUri, UriKind.Absolute, out var uri) && !string.IsNullOrEmpty(uri.Host);
Model\DebugSessionHelpers.cs (1)
53if (!string.IsNullOrEmpty(dcpInstanceId))
Model\DefaultInstrumentUnitResolver.cs (1)
16if (!string.IsNullOrEmpty(instrument.Unit))
Model\EnvHelpers.cs (1)
53if (string.IsNullOrEmpty(value))
Model\GenAI\GenAIVisualizerDialogViewModel.cs (18)
78if (!string.IsNullOrEmpty(toolDefinitionsJson)) 208if (!string.IsNullOrEmpty(textPart.Content)) 233if (!string.IsNullOrEmpty(blobPart.Content)) 240if (!string.IsNullOrEmpty(uriPart.Uri)) 247if (!string.IsNullOrEmpty(filePart.FileId)) 254if (!string.IsNullOrEmpty(reasoningPart.Content)) 288if (!string.IsNullOrEmpty(systemInstructions) || !string.IsNullOrEmpty(inputMessages) || !string.IsNullOrEmpty(outputMessages)) 290if (!string.IsNullOrEmpty(systemInstructions)) 301if (!string.IsNullOrEmpty(inputMessages)) 305if (!string.IsNullOrEmpty(outputMessages)) 317if (!string.IsNullOrEmpty(item.Message) && OtlpHelpers.GetEventName(item) is { } name && TryMapEventName(name, out var type)) 337if (!string.IsNullOrEmpty(content)) 405if (!string.IsNullOrEmpty(content)) 432if (!string.IsNullOrEmpty(content)) 654if (string.IsNullOrEmpty(name)) 672if (string.IsNullOrEmpty(value))
Model\IconResolver.cs (1)
107if (!string.IsNullOrEmpty(iconName))
Model\Interaction\InputViewModel.cs (2)
58if (string.IsNullOrEmpty(input.Placeholder) && string.IsNullOrEmpty(input.Value) && optionsVM.Count > 0 && !input.AllowCustomChoice)
Model\Markdown\MarkdownProcessor.cs (1)
48if (string.IsNullOrEmpty(markdown))
Model\Otlp\SpanWaterfallViewModel.cs (1)
23public bool HasUninstrumentedPeer => !string.IsNullOrEmpty(UninstrumentedPeer);
Model\ResourceGraph\ResourceGraphMapper.cs (1)
74if (string.IsNullOrEmpty(text))
Model\ResourceGridViewModel.cs (1)
76if (string.IsNullOrEmpty(parentName))
Model\ResourceIconHelpers.cs (1)
49if (resource.TryGetProjectPath(out var projectPath) && !string.IsNullOrEmpty(projectPath))
Model\ResourceMenuBuilder.cs (1)
149.Where(u => !string.IsNullOrEmpty(u.Url))
Model\ResourceStateViewModel.cs (1)
73else if (!string.IsNullOrEmpty(resource.StateStyle))
Model\ResourceUrlHelpers.cs (3)
27if (!includeNonEndpointUrls && string.IsNullOrEmpty(url.EndpointName)) 40DisplayName = string.IsNullOrEmpty(url.DisplayProperties.DisplayName) ? null : url.DisplayProperties.DisplayName, 42Text = string.IsNullOrEmpty(url.DisplayProperties.DisplayName) ? url.Url.OriginalString : url.DisplayProperties.DisplayName
Model\SpanType.cs (1)
98if (!string.IsNullOrEmpty(span.Attributes.GetValue(attributeName)))
Model\TelemetryExportService.cs (5)
268TraceId = string.IsNullOrEmpty(log.TraceId) ? null : log.TraceId, 269SpanId = string.IsNullOrEmpty(log.SpanId) ? null : log.SpanId, 396ParentSpanId = string.IsNullOrEmpty(span.ParentSpanId) ? null : span.ParentSpanId, 413if (status == OtlpSpanStatusCode.Unset && string.IsNullOrEmpty(statusMessage)) 649Version = string.IsNullOrEmpty(scope.Version) ? null : scope.Version,
Model\ThemeManager.cs (1)
108SelectedTheme = !string.IsNullOrEmpty(browserThemeSettings.SelectedTheme) ? browserThemeSettings.SelectedTheme : null;
Model\TraceHelpers.cs (1)
23if (string.IsNullOrEmpty(item.ParentSpanId) || !trace.Spans.TryGetValue(item.ParentSpanId, out var parentSpan))
Model\ValidateTokenMiddleware.cs (2)
55if (!string.IsNullOrEmpty(newQuerystring)) 86if (string.IsNullOrEmpty(incomingBrowserToken) || dashboardOptions.CurrentValue.Frontend.GetBrowserTokenBytes() is not { } expectedBrowserTokenBytes)
Model\WebSocketOriginValidator.cs (2)
14originLogValue = string.IsNullOrEmpty(origin) ? "(none)" : origin; 16if (string.IsNullOrEmpty(origin) ||
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
46if (!string.IsNullOrEmpty(options.Cors.AllowedOrigins))
Otlp\Model\OtlpHelpers.cs (5)
53if (string.IsNullOrEmpty(serviceName)) 56if (!string.IsNullOrEmpty(processExecutableName)) 339if (string.IsNullOrEmpty(value)) 415sb.Append(string.IsNullOrEmpty(kv.Value) ? "\'\'" : kv.Value); 498if (!string.IsNullOrEmpty(logEntry.EventName))
Otlp\Model\OtlpLogEntry.cs (1)
82EventName = !string.IsNullOrEmpty(record.EventName) ? record.EventName : eventNameFromAttribute;
Otlp\Model\OtlpResource.cs (1)
83if (string.IsNullOrEmpty(metric.Name))
Otlp\Model\OtlpSpan.cs (7)
63if (string.IsNullOrEmpty(ParentSpanId)) 118if (!string.IsNullOrEmpty(StatusMessage)) 183if (!string.IsNullOrEmpty(statusCode)) 189else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 195else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 206if (!string.IsNullOrEmpty(grpcStatusCode) && Enum.TryParse<StatusCode>(grpcStatusCode, out var statusCode)) 216else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system")))
Otlp\Model\OtlpTrace.cs (3)
68if (string.IsNullOrEmpty(span.ParentSpanId)) 74if (string.IsNullOrEmpty(existingSpan.ParentSpanId)) 104if (string.IsNullOrEmpty(span.ParentSpanId))
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (4)
864if (string.IsNullOrEmpty(hex)) 895if (response.PartialSuccess is not null && (response.PartialSuccess.RejectedSpans > 0 || !string.IsNullOrEmpty(response.PartialSuccess.ErrorMessage))) 912if (response.PartialSuccess is not null && (response.PartialSuccess.RejectedLogRecords > 0 || !string.IsNullOrEmpty(response.PartialSuccess.ErrorMessage))) 929if (response.PartialSuccess is not null && (response.PartialSuccess.RejectedDataPoints > 0 || !string.IsNullOrEmpty(response.PartialSuccess.ErrorMessage)))
Otlp\Storage\TelemetryRepository.cs (3)
742var hasTraceIdFilter = !string.IsNullOrEmpty(context.TraceId); 801if (!string.IsNullOrEmpty(traceId) && !OtlpHelpers.MatchTelemetryId(traceId, span.TraceId)) 2053State = !string.IsNullOrEmpty(span.TraceState) ? span.TraceState : null,
ServiceClient\DashboardClient.cs (2)
419_minRequiredVersion = string.IsNullOrEmpty(response.MinDashboardVersion) ? null : response.MinDashboardVersion; 1161if (string.IsNullOrEmpty(requiredVersionText))
src\Shared\FormatHelpers.cs (2)
109if (string.IsNullOrEmpty(text)) 124return string.Join(separator, parts.Where(p => !string.IsNullOrEmpty(p)));
src\Shared\IConfigurationExtensions.cs (1)
245if (string.IsNullOrEmpty(value))
src\Shared\LocaleHelpers.cs (1)
82if (string.IsNullOrEmpty(localeOverride))
src\Shared\LoggingHelpers.cs (1)
36var loginUrl = !string.IsNullOrEmpty(token) && dashboardAuthority is not null
src\Shared\Model\ResourceSourceViewModel.cs (5)
15!string.IsNullOrEmpty(projectPath)) 22!string.IsNullOrEmpty(toolPackage)) 28!string.IsNullOrEmpty(executablePath)) 34!string.IsNullOrEmpty(containerImage)) 40!string.IsNullOrEmpty(source))
src\Shared\StringUtils.cs (3)
13if (!string.IsNullOrEmpty(input) 48return !string.IsNullOrEmpty(first) 50: !string.IsNullOrEmpty(second)
Utils\UrlValidationHelper.cs (1)
26if (string.IsNullOrEmpty(url))
Aspire.Dashboard.Components.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Dashboard.Tests (16)
Integration\MockOpenIdAuthority.cs (1)
81if (string.IsNullOrEmpty(lastCode) && code != lastCode)
Integration\Playwright\AccessibilityTests.cs (1)
522=> string.IsNullOrEmpty(value)
Integration\Playwright\AspireMenuButtonFocusTests.cs (1)
41Assert.False(string.IsNullOrEmpty(clearButtonId));
Integration\StartupTests.cs (1)
532Assert.False(string.IsNullOrEmpty(app.DashboardOptionsMonitor.CurrentValue.Api.PrimaryApiKey), "A primary API key should be auto-generated.");
Integration\TelemetryApiTests.cs (1)
45Assert.False(string.IsNullOrEmpty(options.Api.PrimaryApiKey), "A primary API key should be auto-generated.");
Model\InputViewModelTests.cs (6)
50Assert.True(string.IsNullOrEmpty(viewModel.Value)); 88Assert.True(string.IsNullOrEmpty(viewModel.Value)); 105Assert.True(string.IsNullOrEmpty(viewModel.Value)); 158Assert.True(string.IsNullOrEmpty(viewModel.Value)); 179Assert.True(string.IsNullOrEmpty(viewModel.Value)); 402Assert.True(string.IsNullOrEmpty(viewModel.Value));
Model\ResourceStateViewModelTests.cs (1)
78HealthStatus? healthStatus = string.IsNullOrEmpty(healthStatusString) ? null : Enum.Parse<HealthStatus>(healthStatusString);
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
Aspire.Deployment.EndToEnd.Tests (96)
AcaCompactNamingDeploymentTests.cs (2)
51if (string.IsNullOrEmpty(subscriptionId)) 205if (string.IsNullOrEmpty(subscriptionId))
AcaCompactNamingUpgradeDeploymentTests.cs (1)
37if (string.IsNullOrEmpty(subscriptionId))
AcaCustomRegistryDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AcaDeploymentErrorOutputTests.cs (1)
40if (string.IsNullOrEmpty(subscriptionId))
AcaExistingRegistryDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AcaManagedRedisDeploymentTests.cs (1)
36if (string.IsNullOrEmpty(subscriptionId))
AcaStarterDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AcrPurgeTaskDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (1)
45if (string.IsNullOrEmpty(subscriptionId))
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (1)
48if (string.IsNullOrEmpty(subscriptionId))
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (1)
39if (string.IsNullOrEmpty(subscriptionId))
AksBlazorRedisDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AksMultipleNodePoolsDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AksPersistentVolumeDeploymentTests.cs (1)
29if (string.IsNullOrEmpty(subscriptionId))
AksStarterDeploymentTests.cs (1)
33if (string.IsNullOrEmpty(subscriptionId))
AksStarterWithRedisHelmDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AksVnetInfraDeploymentTests.cs (1)
33if (string.IsNullOrEmpty(subscriptionId))
AksVnetWithAzureResourcesDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AksWithAzureResourcesDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AksWithHelmChartDeploymentTests.cs (1)
40if (string.IsNullOrEmpty(subscriptionId))
AppServicePythonDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AppServiceReactDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
AppServiceStoragePrivateEndpointDeploymentTests.cs (1)
30if (string.IsNullOrEmpty(subscriptionId))
AuthenticationTests.cs (3)
20if (string.IsNullOrEmpty(subscriptionId)) 32Assert.False(string.IsNullOrEmpty(subscriptionId)); 40if (string.IsNullOrEmpty(subscriptionId))
AzureAppConfigDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AzureContainerRegistryDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AzureEventHubsDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AzureKeyVaultDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AzureLogAnalyticsDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AzureResourceScopeDeploymentTests.cs (1)
32if (string.IsNullOrEmpty(subscriptionId))
AzureRoleAssignmentRunModeTests.cs (2)
44if (string.IsNullOrEmpty(subscriptionId)) 158if (!string.IsNullOrEmpty(tenantId))
AzureServiceBusDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
AzureStorageDeploymentTests.cs (2)
45if (string.IsNullOrEmpty(subscriptionId)) 199if (string.IsNullOrEmpty(subscriptionId))
AzureStorageRunModeTests.cs (2)
32if (string.IsNullOrEmpty(subscriptionId)) 141if (!string.IsNullOrEmpty(tenantId))
FoundryHostedAgentDeploymentTests.cs (1)
36if (string.IsNullOrEmpty(subscriptionId))
FrontDoorDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
Helpers\AzureAuthenticationHelpers.cs (7)
63if (string.IsNullOrEmpty(subscriptionId)) 69if (string.IsNullOrEmpty(subscriptionId)) 99return string.IsNullOrEmpty(prefix) ? DefaultResourceGroupPrefix : prefix; 115var suffix = !string.IsNullOrEmpty(runId) 119if (!string.IsNullOrEmpty(testName)) 192return !string.IsNullOrEmpty(GetClientId()) && !string.IsNullOrEmpty(GetTenantId());
Helpers\DeploymentE2ETestHelpers.cs (7)
20!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTIONS")); 29if (string.IsNullOrEmpty(prNumberStr) || !int.TryParse(prNumberStr, out var prNumber)) 44if (!string.IsNullOrEmpty(commitSha)) 50return string.IsNullOrEmpty(githubSha) ? "local0000" : githubSha; 60return string.IsNullOrEmpty(runId) ? DateTime.UtcNow.ToString("yyyyMMddHHmmss") : runId; 70return string.IsNullOrEmpty(runAttempt) ? "1" : runAttempt; 197if (!string.IsNullOrEmpty(prNumber))
Helpers\DeploymentReporter.cs (7)
28if (string.IsNullOrEmpty(summaryPath)) 88if (string.IsNullOrEmpty(summaryPath)) 94if (!string.IsNullOrEmpty(logs)) 114if (!string.IsNullOrEmpty(logs)) 128if (!string.IsNullOrEmpty(subscriptionId)) 144if (string.IsNullOrEmpty(summaryPath)) 169if (!string.IsNullOrEmpty(errorMessage))
KubernetesGatewayTlsDeploymentTests.cs (1)
39if (string.IsNullOrEmpty(subscriptionId))
KubernetesHelmChartDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
NspStorageKeyVaultDeploymentTests.cs (1)
34if (string.IsNullOrEmpty(subscriptionId))
PythonFastApiDeploymentTests.cs (1)
35if (string.IsNullOrEmpty(subscriptionId))
RadiusStarterDeploymentTests.cs (1)
47if (string.IsNullOrEmpty(subscriptionId))
tests\Shared\CliInstallStrategy.cs (15)
342if (string.IsNullOrEmpty(prNumber) || string.IsNullOrEmpty(headSha)) 448if (!string.IsNullOrEmpty(archivePath)) 455if (!string.IsNullOrEmpty(dotnetToolSource)) 458var strategy = !string.IsNullOrEmpty(toolVersion) 486if (!string.IsNullOrEmpty(version)) 501if (!string.IsNullOrEmpty(archiveDir)) 509if (!string.IsNullOrEmpty(prNumber) && !string.IsNullOrEmpty(headSha)) 515if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("CI")) || 516!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTIONS"))) 545if (!string.IsNullOrEmpty(ghToken)) 555if (string.IsNullOrEmpty(ArchiveDir)) 617if (string.IsNullOrEmpty(qualityStr)) 632return string.IsNullOrEmpty(version) && quality is CliInstallQuality.Dev or CliInstallQuality.Staging;
tests\Shared\CliPackageDiscovery.cs (1)
53if (string.IsNullOrEmpty(fileName)
tests\Shared\Hex1bTestHelpers.cs (2)
123if (!string.IsNullOrEmpty(githubWorkspace)) 149return !string.IsNullOrEmpty(fromXunit) ? fromXunit : callerMemberName;
TypeScriptAzureContainerAppJobDeploymentTests.cs (1)
31if (string.IsNullOrEmpty(subscriptionId))
TypeScriptExpressDeploymentTests.cs (1)
33if (string.IsNullOrEmpty(subscriptionId))
TypeScriptJavaScriptHostingDeploymentTests.cs (1)
31if (string.IsNullOrEmpty(subscriptionId))
TypeScriptVnetSqlServerInfraDeploymentTests.cs (1)
33if (string.IsNullOrEmpty(subscriptionId))
VnetKeyVaultConnectivityDeploymentTests.cs (1)
32if (string.IsNullOrEmpty(subscriptionId))
VnetKeyVaultInfraDeploymentTests.cs (1)
32if (string.IsNullOrEmpty(subscriptionId))
VnetSqlServerConnectivityDeploymentTests.cs (1)
37if (string.IsNullOrEmpty(subscriptionId))
VnetSqlServerInfraDeploymentTests.cs (1)
32if (string.IsNullOrEmpty(subscriptionId))
VnetStorageBlobConnectivityDeploymentTests.cs (1)
32if (string.IsNullOrEmpty(subscriptionId))
VnetStorageBlobInfraDeploymentTests.cs (1)
32if (string.IsNullOrEmpty(subscriptionId))
Aspire.EndToEnd.Tests (11)
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
tests\Shared\TemplatesTesting\AspireProject.cs (3)
362if (string.IsNullOrEmpty(dashboardUrlToUse)) 401if (string.IsNullOrEmpty(DashboardUrl)) 482if (string.IsNullOrEmpty(containerName))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (3)
136if (string.IsNullOrEmpty(EnvironmentVariables.SdkForTemplateTestingPath)) 150if (string.IsNullOrEmpty(EnvironmentVariables.BuiltNuGetsPath) || !Directory.Exists(EnvironmentVariables.BuiltNuGetsPath)) 206if (!string.IsNullOrEmpty(EnvironmentVariables.TestLogPath))
tests\Shared\TemplatesTesting\CommandResult.cs (1)
30if (!string.IsNullOrEmpty(Output))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
Aspire.Hosting (247)
ApplicationModel\AspireStore.cs (1)
89if (!string.IsNullOrEmpty(_basePath))
ApplicationModel\CommandsConfigurationExtensions.cs (1)
150static bool HasNoState(string? state) => string.IsNullOrEmpty(state);
ApplicationModel\ConnectionStringReference.cs (1)
33if (string.IsNullOrEmpty(value) && !Optional)
ApplicationModel\ContainerImagePushOptions.cs (6)
77if (string.IsNullOrEmpty(RemoteImageName)) 84var tag = string.IsNullOrEmpty(RemoteImageTag) ? "latest" : RemoteImageTag; 89if (!string.IsNullOrEmpty(host)) 106if (!string.IsNullOrEmpty(repository) && !string.IsNullOrEmpty(registryEndpoint)) 112if (!string.IsNullOrEmpty(registryEndpoint))
ApplicationModel\ContainerImageReference.cs (1)
60if (!string.IsNullOrEmpty(buildOptionsContext.OutputPath))
ApplicationModel\ContainerMountAnnotation.cs (2)
26if (string.IsNullOrEmpty(source)) 37if (type == ContainerMountType.Volume && string.IsNullOrEmpty(source) && isReadOnly)
ApplicationModel\DebugSupportExtensions.cs (1)
53|| string.IsNullOrEmpty(configuration[DcpExecutor.DebugSessionPortVar])
ApplicationModel\EndpointHostHelpers.cs (1)
131if (string.IsNullOrEmpty(allocatedUrl))
ApplicationModel\EndpointReference.cs (1)
31.Where(n => !string.IsNullOrEmpty(n))
ApplicationModel\ExecutableLaunchRecipe.cs (2)
633if (!string.IsNullOrEmpty(appHostConfiguration)) 848if (!string.IsNullOrEmpty(appHostConfiguration) &&
ApplicationModel\ExpressionResolver.cs (1)
66if (string.IsNullOrEmpty(value.Value) && !cs.Optional)
ApplicationModel\McpServerEndpointAnnotation.cs (2)
49if (string.IsNullOrEmpty(baseUrl)) 54if (string.IsNullOrEmpty(path))
ApplicationModel\ProjectLaunchArgsOverrideAnnotation.cs (1)
54if (!string.IsNullOrEmpty(configuration))
ApplicationModel\ResourceCommandService.cs (3)
599if (loadedDynamicArgumentNames is not null && !string.IsNullOrEmpty(value) && argument.DynamicLoading is not null && !loadedDynamicArgumentNames.Contains(argument.Name)) 607if (string.IsNullOrEmpty(value)) 689if (!arguments.TryGetByName(dependency, out var input) || string.IsNullOrEmpty(input.Value))
ApplicationModel\ResourceExtensions.cs (6)
944!string.IsNullOrEmpty(buildAnnotation.ImageName)) 946var tagSuffix = string.IsNullOrEmpty(buildAnnotation.ImageTag) ? string.Empty : $":{buildAnnotation.ImageTag}"; 953var registryPrefix = string.IsNullOrEmpty(imageAnnotation.Registry) ? string.Empty : $"{imageAnnotation.Registry}/"; 955if (string.IsNullOrEmpty(imageAnnotation.SHA256)) 957var tagSuffix = string.IsNullOrEmpty(imageAnnotation.Tag) ? string.Empty : $":{imageAnnotation.Tag}"; 1432var fileName = string.IsNullOrEmpty(imageTag)
ApplicationModel\ResourceNotificationService.cs (3)
105string[] targetStates = !string.IsNullOrEmpty(targetState) ? [targetState] : [KnownResourceStates.Running]; 1179var newIconName = string.IsNullOrEmpty(previousState.IconName) ? iconAnnotation.IconName : previousState.IconName; 1313if (!string.IsNullOrEmpty(report.ExceptionText))
ApplicationModel\ResourceUrlsEditor.cs (2)
34if (!string.IsNullOrEmpty(urlValue)) 65if (!string.IsNullOrEmpty(urlValue))
Backchannel\AppHostRpcTarget.cs (2)
265if (string.IsNullOrEmpty(request.InputName)) 308if (!string.IsNullOrEmpty(request?.Step))
Backchannel\AppHostStartupState.cs (1)
14if (string.IsNullOrEmpty(configuration["REMOTE_APP_HOST_SOCKET_PATH"]))
Backchannel\AuxiliaryBackchannelRpcTarget.cs (14)
93if (!string.IsNullOrEmpty(info.BaseUrlWithLoginToken)) 97if (!string.IsNullOrEmpty(info.CodespacesUrlWithLoginToken)) 123if (!string.IsNullOrEmpty(request?.Filter)) 152if (!string.IsNullOrEmpty(filter) && !snapshot.Name.Contains(filter, StringComparison.OrdinalIgnoreCase)) 860if (string.IsNullOrEmpty(appHostPath)) 869if (!string.IsNullOrEmpty(cliPidString) && int.TryParse(cliPidString, out var parsedCliPid)) 875if (!string.IsNullOrEmpty(cliStartedAtString) && long.TryParse(cliStartedAtString, out var parsedCliStartedAt)) 886if (!string.IsNullOrEmpty(cliStableStartedAtString) && long.TryParse(cliStableStartedAtString, out var parsedCliStableStartedAt)) 1069.Where(u => !u.IsInactive && !string.IsNullOrEmpty(u.Url)) 1077DisplayName = string.IsNullOrEmpty(u.DisplayProperties.DisplayName) ? null : u.DisplayProperties.DisplayName, 1473IEnumerable<string> strings => strings.Where(static s => !string.IsNullOrEmpty(s)).ToArray(), 1474IEnumerable<object> objects => objects.OfType<string>().Where(static s => !string.IsNullOrEmpty(s)).ToArray(), 1475System.Collections.IEnumerable enumerable => enumerable.Cast<object>().OfType<string>().Where(static s => !string.IsNullOrEmpty(s)).ToArray(), 1739if (string.IsNullOrEmpty(search))
Backchannel\AuxiliaryBackchannelService.cs (3)
61if (!string.IsNullOrEmpty(appHostPath)) 214if (!string.IsNullOrEmpty(appHostPath)) 231return string.IsNullOrEmpty(appHostPath) ? appHostPath : PathNormalizer.ResolveSymlinks(appHostPath);
Backchannel\BackchannelService.cs (1)
40if (string.IsNullOrEmpty(unixSocketPath))
Backchannel\DashboardUrlsHelper.cs (5)
99if (!string.IsNullOrEmpty(apiBaseUrl)) 107if (string.IsNullOrEmpty(apiBaseUrl)) 117resolveActivity.SetDashboardHasApiBaseUrl(!string.IsNullOrEmpty(apiBaseUrl)); 126if (!string.IsNullOrEmpty(apiBaseUrl)) 128baseUrlWithLoginToken = !string.IsNullOrEmpty(dashboardOptions.DashboardToken)
ContainerResourceBuilderExtensions.cs (1)
371!string.IsNullOrEmpty(buildAnnotation.ImageTag))
Dashboard\DashboardEventHandlers.cs (8)
470if (!string.IsNullOrEmpty(browserToken)) 558if (string.IsNullOrEmpty(url) && StringUtils.TryGetUriFromDelimitedString(configuredUrl, ";", out var firstUrl)) 563if (string.IsNullOrEmpty(url)) 620if (string.IsNullOrEmpty(allowedOrigins)) 626if (!string.IsNullOrEmpty(allowedOrigins)) 634if (!string.IsNullOrEmpty(browserToken)) 657if (!string.IsNullOrEmpty(otlpApiKey)) 668if (!string.IsNullOrEmpty(apiKey))
Dashboard\DashboardService.cs (3)
253if (!string.IsNullOrEmpty(input.FileFilter)) 519if (string.IsNullOrEmpty(chunk.FileName)) 527if (string.IsNullOrEmpty(chunk.InputName))
Dashboard\InteractionFileUploadStore.cs (1)
289fileReferences = string.IsNullOrEmpty(jsonValue)
Dashboard\proto\Partials.cs (1)
92if (!string.IsNullOrEmpty(property.DisplayName))
Dashboard\TransportOptionsValidator.cs (3)
24if (!string.IsNullOrEmpty(applicationUrls)) 54if (!string.IsNullOrEmpty(resourceServiceEndpointUrl)) 85if (!string.IsNullOrEmpty(value))
Dcp\ContainerCreator.cs (1)
125if (!string.IsNullOrEmpty(_normalizedApplicationName))
Dcp\DcpDependencyCheck.cs (2)
60if (!string.IsNullOrEmpty(containerRuntime)) 227if (string.IsNullOrEmpty(containerRuntime))
Dcp\DcpExecutor.cs (4)
344if (string.IsNullOrEmpty(applicationName)) 355if (string.IsNullOrEmpty(applicationName)) 526.Where(cs => !string.IsNullOrEmpty(cs.PrimaryServiceName) && cs.Service?.HasCompleteAddress is not true); 877initial.InitialSnapshot.State?.Text is string state && !string.IsNullOrEmpty(state))
Dcp\DcpHost.cs (6)
304if (!string.IsNullOrEmpty(_dcpOptions.ContainerRuntime)) 330if (!string.IsNullOrEmpty(_dcpOptions.ExtensionsPath)) 355if (!string.IsNullOrEmpty(_dcpOptions.DiagnosticsLogFolder)) 361if (!string.IsNullOrEmpty(_dcpOptions.DiagnosticsLogLevel)) 428if (!string.IsNullOrEmpty(directoryName)) 550if (string.IsNullOrEmpty(containerRuntime))
Dcp\DcpKubernetesClient.cs (1)
57if (string.IsNullOrEmpty(namespaceParameter))
Dcp\DcpModelUtilities.cs (4)
194if (allocatedPort is null || string.IsNullOrEmpty(svc.AllocatedAddress)) 292!string.IsNullOrEmpty(ts.EndpointName) && 293!string.IsNullOrEmpty(ts.ContainerNetworkName) 320var address = string.IsNullOrEmpty(ts.TunnelInstanceName) ? containerHostName : KnownHostNames.DefaultContainerTunnelHostName;
Dcp\DcpOptions.cs (11)
206if (Path.GetDirectoryName(options.CliPath) is string dcpDir && !string.IsNullOrEmpty(dcpDir)) 242if (!string.IsNullOrEmpty(configTerminalHostPath)) 246else if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.TerminalHostPath)])) 257if (!string.IsNullOrEmpty(configTerminalHostInvocationArgs)) 261else if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.TerminalHostInvocationArgs)])) 293if (string.IsNullOrEmpty(options.TerminalHostPath) && 294!string.IsNullOrEmpty(options.DashboardPath) && 299if (string.IsNullOrEmpty(options.TerminalHostInvocationArgs)) 305if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.ContainerRuntime)])) 314if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.DependencyCheckTimeout)])) 333if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.ResourceNameSuffix)]))
Dcp\DcpResourceWatcher.cs (6)
543return string.IsNullOrEmpty(state) || state == ExecutableState.Unknown; 965!string.IsNullOrEmpty(resourceVersion) && 977!string.IsNullOrEmpty(previousObservation.Uid) && 978!string.IsNullOrEmpty(resourceUid) && 1002(string.IsNullOrEmpty(previousUid) && string.IsNullOrEmpty(resourceUid));
Dcp\ExecutableLaunchPolicy.cs (2)
83if (string.IsNullOrEmpty(_configuration[DcpExecutor.DebugSessionPortVar])) 94if (debugSupport is not null && !string.IsNullOrEmpty(_configuration[KnownConfigNames.DebugSessionInfo]))
Dcp\KubernetesService.cs (6)
106var response = string.IsNullOrEmpty(namespaceParameter) 139var response = string.IsNullOrEmpty(namespaceParameter) 172var response = string.IsNullOrEmpty(namespaceParameter) 206var response = string.IsNullOrEmpty(namespaceParameter) 236var response = string.IsNullOrEmpty(namespaceParameter) 274var responseTask = string.IsNullOrEmpty(namespaceParameter)
Dcp\Model\Container.cs (1)
617public bool LogsAvailable => !string.IsNullOrEmpty(this.Status?.State);
Dcp\Model\ContainerExec.cs (1)
143public bool LogsAvailable => !string.IsNullOrEmpty(this.Status?.State);
Dcp\Model\Executable.cs (1)
305public bool LogsAvailable => !string.IsNullOrEmpty(this.Status?.State);
Dcp\Model\KubernetesMicroTimeJsonConverter.cs (1)
28if (string.IsNullOrEmpty(value))
Dcp\Model\Service.cs (1)
91public bool HasCompleteAddress => AllocatedPort > 0 && !string.IsNullOrEmpty(AllocatedAddress);
Dcp\Process\ProcessUtil.cs (2)
96if (string.IsNullOrEmpty(e.Data)) 115if (string.IsNullOrEmpty(e.Data))
Dcp\ResourceSnapshotBuilder.cs (2)
242return string.IsNullOrEmpty(state) || state == ExecutableState.Unknown; 303.Where(s => !string.IsNullOrEmpty(s.EndpointName))
Devcontainers\SshRemoteOptions.cs (2)
31var hasVscodeIpcHook = !string.IsNullOrEmpty(configuration.GetValue<string>(VscodeIpcHookCliEnvironmentVariable)); 32var hasSshConnection = !string.IsNullOrEmpty(configuration.GetValue<string>(SshConnectionEnvironmentVariable));
Diagnostics\ProfilingTelemetry.cs (12)
612if (!string.IsNullOrEmpty(sessionId)) 622if (activity is null || string.IsNullOrEmpty(sessionId)) 652var sessionId = traceContext?.Baggage.TryGetValue(Tags.ProfilingSessionId, out var baggageSessionId) == true && !string.IsNullOrEmpty(baggageSessionId) 655if (!string.IsNullOrEmpty(sessionId)) 665if (!string.IsNullOrEmpty(traceContext?.TraceParent) && 700if (string.IsNullOrEmpty(traceParent)) 727if (annotations.TryGetValue(name, out value) && !string.IsNullOrEmpty(value)) 732return annotations.TryGetValue(legacyName, out value) && !string.IsNullOrEmpty(value); 860if (!string.IsNullOrEmpty(sessionId)) 867if (!string.IsNullOrEmpty(traceParent)) 874if (!string.IsNullOrEmpty(traceState)) 917if (!string.IsNullOrEmpty(mode))
DistributedApplication.cs (4)
242if (!string.IsNullOrEmpty(options.ProjectDirectory)) 247if (!string.IsNullOrEmpty(options.AppHostFilePath)) 768if (!string.IsNullOrEmpty(context.LocaleOverride)) 788if (!string.IsNullOrEmpty(context.LocaleOverride))
DistributedApplicationBuilder.cs (10)
298if (!string.IsNullOrEmpty(configuredAppHostSha)) 357_userSecretsManager = !string.IsNullOrEmpty(userSecretsId) 618if (!string.IsNullOrEmpty(options.ContainerRegistryOverride)) 698if (!string.IsNullOrEmpty(_innerBuilder.Configuration[KnownOtelConfigNames.ExporterOtlpEndpoint])) 738if (!string.IsNullOrEmpty(_innerBuilder.Configuration[KnownOtelConfigNames.ExporterOtlpEndpoint])) 746return !string.IsNullOrEmpty(dashboardOtlpGrpcUrl) || !string.IsNullOrEmpty(dashboardOtlpHttpUrl); 805if (string.IsNullOrEmpty(_innerBuilder.Configuration["Pipeline:Step"])) 811if (string.IsNullOrEmpty(_innerBuilder.Configuration["AppHost:Operation"])) 1035if (!string.IsNullOrEmpty(baseIntermediateOutputPath))
DistributedApplicationOptions.cs (9)
143if (string.IsNullOrEmpty(appHostFilePath) || string.Equals(Path.GetExtension(appHostFilePath), ".csproj", StringComparison.OrdinalIgnoreCase)) 149if (!string.IsNullOrEmpty(projectDirectory)) 155return string.IsNullOrEmpty(appHostDirectory) 164if (!string.IsNullOrEmpty(entryPointFilePath)) 173if (!string.IsNullOrEmpty(projectPath)) 181if (!string.IsNullOrEmpty(name)) 202if (!string.IsNullOrEmpty(projectDirectory) && !string.IsNullOrEmpty(projectName)) 218if (!string.IsNullOrEmpty(AssemblyName))
ExternalServiceBuilderExtensions.cs (1)
340return string.IsNullOrEmpty(uri.UserInfo)
ExternalServiceResource.cs (2)
89if (!string.IsNullOrEmpty(uri.Fragment)) 93if (!string.IsNullOrEmpty(uri.Query))
IInteractionService.cs (1)
855if (string.IsNullOrEmpty(errorMessage))
InteractionService.cs (3)
57if (!string.IsNullOrEmpty(interactivityEnabled) && 222if (!input.AllowCustomChoice && !string.IsNullOrEmpty(input.Value)) 581else if (string.IsNullOrEmpty(value))
Lifecycle\TerminalHostEventingSubscriber.cs (1)
71if (string.IsNullOrEmpty(terminalHostPath))
Lifecycle\TerminalHostFailureDiagnosticService.cs (2)
145if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(invocationArgs))
Lifecycle\TerminalHostOrphanCleanupService.cs (2)
65if (string.IsNullOrEmpty(trmnlDirectory)) 324|| string.IsNullOrEmpty(metadata.AppHostProcessScopeId))
McpServerResourceBuilderExtensions.cs (2)
90if (string.IsNullOrEmpty(baseUrl)) 95if (string.IsNullOrEmpty(path))
Orchestrator\ParameterProcessor.cs (6)
222if (!string.IsNullOrEmpty(existingValue)) 318return !string.IsNullOrEmpty(value); 339if (!string.IsNullOrEmpty(existingValue)) 432if (string.IsNullOrEmpty(value)) 637if (string.IsNullOrEmpty(inputValue)) 681if (!string.IsNullOrEmpty(value))
ParameterResourceBuilderExtensions.cs (1)
282private static string? GetOptionalString(string? value) => string.IsNullOrEmpty(value) ? null : value;
Pipelines\DistributedApplicationPipeline.cs (1)
253if (string.IsNullOrEmpty(buildOptionsContext.OutputPath))
Pipelines\Internal\FileDeploymentStateManager.cs (2)
40if (string.IsNullOrEmpty(environmentName)) 56if (string.IsNullOrEmpty(appHostSha))
Pipelines\Internal\JsonFlattener.cs (2)
66var key = string.IsNullOrEmpty(prefix) 68: string.IsNullOrEmpty(kvp.Key)
Pipelines\PipelineStepExtensions.cs (2)
45if (string.IsNullOrEmpty(stepName)) 109if (string.IsNullOrEmpty(stepName))
Pipelines\PipelineStepHelpers.cs (1)
51var isLocalRegistry = string.IsNullOrEmpty(registryEndpoint);
Pipelines\ReportingStep.cs (1)
210var completionText = string.IsNullOrEmpty(CompletionText)
ProjectResourceBuilderExtensions.cs (2)
611else if (!string.IsNullOrEmpty(options.LaunchProfileName)) 619if (!string.IsNullOrEmpty(appHostDefaultLaunchProfileName))
Publishing\ContainerRuntimeBase.cs (1)
275return !string.IsNullOrEmpty(stage) ? $" --target \"{stage}\"" : string.Empty;
Publishing\DockerContainerRuntime.cs (6)
24var imageName = !string.IsNullOrEmpty(options?.Tag) 35if (string.IsNullOrEmpty(options?.OutputPath)) 49if (!string.IsNullOrEmpty(builderName)) 61if (options?.ImageFormat is not null || !string.IsNullOrEmpty(options?.OutputPath)) 71if (!string.IsNullOrEmpty(options?.OutputPath)) 122if (!string.IsNullOrEmpty(builderName))
Publishing\ManifestPublishingContext.cs (3)
717if (!string.IsNullOrEmpty(format)) 747if (string.IsNullOrEmpty(format)) 809if (string.IsNullOrEmpty(format))
Publishing\PodmanContainerRuntime.cs (3)
147var imageName = !string.IsNullOrEmpty(options?.Tag) 151if (options.ImageFormat == ContainerImageFormat.Oci && string.IsNullOrEmpty(options.OutputPath)) 227if (!string.IsNullOrEmpty(options?.OutputPath))
Publishing\ResourceContainerImageManager.cs (1)
344if (!string.IsNullOrEmpty(options.OutputPath))
ResourceBuilderExtensions.cs (6)
1268if (!string.IsNullOrEmpty(uri.Fragment)) 1273if (!string.IsNullOrEmpty(uri.Query)) 2135if (!string.IsNullOrEmpty(urlValue)) 3487var resultData = string.IsNullOrEmpty(formattedOutput) 3882if (!string.IsNullOrEmpty(result)) 3936if (string.IsNullOrEmpty(mediaType))
src\Shared\BackchannelConstants.cs (2)
705=> !string.IsNullOrEmpty(value) && value.All(static c => char.IsAsciiHexDigit(c)); 708=> !string.IsNullOrEmpty(value) && value.All(static c => char.IsAsciiLetterOrDigit(c) || c is '-' or '_');
src\Shared\BundleDiscovery.cs (5)
130if (string.IsNullOrEmpty(baseDirectory) || !Directory.Exists(baseDirectory)) 161if (string.IsNullOrEmpty(baseDirectory) || !Directory.Exists(baseDirectory)) 269if (string.IsNullOrEmpty(repoRoot)) 360if (!string.IsNullOrEmpty(baseDir) && Directory.Exists(baseDir)) 376if (string.IsNullOrEmpty(processPath))
src\Shared\EnvironmentVariableNameEncoder.cs (1)
25if (string.IsNullOrEmpty(name) || ValidNameRegex().IsMatch(name))
src\Shared\IConfigurationExtensions.cs (1)
245if (string.IsNullOrEmpty(value))
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (2)
36if (string.IsNullOrEmpty(launchProfileName)) 134if (string.IsNullOrEmpty(profile.CommandName) || Array.Exists(s_allowedCommandNames, name => string.Equals(name, profile.CommandName, StringComparison.OrdinalIgnoreCase)))
src\Shared\LocaleHelpers.cs (1)
82if (string.IsNullOrEmpty(localeOverride))
src\Shared\LoggingHelpers.cs (1)
36var loginUrl = !string.IsNullOrEmpty(token) && dashboardAuthority is not null
src\Shared\PathNormalizer.cs (5)
10if (string.IsNullOrEmpty(path)) 132if (string.IsNullOrEmpty(path)) 147if (string.IsNullOrEmpty(root)) 222if (string.IsNullOrEmpty(path)) 236if (string.IsNullOrEmpty(root))
src\Shared\StringUtils.cs (3)
13if (!string.IsNullOrEmpty(input) 48return !string.IsNullOrEmpty(first) 50: !string.IsNullOrEmpty(second)
src\Shared\UserSecrets\UserSecretsPathHelper.cs (2)
41if (string.IsNullOrEmpty(root)) 51return !string.IsNullOrEmpty(appData)
src\Shared\X509Certificate2Extensions.cs (1)
117return certificate.Extensions.OfType<X509SubjectKeyIdentifierExtension>().Any(ski => !string.IsNullOrEmpty(ski.SubjectKeyIdentifier));
TerminalResourceBuilderExtensions.cs (2)
175if (string.IsNullOrEmpty(appHostPath)) 182if (string.IsNullOrEmpty(trmnlDirectory))
UserSecrets\UserSecretsManagerFactory.cs (1)
232if (!string.IsNullOrEmpty(directoryName) && !Directory.Exists(directoryName))
Utils\ContainerReferenceParser.cs (1)
14if (string.IsNullOrEmpty(input))
Aspire.Hosting.Azure (88)
AcrLoginService.cs (1)
184if (string.IsNullOrEmpty(tokenResponse?.RefreshToken))
AzureDeploymentOperationDetails.cs (8)
83if (!string.IsNullOrEmpty(OperationId)) 88if (!string.IsNullOrEmpty(ProvisioningOperation)) 93if (!string.IsNullOrEmpty(ProvisioningState)) 108if (!string.IsNullOrEmpty(StatusCode)) 113if (!string.IsNullOrEmpty(ServiceRequestId)) 138if (!string.IsNullOrEmpty(Id)) 143if (!string.IsNullOrEmpty(ResourceType)) 148if (!string.IsNullOrEmpty(ResourceName))
AzureEnvironmentResource.cs (2)
235if (string.IsNullOrEmpty(resourceGroupName) || string.IsNullOrEmpty(subscriptionId))
AzureProvisioningController.cs (11)
391if (string.IsNullOrEmpty(context.Input.Value)) 424if (string.IsNullOrEmpty(context.Input.Value)) 455if (string.IsNullOrEmpty(context.Input.Value)) 489if (!string.IsNullOrEmpty(resourceGroupLocation)) 505if (string.IsNullOrEmpty(context.Input.Value)) 507context.Input.Value = !string.IsNullOrEmpty(deploymentStateResourceName) 1842if (string.IsNullOrEmpty(resourceGroupName)) 2693if (!string.IsNullOrEmpty(resourceName)) 3252var displayName = !string.IsNullOrEmpty(tenant.DisplayName) 3254: !string.IsNullOrEmpty(tenant.DefaultDomain) 3259if (!string.IsNullOrEmpty(tenant.DefaultDomain) &&
AzureProvisioningFailureDetails.cs (34)
64!string.IsNullOrEmpty(ResourceType); 80if (string.IsNullOrEmpty(requestId)) 163if (string.IsNullOrEmpty(errorCode) && string.IsNullOrEmpty(errorMessage)) 394if (!string.IsNullOrEmpty(ResourceType)) 399if (!string.IsNullOrEmpty(ResourceName)) 404if (!string.IsNullOrEmpty(TargetResourceId)) 409if (!string.IsNullOrEmpty(CurrentLocation)) 419if (!string.IsNullOrEmpty(ErrorCode)) 429if (!string.IsNullOrEmpty(RequestId)) 434if (!string.IsNullOrEmpty(CorrelationId)) 462if (!string.IsNullOrEmpty(ErrorCode)) 467if (!string.IsNullOrEmpty(ResourceType)) 472if (!string.IsNullOrEmpty(ResourceName)) 477if (!string.IsNullOrEmpty(TargetResourceId)) 482if (!string.IsNullOrEmpty(CurrentLocation)) 503if (!string.IsNullOrEmpty(Operation)) 508if (!string.IsNullOrEmpty(RequestId)) 513if (!string.IsNullOrEmpty(CorrelationId)) 528if (!string.IsNullOrEmpty(ErrorCode)) 538var message = !string.IsNullOrEmpty(ErrorCode) 549return response?.Headers.TryGetValue(name, out var value) == true && !string.IsNullOrEmpty(value) 629if (!string.IsNullOrEmpty(nested.ErrorMessage)) 683return !string.IsNullOrEmpty(code) || 684!string.IsNullOrEmpty(message) || 685!string.IsNullOrEmpty(operation) || 686!string.IsNullOrEmpty(resourceType) || 687!string.IsNullOrEmpty(resourceName) || 688!string.IsNullOrEmpty(targetResourceId) 722return !string.IsNullOrEmpty(id) || !string.IsNullOrEmpty(resourceName) || !string.IsNullOrEmpty(resourceType) 729if (string.IsNullOrEmpty(resourceType)) 742if (string.IsNullOrEmpty(message))
AzureResourceProperties.cs (2)
98IsHighlighted = !string.IsNullOrEmpty(value) 103if (includeEmptyProperties || !string.IsNullOrEmpty(value))
Provisioning\Internal\BaseProvisioningContextProvider.cs (7)
109if (string.IsNullOrEmpty(_options.Location)) 120if (string.IsNullOrEmpty(_options.ResourceGroup)) 223if (!string.IsNullOrEmpty(tenantId)) 232if (!string.IsNullOrEmpty(tenantDomain)) 269var displayName = !string.IsNullOrEmpty(t.DisplayName) 271: !string.IsNullOrEmpty(t.DefaultDomain) 277if (!string.IsNullOrEmpty(t.DefaultDomain) && t.DisplayName != t.DefaultDomain)
Provisioning\Internal\BicepCompiler.cs (2)
75string.IsNullOrEmpty(errorMessage) 86string.IsNullOrEmpty(errorMessage)
Provisioning\Internal\DefaultArmClientProvider.cs (1)
111if (string.IsNullOrEmpty(tenantId))
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
395if (existingResourceGroup.HasValue && !string.IsNullOrEmpty(existingResourceGroup.Value.Name))
Provisioning\Internal\RunModeProvisioningContextProvider.cs (7)
143if (string.IsNullOrEmpty(_options.ResourceGroup)) 217!string.IsNullOrEmpty(_options.Location) && 218!string.IsNullOrEmpty(_options.SubscriptionId); 331var includeTenantInput = forcePrompt || string.IsNullOrEmpty(_options.SubscriptionId); 360var allowSubscriptionEdit = forcePrompt || string.IsNullOrEmpty(_options.SubscriptionId); 424if (string.IsNullOrEmpty(context.Input.Value) && !defaultResourceGroupNameSet) 459if (!string.IsNullOrEmpty(resourceGroupLocation))
Provisioning\Provisioners\BicepProvisioner.cs (7)
70if (string.IsNullOrEmpty(configCheckSum)) 76if (string.IsNullOrEmpty(currentCheckSum) || !string.Equals(currentCheckSum, configCheckSum, StringComparison.Ordinal)) 500=> !string.IsNullOrEmpty(provisioningState) && 1221.Where(static label => !string.IsNullOrEmpty(label)) 1276if (!string.IsNullOrEmpty(value)) 1330if (!string.IsNullOrEmpty(locationOverride) && 1351if (!string.IsNullOrEmpty(provisioningState))
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
96if (string.IsNullOrEmpty(e.Data)) 115if (string.IsNullOrEmpty(e.Data))
src\Shared\StringUtils.cs (3)
13if (!string.IsNullOrEmpty(input) 48return !string.IsNullOrEmpty(first) 50: !string.IsNullOrEmpty(second)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
244if (!string.IsNullOrEmpty(dashboardUri))
Aspire.Hosting.Azure.CosmosDB (10)
AzureCosmosDBContainerResource.cs (2)
37if (partitionKeyPaths.Any(string.IsNullOrEmpty)) 97if (value.Any(string.IsNullOrEmpty))
AzureCosmosDBExtensions.cs (1)
440if (partitionKeyPathsArray.Any(string.IsNullOrEmpty))
AzureCosmosDBResource.cs (4)
210if (string.IsNullOrEmpty(databaseName) && string.IsNullOrEmpty(containerName)) 235if (!string.IsNullOrEmpty(databaseName)) 239if (!string.IsNullOrEmpty(containerName))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Hosting.Azure.Functions (4)
AzureFunctionsProjectResourceExtensions.cs (2)
206if (!string.IsNullOrEmpty(appHostDefaultLaunchProfileName)) 397if (string.IsNullOrEmpty(path))
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (2)
36if (string.IsNullOrEmpty(launchProfileName)) 134if (string.IsNullOrEmpty(profile.CommandName) || Array.Exists(s_allowedCommandNames, name => string.Equals(name, profile.CommandName, StringComparison.OrdinalIgnoreCase)))
Aspire.Hosting.Azure.Kubernetes (12)
AzureKubernetesEnvironmentExtensions.cs (1)
829if (!string.IsNullOrEmpty(nsFormat) && !nsFormat.Contains('{'))
AzureKubernetesEnvironmentResource.AksPipeline.cs (9)
372if (string.IsNullOrEmpty(subnetId)) 419if (string.IsNullOrEmpty(line) || errorCapture.Length >= kubectlErrorCaptureBytes) 464var detail = string.IsNullOrEmpty(capturedOutput) 667if (!string.IsNullOrEmpty(subscriptionId) && !string.IsNullOrEmpty(resourceGroup)) 675var pinnedSubscription = !string.IsNullOrEmpty(subscriptionId); 678if (string.IsNullOrEmpty(subscriptionId)) 685if (string.IsNullOrEmpty(resourceGroup)) 723if (!string.IsNullOrEmpty(savedResourceGroup))
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
96if (string.IsNullOrEmpty(e.Data)) 115if (string.IsNullOrEmpty(e.Data))
Aspire.Hosting.Azure.Kusto.Tests (2)
AddAzureKustoTests.cs (1)
42if (!string.IsNullOrEmpty(customTag))
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Azure.Network (1)
AzureSubnetResource.cs (1)
93=> !string.IsNullOrEmpty(argument) ? argument : throw new ArgumentNullException(paramName);
Aspire.Hosting.Azure.ServiceBus (4)
AzureServiceBusResource.cs (4)
124if (string.IsNullOrEmpty(queueOrTopicName) && string.IsNullOrEmpty(subscriptionName)) 141if (!string.IsNullOrEmpty(queueOrTopicName)) 145if (!string.IsNullOrEmpty(subscriptionName))
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
486if (!string.IsNullOrEmpty(databaseName))
Aspire.Hosting.Azure.Storage (3)
AzureBlobStorageResource.cs (1)
42if (string.IsNullOrEmpty(blobContainerName))
AzureDataLakeStorageResource.cs (1)
44if (string.IsNullOrEmpty(fileSystemName))
AzureQueueStorageResource.cs (1)
42if (string.IsNullOrEmpty(queueName))
Aspire.Hosting.Azure.Tests (7)
AzureEnvironmentResourceExtensionsTests.cs (1)
5567if (!string.IsNullOrEmpty(options.TenantId))
AzureEventHubsExtensionsTests.cs (1)
266if (!string.IsNullOrEmpty(imageTag))
AzureServiceBusExtensionsTests.cs (1)
184if (!string.IsNullOrEmpty(imageTag))
DefaultAzurePrincipalProviderTests.cs (3)
330if (!string.IsNullOrEmpty(upn)) 334if (!string.IsNullOrEmpty(email)) 338if (!string.IsNullOrEmpty(idtyp))
ProvisioningContextTests.cs (1)
222Assert.False(string.IsNullOrEmpty(principal.Name));
Aspire.Hosting.Blazor (3)
BlazorGatewayExtensions.cs (1)
795if (!string.IsNullOrEmpty(stampedValue))
BlazorWasmAppBuilder.cs (2)
97|| string.IsNullOrEmpty(props.StaticWebAssetEndpointsBuildManifestPath) 98|| string.IsNullOrEmpty(props.StaticWebAssetDevelopmentManifestPath))
Aspire.Hosting.Blazor.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Browsers (12)
BrowserLogsArtifacts.cs (1)
131var dataHome = !string.IsNullOrEmpty(xdgDataHome)
BrowserLogsEventLogger.cs (9)
61? string.Join(" ", parameters.Args.Select(FormatRemoteObject).Where(static value => !string.IsNullOrEmpty(value))) 107if (string.IsNullOrEmpty(url) || string.IsNullOrEmpty(method)) 182if (!string.IsNullOrEmpty(parameters.BlockedReason)) 214if (!string.IsNullOrEmpty(redirectUrl)) 220? string.IsNullOrEmpty(request.StatusText) 263string.IsNullOrEmpty(resourceType) 315if (!string.IsNullOrEmpty(remoteObject.UnserializableValue)) 373if (string.IsNullOrEmpty(url))
BrowserUserDataPathResolver.cs (2)
95var dataHome = !string.IsNullOrEmpty(xdgDataHome) 147return string.IsNullOrEmpty(result) ? "browser" : result;
Aspire.Hosting.Browsers.Tests (13)
src\Aspire.Hosting.Browsers\BrowserLogsArtifacts.cs (1)
131var dataHome = !string.IsNullOrEmpty(xdgDataHome)
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (9)
61? string.Join(" ", parameters.Args.Select(FormatRemoteObject).Where(static value => !string.IsNullOrEmpty(value))) 107if (string.IsNullOrEmpty(url) || string.IsNullOrEmpty(method)) 182if (!string.IsNullOrEmpty(parameters.BlockedReason)) 214if (!string.IsNullOrEmpty(redirectUrl)) 220? string.IsNullOrEmpty(request.StatusText) 263string.IsNullOrEmpty(resourceType) 315if (!string.IsNullOrEmpty(remoteObject.UnserializableValue)) 373if (string.IsNullOrEmpty(url))
src\Aspire.Hosting.Browsers\BrowserUserDataPathResolver.cs (2)
95var dataHome = !string.IsNullOrEmpty(xdgDataHome) 147return string.IsNullOrEmpty(result) ? "browser" : result;
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.cs (8)
184if (!string.IsNullOrEmpty(expanded.TypeId)) 393if (string.IsNullOrEmpty(capability.TargetTypeId)) 419if (string.IsNullOrEmpty(capability.TargetTypeId)) 432if (string.IsNullOrEmpty(targetType.TypeId)) 1232if (!string.IsNullOrEmpty(capability.Description)) 1606if (!string.IsNullOrEmpty(g.Description)) 2235if (string.IsNullOrEmpty(name)) 2248if (string.IsNullOrEmpty(name))
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (1)
97return Task.FromResult(!string.IsNullOrEmpty(Name));
Aspire.Hosting.CodeGeneration.Java (10)
AtsJavaCodeGenerator.cs (10)
110return string.IsNullOrEmpty(packageName) 133if (string.IsNullOrEmpty(packageLine)) 1721var publicParameterList = string.IsNullOrEmpty(requiredParameterList) 1725if (!string.IsNullOrEmpty(capability.Description)) 1792if (!string.IsNullOrEmpty(capability.Description)) 2201if (!string.IsNullOrEmpty(capability.Description)) 2426if (string.IsNullOrEmpty(capability.TargetTypeId)) 2722if (string.IsNullOrEmpty(name)) 2750if (string.IsNullOrEmpty(name)) 2764if (string.IsNullOrEmpty(name))
Aspire.Hosting.CodeGeneration.Java.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (1)
97return Task.FromResult(!string.IsNullOrEmpty(Name));
Aspire.Hosting.CodeGeneration.Python (18)
AtsPythonCodeGenerator.cs (18)
305if (string.IsNullOrEmpty(group.Key) || group.Count() <= 1) 724if (!string.IsNullOrEmpty(cap.TargetTypeId) && !dtoTypeIds.Contains(cap.TargetTypeId)) 1001if (string.IsNullOrEmpty(name)) 1209if (!string.IsNullOrEmpty(getter.Description)) 1241if (!string.IsNullOrEmpty(setter.Description)) 1274var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 1319if (!string.IsNullOrEmpty(capability.Description)) 1653if (!string.IsNullOrEmpty(capability.Description)) 1766var returnType = !string.IsNullOrEmpty(capReturnTypeId) 1771if (!string.IsNullOrEmpty(capability.Description)) 1840if (targetTypeRef == null || string.IsNullOrEmpty(targetTypeId)) 2095if (!string.IsNullOrEmpty(typeRef.TypeId) && typeRef.Category == AtsTypeCategory.Handle) 2099if (!string.IsNullOrEmpty(typeRef.TypeId) && typeRef.Category == AtsTypeCategory.Dict) 2103if (!string.IsNullOrEmpty(typeRef.TypeId) && typeRef.Category == AtsTypeCategory.List) 2158return capabilities.Where(c => string.IsNullOrEmpty(c.TargetTypeId)).ToList(); 2277if (string.IsNullOrEmpty(identifier)) 2305if (string.IsNullOrEmpty(sanitized)) 2320if (string.IsNullOrEmpty(typeName))
Aspire.Hosting.CodeGeneration.Python.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (1)
97return Task.FromResult(!string.IsNullOrEmpty(Name));
Aspire.Hosting.CodeGeneration.Rust (5)
AtsRustCodeGenerator.cs (5)
504if (!string.IsNullOrEmpty(capability.Description)) 682if (!string.IsNullOrEmpty(capability.Description)) 845if (string.IsNullOrEmpty(capability.TargetTypeId)) 1175if (string.IsNullOrEmpty(name)) 1191if (string.IsNullOrEmpty(name))
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (1)
97return Task.FromResult(!string.IsNullOrEmpty(Name));
Aspire.Hosting.CodeGeneration.TypeScript (12)
AtsTypeScriptCodeGenerator.cs (12)
952.Where(c => string.IsNullOrEmpty(c.TargetTypeId)) 1390if (string.IsNullOrEmpty(name)) 1406if (string.IsNullOrEmpty(name)) 1967var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 2883if (returnPromiseWrapper != null && !string.IsNullOrEmpty(capReturnTypeId)) 2926var returnType = !string.IsNullOrEmpty(capReturnTypeId) 3871var methodName = !string.IsNullOrEmpty(method.OwningTypeName) && method.MethodName.Contains('.') 4102var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 4368var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 4489if (targetTypeRef == null || string.IsNullOrEmpty(targetTypeId)) 4735if (!string.IsNullOrEmpty(typeRef.TypeId) && typeRef.Category == AtsTypeCategory.Handle) 4786return capabilities.Where(c => string.IsNullOrEmpty(c.TargetTypeId)).ToList();
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
TestTypes\TestTypes.cs (1)
97return Task.FromResult(!string.IsNullOrEmpty(Name));
Aspire.Hosting.Containers.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.DevTunnels (5)
DevTunnelCli.cs (2)
426if (!string.IsNullOrEmpty(value)) 435if (!string.IsNullOrEmpty(value))
DevTunnelCliClient.cs (2)
319if (string.IsNullOrEmpty(output)) 327if (!string.IsNullOrEmpty(propertyName))
src\Shared\EnvironmentVariableNameEncoder.cs (1)
25if (string.IsNullOrEmpty(name) || ValidNameRegex().IsMatch(name))
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Docker (6)
DockerComposeEnvironmentResource.cs (2)
149if (string.IsNullOrEmpty(savedComposeFilePath)) 594if (!string.IsNullOrEmpty(appHostSha) && appHostSha.Length >= 8)
DockerComposePublishingContext.cs (1)
190if (!string.IsNullOrEmpty(file.SourcePath))
EnvFile.cs (1)
145if (!string.IsNullOrEmpty(entry.Value))
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
96if (string.IsNullOrEmpty(e.Data)) 115if (string.IsNullOrEmpty(e.Data))
Aspire.Hosting.Dotnet (8)
DotnetProjectHostingExtensions.cs (1)
158if (!string.IsNullOrEmpty(configuration))
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (2)
36if (string.IsNullOrEmpty(launchProfileName)) 134if (string.IsNullOrEmpty(profile.CommandName) || Array.Exists(s_allowedCommandNames, name => string.Equals(name, profile.CommandName, StringComparison.OrdinalIgnoreCase)))
src\Shared\PathNormalizer.cs (5)
10if (string.IsNullOrEmpty(path)) 132if (string.IsNullOrEmpty(path)) 147if (string.IsNullOrEmpty(root)) 222if (string.IsNullOrEmpty(path)) 236if (string.IsNullOrEmpty(root))
Aspire.Hosting.Dotnet.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.DotnetTool.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.EntityFrameworkCore (16)
EFCoreOperationExecutor.cs (14)
93if (entryAssembly?.Location is { } appHostAssemblyPath && !string.IsNullOrEmpty(appHostAssemblyPath)) 121if (string.IsNullOrEmpty(_startupProjectPath)) 128if (string.IsNullOrEmpty(_resolvedTargetProjectPath)) 137if (!string.IsNullOrEmpty(workingDir)) 235if (!string.IsNullOrEmpty(_configuration)) 242if (!string.IsNullOrEmpty(ResolvedFramework)) 249if (!string.IsNullOrEmpty(_contextTypeName)) 261if (!string.IsNullOrEmpty(value)) 362return new EFOperationResult { Success = true, Output = !string.IsNullOrEmpty(data) ? data : "[]" }; 573if (!string.IsNullOrEmpty(outputDir)) 578if (!string.IsNullOrEmpty(@namespace)) 713if (!string.IsNullOrEmpty(outputPath)) 734if (!string.IsNullOrEmpty(outputPath)) 739if (!string.IsNullOrEmpty(targetRuntime))
EFMigrationResourceBuilderExtensions.cs (1)
461if (!string.IsNullOrEmpty(migrationResource.BundleBaseImage))
EFResourceBuilderExtensions.cs (1)
24if (string.IsNullOrEmpty(fullTypeName))
Aspire.Hosting.Foundry (17)
HostedAgent\AzureHostedAgentResource.cs (5)
111if (string.IsNullOrEmpty(imageName)) 165if (string.IsNullOrEmpty(projectEndpoint)) 246if (string.IsNullOrEmpty(principalId)) 253if (string.IsNullOrEmpty(foundryResourceId)) 405if (string.IsNullOrEmpty(connectionString) && !connectionStringReference.Optional)
HostedAgent\HostedAgentBuilderExtension.cs (1)
384if (string.IsNullOrEmpty(responseText))
LocalModelHealthCheck.cs (1)
12if (string.IsNullOrEmpty(modelId))
Project\ProjectResource.cs (2)
76if (string.IsNullOrEmpty(subscriptionId) || string.IsNullOrEmpty(resourceGroupName))
PromptAgent\AzurePromptAgentResource.cs (5)
203if (string.IsNullOrEmpty(projectEndpoint)) 417if (string.IsNullOrEmpty(subscriptionId) || string.IsNullOrEmpty(resourceGroupName)) 424if (string.IsNullOrEmpty(foundryAccountName) || string.IsNullOrEmpty(projectNameOutput))
PromptAgent\PromptAgentBuilderExtensions.cs (1)
85if (string.IsNullOrEmpty(endpoint))
ToolResources\AzureAISearchToolResource.cs (1)
67if (string.IsNullOrEmpty(connectionId))
ToolResources\BingGroundingToolResource.cs (1)
65if (string.IsNullOrEmpty(connectionId))
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.GitHub.Models (2)
GitHubModelsHealthCheck.cs (1)
83var message = !string.IsNullOrEmpty(errorResponse.Error.Message)
src\Shared\IConfigurationExtensions.cs (1)
245if (string.IsNullOrEmpty(value))
Aspire.Hosting.GitHub.Models.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
133if (!string.IsNullOrEmpty(delveAnnotation.LogOutput))
Aspire.Hosting.Integration.Analyzers (2)
AspireExportAnalyzer.cs (2)
1793if (string.IsNullOrEmpty(method.Name)) 1822return string.IsNullOrEmpty(name)
Aspire.Hosting.Java (8)
JavaHostingExtensions.cs (3)
1609string s when string.IsNullOrEmpty(s) => appended, 1736if (string.IsNullOrEmpty(bundlePathValue)) 2084return string.IsNullOrEmpty(directoryName) ? null : directoryName;
src\Shared\PathNormalizer.cs (5)
10if (string.IsNullOrEmpty(path)) 132if (string.IsNullOrEmpty(path)) 147if (string.IsNullOrEmpty(root)) 222if (string.IsNullOrEmpty(path)) 236if (string.IsNullOrEmpty(root))
Aspire.Hosting.Java.Tests (1)
AddJavaAppTests.cs (1)
679Assert.False(string.IsNullOrEmpty(envVars["OTEL_EXPORTER_OTLP_ENDPOINT"]));
Aspire.Hosting.JavaScript (25)
JavaScriptHostingExtensions.cs (20)
156if (!string.IsNullOrEmpty(packageManager.ScriptCommand)) 231if (!string.IsNullOrEmpty(packageManager.ScriptCommand)) 324string s when !string.IsNullOrEmpty(s) => $"{s} --use-openssl-ca", 499if (!string.IsNullOrEmpty(packageManager.ScriptCommand)) 585if (!string.IsNullOrEmpty(packageManager.ScriptCommand)) 616!string.IsNullOrEmpty(prodInstallCommand.ProductionInstallArgs); 642if (!string.IsNullOrEmpty(pm.CacheMount)) 765string s when !string.IsNullOrEmpty(s) => $"{s} --use-openssl-ca", 1110if (!string.IsNullOrEmpty(packageManager.CacheMount)) 1127if (!string.IsNullOrEmpty(baseImageAnnotation?.RuntimeImage)) 1150!string.IsNullOrEmpty(packageManager.ScriptCommand)) 1223if (!string.IsNullOrEmpty(packageManager.ScriptCommand)) 1287if (string.IsNullOrEmpty(installAnnotation?.ProductionInstallArgs)) 1293if (!string.IsNullOrEmpty(packageManager.CacheMount)) 1499if (!string.IsNullOrEmpty(resource.ViteConfigPath)) 1518string s when !string.IsNullOrEmpty(s) && !s.StartsWith("--", StringComparison.Ordinal) => s, 1523if (string.IsNullOrEmpty(configTarget)) 1539if (string.IsNullOrEmpty(configTarget)) 1608if (!string.IsNullOrEmpty(configTarget)) 2406return string.IsNullOrEmpty(normalizedPath) || normalizedPath == "."
src\Shared\PathNormalizer.cs (5)
10if (string.IsNullOrEmpty(path)) 132if (string.IsNullOrEmpty(path)) 147if (string.IsNullOrEmpty(root)) 222if (string.IsNullOrEmpty(path)) 236if (string.IsNullOrEmpty(root))
Aspire.Hosting.JavaScript.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Kafka.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Kubernetes (22)
Deployment\HelmDeploymentEngine.cs (4)
51if (!string.IsNullOrEmpty(resolvedRelease)) 75if (!string.IsNullOrEmpty(resolvedNs)) 195if (string.IsNullOrEmpty(savedReleaseName)) 475var message = string.IsNullOrEmpty(errorOutput)
Deployment\HelmVersionValidator.cs (1)
88var detail = string.IsNullOrEmpty(errorText) ? $"exit code {exitCode}" : errorText;
Extensions\ResourceExtensions.cs (1)
489if (!string.IsNullOrEmpty(context.Parent.DefaultStorageClassName))
KubernetesEnvironmentResource.cs (10)
762if (!string.IsNullOrEmpty(hostGroup.Key)) 995else if (!string.IsNullOrEmpty(DefaultStorageClassName)) 1111var routeName = string.IsNullOrEmpty(hostGroup.Key) 1122if (!string.IsNullOrEmpty(hostGroup.Key)) 1330if (!string.IsNullOrEmpty(resolvedNs)) 1366if (string.IsNullOrEmpty(discoveredFqdn)) 1667if (!string.IsNullOrEmpty(hostname)) 1680if (!string.IsNullOrEmpty(addrValue) && addrValue.Contains('.') && !addrValue.Contains(':')) 1784if (!string.IsNullOrEmpty(resolvedNs)) 2088if (!string.IsNullOrEmpty(resolvedNs))
KubernetesHelmChartExtensions.cs (4)
363var message = string.IsNullOrEmpty(errorOutput) 407var releaseName = !string.IsNullOrEmpty(savedReleaseName) ? savedReleaseName : defaultReleaseName; 408var @namespace = !string.IsNullOrEmpty(savedNamespace) ? savedNamespace : defaultNamespace; 437var message = string.IsNullOrEmpty(errorOutput)
Yaml\ByteArrayStringYamlConverter.cs (1)
24return string.IsNullOrEmpty(scalar.Value) ? null : Encoding.UTF8.GetBytes(scalar.Value);
Yaml\IntOrStringConverter.cs (1)
45return string.IsNullOrEmpty(value) ? null : new Int32OrStringV1(value);
Aspire.Hosting.Kubernetes.Tests (1)
FakeHelmRunner.cs (1)
58if (onOutputData is not null && !string.IsNullOrEmpty(VersionOutput))
Aspire.Hosting.Maui (11)
Lifecycle\MauiBuildQueueEventSubscriber.cs (2)
149if (!string.IsNullOrEmpty(buildInfo.TargetFramework)) 155if (!string.IsNullOrEmpty(buildInfo.Configuration))
MauiPlatformHelper.cs (2)
114if (!string.IsNullOrEmpty(platformTfm)) 138if (string.IsNullOrEmpty(platformTfm))
src\Shared\EnvironmentVariableNameEncoder.cs (1)
25if (string.IsNullOrEmpty(name) || ValidNameRegex().IsMatch(name))
src\Shared\IConfigurationExtensions.cs (1)
245if (string.IsNullOrEmpty(value))
src\Shared\PathNormalizer.cs (5)
10if (string.IsNullOrEmpty(path)) 132if (string.IsNullOrEmpty(path)) 147if (string.IsNullOrEmpty(root)) 222if (string.IsNullOrEmpty(path)) 236if (string.IsNullOrEmpty(root))
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (1)
69Assert.False(string.IsNullOrEmpty(env.Value));
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Nats.Tests (2)
AddNatsTests.cs (2)
43Assert.False(string.IsNullOrEmpty(nats.Resource.PasswordParameter!.Value)); 124arg => Assert.False(string.IsNullOrEmpty(arg))
Aspire.Hosting.OpenAI (2)
OpenAIModelHealthCheck.cs (1)
75var message = !string.IsNullOrEmpty(errorResponse.Error.Message)
src\Shared\IConfigurationExtensions.cs (1)
245if (string.IsNullOrEmpty(value))
Aspire.Hosting.OpenAI.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
93if (!string.IsNullOrEmpty(databaseName))
Aspire.Hosting.Oracle.Tests (1)
AddOracleTests.cs (1)
67Assert.False(string.IsNullOrEmpty(env.Value));
Aspire.Hosting.Orleans (1)
ProviderConfiguration.cs (1)
65if (!string.IsNullOrEmpty(serviceKey))
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (1)
93Assert.False(string.IsNullOrEmpty(env.Value));
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
738if (string.IsNullOrEmpty(scriptArg))
Aspire.Hosting.Qdrant.Tests (1)
AddQdrantTests.cs (1)
79Assert.False(string.IsNullOrEmpty(env.Value));
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
192if (string.IsNullOrEmpty(existingTag)) 239if (string.IsNullOrEmpty(tag))
Aspire.Hosting.RabbitMQ.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Radius (10)
Publishing\BicepPostProcessor.cs (1)
169if (string.IsNullOrEmpty(name))
Publishing\RadCredentialRegisterStep.cs (2)
369if (string.IsNullOrEmpty(text) || secretValues.Count == 0) 377.Where(static v => !string.IsNullOrEmpty(v))
Publishing\RadiusDeploymentPipelineStep.cs (1)
222var errorMessage = string.IsNullOrEmpty(stderrText)
Publishing\RadiusInfrastructureBuilder.cs (2)
952if (!string.IsNullOrEmpty(imageAnnotation.Tag)) 957if (!string.IsNullOrEmpty(imageAnnotation.Registry))
Publishing\SealedSecretApplyStep.cs (2)
735if (!string.IsNullOrEmpty(defaultWorkspace)) 742if (!string.IsNullOrEmpty(context))
Secrets\RadiusSecretStoreNaming.cs (1)
50if (string.IsNullOrEmpty(name) || name.Length > MaxNameLength)
Secrets\SealedSecretManifest.cs (1)
536YamlScalarNode scalar => !string.IsNullOrEmpty(scalar.Value),
Aspire.Hosting.RemoteHost (22)
AssemblyLoader.cs (1)
105location = string.IsNullOrEmpty(assembly.Location) ? null : assembly.Location;
Ats\AtsMarshaller.cs (2)
308if (string.IsNullOrEmpty(callbackId)) 561if (node is JsonValue tokenValue && tokenValue.TryGetValue<string>(out var tokenId) && !string.IsNullOrEmpty(tokenId))
Ats\CapabilityDispatcher.cs (2)
498if (string.IsNullOrEmpty(clrMemberName) || string.IsNullOrEmpty(polyglotMethodName))
Ats\HandleRegistry.cs (1)
201if (!string.IsNullOrEmpty(handleId))
Ats\PolyglotCapabilityInvocationException.cs (4)
495if (string.IsNullOrEmpty(value)) 512if (string.IsNullOrEmpty(message)) 519if (!string.IsNullOrEmpty(polyglotMethodName) && !string.IsNullOrEmpty(clrMemberName))
AtsCapabilityScanner.cs (6)
838if (string.IsNullOrEmpty(originalTarget)) 2102var paramName = string.IsNullOrEmpty(param.Name) ? $"arg{paramIndex}" : param.Name; 3326if (string.IsNullOrEmpty(name)) 3390if (string.IsNullOrEmpty(assemblyLocation)) 3485.Where(static name => !string.IsNullOrEmpty(name)) 3543if (documentation is null || string.IsNullOrEmpty(parameterName))
CodeGeneration\CodeGenerationDiagnostic.cs (1)
311return string.IsNullOrEmpty(assembly.Location) ? null : assembly.Location;
Diagnostics\RemoteHostProfilingTelemetry.cs (2)
124return !string.IsNullOrEmpty(configuration?[KnownOtelConfigNames.ExporterOtlpEndpoint]); 298if (!string.IsNullOrEmpty(traceParent) &&
JsonRpcAuthenticationState.cs (1)
39if (string.IsNullOrEmpty(token))
JsonRpcServer.cs (2)
41if (string.IsNullOrEmpty(socketPath)) 148if (!string.IsNullOrEmpty(directory) && !Directory.Exists(directory))
Aspire.Hosting.RemoteHost.Tests (1)
JsonRpcAuthenticationTests.cs (1)
154if (!string.IsNullOrEmpty(_socketDirectory) && Directory.Exists(_socketDirectory))
Aspire.Hosting.Rust (6)
CargoMetadataReader.cs (1)
202return Uri.TryCreate(value, UriKind.Absolute, out var uri) && !string.IsNullOrEmpty(uri.UserInfo);
src\Shared\PathNormalizer.cs (5)
10if (string.IsNullOrEmpty(path)) 132if (string.IsNullOrEmpty(path)) 147if (string.IsNullOrEmpty(root)) 222if (string.IsNullOrEmpty(path)) 236if (string.IsNullOrEmpty(root))
Aspire.Hosting.Sdk.Tests (7)
AppHostSdkTargetsTests.cs (7)
1613Assert.False(string.IsNullOrEmpty(toolPath), "AspireRuntimeIdentifierToolPath assembly metadata is not set."); 1625Assert.False(string.IsNullOrEmpty(taskAssemblyPath), "AspireHostingTasksAssemblyPath assembly metadata is not set."); 1664Assert.False(string.IsNullOrEmpty(path), $"{metadataName} assembly metadata is not set."); 1693return string.IsNullOrEmpty(extraArguments) ? arguments : $"{arguments} {extraArguments}"; 1700return string.IsNullOrEmpty(extraArguments) ? arguments : $"{arguments} {extraArguments}"; 1711return string.IsNullOrEmpty(extraArguments) ? arguments : $"{arguments} {extraArguments}"; 1723return string.IsNullOrEmpty(extraArguments) ? arguments : $"{arguments} {extraArguments}";
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
77if (!string.IsNullOrEmpty(databaseName))
Aspire.Hosting.Tasks (7)
GetNonExecutableReferences.cs (1)
35if (string.IsNullOrEmpty(additionalProperties))
ResolveAspireCliBundle.cs (2)
179if (string.IsNullOrEmpty(cliDirectory)) 275if (!string.IsNullOrEmpty(layoutPath) && seenPaths.Add(layoutPath))
ResolveAspireCliInvocation.cs (1)
117if (string.IsNullOrEmpty(dotnetRoot))
RunAspireCliCommand.cs (3)
282if (!string.IsNullOrEmpty(output)) 307if (!string.IsNullOrEmpty(output)) 327return string.IsNullOrEmpty(value) ? argument.ItemSpec : value;
Aspire.Hosting.Testing (9)
DistributedApplicationFactory.cs (3)
156if (string.IsNullOrEmpty(arg)) 216if (!string.IsNullOrEmpty(appHostProjectPath) && Directory.Exists(appHostProjectPath)) 283if (string.IsNullOrEmpty(launchProfileName))
DistributedApplicationHostingTestingExtensions.cs (3)
107if (string.IsNullOrEmpty(dashboardUrl)) 113if (!string.IsNullOrEmpty(browserToken)) 274if (!string.IsNullOrEmpty(endpointName))
DistributedApplicationTestingBuilder.cs (3)
378if (string.IsNullOrEmpty(builder.Configuration["AppHost:BrowserToken"])) 394|| string.IsNullOrEmpty(builder.Configuration["AppHost:ResourceService:ApiKey"])) 443if (string.IsNullOrEmpty(arg))
Aspire.Hosting.Testing.Tests (11)
DashboardTestingBuilderTests.cs (5)
199Assert.False(string.IsNullOrEmpty(dashboardOptions.DashboardToken)); 212Assert.True(string.IsNullOrEmpty(dashboardOptions.DashboardToken)); 227Assert.False(string.IsNullOrEmpty(builder.Configuration[AppHostResourceServiceApiKey])); 244Assert.False(string.IsNullOrEmpty(firstKey)); 245Assert.False(string.IsNullOrEmpty(secondKey));
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (2)
66if (!string.IsNullOrEmpty(baseDcpLogFolder)) 69var folderName = !string.IsNullOrEmpty(applicationName)
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
Aspire.Hosting.Tests (30)
AppHostSmokeTests.cs (2)
63if (!string.IsNullOrEmpty(expectedCulture)) 69if (!string.IsNullOrEmpty(expectedLocaleError))
Backchannel\GetTerminalInfoAsyncTests.cs (1)
388if (!string.IsNullOrEmpty(dir))
Dashboard\DashboardResourceTests.cs (2)
504var expectedAllowedOrigins = !string.IsNullOrEmpty(explicitCorsAllowedOrigins) ? explicitCorsAllowedOrigins : "http://localhost:8081,http://localhost:58080"; 550var expectedAllowedOrigins = !string.IsNullOrEmpty(explicitCorsAllowedOrigins) ? explicitCorsAllowedOrigins : "http://localhost:8081,http://localhost:58080";
Dcp\DcpExecutorTests.cs (9)
2238Assert.False(string.IsNullOrEmpty(container.Metadata.Uid)); 2394Assert.False(string.IsNullOrEmpty(container.Metadata.Uid)); 2720Assert.False(string.IsNullOrEmpty(previousResourceUid)); 6133if (!string.IsNullOrEmpty(expectedConfiguration)) 6185if (!string.IsNullOrEmpty(expectedConfiguration)) 6230if (!string.IsNullOrEmpty(expectedConfiguration)) 6302if (!string.IsNullOrEmpty(expectedConfiguration)) 6411if (!string.IsNullOrEmpty(expectedConfiguration)) 6936if (!string.IsNullOrEmpty(expectedConfiguration))
Dcp\TestKubernetesService.cs (1)
198if (string.IsNullOrEmpty(resource.Metadata.Uid))
DistributedApplicationBuilderTests.cs (3)
157Assert.False(string.IsNullOrEmpty(config["AppHost:ResourceService:ApiKey"])); 269Assert.True(string.IsNullOrEmpty(config["AppHost:ResourceService:ApiKey"])); 280if (!string.IsNullOrEmpty(directory))
DistributedApplicationTests.cs (3)
797if (!string.IsNullOrEmpty(pidText)) 1319Assert.False(string.IsNullOrEmpty(serviceAPortValue)); 1324Assert.False(string.IsNullOrEmpty(nodeAppPortValue));
MSBuildTests.cs (2)
279Assert.False(string.IsNullOrEmpty(version), $"Could not determine package version from {packagePath}."); 1112Assert.False(string.IsNullOrEmpty(dotnetDirectory), $"Could not determine the directory for dotnet path '{dotnetPath}'.");
ResourceExtensionsTests.cs (1)
310Assert.False(string.IsNullOrEmpty(env.Value));
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
UserSecretsParameterDefaultTests.cs (1)
378if (!string.IsNullOrEmpty(directoryName) && !Directory.Exists(directoryName))
WithTerminalTests.cs (1)
402Assert.False(string.IsNullOrEmpty(root.GetProperty("appHostPath").GetString()));
Aspire.Hosting.TestUtilities (3)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (2)
66if (!string.IsNullOrEmpty(baseDcpLogFolder)) 69var folderName = !string.IsNullOrEmpty(applicationName)
Utils\DockerUtils.cs (1)
85return string.IsNullOrEmpty(configuredRuntime) ? null : configuredRuntime;
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Yarp (2)
YarpJsonConfigGeneratorBuilder.cs (1)
154if (string.IsNullOrEmpty(name) || !char.IsAsciiLetterUpper(name[0]))
YarpResourceExtensions.cs (1)
264if (!resource.TryGetContainerImageName(useBuiltImage: false, out var imageName) || string.IsNullOrEmpty(imageName))
Aspire.Microsoft.Azure.Cosmos (13)
AspireMicrosoftAzureCosmosExtensions.cs (7)
72if (string.IsNullOrEmpty(settings.ContainerName) || string.IsNullOrEmpty(settings.DatabaseName)) 137if (string.IsNullOrEmpty(settings.ContainerName) || string.IsNullOrEmpty(settings.DatabaseName)) 216if (string.IsNullOrEmpty(connectionString)) 279if (!string.IsNullOrEmpty(clientOptions.ApplicationName)) 291if (!string.IsNullOrEmpty(settings.ConnectionString))
CosmosDatabaseBuilder.cs (3)
26if (string.IsNullOrEmpty(settings.DatabaseName)) 42if (string.IsNullOrEmpty(settings.DatabaseName)) 69if (connectionInfo is not null && string.IsNullOrEmpty(connectionInfo?.ContainerName))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Microsoft.Data.SqlClient (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Microsoft.EntityFrameworkCore.Cosmos (4)
AspireAzureEFCoreCosmosExtensions.cs (1)
131if (!string.IsNullOrEmpty(settings.ConnectionString))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (6)
AzureAppConfigurationSettings.cs (1)
66if (!string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.MongoDB.Driver (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.MongoDB.EntityFrameworkCore (6)
AspireMongoDBEntityFrameworkCoreExtensions.cs (5)
60if (!string.IsNullOrEmpty(databaseName)) 64else if (string.IsNullOrEmpty(settings.DatabaseName) && !string.IsNullOrEmpty(settings.ConnectionString)) 68if (!string.IsNullOrEmpty(mongoUrl.DatabaseName)) 84if (string.IsNullOrEmpty(settings.DatabaseName))
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.MySqlConnector (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Npgsql (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.OpenAI (2)
AspireOpenAIClientBuilder.cs (2)
80if (string.IsNullOrEmpty(deploymentName)) 86if (string.IsNullOrEmpty(deploymentName))
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Playground.Tests (15)
AppHostTests.cs (2)
295if (string.IsNullOrEmpty(s_appHostNameFilter) || candidateTestEndpoint.AppHostType?.Name.Contains(s_appHostNameFilter, StringComparison.OrdinalIgnoreCase) == true) 301if (!theoryData.Any() && !string.IsNullOrEmpty(s_appHostNameFilter))
Infrastructure\DistributedApplicationExtensions.cs (1)
55.Where(m => m.Type == ContainerMountType.Volume && !string.IsNullOrEmpty(m.Source))
src\Shared\X509Certificate2Extensions.cs (1)
117return certificate.Extensions.OfType<X509SubjectKeyIdentifierExtension>().Any(ski => !string.IsNullOrEmpty(ski.SubjectKeyIdentifier));
tests\Aspire.TestUtilities\RequiresFeatureAttribute.cs (1)
54if (Environment.GetEnvironmentVariable("PLAYWRIGHT_INSTALLED") is var playwrightInstalled && !string.IsNullOrEmpty(playwrightInstalled))
tests\Aspire.TestUtilities\TestcontainersPodmanConfiguration.cs (6)
127HasUsableEndpoint: !string.IsNullOrEmpty(dockerHost) && !LooksLikePodmanEndpoint(dockerHost)); 133if (!string.IsNullOrEmpty(dockerHost)) 185=> !string.IsNullOrEmpty(getEnvironmentVariable(RyukDisabledVariable)); 288private static bool SocketExists(string? path) => !string.IsNullOrEmpty(path) && File.Exists(path); 293return string.IsNullOrEmpty(root) ? null : Path.Combine([root, .. parts]); 297=> string.IsNullOrEmpty(homeDirectory) ? null : Path.Combine([homeDirectory, .. parts]);
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.RabbitMQ.Client (2)
src\Components\Aspire.RabbitMQ.Client\AspireRabbitMQExtensions.cs (1)
103if (!string.IsNullOrEmpty(connectionString))
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
83Count = string.IsNullOrEmpty(exData!["InnerException"]?.ToString()) ? 3 : 4;
Aspire.RabbitMQ.Client.Tests (3)
AspireRabbitMQLoggingTests.cs (3)
127Assert.True(string.IsNullOrEmpty(logs[0].EventId.Name)); 130Assert.True(string.IsNullOrEmpty(logs[1].EventId.Name)); 133Assert.True(string.IsNullOrEmpty(logs[2].EventId.Name));
Aspire.RabbitMQ.Client.v6.Tests (3)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (3)
127Assert.True(string.IsNullOrEmpty(logs[0].EventId.Name)); 130Assert.True(string.IsNullOrEmpty(logs[1].EventId.Name)); 133Assert.True(string.IsNullOrEmpty(logs[2].EventId.Name));
Aspire.Seq (4)
AspireSeqExtensions.cs (4)
55if (!string.IsNullOrEmpty(settings.ServerUrl)) 60if (!string.IsNullOrEmpty(settings.ApiKey)) 62settings.Logs.Headers = string.IsNullOrEmpty(settings.Logs.Headers) ? $"X-Seq-ApiKey={settings.ApiKey}" : $"{settings.Logs.Headers},X-Seq-ApiKey={settings.ApiKey}"; 63settings.Traces.Headers = string.IsNullOrEmpty(settings.Traces.Headers) ? $"X-Seq-ApiKey={settings.ApiKey}" : $"{settings.Traces.Headers},X-Seq-ApiKey={settings.ApiKey}";
Aspire.StackExchange.Redis (7)
AspireRedisExtensions.cs (1)
200var configurationOptions = string.IsNullOrEmpty(optionsName) ?
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (5)
92if (string.IsNullOrEmpty(name)) 153if (!string.IsNullOrEmpty(commandAndKey)) 157if (!string.IsNullOrEmpty(script)) 176if (options.SetVerboseDatabaseStatements && !string.IsNullOrEmpty(commandAndKey)) 180if (!string.IsNullOrEmpty(script))
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\AssemblyVersionExtensions.cs (1)
22Debug.Assert(!string.IsNullOrEmpty(informationalVersion), "AssemblyInformationalVersionAttribute was not found in assembly");
Aspire.Templates.Tests (15)
BuildAndRunTemplateTests.cs (3)
68Assert.False(string.IsNullOrEmpty(projectName)); 132Assert.False(string.IsNullOrEmpty(projectName)); 232Assert.False(string.IsNullOrEmpty(projectName));
LocalhostTldHostnameTests.cs (1)
87if (!string.IsNullOrEmpty(urls) && urls.Contains(".dev.localhost:"))
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
tests\Shared\TemplatesTesting\AspireProject.cs (3)
362if (string.IsNullOrEmpty(dashboardUrlToUse)) 401if (string.IsNullOrEmpty(DashboardUrl)) 482if (string.IsNullOrEmpty(containerName))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (3)
136if (string.IsNullOrEmpty(EnvironmentVariables.SdkForTemplateTestingPath)) 150if (string.IsNullOrEmpty(EnvironmentVariables.BuiltNuGetsPath) || !Directory.Exists(EnvironmentVariables.BuiltNuGetsPath)) 206if (!string.IsNullOrEmpty(EnvironmentVariables.TestLogPath))
tests\Shared\TemplatesTesting\CommandResult.cs (1)
30if (!string.IsNullOrEmpty(Output))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
Aspire.TerminalHost (2)
TerminalHostApp.cs (1)
278var otelEnabled = !string.IsNullOrEmpty(otlpEndpoint);
TerminalHostControlListener.cs (1)
54if (!string.IsNullOrEmpty(dir))
Aspire.TerminalHost.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
211=> string.IsNullOrEmpty(filePath)
Aspire.TestTools (4)
TrxReader.cs (4)
25if (string.IsNullOrEmpty(unitTestResult.TestName) || string.IsNullOrEmpty(unitTestResult.Outcome)) 109&& !string.IsNullOrEmpty(testRun.Times.Start) 110&& !string.IsNullOrEmpty(testRun.Times.Finish))
Aspire.TestUtilities (8)
RequiresFeatureAttribute.cs (1)
54if (Environment.GetEnvironmentVariable("PLAYWRIGHT_INSTALLED") is var playwrightInstalled && !string.IsNullOrEmpty(playwrightInstalled))
src\Shared\X509Certificate2Extensions.cs (1)
117return certificate.Extensions.OfType<X509SubjectKeyIdentifierExtension>().Any(ski => !string.IsNullOrEmpty(ski.SubjectKeyIdentifier));
TestcontainersPodmanConfiguration.cs (6)
127HasUsableEndpoint: !string.IsNullOrEmpty(dockerHost) && !LooksLikePodmanEndpoint(dockerHost)); 133if (!string.IsNullOrEmpty(dockerHost)) 185=> !string.IsNullOrEmpty(getEnvironmentVariable(RyukDisabledVariable)); 288private static bool SocketExists(string? path) => !string.IsNullOrEmpty(path) && File.Exists(path); 293return string.IsNullOrEmpty(root) ? null : Path.Combine([root, .. parts]); 297=> string.IsNullOrEmpty(homeDirectory) ? null : Path.Combine([homeDirectory, .. parts]);
Aspire.TypeSystem (1)
AtsConstants.cs (1)
329if (string.IsNullOrEmpty(typeId))
BasketService (1)
BasketService.cs (1)
71if (string.IsNullOrEmpty(queueName))
blazor-devserver (1)
Server\Startup.cs (1)
99if (!string.IsNullOrEmpty(pathBase))
blazor-gateway (5)
BlazorGateway.cs (4)
83if (!string.IsNullOrEmpty(options.PathBase)) 108if (!string.IsNullOrEmpty(appConfig.ConfigEndpointPath) && !string.IsNullOrEmpty(appConfig.ConfigResponse)) 114if (!string.IsNullOrEmpty(appConfig.EndpointsManifest))
TelemetryFilters.cs (1)
46if (string.IsNullOrEmpty(excluded))
BlazorHosted (2)
Program.cs (2)
80if (!string.IsNullOrEmpty(configEndpointPath) && !string.IsNullOrEmpty(configResponse))
BlazorHosted.ClientServiceDefaults (1)
Extensions.cs (1)
39if (string.IsNullOrEmpty(otlpPathBase))
BlazorStandalone.ClientServiceDefaults (1)
Extensions.cs (1)
39if (string.IsNullOrEmpty(otlpPathBase))
CatalogDb (1)
ResetDbExtensions.cs (1)
14if (!string.IsNullOrEmpty(resetDbKey))
cdac-build-tool (3)
JsonConverter\FieldModelJsonConverter.cs (1)
23if (string.IsNullOrEmpty(value.Type))
JsonConverter\GlobalModelJsonConverter.cs (1)
18if (string.IsNullOrEmpty(value.Type))
ObjectFileScraper.cs (1)
375while (j < fields.Length && !string.IsNullOrEmpty(fields[j].Name))
ConfigurationSchemaGenerator (4)
ConfigSchemaEmitter.cs (3)
293if (!string.IsNullOrEmpty(docComment)) 361if (!string.IsNullOrEmpty(xml) && xml != "<doc />") 496if (!string.IsNullOrEmpty(docComment))
ConfigSchemaGenerator.cs (1)
74if (string.IsNullOrEmpty(path))
crossgen2 (7)
Program.cs (1)
535if (!string.IsNullOrEmpty(callChainProfileFile))
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (5)
63if (string.IsNullOrEmpty(token)) 98if (string.IsNullOrEmpty(token)) 258if (!string.IsNullOrEmpty(optInList)) 270if (!string.IsNullOrEmpty(optInList)) 277if (val is string stringVal && !string.IsNullOrEmpty(stringVal))
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
179if (string.IsNullOrEmpty(instructionSet))
Crossgen2Tasks (29)
CommonFilePulledFromSdkRepo\RuntimeGraphCache.cs (1)
24if (string.IsNullOrEmpty(runtimeJsonPath))
PrepareForReadyToRunCompilation.cs (5)
80if (ReadyToRunUseCrossgen2 && !string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 92if (ReadyToRunUseCrossgen2 && !string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 104_crossgen2IsVersion5 = !string.IsNullOrEmpty(isVersion5) && bool.Parse(isVersion5); 107_perfmapFormatVersion = !string.IsNullOrEmpty(perfmapVersion) ? int.Parse(perfmapVersion) : 0; 120!string.IsNullOrEmpty(diaSymReaderPath) && File.Exists(diaSymReaderPath);
ResolveReadyToRunCompilers.cs (3)
113if (!string.IsNullOrEmpty(_crossgenTool.DiaSymReaderPath)) 153if (string.IsNullOrEmpty(_crossgen2Tool.PackagePath) || 190if (!string.IsNullOrEmpty(PerfmapFormatVersion))
RunReadyToRunCompiler.cs (19)
39private bool IsPdbCompilation => !string.IsNullOrEmpty(_createPDBCommand); 49return !string.IsNullOrEmpty(version5) && bool.Parse(version5); 60if (!string.IsNullOrEmpty(hostPath)) 82_emitSymbols = !string.IsNullOrEmpty(emitSymbolsMetadata) && bool.Parse(emitSymbolsMetadata); 85_createCompositeImage = !string.IsNullOrEmpty(createCompositeImageMetadata) && bool.Parse(createCompositeImageMetadata); 109if (!string.IsNullOrEmpty(hostPath) && !File.Exists(hostPath)) 115if (!string.IsNullOrEmpty(jitPath)) 132if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 137if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch))) 169if (!string.IsNullOrEmpty(DiaSymReader) && !File.Exists(DiaSymReader)) 176if (string.IsNullOrEmpty(_outputPDBImage)) 205if (string.IsNullOrEmpty(_outputR2RImage)) 211if (_emitSymbols && string.IsNullOrEmpty(_outputPDBImage)) 250if (ActuallyUseCrossgen2 && !string.IsNullOrEmpty(DotNetHostPath)) 280if (!string.IsNullOrEmpty(DiaSymReader)) 305if (!string.IsNullOrEmpty(jitPath)) 331if (!string.IsNullOrEmpty(perfmapFormatVersion)) 346if (!string.IsNullOrEmpty(Crossgen2ContainerFormat)) 351if (!string.IsNullOrEmpty(Crossgen2ExtraCommandLineArgs))
ShimFilesSimulatingLogicInSdkRepo\SimpleItemUtilities.cs (1)
30return !string.IsNullOrEmpty(value);
csc (1)
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
67if (string.IsNullOrEmpty(directoryName))
CSharpSyntaxGenerator (5)
SourceWriter.cs (5)
34if (!string.IsNullOrEmpty(experimentalUrl)) 49if (!string.IsNullOrEmpty(node.ExperimentalUrl)) 56if (!string.IsNullOrEmpty(field.ExperimentalUrl)) 71if (!string.IsNullOrEmpty(kind.ExperimentalUrl)) 92if (!string.IsNullOrEmpty(field.ExperimentalUrl))
datacollector (4)
DataCollectorMain.cs (1)
143if (!string.IsNullOrEmpty(EqtTrace.LogFile))
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
datacollector.arm64 (4)
src\vstest\src\datacollector\DataCollectorMain.cs (1)
143if (!string.IsNullOrEmpty(EqtTrace.LogFile))
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
dotnet (190)
BuildServer\BuildServerProvider.cs (1)
71if (!string.IsNullOrEmpty(directory))
BuildServer\RazorPidFile.cs (2)
47if (string.IsNullOrEmpty(serverPath)) 53if (string.IsNullOrEmpty(pipeName))
CommandFactory\CommandResolution\ActivityContextFactory.cs (1)
34if (!string.IsNullOrEmpty(activityContext.TraceState))
CommandFactory\CommandResolution\DotnetToolsCommandResolver.cs (1)
39if (string.IsNullOrEmpty(arguments.CommandName))
CommandFactory\CommandResolution\LockFileTargetExtensions.cs (1)
15return string.IsNullOrEmpty(lockFileTarget.RuntimeIdentifier) &&
CommandFactory\CommandResolution\MSBuildProject.cs (1)
65if (string.IsNullOrEmpty(frameworkString))
CommandFactory\CommandResolution\ProjectFactory.cs (1)
33msBuildExePath = string.IsNullOrEmpty(msBuildExePath) ?
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (2)
321if (string.IsNullOrEmpty(toolDepsJsonGeneratorProject) || 378msBuildExePath = string.IsNullOrEmpty(msBuildExePath) ?
Commands\Help\HelpCommand.cs (2)
41var versionString = string.IsNullOrEmpty(Product.Version) ? string.Empty : $" ({Product.Version})"; 88!string.IsNullOrEmpty(docsLink))
Commands\New\MSBuildEvaluation\CapabilityExpressionEvaluator.cs (1)
180if (string.IsNullOrEmpty(input))
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (2)
81if (string.IsNullOrEmpty(_projectFullPath)) 243if (string.IsNullOrEmpty(tfm))
Commands\Package\VirtualProjectPackageReflector.cs (1)
31Debug.Assert(!string.IsNullOrEmpty(item.Include), "Expected only PackageReference Include items in virtual project.");
Commands\Reference\Add\ReferenceAddCommand.cs (2)
58if (string.IsNullOrEmpty(frameworkString)) 115if (!string.IsNullOrEmpty(_parseResult.GetValue(Definition.FrameworkOption)))
Commands\Reference\Remove\ReferenceRemoveCommand.cs (1)
78if (!string.IsNullOrEmpty(_parseResult.GetValue(Definition.FrameworkOption)))
Commands\Run\CommonRunHelpers.cs (2)
64return appendApplicationArgumentsToBase && !string.IsNullOrEmpty(baseArguments) 69return string.IsNullOrEmpty(baseArguments) && launchProfileArguments is not null
Commands\Run\CSharpCompilerCommand.cs (1)
432if (string.IsNullOrEmpty(filePath))
Commands\Run\EnvironmentVariablesToMSBuild.cs (2)
93if (string.IsNullOrEmpty(projectFilePath) || environmentVariables.Count == 0) 102string objDir = string.IsNullOrEmpty(normalized)
Commands\Run\RunCommand.cs (4)
313if (!string.IsNullOrEmpty(runtimeIdentifier)) 572if (!NoLaunchProfileArguments && string.IsNullOrEmpty(command.CommandArgs) && launchSettings?.CommandLineArgs != null) 602if (string.IsNullOrWhiteSpace(project.GetPropertyValue("TargetFramework")) && string.IsNullOrEmpty(project.GetPropertyValue("TargetFrameworks"))) 630if (rootVariableName != null && string.IsNullOrEmpty(Environment.GetEnvironmentVariable(rootVariableName)))
Commands\Run\RunProperties.cs (1)
58if (string.IsNullOrEmpty(result.Command))
Commands\Run\RunTelemetry.cs (2)
61else if (!string.IsNullOrEmpty(launchProfile)) 230if (string.IsNullOrEmpty(profileName))
Commands\Sdk\Check\SdkCheckCommand.cs (1)
43if (_sdkCheckConfig != null && !string.IsNullOrEmpty(_sdkCheckConfig.CommandOutputReplacementString))
Commands\Solution\Add\SolutionAddCommand.cs (4)
92if (string.IsNullOrEmpty(_solutionFolderPath)) 116if (string.IsNullOrEmpty(relativeSolutionFolderPath)) 246if (!string.IsNullOrEmpty(projectInstanceId) && serializer is ISolutionSerializer<SlnV12SerializerSettings>) 286if (_inRoot || !string.IsNullOrEmpty(_solutionFolderPath))
Commands\Solution\SolutionArgumentValidator.cs (1)
27bool hasRelativeRoot = !string.IsNullOrEmpty(relativeRoot);
Commands\Test\MTP\ArtifactPostProcessingPlanner.cs (1)
159=> string.IsNullOrEmpty(targetFramework)
Commands\Test\MTP\Logger.cs (2)
58TraceEnabled = !string.IsNullOrEmpty(_traceFilePath); 61if (!string.IsNullOrEmpty(directoryPath))
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (4)
329.Select(directory => string.IsNullOrEmpty(directory) 773if (string.IsNullOrEmpty(targetFramework) && !string.IsNullOrEmpty(targetFrameworks)) 778.Where(f => !string.IsNullOrEmpty(f))
Commands\Test\MTP\MSBuildUtility.cs (6)
52if (string.IsNullOrEmpty(activeSolutionConfiguration)) 57if (string.IsNullOrEmpty(activeSolutionPlatform)) 138if (!string.IsNullOrEmpty(tfm)) 148if (!string.IsNullOrEmpty(rid)) 153if (!string.IsNullOrEmpty(configuration)) 158if (!string.IsNullOrEmpty(platform))
Commands\Test\MTP\SolutionAndProjectUtility.cs (12)
300if (!string.IsNullOrEmpty(targetFramework) || string.IsNullOrEmpty(targetFrameworks)) 320.Where(f => !string.IsNullOrEmpty(f)) 400if (string.IsNullOrEmpty(fullPath)) 410string.IsNullOrEmpty(configurationMetadata) ? inheritedConfiguration : configurationMetadata, 411string.IsNullOrEmpty(platformMetadata) ? inheritedPlatform : platformMetadata); 474if (!string.IsNullOrEmpty(targetFramework) || string.IsNullOrEmpty(targetFrameworks)) 484.Where(f => !string.IsNullOrEmpty(f)); 515if (!string.IsNullOrEmpty(tfm)) 581if (string.IsNullOrEmpty(runProperties.Command) || runProperties.Command.HasExtension(CliConstants.DLLExtension)) 616string? fullArtifactsPath = string.IsNullOrEmpty(artifactsPath)
Commands\Test\MTP\Terminal\AnsiDetector.cs (1)
40=> !string.IsNullOrEmpty(termType) && TerminalsRegexes.Any(regex => regex.IsMatch(termType));
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (2)
833if (!string.IsNullOrEmpty(informativeMessage)) 1391if (!string.IsNullOrEmpty(test.FilePath))
Commands\Test\MTP\TestApplication.cs (7)
293if (!string.IsNullOrEmpty(Module.RunProperties.WorkingDirectory)) 307!string.IsNullOrEmpty(Module.LaunchSettings.CommandLineArgs)) 1078if (!string.IsNullOrEmpty(Module.RunProperties.Command)) 1083if (!string.IsNullOrEmpty(Module.RunProperties.Arguments)) 1088if (!string.IsNullOrEmpty(Module.RunProperties.WorkingDirectory)) 1093if (!string.IsNullOrEmpty(Module.ProjectFullPath)) 1098if (!string.IsNullOrEmpty(Module.TargetFramework))
Commands\Test\MTP\TestApplicationHandler.cs (5)
533if (!string.IsNullOrEmpty(azureDevOpsLogMessage.LogText)) 549if (string.IsNullOrEmpty(displayMessage.Text)) 610if (!string.IsNullOrEmpty(text)) 778if (!string.IsNullOrEmpty(outputData)) 783if (!string.IsNullOrEmpty(errorData))
Commands\Test\MTP\TestModulesFilterHandler.cs (2)
46if (string.IsNullOrEmpty(_testModulesRoot) || !Directory.Exists(_testModulesRoot)) 112if (string.IsNullOrEmpty(rootDirectory))
Commands\Test\MTP\TestResultsDirectoryResolver.cs (11)
174if (string.IsNullOrEmpty(moduleDirectory)) 180if (string.IsNullOrEmpty(commonRoot)) 186return string.IsNullOrEmpty(commonRoot) ? workingDirectory : commonRoot; 241&& !string.IsNullOrEmpty(module.ArtifactsPivots)) 259if (!string.IsNullOrEmpty(module.RunProperties.RuntimeIdentifier)) 269string? projectName = useArtifactsOutputDefaults && !string.IsNullOrEmpty(module.ArtifactsProjectName) 271: string.IsNullOrEmpty(module.ProjectFullPath) 285if (string.IsNullOrEmpty(path)) 298string path = string.IsNullOrEmpty(module.ProjectFullPath) ? module.TargetPath : module.ProjectFullPath; 300return string.IsNullOrEmpty(path) ? string.Empty : Path.GetFullPath(path, basePath); 322if (string.IsNullOrEmpty(value))
Commands\Test\MTP\ValidationUtility.cs (2)
58if (!string.IsNullOrEmpty(pathOptions.ProjectOrSolutionPath)) 63if (!string.IsNullOrEmpty(pathOptions.SolutionPath))
Commands\Test\VSTest\TestCommand.cs (4)
186if (string.IsNullOrEmpty(testSessionCorrelationId)) 492if (!string.IsNullOrEmpty(terminalLoggerArg)) 496else if (!string.IsNullOrEmpty(liveLoggerArg)) 709=> !string.IsNullOrEmpty(termType) && TerminalsRegexes.Any(regex => regex.IsMatch(termType));
Commands\Test\VSTest\VSTestArgumentConverter.cs (3)
108if (!string.IsNullOrEmpty(activeArgument)) 173else if (!string.IsNullOrEmpty(activeArgument)) 251if (!string.IsNullOrEmpty(activeArgument))
Commands\Test\VSTest\VSTestTrace.cs (2)
19Console.WriteLine($"[dotnet test - {DateTime.UtcNow}]Logging to {(!string.IsNullOrEmpty(s_traceFilePath) ? s_traceFilePath : "console")}"); 33if (!string.IsNullOrEmpty(s_traceFilePath))
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (7)
100var packageSourceLocation = new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: _source, additionalSourceFeeds: _addSource, basePath: _currentWorkingDirectory); 176if (!string.IsNullOrEmpty(_configFilePath) && !File.Exists(_configFilePath)) 182if (!string.IsNullOrEmpty(_toolPath)) 239if (string.IsNullOrEmpty(_framework) && newInstalledPackage.Frameworks.Count() > 0) 247framework = string.IsNullOrEmpty(_framework) ? null : NuGetFramework.Parse(_framework); 303if (!string.IsNullOrEmpty(_configFilePath) && !File.Exists(_configFilePath)) 359if (!string.IsNullOrEmpty(_configFilePath))
Commands\Tool\Install\ToolInstallLocalInstaller.cs (2)
28if (!string.IsNullOrEmpty(configFilePath) && !File.Exists(configFilePath)) 37if (!string.IsNullOrEmpty(configFilePath))
Commands\Tool\Install\VersionRangeUtilities.cs (3)
17if (!string.IsNullOrEmpty(packageVersionFromIdentityArgument) && !string.IsNullOrEmpty(packageVersionFromVersionOption)) 23if (string.IsNullOrEmpty(packageVersion))
Commands\Tool\Restore\ToolRestoreCommand.cs (4)
81if (!string.IsNullOrEmpty(_configFilePath)) 145var warnings = toolRestoreResults.Where(r => r.IsSuccess && !string.IsNullOrEmpty(r.Warning)).Select(r => r.Warning); 166var warnings = toolRestoreResults.Where(r => r.IsSuccess && !string.IsNullOrEmpty(r.Warning)).Select(r => r.Warning); 184if (!string.IsNullOrEmpty(customFile))
Commands\Tool\Update\ToolUpdateCommand.cs (2)
83if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.PackageIdentityArgument)?.VersionRange?.OriginalString) && 84!string.IsNullOrEmpty(parseResult.GetValue(Definition.VersionOption)))
Commands\Workload\Clean\WorkloadCleanCommand.cs (1)
34if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.SdkVersionOption)))
Commands\Workload\Config\WorkloadConfigCommand.cs (1)
78else if (string.IsNullOrEmpty(_updateMode))
Commands\Workload\Install\FileBasedInstaller.cs (3)
345if (!string.IsNullOrEmpty(tempBackupDir) && Directory.Exists(tempBackupDir)) 363if (!string.IsNullOrEmpty(packagePath) && File.Exists(packagePath) && (offlineCache == null || !offlineCache.HasValue)) 379if (!string.IsNullOrEmpty(tempBackupDir) && Directory.Exists(tempBackupDir))
Commands\Workload\Install\FileBasedManifestInstaller.cs (1)
60if (!string.IsNullOrEmpty(extractionPath) && Directory.Exists(extractionPath))
Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
252if (!string.IsNullOrEmpty(packagePath) && File.Exists(packagePath) && (offlineCache == null || !offlineCache.HasValue)) 256if (!string.IsNullOrEmpty(packagePath) && (offlineCache == null || !offlineCache.HasValue))
Commands\Workload\Install\WorkloadGarbageCollector.cs (1)
86if (!string.IsNullOrEmpty(installState.WorkloadVersion))
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
229if (_skipManifestUpdate || string.IsNullOrEmpty(_workloadSetVersionFromGlobalJson))
Commands\Workload\InstallingWorkloadCommand.cs (4)
104_packageSourceLocation = string.IsNullOrEmpty(configOption) && (sourceOption == null || !sourceOption.Any()) ? null : 105new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: sourceOption); 109if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.SdkVersionOption))) 112if (_printDownloadLinkOnly || !string.IsNullOrEmpty(_downloadToCacheOption))
Commands\Workload\Repair\WorkloadRepairCommand.cs (3)
37_packageSourceLocation = string.IsNullOrEmpty(configOption) && (sourceOption == null || !sourceOption.Any()) ? null : 38new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: sourceOption); 42if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.SdkVersionOption)))
Commands\Workload\Search\WorkloadSearchCommand.cs (2)
27if (!string.IsNullOrEmpty(result.GetValue(Definition.VersionOption))) 42if (!string.IsNullOrEmpty(_workloadIdStub))
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (1)
42if (!string.IsNullOrEmpty(result.GetValue(Definition.Parent.VersionOption)))
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
37if (!string.IsNullOrEmpty(parseResult.GetValue(Definition.VersionOption)))
Extensions\ParseResultExtensions.cs (5)
21.FirstOrDefault(subcommand => !string.IsNullOrEmpty(subcommand)) ?? string.Empty; 24parseResult.CommandResult.Command.Equals(Parser.RootCommand) && string.IsNullOrEmpty(parseResult.RootSubCommandResult()); 39&& !string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand)); 137|| (parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand))); 140string.IsNullOrEmpty(parseResult.RootSubCommandResult())
Extensions\ProjectExtensions.cs (1)
45.Where((value) => !string.IsNullOrEmpty(value));
Extensions\ProjectInstanceExtensions.cs (3)
14var projectGuid = string.IsNullOrEmpty(projectGuidProperty) 23if (string.IsNullOrEmpty(projectTypeGuid) && projectInstance.FullPath.EndsWith(".shproj", StringComparison.OrdinalIgnoreCase)) 79.Where((value) => !string.IsNullOrEmpty(value));
LoggerUtility.cs (1)
130if (string.IsNullOrEmpty(switchValue) ||
NugetPackageDownloader\NuGetPackageDownloader.cs (2)
183if (string.IsNullOrEmpty(resolvedDownloadFolder)) 692if (!string.IsNullOrEmpty(versionRange.OriginalString) && versionRange.OriginalString == "*")
ParserOptionActions.cs (2)
60if (!string.IsNullOrEmpty(home)) 72if (string.IsNullOrEmpty(subCommand))
Program.cs (1)
70if (string.IsNullOrEmpty(Env.GetEnvironmentVariable("MSBUILDFAILONDRIVEENUMERATINGWILDCARD")))
ReleasePropertyProjectLocator.cs (3)
76if (!string.IsNullOrEmpty(propertyToCheckValue)) 130if (!string.IsNullOrEmpty(potentialSln)) 184if (!string.IsNullOrEmpty(pReleasePropertyValue))
ShellShim\ShellShimRepository.cs (1)
26if (string.IsNullOrEmpty(toolCommand.Executable.Value))
ShellShim\ShellShimTemplateFinder.cs (1)
28if (string.IsNullOrEmpty(archOption))
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\RuntimeHostInfo.cs (1)
67if (string.IsNullOrEmpty(directoryName))
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
112return !string.IsNullOrEmpty(targetFrameworkVersion) && Version.TryParse(targetFrameworkVersion.Substring(1), out var version) ? version : null;
src\sdk\src\Common\SdkVulnerabilityCacheReader.cs (1)
37if (string.IsNullOrEmpty(userProfileDir))
src\sdk\src\Resolvers\Microsoft.DotNet.MSBuildSdkResolver\FXVersion.cs (9)
41if (string.IsNullOrEmpty(s1.Pre) || string.IsNullOrEmpty(s2.Pre)) 44return string.IsNullOrEmpty(s1.Pre) ? (string.IsNullOrEmpty(s2.Pre) ? 0 : 1) : -1; 139if (string.IsNullOrEmpty(id)) 161if (string.IsNullOrEmpty(ids)) 209if (string.IsNullOrEmpty(fxVersionString) || fxVersionString == null) 307=> (!string.IsNullOrEmpty(Pre), !string.IsNullOrEmpty(Build)) switch
Telemetry\DevDeviceIDGetter.cs (3)
17if (string.IsNullOrEmpty(deviceId)) 54if (!string.IsNullOrEmpty(xdgCacheHome)) 102if (!string.IsNullOrEmpty(xdgCacheHome))
Telemetry\LLMEnvironmentDetectorForTelemetry.cs (1)
79public bool IsLLMEnvironment() => !string.IsNullOrEmpty(GetLLMEnvironment());
Telemetry\TelemetryClient.cs (7)
78if (!string.IsNullOrEmpty(envValue) && int.TryParse(envValue, out var parsed) && parsed > 0) 202var initialSessionId = !string.IsNullOrEmpty(sessionId) 206CurrentSessionId ??= !string.IsNullOrEmpty(initialSessionId) ? initialSessionId : Guid.NewGuid().ToString(); 223if (string.IsNullOrEmpty(traceParent)) 228if (string.IsNullOrEmpty(traceParent)) 236if (string.IsNullOrEmpty(traceState)) 241if (!string.IsNullOrEmpty(traceState))
Telemetry\TelemetryFilter.cs (2)
54if (string.IsNullOrEmpty(topLevelCommandName) 61if (!string.IsNullOrEmpty(globalJsonState))
ToolPackage\LockFileMatchChecker.cs (1)
74if (string.IsNullOrEmpty(path))
ToolPackage\ToolConfigurationDeserializer.cs (2)
82if (!string.IsNullOrEmpty(runner) && runner != "dotnet" && runner != "executable") 95if (string.IsNullOrEmpty(runner) && (ridSpecificPackages == null || !ridSpecificPackages.Any()))
ToolPackage\ToolPackageInstance.cs (1)
135.Where(f => !string.IsNullOrEmpty(f));
dotnet-aot (52)
ManagedHost.cs (2)
154if (!string.IsNullOrEmpty(hostfxrPath)) 172if (!string.IsNullOrEmpty(currentActivity.Context.TraceState))
NativeEntryPoint.cs (5)
86if (!string.IsNullOrEmpty(sdkDirectory)) 97if (!string.IsNullOrEmpty(sdkDirectory)) 107SdkDirectory = string.IsNullOrEmpty(sdkDirectory) ? null : sdkDirectory; 172if (!string.IsNullOrEmpty(hostfxrPath)) 179DotnetRoot = string.IsNullOrEmpty(dotnetRoot) ? null : dotnetRoot;
SdkRootLocator.cs (2)
32if (!string.IsNullOrEmpty(sdkDirArgument)) 61return string.IsNullOrEmpty(modulePath) ? null : Path.GetDirectoryName(modulePath);
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\ActivityContextFactory.cs (1)
34if (!string.IsNullOrEmpty(activityContext.TraceState))
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\DotnetToolsCommandResolver.cs (1)
39if (string.IsNullOrEmpty(arguments.CommandName))
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (4)
160if (rootVariableName is not null && string.IsNullOrEmpty(Environment.GetEnvironmentVariable(rootVariableName))) 162if (string.IsNullOrEmpty(NativeEntryPoint.DotnetRoot)) 319if (string.IsNullOrEmpty(entryPointPath)) 372if (string.IsNullOrEmpty(parseResult.GetValue(definition.FileOption)))
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (2)
64return appendApplicationArgumentsToBase && !string.IsNullOrEmpty(baseArguments) 69return string.IsNullOrEmpty(baseArguments) && launchProfileArguments is not null
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (1)
43if (_sdkCheckConfig != null && !string.IsNullOrEmpty(_sdkCheckConfig.CommandOutputReplacementString))
src\sdk\src\Cli\dotnet\Commands\Solution\SolutionArgumentValidator.cs (1)
27bool hasRelativeRoot = !string.IsNullOrEmpty(relativeRoot);
src\sdk\src\Cli\dotnet\Commands\Test\VSTest\VSTestTrace.cs (2)
19Console.WriteLine($"[dotnet test - {DateTime.UtcNow}]Logging to {(!string.IsNullOrEmpty(s_traceFilePath) ? s_traceFilePath : "console")}"); 33if (!string.IsNullOrEmpty(s_traceFilePath))
src\sdk\src\Cli\dotnet\Commands\Workload\Install\FileBasedManifestInstaller.cs (1)
60if (!string.IsNullOrEmpty(extractionPath) && Directory.Exists(extractionPath))
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
252if (!string.IsNullOrEmpty(packagePath) && File.Exists(packagePath) && (offlineCache == null || !offlineCache.HasValue)) 256if (!string.IsNullOrEmpty(packagePath) && (offlineCache == null || !offlineCache.HasValue))
src\sdk\src\Cli\dotnet\Extensions\ParseResultExtensions.cs (5)
21.FirstOrDefault(subcommand => !string.IsNullOrEmpty(subcommand)) ?? string.Empty; 24parseResult.CommandResult.Command.Equals(Parser.RootCommand) && string.IsNullOrEmpty(parseResult.RootSubCommandResult()); 39&& !string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand)); 137|| (parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.GetValue(Parser.RootCommand.DotnetSubCommand))); 140string.IsNullOrEmpty(parseResult.RootSubCommandResult())
src\sdk\src\Cli\dotnet\Extensions\ProjectInstanceExtensions.cs (3)
14var projectGuid = string.IsNullOrEmpty(projectGuidProperty) 23if (string.IsNullOrEmpty(projectTypeGuid) && projectInstance.FullPath.EndsWith(".shproj", StringComparison.OrdinalIgnoreCase)) 79.Where((value) => !string.IsNullOrEmpty(value));
src\sdk\src\Cli\dotnet\LoggerUtility.cs (1)
130if (string.IsNullOrEmpty(switchValue) ||
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (2)
183if (string.IsNullOrEmpty(resolvedDownloadFolder)) 692if (!string.IsNullOrEmpty(versionRange.OriginalString) && versionRange.OriginalString == "*")
src\sdk\src\Cli\dotnet\Telemetry\DevDeviceIDGetter.cs (3)
17if (string.IsNullOrEmpty(deviceId)) 54if (!string.IsNullOrEmpty(xdgCacheHome)) 102if (!string.IsNullOrEmpty(xdgCacheHome))
src\sdk\src\Cli\dotnet\Telemetry\LLMEnvironmentDetectorForTelemetry.cs (1)
79public bool IsLLMEnvironment() => !string.IsNullOrEmpty(GetLLMEnvironment());
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (7)
78if (!string.IsNullOrEmpty(envValue) && int.TryParse(envValue, out var parsed) && parsed > 0) 202var initialSessionId = !string.IsNullOrEmpty(sessionId) 206CurrentSessionId ??= !string.IsNullOrEmpty(initialSessionId) ? initialSessionId : Guid.NewGuid().ToString(); 223if (string.IsNullOrEmpty(traceParent)) 228if (string.IsNullOrEmpty(traceParent)) 236if (string.IsNullOrEmpty(traceState)) 241if (!string.IsNullOrEmpty(traceState))
src\sdk\src\Cli\dotnet\Telemetry\TelemetryFilter.cs (2)
54if (string.IsNullOrEmpty(topLevelCommandName) 61if (!string.IsNullOrEmpty(globalJsonState))
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (3)
44if (string.IsNullOrEmpty(home)) 54if (string.IsNullOrEmpty(home)) 60if (string.IsNullOrEmpty(home))
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
112return !string.IsNullOrEmpty(targetFrameworkVersion) && Version.TryParse(targetFrameworkVersion.Substring(1), out var version) ? version : null;
dotnet-dev-certs (17)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
444if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 662if (!string.IsNullOrEmpty(targetDirectoryPath))
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
62if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 103if (string.IsNullOrEmpty(sslCertDirString)) 368if (!string.IsNullOrEmpty(existingSslCertDir)) 653if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WSL_INTEROP"))) 807if (!string.IsNullOrEmpty(@override)) 833if (string.IsNullOrEmpty(nssDbOverride))
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (7)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName)) 107if (!string.IsNullOrEmpty(SymbolName)) 112if (!string.IsNullOrEmpty(ShortName)) 117if (!string.IsNullOrEmpty(LongName)) 124if (!string.IsNullOrEmpty(ValueName))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-format (13)
Commands\FormatCommandCommon.cs (1)
341=> !string.IsNullOrEmpty(path) &&
Formatters\DocumentFormatter.cs (1)
187var isDelete = string.IsNullOrEmpty(change.NewText);
ReportWriter.cs (1)
16if (!string.IsNullOrEmpty(reportFolderPath) && !Directory.Exists(reportFolderPath))
Utilities\EditorConfigFinder.cs (1)
18if (string.IsNullOrEmpty(directoryName))
Utilities\GeneratedCodeUtilities.cs (2)
39if (!string.IsNullOrEmpty(filePath)) 48if (!string.IsNullOrEmpty(extension))
Utilities\ProcessRunner.cs (1)
177if (!string.IsNullOrEmpty(workingDirectory))
Workspaces\FolderWorkspace.cs (1)
32if (string.IsNullOrEmpty(folderPath) || !Directory.Exists(folderPath))
Workspaces\MSBuildWorkspaceFinder.cs (5)
25if (!string.IsNullOrEmpty(workspacePath)) 40if (!string.IsNullOrEmpty(foundSolution) && !string.IsNullOrEmpty(foundProject)) 45if (!string.IsNullOrEmpty(foundSolution)) 50if (!string.IsNullOrEmpty(foundProject))
dotnet-getdocument (13)
Commands\InvokeCommand.cs (4)
94if (!string.IsNullOrEmpty(projectAssetsFile) && File.Exists(projectAssetsFile)) 118if (!string.IsNullOrEmpty(runtimeFrameworkVersion)) 145if (!string.IsNullOrEmpty(environment)) 170if (cleanupExecutable && !string.IsNullOrEmpty(executable))
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (7)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName)) 107if (!string.IsNullOrEmpty(SymbolName)) 112if (!string.IsNullOrEmpty(ShortName)) 117if (!string.IsNullOrEmpty(LongName)) 124if (!string.IsNullOrEmpty(ValueName))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-Microsoft.XmlSerializer.Generator (9)
Sgen.cs (7)
202if (!string.IsNullOrEmpty(s_references)) 557return parent.Name + ".XmlSerializers" + (string.IsNullOrEmpty(ns) ? "" : $".{GetPersistentHashCode(ns)}"); 580if (string.IsNullOrEmpty(trimentry)) 593if (!string.IsNullOrEmpty(filename)) 607if (string.IsNullOrEmpty(e.Name) || e.Name.Split(',').Length == 0) 613if (string.IsNullOrEmpty(assemblyname)) 643if (!string.IsNullOrEmpty(reference))
src\runtime\artifacts\obj\Microsoft.XmlSerializer.Generator\Release\netstandard2.0\ThisAssembly.cs (1)
18if (string.IsNullOrEmpty(PreReleaseLabel))
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
dotnet-openapi (12)
Commands\BaseCommand.cs (3)
176if (!string.IsNullOrEmpty(sourceUrl)) 216if (string.IsNullOrEmpty(muxer)) 552if (!string.IsNullOrEmpty(destinationDirectory) && !Directory.Exists(destinationDirectory))
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (7)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName)) 107if (!string.IsNullOrEmpty(SymbolName)) 112if (!string.IsNullOrEmpty(ShortName)) 117if (!string.IsNullOrEmpty(LongName)) 124if (!string.IsNullOrEmpty(ValueName))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-sql-cache (14)
Program.cs (5)
72if (string.IsNullOrEmpty(connectionStringArg.Value) 73|| string.IsNullOrEmpty(schemaNameArg.Value) 74|| string.IsNullOrEmpty(tableNameArg.Value)) 114if (string.IsNullOrEmpty(schemaNameArg.Value) 115|| string.IsNullOrEmpty(tableNameArg.Value))
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (7)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName)) 107if (!string.IsNullOrEmpty(SymbolName)) 112if (!string.IsNullOrEmpty(ShortName)) 117if (!string.IsNullOrEmpty(LongName)) 124if (!string.IsNullOrEmpty(ValueName))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-suggest (3)
DotnetMuxer.cs (1)
20if (string.IsNullOrEmpty(fxDepsFile))
DotnetProfileDirectory.cs (2)
21if (string.IsNullOrEmpty(home)) 24if (string.IsNullOrEmpty(home))
dotnet-svcutil-lib (210)
AppInsightsTelemetryClient.cs (2)
32if (string.IsNullOrEmpty(optOut)) 121context.GlobalProperties["Dotnet.Version"] = string.IsNullOrEmpty(sdkVersion) ? "unknown" : sdkVersion;
Bootstrapper\SvcutilBootstrapper.cs (1)
145if (!string.IsNullOrEmpty(this.Options.RuntimeIdentifier))
CodeDomFixup\CodeDomHelpers.cs (1)
229if (!string.IsNullOrEmpty(value))
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (1)
184if (string.IsNullOrEmpty(baseType))
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (2)
84if (!string.IsNullOrEmpty(s_currentMatchingFullTypeName)) 88typeref.BaseType = string.IsNullOrEmpty(typeNamespace) ? destType : _typeDeclCollection.TypeNamespaceMappings[s_currentMatchingFullTypeName] + "." + destType;
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (1)
24var fullName = string.IsNullOrEmpty(typeNamespace) ? typeDeclaration.Name : typeNamespace + "." + typeDeclaration.Name;
CodeDomFixup\MethodCreationHelper.cs (2)
57if (!string.IsNullOrEmpty(endpointAddress)) 103if (!string.IsNullOrEmpty(ns?.Name))
CodeSerializer.cs (3)
141if (!string.IsNullOrEmpty(wsdl.Name)) 155if (wsdl.Services.Count > 0 && !string.IsNullOrEmpty(wsdl.Services[0].Name)) 171if (!string.IsNullOrEmpty(schema.TargetNamespace))
CommandProcessorOptions.cs (3)
388if (string.IsNullOrEmpty(workingDirectory)) 543if (string.IsNullOrEmpty(relDir)) 763if (!string.IsNullOrEmpty(Language))
DebugLogger.cs (2)
20if (!string.IsNullOrEmpty(message)) 44if (!string.IsNullOrEmpty(message))
FrameworkFork\Microsoft.CodeDom\Compiler\RedistVersionInfo.cs (2)
50if (!string.IsNullOrEmpty(comPlus_InstallRoot) && !string.IsNullOrEmpty(comPlus_Version))
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
305if (String.IsNullOrEmpty(tempDir)) tempDir = Path.GetTempPath();
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3326if (String.IsNullOrEmpty(nspace.Name))
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (2)
570if (String.IsNullOrEmpty(s)) 1078if (string.IsNullOrEmpty(name))
FrameworkFork\Microsoft.CodeDom\System\CodeGotoStatement.cs (1)
45if (String.IsNullOrEmpty(value))
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (2)
111if (!String.IsNullOrEmpty(type.Namespace)) 375if (String.IsNullOrEmpty(_baseType))
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (3)
2662if (_ps.baseUri == null && !string.IsNullOrEmpty(_ps.baseUriStr)) 8039if (!string.IsNullOrEmpty(publicId)) 8136if (!string.IsNullOrEmpty(entity.BaseUriString))
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
240TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 241string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc.Name : dataType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (3)
438TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 948return string.IsNullOrEmpty(originalNs) || originalNs == contextNs; 2003if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
296schema.TargetNamespace = string.IsNullOrEmpty(targetNamespace) ? null : targetNamespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
3685if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2399if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializerNamespaces.cs (2)
121if (string.IsNullOrEmpty(ns)) 128if (!string.IsNullOrEmpty(prefix) && (string)_namespaces[prefix] == ns)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
195if (string.IsNullOrEmpty(name))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Attributes.cs (2)
136if (string.IsNullOrEmpty(Id)) 145if (string.IsNullOrEmpty(Ref))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
442if (string.IsNullOrEmpty(clrNamespace)) 763return (string.IsNullOrEmpty(clrNamespace) && _clrNamespaces.ContainsKey(typeName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
1021if (methodBases == null || string.IsNullOrEmpty(methodName))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
510|| (string.IsNullOrEmpty(type.Name) && _dataContractSet.TryGetReferencedType(ImportActualType(type.Annotation, typeName, typeName), dataContract, out referencedType)))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (1)
204if (string.IsNullOrEmpty(contractNs) || contractNs == XmlDictionaryString.GetString(ns))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
99if (string.IsNullOrEmpty(text))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
308if (!string.IsNullOrEmpty(innerException) && innerException.Length < remainingLength)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (2)
650if (string.IsNullOrEmpty(limit)) 816if (string.IsNullOrEmpty(diagnosis))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (3)
142if (string.IsNullOrEmpty(str)) 489if (!string.IsNullOrEmpty(str)) 591keyPrefix = (!string.IsNullOrEmpty(key)) ? (key + "=") : string.Empty;
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (11)
170if (!string.IsNullOrEmpty(value)) 186if (!string.IsNullOrEmpty(value)) 193if (!string.IsNullOrEmpty(value)) 197if (!string.IsNullOrEmpty(value)) 205if (!string.IsNullOrEmpty(value)) 272if (!string.IsNullOrEmpty(value)) 540if (!string.IsNullOrEmpty(value)) 544if (!string.IsNullOrEmpty(value)) 548if (!string.IsNullOrEmpty(value)) 552if (!string.IsNullOrEmpty(value)) 556if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (5)
296if (String.IsNullOrEmpty(value)) 299if (String.IsNullOrEmpty(value)) 302if (String.IsNullOrEmpty(value)) 305if (String.IsNullOrEmpty(value)) 313str.Append(String.IsNullOrEmpty(value) ? "<x509>" : value);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
37if (string.IsNullOrEmpty(networkCredential.UserName))
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (1)
68if (string.IsNullOrEmpty(localId))
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SamlAssertion.cs (1)
35if (string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (1)
129if (!String.IsNullOrEmpty(configurationName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ApplicationContainerSettings.cs (1)
57return !string.IsNullOrEmpty(this.PackageFullName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Binding.cs (3)
28if (string.IsNullOrEmpty(name)) 75if (string.IsNullOrEmpty(value)) 247if (string.IsNullOrEmpty(transport.Scheme))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
82return String.IsNullOrEmpty(_data);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrClientWebSocketFactory.cs (1)
21if (!string.IsNullOrEmpty(settings.SubProtocol))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (3)
573if (!string.IsNullOrEmpty(inputString)) 627if (!string.IsNullOrEmpty(requestProperty.QueryString)) 1083if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
150if (string.IsNullOrEmpty(statusDescription))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
137if (string.IsNullOrEmpty(_contentType)) 334if (!string.IsNullOrEmpty(statusDescription))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (1)
70if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
622&& string.IsNullOrEmpty(prefix) // attribute prefix
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\PrivacyNoticeBindingElementImporter.cs (1)
40if (string.IsNullOrEmpty(versionString))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
334using (ServiceModelActivity activity = string.IsNullOrEmpty(activityName) ? null : ServiceModelActivity.CreateBoundedActivity())
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
283if (!string.IsNullOrEmpty(relativeAddress))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportImporter.cs (1)
33if (!string.IsNullOrEmpty(transportUri) && transportUri.Equals(UdpConstants.WsdlSoapUdpTransportUri, StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (1)
116if (string.IsNullOrEmpty(protectionLevelString))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ContractDescription.cs (3)
38if (!string.IsNullOrEmpty(ns)) 93if (!string.IsNullOrEmpty(value)) 208if (string.IsNullOrEmpty(this.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (4)
1329if (string.IsNullOrEmpty(partName)) 2190if (string.IsNullOrEmpty(soapHeaderBinding.Part)) 2202if (string.IsNullOrEmpty(soapFaultBinding.Name)) 2215if (string.IsNullOrEmpty(part.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessagePartDescription.cs (1)
39if (!string.IsNullOrEmpty(ns))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (3)
556if (!String.IsNullOrEmpty(external.SchemaLocation)) 571if (!String.IsNullOrEmpty(import.Location)) 1277if (String.IsNullOrEmpty(contentTypeStr))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
587Fx.Assert(String.IsNullOrEmpty(typeName) || Microsoft.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(typeName), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", typeName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (1)
228if (string.IsNullOrEmpty(id))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
765CodeTypeReference codeTypeReference = new CodeTypeReference(String.IsNullOrEmpty(codeNamespace.Name) ? codeType.Name : codeNamespace.Name + '.' + codeType.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (6)
99return new XmlName(String.IsNullOrEmpty(name) ? logicalMethodName : name); 119if (String.IsNullOrEmpty(contractName.Namespace)) 170if (string.IsNullOrEmpty(name)) 280private bool IsEmpty { get { return string.IsNullOrEmpty(_encoded) && string.IsNullOrEmpty(_decoded); } } 314if (string.IsNullOrEmpty(EncodedName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
361if (!string.IsNullOrEmpty(knownTypeAttribute.MethodName)) 1535if (string.IsNullOrEmpty(wrapperName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
90if (String.IsNullOrEmpty(identifier))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
492if (!string.IsNullOrEmpty(wsdl.TargetNamespace)) 515if (string.IsNullOrEmpty(wsdl.Name)) 899if (string.IsNullOrEmpty(wsdlFaultBinding.Name)) 978if (string.IsNullOrEmpty(ns))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (9)
520if (string.IsNullOrEmpty(wsdlOperationFault.Name)) 609if (string.IsNullOrEmpty(doc.Identifier)) 1209if (!string.IsNullOrEmpty(wsdlOperationMessage.Name)) 1710if (!string.IsNullOrEmpty(element.NamespaceURI)) 1714if (!string.IsNullOrEmpty(element.Prefix)) 1853if (string.IsNullOrEmpty(messageName)) 2019if (!string.IsNullOrEmpty(xPath)) 2323if (String.IsNullOrEmpty(key)) 2444if (string.IsNullOrEmpty(key))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
291if (String.IsNullOrEmpty(((XmlAnyElementAttribute)attr).Name)) 820XmlName memberName = string.IsNullOrEmpty(part.UniquePartName) ? null : new XmlName(part.UniquePartName, true /*isEncoded*/);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
210if (_codeNamespace != null && !string.IsNullOrEmpty(_codeNamespace.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
16if (string.IsNullOrEmpty(traceName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
320if (string.IsNullOrEmpty(this.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
489if (String.IsNullOrEmpty(endpointContractNames))
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultCode.cs (1)
38if (!string.IsNullOrEmpty(ns))
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultContractAttribute.cs (1)
64if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractAttribute.cs (1)
72if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessagePartSpecification.cs (1)
202if (String.IsNullOrEmpty(qname.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (15)
600if (String.IsNullOrEmpty(value)) 603if (String.IsNullOrEmpty(value)) 606if (String.IsNullOrEmpty(value)) 609if (String.IsNullOrEmpty(value)) 617str.Append(String.IsNullOrEmpty(value) ? "<x509>" : value); 639str.Append(String.IsNullOrEmpty(name) ? "<null>" : name); 825string.IsNullOrEmpty(credential.UserName) && 826string.IsNullOrEmpty(credential.Domain) && 827string.IsNullOrEmpty(credential.Password) 960if (!string.IsNullOrEmpty(username) && string.IsNullOrEmpty(domain)) 967if (!string.IsNullOrEmpty(partsWithSlashDelimiter[0]) && !string.IsNullOrEmpty(partsWithSlashDelimiter[1])) 974if (!string.IsNullOrEmpty(partsWithAtDelimiter[0]) && !string.IsNullOrEmpty(partsWithAtDelimiter[1]))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityVersion.cs (1)
118if (headerIndex < 0 && String.IsNullOrEmpty(actor))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\GenericXmlSecurityToken.cs (4)
127if (string.IsNullOrEmpty(id)) 134if (string.IsNullOrEmpty(id)) 140if (string.IsNullOrEmpty(id)) 146if (!string.IsNullOrEmpty(id))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (2)
264if (!string.IsNullOrEmpty(claimValue)) 268if (String.IsNullOrEmpty(optional))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
1930if (String.IsNullOrEmpty(optionalAttribute))
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceContractAttribute.cs (1)
63if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\UriSchemeKeyedCollection.cs (3)
64if (!string.IsNullOrEmpty(uri.UserInfo)) 69if (!string.IsNullOrEmpty(uri.Query)) 74if (!string.IsNullOrEmpty(uri.Fragment))
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (1)
37if (string.IsNullOrEmpty(booleanValue))
HelpGenerator.cs (1)
219Debug.Assert(!string.IsNullOrEmpty(name), "Help category name should have a valid value!");
Metadata\MetadaExchangeResolver.cs (1)
92bool isQueryUri = !string.IsNullOrEmpty(uriQuery);
Metadata\MetadataDocumentLoader.cs (7)
90if (string.IsNullOrEmpty(uri)) 334if (!string.IsNullOrEmpty(externalSchema.SchemaLocation)) 453if (!string.IsNullOrEmpty(uri)) 580var chameleonSchemas = schemas.Where(s => string.IsNullOrEmpty(s.TargetNamespace)); 637if (string.IsNullOrEmpty(wsdl.RetrievalUrl)) 660if (string.IsNullOrEmpty(schema.SourceUri)) 711if (!string.IsNullOrEmpty(metadataUri.Query))
Metadata\MetadataDocumentSaver.cs (6)
168if (!string.IsNullOrEmpty(import.Location) && !this.UnresolvedReferences.Any(r => r.WsdlImport == import)) 192if (!string.IsNullOrEmpty(schemaExternal.SchemaLocation)) 203if (schemaImport != null && !string.IsNullOrEmpty(schemaImport.Namespace)) 251(!string.IsNullOrEmpty(u.Namespace) && u.Namespace == schema.TargetNamespace))).ToList(); 356if (!string.IsNullOrEmpty(id)) 400return string.IsNullOrEmpty(this.Uri) ? base.ToString() : this.Uri;
Metadata\MetadataFileNameManager.cs (5)
169if (!string.IsNullOrEmpty(extension) && (!Path.HasExtension(outputFile) || !Path.GetExtension(outputFile).Equals(extension, StringComparison.OrdinalIgnoreCase))) 217if (string.IsNullOrEmpty(baseUrl)) 221if (string.IsNullOrEmpty(relUrl)) 238if (string.IsNullOrEmpty(dirPath)) 253if (string.IsNullOrEmpty(filename))
OutputPathHelper.cs (2)
92if (!string.IsNullOrEmpty(option)) 112if (string.IsNullOrEmpty(ns))
Shared\MSBuildProj.cs (6)
217if (!string.IsNullOrEmpty(targetFx) && !targetFx.ToString().StartsWith("$")) 228if(string.IsNullOrEmpty(msbuildProj._targetFramework)) 230if(!string.IsNullOrEmpty(tfMoniker) && FrameworkInfo.TryParse(tfMoniker, out FrameworkInfo fxInfo)) 391if (string.IsNullOrEmpty(projectName) || string.CompareOrdinal(projectExtension.ToLowerInvariant(), ".csproj") != 0) 901if (string.IsNullOrEmpty(targetLib)) 1038if (string.IsNullOrEmpty(sdkVersion) || sdkVersion.StartsWith("1", StringComparison.OrdinalIgnoreCase))
Shared\Options\ApplicationOptions.cs (1)
138if (string.IsNullOrEmpty(jsonText))
Shared\ProjectPropertyResolver.cs (1)
157if (!string.IsNullOrEmpty(sdkVersion))
Shared\Utilities\LogTag.cs (2)
37if (string.IsNullOrEmpty(tag) || tag.Length != LogTag.s_tagLength || !tag.StartsWith(s_tagStart, StringComparison.Ordinal) || !tag.EndsWith(s_tagEnd, StringComparison.Ordinal)) 60if (!string.IsNullOrEmpty(message) && message.Length >= LogTag.s_tagLength)
Shared\Utilities\PathHelper.cs (7)
188if (!string.IsNullOrEmpty(str) && int.TryParse(str, out var index)) 249if (!string.IsNullOrEmpty(itemName) && !string.IsNullOrEmpty(workingDir) && Directory.Exists(workingDir)) 251while (string.IsNullOrEmpty(fullPath)) 254if (!string.IsNullOrEmpty(fullPath)) 260if (string.IsNullOrEmpty(workingDir)) 272await safeLogger.WriteMessageAsync($"Item found: {!string.IsNullOrEmpty(fullPath)}", logToUI: false).ConfigureAwait(false);
Tool.cs (3)
30if (string.IsNullOrEmpty(_assemblyName)) 43if (string.IsNullOrEmpty(s_pkgVersion)) 57if (string.IsNullOrEmpty(_fullPath))
dotnet-svcutil-lib.Tests (14)
E2ETests.cs (1)
95var tf = string.IsNullOrEmpty(targetFramework) ? string.Empty : $"-tf {targetFramework}";
FixupUtil.cs (1)
142if (string.IsNullOrEmpty(target))
GlobalToolTests.cs (1)
93var tf = string.IsNullOrEmpty(targetFramework) ? string.Empty : $"-tf {targetFramework}";
ProjectUtils.cs (5)
42if (!string.IsNullOrEmpty(targetFramework)) 56if (!string.IsNullOrEmpty(targetFramework)) 86Assert.False(string.IsNullOrEmpty(options), $"{nameof(options)} not initialized!"); 173Assert.False(string.IsNullOrEmpty(srcParamsFile), $"{nameof(srcParamsFile)} not initialized!"); 174Assert.False(string.IsNullOrEmpty(referenceFolderName), $"{nameof(referenceFolderName)} not initialized!");
TestInit.cs (6)
169Assert.False(string.IsNullOrEmpty(g_SvcutilNugetFeed), $"{nameof(g_SvcutilNugetFeed)} is not initialized!"); 170Assert.False(string.IsNullOrEmpty(g_SvcutilPkgVersion), $"{nameof(g_SvcutilPkgVersion)} is not initialized!"); 384return string.IsNullOrEmpty(failureMessage); 424if (string.IsNullOrEmpty(relativePath)) 440return string.IsNullOrEmpty(failureMessage); 586if (string.IsNullOrEmpty(g_RepositoryRoot))
dotnet-svcutil.xmlserializer (10)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (2)
165if (string.IsNullOrEmpty(dirPath)) 175if (string.IsNullOrEmpty(filename))
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
437if (string.IsNullOrEmpty(smassembly)) 455if (!string.IsNullOrEmpty(smpassembly))
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (4)
36Tool.Assert(!string.IsNullOrEmpty(filepath), "filename must have a valid value"); 37Tool.Assert(!string.IsNullOrEmpty(extension), "extension must have a valid value"); 81if (!string.IsNullOrEmpty(option)) 162if (string.IsNullOrEmpty(ns))
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
65if (!string.IsNullOrEmpty(errMsg))
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (1)
33if (!string.IsNullOrEmpty(_outFile) && assemblies.Count > 1)
dotnet-user-jwts (23)
_generated\0\BindingExtensions.g.cs (1)
78if (!string.IsNullOrEmpty(section.Value) && !section.GetChildren().Any())
Helpers\DevJwtCliHelpers.cs (3)
20if (string.IsNullOrEmpty(id)) 82if (string.IsNullOrEmpty(filePath)) 128if (string.IsNullOrEmpty(project))
Helpers\SigningKeysHandler.cs (1)
45if (!string.IsNullOrEmpty(signingKey?.Value)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (7)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName)) 107if (!string.IsNullOrEmpty(SymbolName)) 112if (!string.IsNullOrEmpty(ShortName)) 117if (!string.IsNullOrEmpty(LongName)) 124if (!string.IsNullOrEmpty(ValueName))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (9)
48configuration = !string.IsNullOrEmpty(configuration) 93if (!string.IsNullOrEmpty(d.Data)) 100if (!string.IsNullOrEmpty(d.Data)) 126if (string.IsNullOrEmpty(id)) 177if (!string.IsNullOrEmpty(d.Data)) 184if (!string.IsNullOrEmpty(d.Data)) 212if (string.IsNullOrEmpty(id)) 246if (!string.IsNullOrEmpty(assemblyLocation)) 249if (!string.IsNullOrEmpty(assemblyDir))
dotnet-user-secrets (21)
Internal\SetCommand.cs (1)
44if (string.IsNullOrEmpty(nameArg.Value))
Program.cs (2)
83if (string.IsNullOrEmpty(userSecretsId)) 103if (!string.IsNullOrEmpty(options.Id))
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (7)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName)) 107if (!string.IsNullOrEmpty(SymbolName)) 112if (!string.IsNullOrEmpty(ShortName)) 117if (!string.IsNullOrEmpty(LongName)) 124if (!string.IsNullOrEmpty(ValueName))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (9)
48configuration = !string.IsNullOrEmpty(configuration) 93if (!string.IsNullOrEmpty(d.Data)) 100if (!string.IsNullOrEmpty(d.Data)) 126if (string.IsNullOrEmpty(id)) 177if (!string.IsNullOrEmpty(d.Data)) 184if (!string.IsNullOrEmpty(d.Data)) 212if (string.IsNullOrEmpty(id)) 246if (!string.IsNullOrEmpty(assemblyLocation)) 249if (!string.IsNullOrEmpty(assemblyDir))
dotnet-watch (4)
CommandLine\CommandLineOptions.cs (2)
110if (string.IsNullOrEmpty(projectValue)) 113if (!string.IsNullOrEmpty(projectShortValue))
Program.cs (1)
38if (string.IsNullOrEmpty(sdkRootDirectory))
Watch\BuildEvaluator.cs (1)
183if (!string.IsNullOrEmpty(filePath) && IsMsBuildFileExtension(filePath))
DotNetWatchTasks (1)
FileSetSerializer.cs (1)
49if (string.IsNullOrEmpty(staticWebAssetPath))
EventSourceGenerator (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
GenerateAnalyzerNuspec (1)
Program.cs (1)
79if (!string.IsNullOrEmpty(repositoryType))
GenerateDocumentationAndConfigFiles (38)
JsonWriter.cs (1)
172if (string.IsNullOrEmpty(value))
Program.cs (16)
417if (string.IsNullOrEmpty(args.PropsFileDir) || string.IsNullOrEmpty(args.PropsFileName)) 420Debug.Assert(string.IsNullOrEmpty(args.PropsFileToDisableNetAnalyzersInNuGetPackageName)); 438if (!string.IsNullOrEmpty(disableNetAnalyzersImport)) 464if (!string.IsNullOrEmpty(args.PropsFileToDisableNetAnalyzersInNuGetPackageName)) 537if (string.IsNullOrEmpty(args.AnalyzerDocumentationFileDir) || string.IsNullOrEmpty(args.AnalyzerDocumentationFileName) || allRulesById.Count == 0) 623if (string.IsNullOrEmpty(args.AnalyzerSarifFileDir) || string.IsNullOrEmpty(args.AnalyzerSarifFileName) || allRulesById.Count == 0) 679writer.Write("fullDescription", !string.IsNullOrEmpty(fullDescription) ? fullDescription.Replace("\r\n", "\n") : descriptor.MessageFormat.ToString(CultureInfo.InvariantCulture)); 683if (!string.IsNullOrEmpty(descriptor.HelpLinkUri)) 769if (string.IsNullOrEmpty(args.AnalyzerDocumentationFileDir) || allRulesById.Count == 0) 1601if (string.IsNullOrEmpty(targetsFileDir) || string.IsNullOrEmpty(targetsFileName)) 1641if (!string.IsNullOrEmpty(category)) 1709if (!string.IsNullOrEmpty(category))
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
233return !string.IsNullOrEmpty(value); 483if (string.IsNullOrEmpty(optionValue)) 498if (!string.IsNullOrEmpty(optionDefaultValue))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (1)
204if (!string.IsNullOrEmpty(argumentName))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
GetDocument.Insider (13)
Commands\GetDocumentCommandWorker.cs (4)
117if (!string.IsNullOrEmpty(_context.Environment)) 279if (!string.IsNullOrEmpty(_context.DocumentName)) 300var targetDocumentNames = string.IsNullOrEmpty(_context.DocumentName) 435if (!string.IsNullOrEmpty(outputDirectory))
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (7)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName)) 107if (!string.IsNullOrEmpty(SymbolName)) 112if (!string.IsNullOrEmpty(ShortName)) 117if (!string.IsNullOrEmpty(LongName)) 124if (!string.IsNullOrEmpty(ValueName))
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
ilasm (2)
Program.cs (2)
102if (!string.IsNullOrEmpty(ssver)) 190if (!string.IsNullOrEmpty(includePath))
ILAssembler (1)
EntityRegistry.cs (1)
710string.IsNullOrEmpty(asmRef.Culture) ? null : asmRef.Culture,
ilc (11)
ConfigurablePInvokePolicy.cs (1)
51if (string.IsNullOrEmpty(entry))
Program.cs (4)
158else if (!string.IsNullOrEmpty(guard)) 279if (typeSystemContext.Target.IsWindows && !string.IsNullOrEmpty(win32resourcesModule)) 376if (!string.IsNullOrEmpty(jitPath)) 615MethodBodyFoldingMode foldingMode = string.IsNullOrEmpty(Get(_command.MethodBodyFolding))
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (5)
63if (string.IsNullOrEmpty(token)) 98if (string.IsNullOrEmpty(token)) 258if (!string.IsNullOrEmpty(optInList)) 270if (!string.IsNullOrEmpty(optInList)) 277if (val is string stringVal && !string.IsNullOrEmpty(stringVal))
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
179if (string.IsNullOrEmpty(instructionSet))
ILCompiler.Compiler (43)
Compiler\AssemblyExtensions.cs (1)
26if (decoded.FixedArguments.Length == 1 && decoded.FixedArguments[0].Value is string tfm && !string.IsNullOrEmpty(tfm))
Compiler\BodySubstitutionParser.cs (5)
58if (string.IsNullOrEmpty(signature)) 109if (string.IsNullOrEmpty(name)) 130if (string.IsNullOrEmpty(value)) 190if (string.IsNullOrEmpty(value)) 197if (string.IsNullOrEmpty(value))
Compiler\DependencyAnalysis\ManagedDataDescriptorNode.cs (1)
164if (string.IsNullOrEmpty(ns))
Compiler\DescriptorMarker.cs (1)
228if (string.IsNullOrEmpty(attribute))
Compiler\HardwareIntrinsicILProvider.cs (1)
41if (!string.IsNullOrEmpty(intrinsicId)
Compiler\Logging\DocumentationSignatureGenerator.PartVisitor.cs (2)
158if (!string.IsNullOrEmpty(@namespace)) 176if (!string.IsNullOrEmpty(@namespace))
Compiler\Logging\DocumentationSignatureParser.cs (3)
155if (string.IsNullOrEmpty(name)) 239if (string.IsNullOrEmpty(name)) 402if (string.IsNullOrEmpty(name))
Compiler\Logging\MessageContainer.cs (2)
280if (!string.IsNullOrEmpty(SubCategory)) 298if (!string.IsNullOrEmpty(cat))
Compiler\ManifestResourceBlockingPolicy.cs (1)
182if (string.IsNullOrEmpty(name))
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (1)
482var dwarfFileName = string.IsNullOrEmpty(sequencePoint.FileName) ?
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (2)
82!string.IsNullOrEmpty(directoryName) && 97directoryIndex = fileName.Directory is string directoryName && !string.IsNullOrEmpty(directoryName) ? _directoryNameToIndex[directoryName] : 0;
Compiler\UsageBasedMetadataManager.cs (1)
1161if (!string.IsNullOrEmpty(internalValue))
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (4)
273if (string.IsNullOrEmpty(returnList) && string.IsNullOrEmpty(paramList)) 277else if (string.IsNullOrEmpty(returnList)) 281else if (string.IsNullOrEmpty(paramList))
src\runtime\src\coreclr\tools\Common\Compiler\DisplayNameHelpers.cs (1)
255if (!string.IsNullOrEmpty(ns))
src\runtime\src\coreclr\tools\Common\Compiler\FeatureSettings.cs (3)
14if (string.IsNullOrEmpty(feature)) 18if (string.IsNullOrEmpty(value)) 32if (!string.IsNullOrEmpty(isDefault) && (!bool.TryParse(isDefault, out bIsDefault) || !bIsDefault))
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
95if (!string.IsNullOrEmpty(symbol))
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (9)
284if (!string.IsNullOrEmpty(signature)) 299if (!string.IsNullOrEmpty(name)) 350if (!string.IsNullOrEmpty(signature)) 365if (!string.IsNullOrEmpty(name)) 402if (!string.IsNullOrEmpty(signature)) 417if (!string.IsNullOrEmpty(name)) 462if (!string.IsNullOrEmpty(signature)) 477if (!string.IsNullOrEmpty(name)) 787Debug.Assert(!string.IsNullOrEmpty(fullName));
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (1)
453Debug.Assert(!string.IsNullOrEmpty(ex.Message));
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\StructMarshallingThunk.cs (1)
320Debug.Assert(!string.IsNullOrEmpty(ex.Message));
src\runtime\src\tools\illink\src\ILLink.Shared\MessageFormat.cs (2)
13if (!string.IsNullOrEmpty(message)) 21if (!string.IsNullOrEmpty(url))
ILCompiler.MetadataTransform (4)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (4)
607if (Name != null && !string.IsNullOrEmpty(Name.Value)) 624if (!string.IsNullOrEmpty(pns.ToString(false))) 642if (Name != null && !string.IsNullOrEmpty(Name.Value)) 659if (!string.IsNullOrEmpty(pns.ToString(false)))
ILCompiler.ReadyToRun (28)
CodeGen\ReadyToRunObjectWriter.cs (2)
235if (string.IsNullOrEmpty(path)) 245if (string.IsNullOrEmpty(path))
Compiler\CallChainProfile.cs (1)
277if (string.IsNullOrEmpty(keyParts))
Compiler\DependencyAnalysis\ReadyToRun\StringDiscoverableAssemblyStubNode.cs (1)
35Debug.Assert(!string.IsNullOrEmpty(LookupString), "LookupString must be non-empty");
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
1352return new Utf8String(string.IsNullOrEmpty(symbolName) ? "RTR_HEADER" : symbolName);
Compiler\FileLayoutOptimizer.cs (1)
224if (string.IsNullOrEmpty(symbolName)
Compiler\ReadyToRunXmlRootProvider.cs (1)
209if (string.IsNullOrEmpty(attribute))
IBC\MIbcProfileParser.cs (2)
213if (string.IsNullOrEmpty(mibcGroupName)) 231if (string.IsNullOrEmpty(s))
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (4)
273if (string.IsNullOrEmpty(returnList) && string.IsNullOrEmpty(paramList)) 277else if (string.IsNullOrEmpty(returnList)) 281else if (string.IsNullOrEmpty(paramList))
src\runtime\src\coreclr\tools\Common\Compiler\DisplayNameHelpers.cs (1)
255if (!string.IsNullOrEmpty(ns))
src\runtime\src\coreclr\tools\Common\Compiler\FeatureSettings.cs (3)
14if (string.IsNullOrEmpty(feature)) 18if (string.IsNullOrEmpty(value)) 32if (!string.IsNullOrEmpty(isDefault) && (!bool.TryParse(isDefault, out bIsDefault) || !bIsDefault))
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
95if (!string.IsNullOrEmpty(symbol))
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (9)
284if (!string.IsNullOrEmpty(signature)) 299if (!string.IsNullOrEmpty(name)) 350if (!string.IsNullOrEmpty(signature)) 365if (!string.IsNullOrEmpty(name)) 402if (!string.IsNullOrEmpty(signature)) 417if (!string.IsNullOrEmpty(name)) 462if (!string.IsNullOrEmpty(signature)) 477if (!string.IsNullOrEmpty(name)) 787Debug.Assert(!string.IsNullOrEmpty(fullName));
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
65if (!string.IsNullOrEmpty(jitPath))
ILCompiler.RyuJit (4)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (1)
224if (string.IsNullOrEmpty(symbolName)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (2)
213if (string.IsNullOrEmpty(mibcGroupName)) 231if (string.IsNullOrEmpty(s))
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
65if (!string.IsNullOrEmpty(jitPath))
ILCompiler.TypeSystem (3)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ThrowHelper.Common.cs (1)
84return string.IsNullOrEmpty(@namespace) ? name : @namespace + "." + name;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\DebugNameFormatter.cs (1)
225if (!string.IsNullOrEmpty(ns))
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
72if (retType.IsVoid || retType.IsByRef || !string.IsNullOrEmpty(name))
illink (52)
ILLink.CodeFixProvider (1)
RequiresHelpers.cs (1)
16if (string.IsNullOrEmpty(symbolDisplayName) || hasPublicAccessibility)
ILLink.RoslynAnalyzer (4)
RequiresAssemblyFilesAnalyzer.cs (1)
144if (!string.IsNullOrEmpty(message))
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
107if (!TryGetNextToken(out string name, out Token token) || token != Token.String || string.IsNullOrEmpty(name))
src\runtime\src\tools\illink\src\ILLink.Shared\MessageFormat.cs (2)
13if (!string.IsNullOrEmpty(message)) 21if (!string.IsNullOrEmpty(url))
ILLink.Tasks (14)
LinkTask.cs (14)
243if (!string.IsNullOrEmpty(_dotnetPath)) 247if (string.IsNullOrEmpty(_dotnetPath)) 269if (!string.IsNullOrEmpty(_illinkPath)) 324if (!string.IsNullOrEmpty(rootMode)) 374if (string.IsNullOrEmpty(assemblyTrimMode)) 387if (!string.IsNullOrEmpty(assemblyTrimMode)) 398if (string.IsNullOrEmpty(optimizationValue)) 409if (!string.IsNullOrEmpty(singleWarn)) 487if (string.IsNullOrEmpty(value)) 499if (string.IsNullOrEmpty(featureValue)) 531if (!string.IsNullOrEmpty(beforeStep) && !string.IsNullOrEmpty(afterStep)) 533if (!string.IsNullOrEmpty(beforeStep)) 535if (!string.IsNullOrEmpty(afterStep))
Infrastructure.Common (8)
ConditionalTestDetectors.cs (1)
236if (String.IsNullOrEmpty(result) && IsClientDomainJoined())
OSHelper.cs (2)
131if (string.IsNullOrEmpty(osDescription)) 187if (string.IsNullOrEmpty(testRuntime))
SafeKeychainHandle.cs (1)
76if(!string.IsNullOrEmpty(passphrase))
ServiceUtilHelper.cs (1)
467if (string.IsNullOrEmpty(s_serviceHostName))
TestProperties.cs (1)
58if (String.IsNullOrEmpty(result))
xunit\IssueAttribute.cs (1)
101if (String.IsNullOrEmpty(includeTestsWithIssues))
xunit\WcfTestCase.cs (1)
119if (!string.IsNullOrEmpty(failFastDurationStr))
Infrastructure.IntegrationTests (1)
OSAndFrameworkTests.4.1.1.cs (1)
76Assert.False(string.IsNullOrEmpty(serviceUri), $"Test property {TestProperties.ServiceUri_PropertyName} is null or empty");
Infrastructure.Tests (34)
ExtractTestPartitions\MockAssemblyBuilder.cs (1)
265if (!string.IsNullOrEmpty(outputDir) && !Directory.Exists(outputDir))
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (1)
629if (!string.IsNullOrEmpty(outputMatrixFile))
PowerShellScripts\PowerShellCommand.cs (2)
35_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] "; 277if (!string.IsNullOrEmpty(Output))
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
259if (!string.IsNullOrEmpty(allTestsMatrix)) 268if (!string.IsNullOrEmpty(allTestsMatrixFile))
Shared\TestDataBuilder.cs (5)
58if (!string.IsNullOrEmpty(outputDir) && !Directory.Exists(outputDir)) 104if (!string.IsNullOrEmpty(outputDir) && !Directory.Exists(outputDir)) 129if (!string.IsNullOrEmpty(outputDir) && !Directory.Exists(outputDir)) 148if (!string.IsNullOrEmpty(outputDir) && !Directory.Exists(outputDir)) 170if (!string.IsNullOrEmpty(outputDir) && !Directory.Exists(outputDir))
Shared\TestTrxBuilder.cs (7)
21if (!string.IsNullOrEmpty(outputDirectory)) 68if (!string.IsNullOrEmpty(outputDirectory)) 119string.IsNullOrEmpty(testCase.StdOut) ? null : new XElement(s_namespace + "StdOut", testCase.StdOut))); 124if (string.IsNullOrEmpty(testCase.ErrorMessage) && string.IsNullOrEmpty(testCase.StackTrace)) 131string.IsNullOrEmpty(testCase.ErrorMessage) ? null : new XElement(s_namespace + "Message", testCase.ErrorMessage), 132string.IsNullOrEmpty(testCase.StackTrace) ? null : new XElement(s_namespace + "StackTrace", testCase.StackTrace));
TestTriggerMap\TestTriggerMapTests.cs (1)
168.Where(name => !string.IsNullOrEmpty(name))
tools\GenerateCITimeline\GitHubApi.cs (1)
32if (string.IsNullOrEmpty(text))
tools\GenerateCITimeline\TimelineRenderer.cs (3)
513if (string.IsNullOrEmpty(conclusion)) 523var conclusionLabel = string.IsNullOrEmpty(conclusion) ? "in progress" : conclusion; 543if (!string.IsNullOrEmpty(hotspots))
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (9)
2154if (!string.IsNullOrEmpty(test.ErrorMessage) || !string.IsNullOrEmpty(test.StackTrace) || !string.IsNullOrEmpty(test.StdOut)) 2157if (!string.IsNullOrEmpty(test.ErrorMessage) || !string.IsNullOrEmpty(test.StackTrace)) 2160(string.IsNullOrEmpty(test.ErrorMessage) ? "" : $"<Message>{test.ErrorMessage}</Message>") + 2161(string.IsNullOrEmpty(test.StackTrace) ? "" : $"<StackTrace>{test.StackTrace}</StackTrace>") + 2165string stdOut = string.IsNullOrEmpty(test.StdOut) ? "" : $"<StdOut>{test.StdOut}</StdOut>"; 2192Dictionary<string, string>? jobLogTextByJobId = string.IsNullOrEmpty(jobLogText)
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (1)
716Assert.False(string.IsNullOrEmpty(run), $"Expected step '{stepName}' to define a run script.");
WorkflowScripts\NodeCommand.cs (1)
25_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
installer.tasks (2)
StaticFileRegeneration\TpnSectionHeader.cs (2)
32string.IsNullOrEmpty(lineBelow)) 36if (string.IsNullOrEmpty(lineAbove))
Keycloak.Web (1)
AuthorizationHandler.cs (1)
15if (!string.IsNullOrEmpty(accessToken))
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
TemplateTestUtilities.cs (1)
57.Where(arg => !string.IsNullOrEmpty(arg));
TestCommand.cs (1)
28if (string.IsNullOrEmpty(FileName))
Microsoft.Analyzers.Extra (2)
LegacyLoggingFixer.cs (1)
296if (!string.IsNullOrEmpty(details.TargetNamespace))
LegacyLoggingFixer.FixDetails.cs (1)
139if (string.IsNullOrEmpty(TargetNamespace))
Microsoft.Analyzers.Local (1)
JsonValue.cs (1)
198JsonValueType.String => !string.IsNullOrEmpty((string?)_reference),
Microsoft.Analyzers.Local.Tests (2)
JsonParseExceptionTest.cs (1)
18Assert.False(string.IsNullOrEmpty(ex.Message));
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Arcade.Common (4)
CommandFactory.cs (2)
43if (!string.IsNullOrEmpty(args)) 57if (!string.IsNullOrEmpty(extension))
CommandResult.cs (2)
35if (!string.IsNullOrEmpty(StdOut)) 40if (!string.IsNullOrEmpty(StdErr))
Microsoft.AspNetCore (8)
HostingPathResolver.cs (1)
19if (string.IsNullOrEmpty(contentRootPath))
Internal\DefaultCsrfProtection.cs (3)
37if (!string.IsNullOrEmpty(origin)) 55if (!string.IsNullOrEmpty(secFetchSite)) 61if (!string.IsNullOrEmpty(origin))
WebHost.cs (4)
97if (!string.IsNullOrEmpty(url)) 109if (!string.IsNullOrEmpty(applicationName)) 165if (string.IsNullOrEmpty(builder.GetSetting(WebHostDefaults.ContentRootKey))) 183if (!string.IsNullOrEmpty(env.ApplicationName))
Microsoft.AspNetCore.Antiforgery (14)
Internal\DefaultAntiforgery.cs (2)
180Debug.Assert(!string.IsNullOrEmpty(antiforgeryTokenSet.CookieToken)); 181Debug.Assert(!string.IsNullOrEmpty(antiforgeryTokenSet.RequestToken));
Internal\DefaultAntiforgeryAdditionalDataProvider.cs (1)
23return string.IsNullOrEmpty(additionalData);
Internal\DefaultAntiforgeryTokenGenerator.cs (3)
81&& string.IsNullOrEmpty(requestToken.Username) 83&& string.IsNullOrEmpty(requestToken.AdditionalData)) 204&& (token.ClaimUid is not null || !string.IsNullOrEmpty(token.Username));
Internal\DefaultAntiforgeryTokenStore.cs (2)
27if (string.IsNullOrEmpty(requestCookie)) 93if (!string.IsNullOrEmpty(pathBase))
Internal\DefaultClaimUidExtractor.cs (3)
49if (subClaim != null && !string.IsNullOrEmpty(subClaim.Value)) 61if (nameIdentifierClaim != null && !string.IsNullOrEmpty(nameIdentifierClaim.Value)) 73if (upnClaim != null && !string.IsNullOrEmpty(upnClaim.Value))
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
101if (string.IsNullOrEmpty(value)) 126if (string.IsNullOrEmpty(value))
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
220if (string.IsNullOrEmpty(input))
Microsoft.AspNetCore.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.AspNetCore.Authentication (8)
RemoteAuthenticationHandler.cs (4)
181if (string.IsNullOrEmpty(ticketContext.ReturnUri)) 270if (string.IsNullOrEmpty(correlationCookie)) 325if (!string.IsNullOrEmpty(context.ReturnUrlParameter) && !string.IsNullOrEmpty(context.ReturnUrl))
RequestPathBaseCookieBuilder.cs (1)
34options.Path = !string.IsNullOrEmpty(path)
SecureDataFormat.cs (2)
40if (!string.IsNullOrEmpty(purpose)) 72if (!string.IsNullOrEmpty(purpose))
TicketSerializer.cs (1)
106if (!string.IsNullOrEmpty(bootstrap))
Microsoft.AspNetCore.Authentication.Abstractions (1)
TokenExtensions.cs (1)
100if (properties.Items.TryGetValue(TokenNamesKey, out var value) && !string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Authentication.Cookies (15)
CookieAuthenticationHandler.cs (6)
154if (string.IsNullOrEmpty(cookie)) 437if (shouldHonorReturnUrlParameter && string.IsNullOrEmpty(redirectUri)) 440if (string.IsNullOrEmpty(redirectUri) || !IsHostRelative(redirectUri)) 455=> !string.IsNullOrEmpty(path) 463if (string.IsNullOrEmpty(returnUrl)) 476if (string.IsNullOrEmpty(redirectUri))
PostConfigureCookieAuthenticationOptions.cs (1)
36if (string.IsNullOrEmpty(options.Cookie.Name))
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
104if (string.IsNullOrEmpty(chunk)) 153if (string.IsNullOrEmpty(value)) 246if (string.IsNullOrEmpty(requestCookies[subkey])) 256var domainHasValue = !string.IsNullOrEmpty(options.Domain); 257var pathHasValue = !string.IsNullOrEmpty(options.Path); 322if (string.IsNullOrEmpty(requestCookies[subkey]))
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (2)
16if (string.IsNullOrEmpty(contentPath)) 39if (string.IsNullOrEmpty(url))
Microsoft.AspNetCore.Authentication.Core (5)
AuthenticationService.cs (5)
224if (string.IsNullOrEmpty(schemes)) 248if (string.IsNullOrEmpty(schemes)) 264if (string.IsNullOrEmpty(schemes)) 287if (string.IsNullOrEmpty(schemes)) 303if (string.IsNullOrEmpty(schemes))
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (9)
DeviceBoundSessionChallengeProtector.cs (3)
163if (subClaim is not null && !string.IsNullOrEmpty(subClaim.Value)) 169if (nameIdClaim is not null && !string.IsNullOrEmpty(nameIdClaim.Value)) 175if (upnClaim is not null && !string.IsNullOrEmpty(upnClaim.Value))
DeviceBoundSessionHandler.cs (4)
91if (string.IsNullOrEmpty(proofHeader)) 178if (string.IsNullOrEmpty(sessionIdHeader)) 215if (string.IsNullOrEmpty(proofHeader)) 339Path = string.IsNullOrEmpty(cookie.Path) ? "/" : cookie.Path,
DeviceBoundSessionJwtValidator.cs (1)
50if (!token.TryGetHeaderValue<string>("alg", out var algorithm) || string.IsNullOrEmpty(algorithm))
PostConfigureDeviceBoundSessionDerivedCookieOptions.cs (1)
70if (string.IsNullOrEmpty(refreshPath))
Microsoft.AspNetCore.Authentication.JwtBearer (20)
JwtBearerConfigureOptions.cs (1)
31if (string.IsNullOrEmpty(name))
JwtBearerHandler.cs (12)
74if (string.IsNullOrEmpty(token)) 79if (string.IsNullOrEmpty(authorization)) 90if (string.IsNullOrEmpty(token)) 298if (string.IsNullOrEmpty(eventContext.Error) && 299string.IsNullOrEmpty(eventContext.ErrorDescription) && 300string.IsNullOrEmpty(eventContext.ErrorUri)) 314if (!string.IsNullOrEmpty(eventContext.Error)) 320if (!string.IsNullOrEmpty(eventContext.ErrorDescription)) 322if (!string.IsNullOrEmpty(eventContext.Error)) 331if (!string.IsNullOrEmpty(eventContext.ErrorUri)) 333if (!string.IsNullOrEmpty(eventContext.Error) || 334!string.IsNullOrEmpty(eventContext.ErrorDescription))
JwtBearerPostConfigureOptions.cs (6)
23if (string.IsNullOrEmpty(options.TokenValidationParameters.ValidAudience) && !string.IsNullOrEmpty(options.Audience)) 34else if (!(string.IsNullOrEmpty(options.MetadataAddress) && string.IsNullOrEmpty(options.Authority))) 36if (string.IsNullOrEmpty(options.MetadataAddress) && !string.IsNullOrEmpty(options.Authority))
src\aspnetcore\src\Shared\StringHelpers.cs (1)
10if (string.IsNullOrEmpty(stringValue))
Microsoft.AspNetCore.Authentication.Negotiate (4)
LdapSettings.cs (2)
87if (string.IsNullOrEmpty(MachineAccountName) && !string.IsNullOrEmpty(MachineAccountPassword))
NegotiateHandler.cs (1)
189if (!string.IsNullOrEmpty(outgoing))
PostConfigureNegotiateOptions.cs (1)
73if (string.IsNullOrEmpty(ldapSettings.MachineAccountName))
Microsoft.AspNetCore.Authentication.OAuth (7)
CustomJsonClaimAction.cs (1)
35if (!string.IsNullOrEmpty(value))
JsonKeyClaimAction.cs (1)
58if (!string.IsNullOrEmpty(value))
OAuthHandler.cs (5)
141if (string.IsNullOrEmpty(tokens.AccessToken)) 153if (!string.IsNullOrEmpty(tokens.RefreshToken)) 158if (!string.IsNullOrEmpty(tokens.TokenType)) 163if (!string.IsNullOrEmpty(tokens.ExpiresIn)) 265if (string.IsNullOrEmpty(properties.RedirectUri))
Microsoft.AspNetCore.Authentication.OpenIdConnect (47)
OpenIdConnectConfigureOptions.cs (1)
31if (string.IsNullOrEmpty(name))
OpenIdConnectHandler.cs (37)
127&& !string.IsNullOrEmpty(Request.ContentType) 173if (!string.IsNullOrEmpty(sid)) 176if (string.IsNullOrEmpty(message.Sid)) 190if (!string.IsNullOrEmpty(iss)) 193if (string.IsNullOrEmpty(message.Iss)) 245if (string.IsNullOrEmpty(properties.RedirectUri)) 272if (!string.IsNullOrEmpty(message.State)) 279if (string.IsNullOrEmpty(message.IssuerAddress)) 329if (!string.IsNullOrEmpty(message.State)) 359if (!string.IsNullOrEmpty(properties?.RedirectUri)) 396if (string.IsNullOrEmpty(properties.RedirectUri)) 481if (!string.IsNullOrEmpty(message.State)) 491if (string.IsNullOrEmpty(message.IssuerAddress)) 503if (!string.IsNullOrEmpty(parEndpoint)) 520if (string.IsNullOrEmpty(parEndpoint)) 578if (!string.IsNullOrEmpty(Options.ClientSecret)) 654if (!string.IsNullOrEmpty(authorizationResponse.IdToken) || !string.IsNullOrEmpty(authorizationResponse.AccessToken)) 666&& !string.IsNullOrEmpty(Request.ContentType) 705if (string.IsNullOrEmpty(authorizationResponse.State)) 738if (!string.IsNullOrEmpty(authorizationResponse.Error)) 771if (!string.IsNullOrEmpty(authorizationResponse.IdToken)) 787if (!string.IsNullOrEmpty(nonce)) 815if (!string.IsNullOrEmpty(authorizationResponse.Code)) 871if (!string.IsNullOrEmpty(nonce)) 961if (!string.IsNullOrEmpty(message.State)) 977if (!string.IsNullOrEmpty(message.SessionState)) 982if (!string.IsNullOrEmpty(_configuration?.CheckSessionIframe)) 1005if (string.IsNullOrEmpty(contentMediaType)) 1052if (string.IsNullOrEmpty(userInfoEndpoint)) 1057if (string.IsNullOrEmpty(message.AccessToken)) 1124if (!string.IsNullOrEmpty(message.AccessToken)) 1129if (!string.IsNullOrEmpty(message.IdToken)) 1134if (!string.IsNullOrEmpty(message.RefreshToken)) 1139if (!string.IsNullOrEmpty(message.TokenType)) 1144if (!string.IsNullOrEmpty(message.ExpiresIn)) 1507if (string.IsNullOrEmpty(uri))
OpenIdConnectPostConfigureOptions.cs (7)
40if (string.IsNullOrEmpty(options.SignOutScheme)) 63if (string.IsNullOrEmpty(options.TokenValidationParameters.ValidAudience) && !string.IsNullOrEmpty(options.ClientId)) 82else if (!(string.IsNullOrEmpty(options.MetadataAddress) && string.IsNullOrEmpty(options.Authority))) 84if (string.IsNullOrEmpty(options.MetadataAddress) && !string.IsNullOrEmpty(options.Authority))
src\aspnetcore\src\Shared\StringHelpers.cs (1)
10if (string.IsNullOrEmpty(stringValue))
UniqueJsonKeyClaimAction.cs (1)
33if (string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
166if (string.IsNullOrEmpty(properties.RedirectUri)) 351string.IsNullOrEmpty(tokenSecret) ? string.Empty : Uri.EscapeDataString(tokenSecret)));
Microsoft.AspNetCore.Authentication.WsFederation (13)
WsFederationHandler.cs (9)
93if (string.IsNullOrEmpty(properties.RedirectUri)) 105if (!string.IsNullOrEmpty(Options.Wreply)) 129if (!string.IsNullOrEmpty(wsFederationMessage.Wctx)) 155&& !string.IsNullOrEmpty(Request.ContentType) 227if (string.IsNullOrEmpty(token)) 436if (properties != null && !string.IsNullOrEmpty(properties.RedirectUri)) 440else if (!string.IsNullOrEmpty(Options.SignOutWreply)) 444else if (!string.IsNullOrEmpty(Options.Wreply)) 505if (string.IsNullOrEmpty(uri))
WsFederationPostConfigureOptions.cs (4)
40if (string.IsNullOrEmpty(options.SignOutScheme)) 52if (!options.CallbackPath.HasValue && !string.IsNullOrEmpty(options.Wreply) && Uri.TryCreate(options.Wreply, UriKind.Absolute, out var wreply)) 58if (string.IsNullOrEmpty(options.TokenValidationParameters.ValidAudience)) 77else if (!string.IsNullOrEmpty(options.MetadataAddress))
Microsoft.AspNetCore.AzureAppServices.HostingStartup (1)
HostingStartupConfigurationExtensions.cs (1)
31return !string.IsNullOrEmpty(value);
Microsoft.AspNetCore.Components (32)
BindConverter.cs (21)
784if (string.IsNullOrEmpty(text)) 803if (string.IsNullOrEmpty(text)) 849if (string.IsNullOrEmpty(text)) 868if (string.IsNullOrEmpty(text)) 914if (string.IsNullOrEmpty(text)) 933if (string.IsNullOrEmpty(text)) 979if (string.IsNullOrEmpty(text)) 1004if (string.IsNullOrEmpty(text)) 1056if (string.IsNullOrEmpty(text)) 1081if (string.IsNullOrEmpty(text)) 1133if (string.IsNullOrEmpty(text)) 1152if (string.IsNullOrEmpty(text)) 1231if (string.IsNullOrEmpty(text)) 1260if (string.IsNullOrEmpty(text)) 1344if (string.IsNullOrEmpty(text)) 1373if (string.IsNullOrEmpty(text)) 1589if (string.IsNullOrEmpty(text)) 1608if (string.IsNullOrEmpty(text)) 1633if (string.IsNullOrEmpty(text)) 1661if (string.IsNullOrEmpty(text)) 1685if (string.IsNullOrEmpty(text))
CascadingValue.cs (1)
79if (string.IsNullOrEmpty(Name))
NavigationManagerExtensions.cs (3)
164if (string.IsNullOrEmpty(name)) 526if (string.IsNullOrEmpty(name)) 798if (string.IsNullOrEmpty(fragment))
Rendering\RenderTreeUpdater.cs (1)
42if (!string.IsNullOrEmpty(frame.AttributeEventUpdatesAttributeNameField))
Routing\Router.cs (1)
395if (!string.IsNullOrEmpty(args.Path))
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternLiteralPart.cs (1)
22Debug.Assert(!string.IsNullOrEmpty(content));
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternSeparatorPart.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(content));
src\aspnetcore\src\Http\Routing\src\RouteValueEqualityComparer.cs (3)
36if (string.IsNullOrEmpty(stringX) && string.IsNullOrEmpty(stringY)) 50if (string.IsNullOrEmpty(stringObj))
Microsoft.AspNetCore.Components.AI (2)
Components\MessageListContext.cs (1)
135if (!string.IsNullOrEmpty(codeBlock.Language))
Pipeline\BlockMappingPipeline.cs (1)
173if (string.IsNullOrEmpty(block.Id))
Microsoft.AspNetCore.Components.AI.SourceGenerators (5)
ToolBlockEmitter.cs (3)
22if (!string.IsNullOrEmpty(candidate.Namespace)) 216var fullClass = string.IsNullOrEmpty(candidate.Namespace) 234return string.IsNullOrEmpty(candidate.Namespace)
ToolBlockParser.cs (2)
88if (string.IsNullOrEmpty(toolName)) 229if (namedArg.Key == "Name" && namedArg.Value.Value is string nameOverride && !string.IsNullOrEmpty(nameOverride))
Microsoft.AspNetCore.Components.Authorization (1)
AuthorizeViewCore.cs (1)
133if (metadata[i] is IAuthorizeData entry && !string.IsNullOrEmpty(entry.AuthenticationSchemes))
Microsoft.AspNetCore.Components.Endpoints (32)
Assets\ResourcePreloader.cs (4)
57if (!string.IsNullOrEmpty(asset.PreloadAs)) 61if (!string.IsNullOrEmpty(asset.PreloadPriority)) 65if (!string.IsNullOrEmpty(asset.PreloadCrossorigin)) 69if (!string.IsNullOrEmpty(asset.Integrity))
CacheView\CacheViewKeyResolver.cs (6)
47if (!string.IsNullOrEmpty(cacheView.VaryByQuery)) 59if (!string.IsNullOrEmpty(cacheView.VaryByRoute)) 64if (!string.IsNullOrEmpty(cacheView.VaryByHeader)) 69if (!string.IsNullOrEmpty(cacheView.VaryByCookie)) 218if (nameIdClaim is not null && !string.IsNullOrEmpty(nameIdClaim.Value)) 270if (string.IsNullOrEmpty(value))
CacheView\CacheViewService.cs (4)
215if (!string.IsNullOrEmpty(cacheView.VaryByQuery)) 220if (!string.IsNullOrEmpty(cacheView.VaryByRoute)) 225if (!string.IsNullOrEmpty(cacheView.VaryByHeader)) 230if (!string.IsNullOrEmpty(cacheView.VaryByCookie))
FormMapping\Converters\NullableConverter.cs (1)
17if (string.IsNullOrEmpty(value) && IsSupportedUnderlyingType(typeof(T)))
FormMapping\HttpContextFormValueMapper.cs (1)
68if (string.IsNullOrEmpty(currentMappingScopeName))
Forms\DataAnnotationsLocalizer.cs (1)
89if (!string.IsNullOrEmpty(attribute.ErrorMessage))
RazorComponentEndpointInvoker.cs (1)
193string.IsNullOrEmpty(_renderer.NotFoundEventArgs?.Path))
Rendering\EndpointHtmlRenderer.EventDispatch.cs (4)
27if (string.IsNullOrEmpty(handlerName)) 94if (string.IsNullOrEmpty(_notFoundUrl)) 114if (string.IsNullOrEmpty(path)) 117if (string.IsNullOrEmpty(pathFormat))
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (2)
38if (!string.IsNullOrEmpty(CurrentCultureName) && 46if (!string.IsNullOrEmpty(CurrentUICultureName) &&
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
104if (string.IsNullOrEmpty(chunk)) 153if (string.IsNullOrEmpty(value)) 246if (string.IsNullOrEmpty(requestCookies[subkey])) 256var domainHasValue = !string.IsNullOrEmpty(options.Domain); 257var pathHasValue = !string.IsNullOrEmpty(options.Path); 322if (string.IsNullOrEmpty(requestCookies[subkey]))
TempData\CookieTempDataProvider.cs (2)
138if (!string.IsNullOrEmpty(_options.TempDataCookie.Path)) 145if (!string.IsNullOrEmpty(pathBase))
Microsoft.AspNetCore.Components.Media (7)
Image.cs (3)
33var showInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError; 48if (!string.IsNullOrEmpty(_currentObjectUrl)) 55var defaultShowInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError;
MediaComponentBase.cs (1)
50internal bool IsLoading => _currentSource != null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError;
Video.cs (3)
33var showInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError; 48if (!string.IsNullOrEmpty(_currentObjectUrl)) 55var defaultShowInitial = Source != null && _currentSource == null && string.IsNullOrEmpty(_currentObjectUrl) && !_hasError;
Microsoft.AspNetCore.Components.QuickGrid (4)
_generated\2\QuickGrid_razor.g.cs (1)
497? string.IsNullOrEmpty(rowClass) ? "row-clickable" : $"row-clickable {rowClass}"
Columns\PropertyColumn.cs (1)
48if (!string.IsNullOrEmpty(Format))
src\aspnetcore\src\Components\Shared\src\AttributeUtilities.cs (2)
19if (string.IsNullOrEmpty(classAttributeValue)) 24if (string.IsNullOrEmpty(classNames))
Microsoft.AspNetCore.Components.Server (12)
Circuits\RemoteJSDataStream.cs (1)
92if (!string.IsNullOrEmpty(error))
ComponentHub.cs (5)
146var store = !string.IsNullOrEmpty(applicationState) ? 232store = !string.IsNullOrEmpty(applicationState) ? 343if (RootComponentIsEmpty(rootComponents) && string.IsNullOrEmpty(applicationState)) 355else if (!RootComponentIsEmpty(rootComponents) && !string.IsNullOrEmpty(applicationState)) 444string.IsNullOrEmpty(rootComponents) || rootComponents == "[]";
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
170WriteString(attributeValueString, allowDeduplication: string.IsNullOrEmpty(attributeValueString));
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
194if (!string.IsNullOrEmpty(_key.FormattedComponentKey))
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (4)
80if (string.IsNullOrEmpty(invocationId)) 431if (string.IsNullOrEmpty(message.InvocationId)) 560if (string.IsNullOrEmpty(message.Error)) 709if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.Components.Testing (9)
Infrastructure\ReadinessNotificationService.cs (1)
25if (string.IsNullOrEmpty(readyUrl))
Infrastructure\ServerInstance.cs (1)
234if (!string.IsNullOrEmpty(dotnetRoot))
Infrastructure\TestArtifactDirectory.cs (2)
59if (!string.IsNullOrEmpty(overrideDirectory)) 65if (!string.IsNullOrEmpty(configuredPath))
Infrastructure\TestInfrastructureStartupFilter.cs (1)
38if (string.IsNullOrEmpty(key))
Infrastructure\TestReadinessHostingStartup.cs (3)
50if (!string.IsNullOrEmpty(overrideTypeName) && !string.IsNullOrEmpty(overrideMethodName)) 88if (string.IsNullOrEmpty(assemblyName))
Infrastructure\TracingSession.cs (1)
114if (!string.IsNullOrEmpty(videoPath))
Microsoft.AspNetCore.Components.Testing.Tasks (1)
GenerateE2EManifest.cs (1)
178if (!string.IsNullOrEmpty(manifestDir))
Microsoft.AspNetCore.Components.Web (19)
EnvironmentView.cs (1)
81if (string.IsNullOrEmpty(currentEnvironmentName))
Forms\EditForm.cs (1)
159if (!string.IsNullOrEmpty(FormName))
Forms\FieldIdGenerator.cs (1)
32if (string.IsNullOrEmpty(fieldName))
Forms\InputBase.cs (2)
131if (_nullableUnderlyingType != null && string.IsNullOrEmpty(value)) 246if (string.IsNullOrEmpty(fieldName))
Forms\InputDate.cs (1)
78_parsingErrorMessage = string.IsNullOrEmpty(ParsingErrorMessage)
Forms\InputExtensions.cs (1)
66if (string.IsNullOrEmpty(value))
Forms\InputRadio.cs (1)
51Context = string.IsNullOrEmpty(Name) ? CascadedContext : CascadedContext?.FindContextInAncestors(Name);
Forms\InputRadioGroup.cs (2)
49if (!string.IsNullOrEmpty(Name)) 54else if (!string.IsNullOrEmpty(NameAttributeValue))
Forms\Mapping\FormMappingScope.cs (1)
42if (string.IsNullOrEmpty(Name))
Forms\Mapping\SupplyParameterFromFormValueProvider.cs (1)
79Action<string, FormattableString, string?> errorHandler = string.IsNullOrEmpty(restrictToFormName) ?
Forms\RenderTreeBuilderExtensions.cs (1)
13if (!string.IsNullOrEmpty(value))
Head\HeadOutlet.cs (1)
45if (!string.IsNullOrEmpty(_defaultTitle))
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (3)
136if (isTextArea && !string.IsNullOrEmpty(capturedValueAttribute)) 235scopeQualifiedEventName = string.IsNullOrEmpty(mappingScopeName) 318!string.IsNullOrEmpty(frame.AttributeValue as string))
src\aspnetcore\src\Components\Shared\src\AttributeUtilities.cs (2)
19if (string.IsNullOrEmpty(classAttributeValue)) 24if (string.IsNullOrEmpty(classNames))
Microsoft.AspNetCore.Components.WebAssembly (8)
Hosting\WebAssemblyHost.cs (1)
139var store = !string.IsNullOrEmpty(_persistedState) ?
Rendering\WebAssemblyRenderer.cs (1)
59var store = !string.IsNullOrEmpty(appState) ? new PrerenderComponentApplicationStore(appState) : null;
Services\WebAssemblyConsoleLogger.cs (2)
55if (!string.IsNullOrEmpty(message) || exception != null) 116if (!string.IsNullOrEmpty(message))
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (2)
38if (!string.IsNullOrEmpty(CurrentCultureName) && 46if (!string.IsNullOrEmpty(CurrentUICultureName) &&
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
170WriteString(attributeValueString, allowDeduplication: string.IsNullOrEmpty(attributeValueString));
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
194if (!string.IsNullOrEmpty(_key.FormattedComponentKey))
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
RemoteAuthenticatorViewCore.cs (1)
389if (string.IsNullOrEmpty(Navigation.HistoryEntryState))
Microsoft.AspNetCore.Components.WebAssembly.Server (16)
DebugProxyLauncher.cs (4)
120if (string.IsNullOrEmpty(environment.ApplicationName)) 178if (!string.IsNullOrEmpty(eventArgs.Data)) 188if (string.IsNullOrEmpty(eventArgs.Data)) 202if (!string.IsNullOrEmpty(capturedUrl))
src\aspnetcore\src\Components\Shared\src\CultureStateProvider.cs (2)
38if (!string.IsNullOrEmpty(CurrentCultureName) && 46if (!string.IsNullOrEmpty(CurrentUICultureName) &&
src\aspnetcore\src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
TargetPickerUi.cs (8)
170if (string.IsNullOrEmpty(consoleActorId)) 202if (string.IsNullOrEmpty(consoleActorId)) 208if (!string.IsNullOrEmpty(consoleActorId)) 226if (hasConsoleActor && !string.IsNullOrEmpty(consoleActor.GetString())) 231else if (hasActor && !string.IsNullOrEmpty(actor.GetString())) 244else if (!string.IsNullOrEmpty(toCmd)) 306var matchingTabs = string.IsNullOrEmpty(targetApplicationUrl) 320var suffix = string.IsNullOrEmpty(targetApplicationUrl)
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
36var isFirefox = string.IsNullOrEmpty(queryParams.Get("isFirefox")) ? false : true;
Microsoft.AspNetCore.Components.WebView (4)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
170WriteString(attributeValueString, allowDeduplication: string.IsNullOrEmpty(attributeValueString));
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
99var fileCandidate = string.IsNullOrEmpty(candidateDirectoryPath) ? result.Name : $"{candidateDirectoryPath}/{result.Name}";
StaticContentProvider.cs (1)
67if (!string.IsNullOrEmpty(relativePath))
WebViewManager.cs (1)
301if (string.IsNullOrEmpty(assembly?.Location))
Microsoft.AspNetCore.Components.WebView.Maui (2)
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
14 if (string.IsNullOrEmpty(url))
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
79 if (!string.IsNullOrEmpty(values.ContentType))
Microsoft.AspNetCore.Components.WebView.WindowsForms (4)
BlazorWebView.cs (2)
96 private bool ShouldSerializeHostPage() => !string.IsNullOrEmpty(HostPage); 178 if (!string.IsNullOrEmpty(entryAssemblyLocation))
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
14 if (string.IsNullOrEmpty(url))
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
79 if (!string.IsNullOrEmpty(values.ContentType))
Microsoft.AspNetCore.Components.WebView.Wpf (3)
BlazorWebView.cs (1)
261 if (!string.IsNullOrEmpty(entryAssemblyLocation))
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
14 if (string.IsNullOrEmpty(url))
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
79 if (!string.IsNullOrEmpty(values.ContentType))
Microsoft.AspNetCore.DataProtection (19)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (2)
70if (String.IsNullOrEmpty(configuration.HashAlgorithm)) 104if (String.IsNullOrEmpty(configuration.EncryptionAlgorithm))
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
71if (String.IsNullOrEmpty(configuration.EncryptionAlgorithm))
DataProtectionServiceCollectionExtensions.cs (1)
92if (!string.IsNullOrEmpty(dpOptions.Value.ApplicationDiscriminator))
DataProtectionUtilityExtensions.cs (1)
46return (string.IsNullOrEmpty(discriminator)) ? null : discriminator;
Internal\HostingApplicationDiscriminator.cs (1)
35if (string.IsNullOrEmpty(contentRoot) ||
Internal\KeyManagementOptionsPostSetup.cs (1)
44if (string.IsNullOrEmpty(dirPath))
RegistryPolicyResolver.cs (2)
52if (!string.IsNullOrEmpty(candidate)) 94else if (!string.IsNullOrEmpty(encryptionType))
Repositories\DefaultKeyStorageDirectories.cs (4)
41if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && !string.IsNullOrEmpty(localAppDataFromSystemPath)) 63else if (!string.IsNullOrEmpty(localAppDataFromSystemPath)) 93if (!String.IsNullOrEmpty(Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID"))) 96if (!string.IsNullOrEmpty(homeEnvVar))
Repositories\FileSystemXmlRepository.cs (1)
99return (!String.IsNullOrEmpty(filename) && filename.All(c =>
Repositories\RegistryXmlRepository.cs (2)
119return (!String.IsNullOrEmpty(filename) && filename.All(c => 132return (!string.IsNullOrEmpty(data)) ? XElement.Parse(data) : null;
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
101if (string.IsNullOrEmpty(value)) 126if (string.IsNullOrEmpty(value))
XmlEncryption\CertificateResolver.cs (1)
26if (String.IsNullOrEmpty(thumbprint))
Microsoft.AspNetCore.DataProtection.Abstractions (1)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
220if (string.IsNullOrEmpty(input))
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreXmlRepository.cs (1)
56if (!string.IsNullOrEmpty(key.Xml))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
444if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 662if (!string.IsNullOrEmpty(targetDirectoryPath))
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
62if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 103if (string.IsNullOrEmpty(sslCertDirString)) 368if (!string.IsNullOrEmpty(existingSslCertDir)) 653if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WSL_INTEROP"))) 807if (!string.IsNullOrEmpty(@override)) 833if (string.IsNullOrEmpty(nssDbOverride))
Microsoft.AspNetCore.Diagnostics (34)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
367if (!string.IsNullOrEmpty(badRequestReasonPhrase))
DeveloperExceptionPage\Views\CompilationErrorPage.Designer.cs (4)
350if (!string.IsNullOrEmpty(fileName)) 375if (!string.IsNullOrEmpty(errorDetail.ErrorMessage)) 422if (!string.IsNullOrEmpty(frame.ErrorDetails)) 619if (!string.IsNullOrEmpty(Model.CompiledContent[i]))
DeveloperExceptionPage\Views\ErrorPage.Designer.cs (6)
375if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File)) 419else if (!string.IsNullOrEmpty(location)) 605if (string.IsNullOrEmpty(frame.File)) 1179if (!string.IsNullOrEmpty(Model.Endpoint.RoutePattern)) 1243if (!string.IsNullOrEmpty(Model.Endpoint.HttpMethods))
ExceptionHandler\ExceptionHandlerExtensions.cs (1)
128if (!string.IsNullOrEmpty(options.Value.ExceptionHandlingPath) && options.Value.ExceptionHandler is null)
src\aspnetcore\src\Shared\Diagnostics\ActivityCreator.cs (4)
52activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 76if (!string.IsNullOrEmpty(requestId)) 103if (!string.IsNullOrEmpty(requestId)) 105if (!string.IsNullOrEmpty(traceState))
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (5)
110Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 119Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 256if (!string.IsNullOrEmpty(value)) 279if (!string.IsNullOrEmpty(value)) 287if (string.IsNullOrEmpty(input))
src\aspnetcore\src\Shared\Diagnostics\RouteDiagnosticsHelpers.cs (1)
15return string.IsNullOrEmpty(route) ? "/" : route;
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
104if (string.IsNullOrEmpty(stackFrame.File)) 122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath))
src\aspnetcore\src\Shared\StackTrace\StackFrame\MethodDisplayInfo.cs (2)
36if (!string.IsNullOrEmpty(DeclaringTypeName)) 50if (!string.IsNullOrEmpty(SubMethod))
src\aspnetcore\src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs (1)
20if (!string.IsNullOrEmpty(Prefix))
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
StatusCodePage\StatusCodePagesMiddleware.cs (1)
77|| !string.IsNullOrEmpty(context.Response.ContentType))
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (15)
src\aspnetcore\src\Shared\Diagnostics\ActivityCreator.cs (4)
52activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 76if (!string.IsNullOrEmpty(requestId)) 103if (!string.IsNullOrEmpty(requestId)) 105if (!string.IsNullOrEmpty(traceState))
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (5)
110Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 119Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 256if (!string.IsNullOrEmpty(value)) 279if (!string.IsNullOrEmpty(value)) 287if (string.IsNullOrEmpty(input))
src\aspnetcore\src\Shared\Diagnostics\RouteDiagnosticsHelpers.cs (1)
15return string.IsNullOrEmpty(route) ? "/" : route;
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
226string.IsNullOrEmpty(remaining)));
Microsoft.AspNetCore.Diagnostics.Middleware (24)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (8)
131if (!string.IsNullOrEmpty(section.Value) && !section.GetChildren().Any()) 150if (!string.IsNullOrEmpty(section.Value) && !section.GetChildren().Any()) 166if (!string.IsNullOrEmpty(value4)) 178if (!string.IsNullOrEmpty(value5)) 190if (!string.IsNullOrEmpty(value6)) 220if (!string.IsNullOrEmpty(value11)) 263if (!string.IsNullOrEmpty(value13)) 279if (!string.IsNullOrEmpty(value14))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (13)
24string displayName = string.IsNullOrEmpty(name) ? "PerRequestLogBufferingOptions.Validate" : $"{name}.Validate"; 33context.DisplayName = string.IsNullOrEmpty(name) ? "PerRequestLogBufferingOptions.AutoFlushDuration" : $"{name}.AutoFlushDuration"; 41context.DisplayName = string.IsNullOrEmpty(name) ? "PerRequestLogBufferingOptions.MaxLogRecordSizeInBytes" : $"{name}.MaxLogRecordSizeInBytes"; 51context.DisplayName = string.IsNullOrEmpty(name) ? "PerRequestLogBufferingOptions.MaxPerRequestBufferSizeInBytes" : $"{name}.MaxPerRequestBufferSizeInBytes"; 83string displayName = string.IsNullOrEmpty(name) ? "RequestLatencyTelemetryOptions.Validate" : $"{name}.Validate"; 92context.DisplayName = string.IsNullOrEmpty(name) ? "RequestLatencyTelemetryOptions.LatencyDataExportTimeout" : $"{name}.LatencyDataExportTimeout"; 122string displayName = string.IsNullOrEmpty(name) ? "LoggingRedactionOptions.Validate" : $"{name}.Validate"; 131context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingRedactionOptions.RouteParameterDataClasses" : $"{name}.RouteParameterDataClasses"; 139context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingRedactionOptions.RequestHeadersDataClasses" : $"{name}.RequestHeadersDataClasses"; 149context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingRedactionOptions.ResponseHeadersDataClasses" : $"{name}.ResponseHeadersDataClasses"; 159context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingRedactionOptions.ExcludePathStartsWith" : $"{name}.ExcludePathStartsWith"; 191string displayName = string.IsNullOrEmpty(name) ? "RequestHeadersLogEnricherOptions.Validate" : $"{name}.Validate"; 200context.DisplayName = string.IsNullOrEmpty(name) ? "RequestHeadersLogEnricherOptions.HeadersDataClasses" : $"{name}.HeadersDataClasses";
Latency\RequestLatencyTelemetryMiddleware.cs (1)
61if (!string.IsNullOrEmpty(_applicationName))
Logging\IncomingHttpRouteUtility.cs (1)
26if (string.IsNullOrEmpty(httpRoute))
Logging\RequestHeadersLogEnricher.cs (1)
69if (request.Headers.TryGetValue(header.Key, out var headerValue) && !string.IsNullOrEmpty(headerValue))
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Logging\AcceptanceTests.cs (6)
233Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 293Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 346Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 407Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 463Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 669Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
Logging\AcceptanceTests.Mvc.cs (5)
81Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 119Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 170Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 206Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 249Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Internal\Json\StructConverter.cs (1)
35if (string.IsNullOrEmpty(k) || v == null)
Internal\JsonTranscodingRouteAdapter.cs (2)
156if (!string.IsNullOrEmpty(catchAllSuffix)) 209if (!string.IsNullOrEmpty(pattern))
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
222if (string.IsNullOrEmpty(identifier))
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
410if (!string.IsNullOrEmpty(body)) 456if (!string.IsNullOrEmpty(responseBody))
Microsoft.AspNetCore.HeaderParsing (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
129if (section.Value is string value && !string.IsNullOrEmpty(value)) 152if (configuration["DefaultMaxCachedValuesPerHeader"] is string value5 && !string.IsNullOrEmpty(value5))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
26context.DisplayName = string.IsNullOrEmpty(name) ? "HeaderParsingOptions.DefaultMaxCachedValuesPerHeader" : $"{name}.DefaultMaxCachedValuesPerHeader";
HostHeaderValue.cs (1)
78if (!string.IsNullOrEmpty(parsedHost))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.AspNetCore.Hosting (44)
GenericHost\GenericWebHostBuilder.cs (1)
90if (!string.IsNullOrEmpty(webHostOptions.StartupAssembly))
GenericHost\GenericWebHostService.cs (6)
74if (string.IsNullOrEmpty(urls)) 81if (string.IsNullOrEmpty(urls)) 95else if (!string.IsNullOrEmpty(httpPorts) || !string.IsNullOrEmpty(httpsPorts)) 100if (!string.IsNullOrEmpty(urls)) 106if (!string.IsNullOrEmpty(preferHostingUrlsConfig))
Internal\HostingApplicationDiagnostics.cs (1)
489if (!string.IsNullOrEmpty(userAgent))
Internal\HostingEnvironmentExtensions.cs (2)
41if (!string.IsNullOrEmpty(hostingEnvironment.WebRootPath)) 92if (!string.IsNullOrEmpty(hostingEnvironment.WebRootPath))
Internal\HostingTelemetryHelpers.cs (1)
148return string.IsNullOrEmpty(httpRoute) ? namePrefix : $"{namePrefix} {httpRoute}";
Internal\StartupLoader.cs (1)
240if (string.IsNullOrEmpty(startupAssemblyName))
Internal\WebHost.cs (1)
267if (!string.IsNullOrEmpty(urls))
Internal\WebHostLifetime.cs (1)
60if (!string.IsNullOrEmpty(_shutdownMessage))
Internal\WebHostOptions.cs (2)
37if (!string.IsNullOrEmpty(timeout) 85if (string.IsNullOrEmpty(environment))
src\aspnetcore\src\Shared\Diagnostics\ActivityCreator.cs (4)
52activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 76if (!string.IsNullOrEmpty(requestId)) 103if (!string.IsNullOrEmpty(requestId)) 105if (!string.IsNullOrEmpty(traceState))
src\aspnetcore\src\Shared\Diagnostics\RouteDiagnosticsHelpers.cs (1)
15return string.IsNullOrEmpty(route) ? "/" : route;
src\aspnetcore\src\Shared\ErrorPage\ErrorPage.Designer.cs (4)
321if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File)) 365else if (!string.IsNullOrEmpty(location)) 504if (string.IsNullOrEmpty(frame.File))
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
104if (string.IsNullOrEmpty(stackFrame.File)) 122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath))
src\aspnetcore\src\Shared\StackTrace\StackFrame\MethodDisplayInfo.cs (2)
36if (!string.IsNullOrEmpty(DeclaringTypeName)) 50if (!string.IsNullOrEmpty(SubMethod))
src\aspnetcore\src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs (1)
20if (!string.IsNullOrEmpty(Prefix))
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
99var fileCandidate = string.IsNullOrEmpty(candidateDirectoryPath) ? result.Name : $"{candidateDirectoryPath}/{result.Name}";
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
StaticWebAssets\StaticWebAssetsLoader.cs (2)
71if (string.IsNullOrEmpty(environment.ApplicationName)) 77var basePath = string.IsNullOrEmpty(assemblyLocation) ? AppContext.BaseDirectory : Path.GetDirectoryName(assemblyLocation);
WebHostBuilder.cs (4)
47if (string.IsNullOrEmpty(GetSetting(WebHostDefaults.EnvironmentKey))) 54if (string.IsNullOrEmpty(GetSetting(WebHostDefaults.ServerUrlsKey))) 304if (!string.IsNullOrEmpty(_options.StartupAssembly)) 366if (string.IsNullOrEmpty(contentRootPath))
WebHostExtensions.cs (1)
131if (!string.IsNullOrEmpty(startupMessage))
Microsoft.AspNetCore.Html.Abstractions (2)
HtmlContentBuilder.cs (2)
62if (!string.IsNullOrEmpty(unencoded)) 85if (!string.IsNullOrEmpty(encoded))
Microsoft.AspNetCore.Http (19)
BindingAddress.cs (1)
241if (string.IsNullOrEmpty(host))
Features\QueryFeature.cs (1)
99if (string.IsNullOrEmpty(queryString) || (queryString.Length == 1 && queryString[0] == '?'))
HeaderDictionary.cs (1)
126!string.IsNullOrEmpty(rawValue[0]) &&
Internal\DefaultHttpResponse.cs (1)
101if (string.IsNullOrEmpty(value))
Internal\ResponseCookies.cs (2)
117var domainHasValue = !string.IsNullOrEmpty(options.Domain); 118var pathHasValue = !string.IsNullOrEmpty(options.Path);
src\aspnetcore\src\Http\Shared\CookieHeaderParserShared.cs (1)
33while (!string.IsNullOrEmpty(value) && index < value.Length)
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (12)
18if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 23if (!string.IsNullOrEmpty(response.ContentType)) 34if (!string.IsNullOrEmpty(request.Method)) 40if (!string.IsNullOrEmpty(request.Protocol)) 45if (!string.IsNullOrEmpty(request.ContentType)) 56if (!string.IsNullOrEmpty(context.Request.Method)) 62if (!string.IsNullOrEmpty(context.Request.Protocol)) 67if (!string.IsNullOrEmpty(context.Request.ContentType)) 75if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 92if (string.IsNullOrEmpty(request.Scheme) && 104if (string.IsNullOrEmpty(scheme)) 109if (string.IsNullOrEmpty(host))
Microsoft.AspNetCore.Http.Abstractions (32)
CookieBuilder.cs (1)
22set => _name = !string.IsNullOrEmpty(value)
FragmentString.cs (4)
28if (!string.IsNullOrEmpty(value) && value[0] != '#') 48get { return !string.IsNullOrEmpty(_value); } 82if (String.IsNullOrEmpty(uriComponent)) 99if (!string.IsNullOrEmpty(fragmentValue))
HostString.cs (2)
83get { return !string.IsNullOrEmpty(_value); } 164if (!string.IsNullOrEmpty(uriComponent))
Internal\ParsingHelpers.cs (3)
28if (!string.IsNullOrEmpty(value)) 67if (!string.IsNullOrEmpty(value) && 78if (!string.IsNullOrEmpty(value) &&
PathString.cs (4)
42if (!string.IsNullOrEmpty(value) && value[0] is not '/' and not '\\') 60get { return !string.IsNullOrEmpty(Value); } 80if (string.IsNullOrEmpty(value)) 541=> string.IsNullOrEmpty(s) ? new PathString(s) : FromUriComponent(s);
QueryString.cs (6)
30if (!string.IsNullOrEmpty(value) && value[0] != '?') 46public bool HasValue => !string.IsNullOrEmpty(Value); 79if (string.IsNullOrEmpty(uriComponent)) 96if (!string.IsNullOrEmpty(queryValue)) 113if (!string.IsNullOrEmpty(value)) 284if (!string.IsNullOrEmpty(value))
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (12)
18if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 23if (!string.IsNullOrEmpty(response.ContentType)) 34if (!string.IsNullOrEmpty(request.Method)) 40if (!string.IsNullOrEmpty(request.Protocol)) 45if (!string.IsNullOrEmpty(request.ContentType)) 56if (!string.IsNullOrEmpty(context.Request.Method)) 62if (!string.IsNullOrEmpty(context.Request.Protocol)) 67if (!string.IsNullOrEmpty(context.Request.ContentType)) 75if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 92if (string.IsNullOrEmpty(request.Scheme) && 104if (string.IsNullOrEmpty(scheme)) 109if (string.IsNullOrEmpty(host))
Microsoft.AspNetCore.Http.Connections (5)
Internal\ConnectionLogScope.cs (2)
33public int Count => string.IsNullOrEmpty(ConnectionId) ? 0 : 1; 52if (!string.IsNullOrEmpty(ConnectionId))
Internal\HttpConnectionContext.cs (1)
522if (claim is not null && !string.IsNullOrEmpty(claim.Value))
Internal\HttpConnectionDispatcher.cs (1)
561if (!string.IsNullOrEmpty(error))
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
220if (string.IsNullOrEmpty(input))
Microsoft.AspNetCore.Http.Connections.Client (14)
HttpConnection.cs (5)
500if (!string.IsNullOrEmpty(negotiateResponse.Error)) 668if (string.IsNullOrEmpty(header.Value)) 771if (string.IsNullOrEmpty(_connectionToken)) 802if (!string.IsNullOrEmpty(accessToken)) 814if (!string.IsNullOrEmpty(refreshRequestToken))
Internal\AccessTokenHttpMessageHandler.cs (2)
36if (string.IsNullOrEmpty(_accessToken) || isNegotiate || isRefresh) 85if (!string.IsNullOrEmpty(accessToken))
Internal\ConnectionLogScope.cs (2)
41public int Count => string.IsNullOrEmpty(ConnectionId) ? 0 : 1; 60if (!string.IsNullOrEmpty(ConnectionId))
Internal\Constants.cs (3)
56if (!string.IsNullOrEmpty(detailedVersion)) 65if (!string.IsNullOrEmpty(os)) 76if (!string.IsNullOrEmpty(runtimeVersion))
Internal\Utils.cs (2)
50if (string.IsNullOrEmpty(qs)) 57if (!string.IsNullOrEmpty(builder.Query))
Microsoft.AspNetCore.Http.Connections.Common (5)
NegotiateProtocol.cs (5)
61if (!string.IsNullOrEmpty(response.Error)) 77if (!string.IsNullOrEmpty(response.Url)) 82if (!string.IsNullOrEmpty(response.AccessToken)) 87if (!string.IsNullOrEmpty(response.ConnectionId)) 92if (response.Version > 0 && !string.IsNullOrEmpty(response.ConnectionToken))
Microsoft.AspNetCore.Http.Extensions (10)
RequestDelegateFactory.cs (4)
768if (!string.IsNullOrEmpty(formAttribute.Name)) 782if (!string.IsNullOrEmpty(formAttribute.Name)) 803: BindComplexParameterFromFormItem(parameter, string.IsNullOrEmpty(formAttribute.Name) ? parameter.Name : formAttribute.Name, factoryContext); 2170var key = formAttribute == null || string.IsNullOrEmpty(formAttribute.Name) ? parameter.Name! : formAttribute.Name;
SendFileResponseExtensions.cs (1)
87if (string.IsNullOrEmpty(file.PhysicalPath))
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\NullableConverter.cs (1)
17if (string.IsNullOrEmpty(value) && IsSupportedUnderlyingType(typeof(T)))
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
198if (!string.IsNullOrEmpty(reasonPhrase))
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
UriHelper.cs (2)
76if (string.IsNullOrEmpty(pathText)) 78if (string.IsNullOrEmpty(pathBaseText))
Microsoft.AspNetCore.Http.Results (15)
Accepted.cs (1)
67if (!string.IsNullOrEmpty(Location))
AcceptedAtRoute.cs (1)
88if (string.IsNullOrEmpty(url))
AcceptedAtRouteOfT.cs (1)
102if (string.IsNullOrEmpty(url))
AcceptedOfT.cs (1)
79if (!string.IsNullOrEmpty(Location))
Created.cs (1)
67if (!string.IsNullOrEmpty(Location))
CreatedAtRoute.cs (1)
88if (string.IsNullOrEmpty(url))
CreatedAtRouteOfT.cs (1)
102if (string.IsNullOrEmpty(url))
CreatedOfT.cs (1)
78if (!string.IsNullOrEmpty(Location))
PhysicalFileHttpResult.cs (1)
170if (fileInfo.Exists && !string.IsNullOrEmpty(fileInfo.LinkTarget))
RedirectToRouteHttpResult.cs (1)
169if (string.IsNullOrEmpty(destinationUrl))
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
198if (!string.IsNullOrEmpty(reasonPhrase))
src\aspnetcore\src\Shared\ResponseContentTypeHelper.cs (1)
46if (!string.IsNullOrEmpty(httpResponseContentType))
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
345if (!string.IsNullOrEmpty(result.FileDownloadName))
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (2)
16if (string.IsNullOrEmpty(contentPath)) 39if (string.IsNullOrEmpty(url))
Microsoft.AspNetCore.HttpLogging (5)
FileLoggerProcessor.cs (2)
51if (string.IsNullOrEmpty(_path)) 87if (!string.IsNullOrEmpty(loggerOptions.LogDirectory))
MediaTypeHelpers.cs (1)
25if (mediaTypeList == null || mediaTypeList.Count == 0 || string.IsNullOrEmpty(contentType))
W3CLogger.cs (2)
53if (string.IsNullOrEmpty(elements[i])) 75if (string.IsNullOrEmpty(additionalHeaders[i]))
Microsoft.AspNetCore.HttpOverrides (7)
CertificateForwardingServiceExtensions.cs (1)
26services.AddOptions<CertificateForwardingOptions>().Validate(o => !string.IsNullOrEmpty(o.CertificateHeader), "CertificateForwarderOptions.CertificateHeader cannot be null or empty.");
ForwardedHeadersMiddleware.cs (4)
243else if (!string.IsNullOrEmpty(set.IpAndPortText)) 261if (!string.IsNullOrEmpty(set.Scheme) && !set.Scheme.ContainsAnyExcept(SchemeChars)) 275if (!string.IsNullOrEmpty(set.Host) && TryValidateHost(set.Host) 290if (!string.IsNullOrEmpty(set.Prefix) && set.Prefix[0] == '/')
HttpMethodOverrideMiddleware.cs (2)
50if (!string.IsNullOrEmpty(xHttpMethodOverrideValue)) 63if (!string.IsNullOrEmpty(methodType))
Microsoft.AspNetCore.Identity (17)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (4)
251else if (string.IsNullOrEmpty(useCookies_temp)) 268else if (string.IsNullOrEmpty(useSessionCookies_temp)) 312else if (string.IsNullOrEmpty(useCookies_temp)) 329else if (string.IsNullOrEmpty(useSessionCookies_temp))
IdentityApiEndpointRouteBuilderExtensions.cs (11)
71if (string.IsNullOrEmpty(email) || !_emailAddressAttribute.IsValid(email)) 103if (!string.IsNullOrEmpty(login.TwoFactorCode)) 107else if (!string.IsNullOrEmpty(login.TwoFactorRecoveryCode)) 163if (string.IsNullOrEmpty(changedEmail)) 278if (string.IsNullOrEmpty(tfaRequest.TwoFactorCode)) 315if (string.IsNullOrEmpty(key)) 320if (string.IsNullOrEmpty(key)) 357if (!string.IsNullOrEmpty(infoRequest.NewEmail) && !_emailAddressAttribute.IsValid(infoRequest.NewEmail)) 362if (!string.IsNullOrEmpty(infoRequest.NewPassword)) 364if (string.IsNullOrEmpty(infoRequest.OldPassword)) 377if (!string.IsNullOrEmpty(infoRequest.NewEmail))
PasskeyHandler.cs (1)
669if (string.IsNullOrEmpty(clientData.Origin) ||
SignInManager.cs (1)
1099return schemes.Where(s => !string.IsNullOrEmpty(s.DisplayName));
Microsoft.AspNetCore.Identity.UI (10)
_generated\27\_StatusMessage_cshtml.g.cs (1)
49if (!String.IsNullOrEmpty(Model))
_generated\35\_StatusMessage_cshtml.g.cs (1)
43if (!String.IsNullOrEmpty(Model))
_generated\69\_StatusMessage_cshtml.g.cs (1)
49if (!String.IsNullOrEmpty(Model))
_generated\77\_StatusMessage_cshtml.g.cs (1)
43if (!String.IsNullOrEmpty(Model))
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
105if (!string.IsNullOrEmpty(ErrorMessage))
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
165if (string.IsNullOrEmpty(unformattedKey))
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
29public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
105if (!string.IsNullOrEmpty(ErrorMessage))
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
165if (string.IsNullOrEmpty(unformattedKey))
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
29public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Microsoft.AspNetCore.InternalTesting (10)
AssemblyTestLog.cs (4)
43return string.IsNullOrEmpty(maxPathString) ? defaultMaxPath : int.Parse(maxPathString, CultureInfo.InvariantCulture); 118if (!string.IsNullOrEmpty(_baseDirectory)) 188if (!string.IsNullOrEmpty(baseDirectory)) 241if (!string.IsNullOrEmpty(assemblyBaseDirectory) &&
HelixHelper.cs (2)
11public static bool OnHelix() => !string.IsNullOrEmpty(GetTargetHelixQueue()); 19var uploadPath = string.IsNullOrEmpty(uploadRoot)
src\aspnetcore\src\Shared\TaskExtensions.cs (1)
144=> string.IsNullOrEmpty(filePath)
TestFileOutputContext.cs (2)
41if (!string.IsNullOrEmpty(AssemblyOutputDirectory)) 86if (string.IsNullOrEmpty(baseDirectory))
xunit\SkipOnCIAttribute.cs (1)
40public static bool OnAzdo() => !string.IsNullOrEmpty(GetIfOnAzdo());
Microsoft.AspNetCore.JsonPatch (1)
Internal\JObjectAdapter.cs (1)
102if (currentValue == null || string.IsNullOrEmpty(currentValue.ToString()))
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Internal\JsonObjectAdapter.cs (1)
104if (currentValue == null || string.IsNullOrEmpty(currentValue.ToString()))
Microsoft.AspNetCore.Localization (1)
CookieRequestCultureProvider.cs (1)
35if (string.IsNullOrEmpty(cookie))
Microsoft.AspNetCore.Localization.Routing (2)
RouteDataRequestCultureProvider.cs (2)
35if (!string.IsNullOrEmpty(RouteDataStringKey)) 40if (!string.IsNullOrEmpty(UIRouteDataStringKey))
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisMiddleware.cs (1)
33if (string.IsNullOrEmpty(middlewareName))
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelStateDictionary.cs (2)
213&& !string.IsNullOrEmpty(exception.Message)) 306&& !string.IsNullOrEmpty(exception.Message))
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (1)
504existing.Description = string.IsNullOrEmpty(existing.Description)
DefaultApiDescriptionProvider.cs (2)
639if (modelMetadata.ContainerType != null || !string.IsNullOrEmpty(bindingContext.BinderModelName)) 699var propertyName = !string.IsNullOrEmpty(metadata.BinderModelName) ? metadata.BinderModelName : metadata.PropertyName;
Microsoft.AspNetCore.Mvc.Core (75)
AcceptedAtActionResult.cs (1)
85if (string.IsNullOrEmpty(url))
AcceptedAtRouteResult.cs (1)
81if (string.IsNullOrEmpty(url))
AcceptedResult.cs (1)
75if (!string.IsNullOrEmpty(Location))
ActionConstraints\HttpMethodActionConstraint.cs (1)
39if (string.IsNullOrEmpty(method))
ApplicationModels\AttributeRouteModel.cs (1)
164if (right.Name == null && string.IsNullOrEmpty(right.Template))
ApplicationParts\RelatedAssemblyAttribute.cs (2)
70var assemblyDirectory = string.IsNullOrEmpty(assembly.Location) ? 74if (string.IsNullOrEmpty(assemblyDirectory))
ConsumesAttribute.cs (2)
121if (!string.IsNullOrEmpty(requestContentType) && !IsSubsetOfAnyContentType(requestContentType)) 166if (string.IsNullOrEmpty(requestContentType))
CreatedAtActionResult.cs (1)
85if (string.IsNullOrEmpty(url))
CreatedAtRouteResult.cs (1)
81if (string.IsNullOrEmpty(url))
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
80if (string.IsNullOrEmpty(entryAssemblyName))
Filters\ResponseCacheFilterExecutor.cs (1)
76if (!string.IsNullOrEmpty(VaryByHeader))
Formatters\AcceptHeaderParser.cs (2)
28while (!string.IsNullOrEmpty(value) && charIndex < value.Length) 59if (string.IsNullOrEmpty(value) || (index == value.Length))
Formatters\FormatFilter.cs (3)
43return string.IsNullOrEmpty(routeValue) ? null : routeValue; 151!string.IsNullOrEmpty(context.HttpContext.Response.ContentType)) 159if (!string.IsNullOrEmpty(contentType))
Formatters\FormatterMappings.cs (1)
55if (string.IsNullOrEmpty(format))
Formatters\InputFormatter.cs (1)
56if (string.IsNullOrEmpty(contentType))
Formatters\StringOutputFormatter.cs (1)
49if (string.IsNullOrEmpty(valueAsString))
Formatters\TextInputFormatter.cs (1)
85var requestMediaType = string.IsNullOrEmpty(requestContentType) ? default : new MediaType(requestContentType);
Infrastructure\ObjectResultExecutor.cs (1)
145if (!string.IsNullOrEmpty(responseContentType))
Infrastructure\PhysicalFileResultExecutor.cs (1)
129if (fileInfo.Exists && !string.IsNullOrEmpty(fileInfo.LinkTarget))
Infrastructure\RedirectToActionResultExecutor.cs (1)
48if (string.IsNullOrEmpty(destinationUrl))
Infrastructure\RedirectToPageResultExecutor.cs (1)
48if (string.IsNullOrEmpty(destinationUrl))
Infrastructure\RedirectToRouteResultExecutor.cs (1)
44if (string.IsNullOrEmpty(destinationUrl))
Infrastructure\StringArrayComparer.cs (2)
43if (string.IsNullOrEmpty(x[i]) && string.IsNullOrEmpty(y[i]))
ModelBinding\Binders\ByteArrayModelBinder.cs (1)
48if (string.IsNullOrEmpty(value))
ModelBinding\Binders\CollectionModelBinder.cs (2)
382var name = string.IsNullOrEmpty(bindingContext.ModelName) ? 383(string.IsNullOrEmpty(bindingContext.OriginalModelName) &&
ModelBinding\Binders\FormFileModelBinder.cs (1)
148if (file.Length == 0 && string.IsNullOrEmpty(file.FileName))
ModelBinding\FormFileValueProvider.cs (1)
51if (file.Length == 0 && string.IsNullOrEmpty(file.FileName))
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
42if (string.IsNullOrEmpty(key))
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (2)
45if (!string.IsNullOrEmpty(propertyName)) 58if (string.IsNullOrEmpty(propertyName))
ModelBinding\ModelBindingHelper.cs (1)
391if (string.IsNullOrEmpty(modelKey))
ModelBinding\ModelNames.cs (2)
45if (string.IsNullOrEmpty(prefix)) 50if (string.IsNullOrEmpty(propertyName))
ModelBinding\ParameterBinder.cs (1)
213if (string.IsNullOrEmpty(modelBindingContext.ModelName) &&
Routing\KnownRouteValueConstraint.cs (1)
104!string.IsNullOrEmpty(value))
Routing\MvcAttributeRouteHandler.cs (1)
63if (!string.IsNullOrEmpty(kvp.Value))
Routing\NormalizedRouteValue.cs (1)
36!string.IsNullOrEmpty(value))
Routing\UrlHelperBase.cs (16)
134if (string.IsNullOrEmpty(protocol) && string.IsNullOrEmpty(host)) 145protocol = string.IsNullOrEmpty(protocol) ? "http" : protocol; 150host = string.IsNullOrEmpty(host) ? ActionContext.HttpContext.Request.Host.Value : host; 195if (string.IsNullOrEmpty(protocol) && string.IsNullOrEmpty(host)) 207protocol = string.IsNullOrEmpty(protocol) ? "http" : protocol; 212host = string.IsNullOrEmpty(host) ? ActionContext.HttpContext.Request.Host.Value : host; 268if (string.IsNullOrEmpty(page)) 281if (string.IsNullOrEmpty(handler)) 299if (string.IsNullOrEmpty(contentPath)) 340if (string.IsNullOrEmpty(currentPagePath)) 401if (!string.IsNullOrEmpty(fragment)) 417if (string.IsNullOrEmpty(protocol) 418&& string.IsNullOrEmpty(host) 419&& string.IsNullOrEmpty(fragment)
Routing\ViewEnginePath.cs (2)
18Debug.Assert(!string.IsNullOrEmpty(first)); 48Debug.Assert(!string.IsNullOrEmpty(path));
SerializableError.cs (1)
46return string.IsNullOrEmpty(error.ErrorMessage) ?
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
104if (string.IsNullOrEmpty(chunk)) 153if (string.IsNullOrEmpty(value)) 246if (string.IsNullOrEmpty(requestCookies[subkey])) 256var domainHasValue = !string.IsNullOrEmpty(options.Domain); 257var pathHasValue = !string.IsNullOrEmpty(options.Path); 322if (string.IsNullOrEmpty(requestCookies[subkey]))
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
198if (!string.IsNullOrEmpty(reasonPhrase))
src\aspnetcore\src\Shared\ResponseContentTypeHelper.cs (1)
46if (!string.IsNullOrEmpty(httpResponseContentType))
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
345if (!string.IsNullOrEmpty(result.FileDownloadName))
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (2)
16if (string.IsNullOrEmpty(contentPath)) 39if (string.IsNullOrEmpty(url))
ValidationProblemDetails.cs (1)
67return string.IsNullOrEmpty(error.ErrorMessage) ?
Microsoft.AspNetCore.Mvc.DataAnnotations (12)
CompareAttributeAdapter.cs (2)
59if (!string.IsNullOrEmpty(attribute.ErrorMessage) || 60!string.IsNullOrEmpty(attribute.ErrorMessageResourceName) ||
DataAnnotationsMetadataProvider.cs (6)
107!string.IsNullOrEmpty(displayAttribute.Description) && 129!string.IsNullOrEmpty(displayAttribute.Name) && 142!string.IsNullOrEmpty(displayNameAttribute.DisplayName)) 206if (!string.IsNullOrEmpty(displayFormatAttribute?.DataFormatString) && 257!string.IsNullOrEmpty(displayAttribute.Prompt) && 398if (stringLocalizer != null && !string.IsNullOrEmpty(name) && display.ResourceType == null)
DataAnnotationsModelValidator.cs (2)
88!string.IsNullOrEmpty(Attribute.ErrorMessage) && 89string.IsNullOrEmpty(Attribute.ErrorMessageResourceName) &&
ValidationAttributeAdapterOfTAttribute.cs (2)
70!string.IsNullOrEmpty(Attribute.ErrorMessage) && 71string.IsNullOrEmpty(Attribute.ErrorMessageResourceName) &&
Microsoft.AspNetCore.Mvc.Formatters.Xml (10)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (1)
50if (string.IsNullOrEmpty(mapping))
DependencyInjection\XmlSerializerMvcOptionsSetup.cs (1)
38if (string.IsNullOrEmpty(mapping))
ProblemDetailsWrapper.cs (6)
90ProblemDetails.Status = string.IsNullOrEmpty(value) ? 117if (!string.IsNullOrEmpty(ProblemDetails.Detail)) 124if (!string.IsNullOrEmpty(ProblemDetails.Instance)) 138if (!string.IsNullOrEmpty(ProblemDetails.Title)) 145if (!string.IsNullOrEmpty(ProblemDetails.Type)) 157if (string.IsNullOrEmpty(key))
SerializableErrorWrapper.cs (1)
91if (string.IsNullOrEmpty(key))
ValidationProblemDetailsWrapper.cs (1)
93if (string.IsNullOrEmpty(key))
Microsoft.AspNetCore.Mvc.Localization (3)
ViewLocalizer.cs (3)
33if (string.IsNullOrEmpty(hostingEnvironment.ApplicationName)) 85if (string.IsNullOrEmpty(path)) 90Debug.Assert(!string.IsNullOrEmpty(path), "Couldn't determine a path for the view");
Microsoft.AspNetCore.Mvc.NewtonsoftJson (5)
JsonPatchExtensions.cs (1)
52var key = string.IsNullOrEmpty(prefix) ? affectedObjectName : prefix + "." + affectedObjectName;
NewtonsoftJsonInputFormatter.cs (1)
269var addMember = !string.IsNullOrEmpty(member) && eventArgs.ErrorContext.Error is JsonSerializationException;
NewtonsoftJsonValidationMetadataProvider.cs (2)
44if (!string.IsNullOrEmpty(propertyName)) 57if (string.IsNullOrEmpty(propertyName))
src\aspnetcore\src\Shared\ResponseContentTypeHelper.cs (1)
46if (!string.IsNullOrEmpty(httpResponseContentType))
Microsoft.AspNetCore.Mvc.Razor (19)
LanguageViewLocationExpander.cs (1)
61if (!string.IsNullOrEmpty(value))
RazorPageBase.cs (7)
440if (!string.IsNullOrEmpty(value)) 469if (!string.IsNullOrEmpty(value)) 546if (!string.IsNullOrEmpty(prefix)) 644if (!string.IsNullOrEmpty(prefix)) 694if (!IsLayoutBeingRendered && !string.IsNullOrEmpty(Layout)) 761return string.IsNullOrEmpty(prefix) && 769return string.IsNullOrEmpty(prefix) &&
RazorView.cs (1)
206while (!string.IsNullOrEmpty(previousPage.Layout))
RazorViewEngine.cs (10)
278if (string.IsNullOrEmpty(pagePath)) 296if (string.IsNullOrEmpty(executingFilePath)) 311if (!string.IsNullOrEmpty(context.AreaName) && 312!string.IsNullOrEmpty(context.ControllerName)) 316else if (!string.IsNullOrEmpty(context.ControllerName)) 320else if (!string.IsNullOrEmpty(context.AreaName) && 321!string.IsNullOrEmpty(context.PageName)) 325else if (!string.IsNullOrEmpty(context.PageName)) 482Debug.Assert(!string.IsNullOrEmpty(name)); 488Debug.Assert(!string.IsNullOrEmpty(name));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (8)
CompilationFailedExceptionFactory.cs (1)
98if (string.IsNullOrEmpty(filePath) || string.Equals(codeDocument.Source.FilePath, filePath, StringComparison.Ordinal))
CSharpCompiler.cs (3)
91if (!string.IsNullOrEmpty(_hostingEnvironment.ApplicationName)) 127if (string.IsNullOrEmpty(dependencyContextOptions.DebugType)) 218if (string.IsNullOrEmpty(dependencyContextOptions.LanguageVersion))
FileProviderRazorProjectItem.cs (1)
80!string.IsNullOrEmpty(PhysicalPath) &&
PageActionDescriptorChangeProvider.cs (1)
32Debug.Assert(!string.IsNullOrEmpty(rootDirectory));
src\aspnetcore\src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (2)
140Debug.Assert(!string.IsNullOrEmpty(areaName)); 141Debug.Assert(!string.IsNullOrEmpty(viewEnginePath));
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\PageRouteModelFactory.cs (2)
140Debug.Assert(!string.IsNullOrEmpty(areaName)); 141Debug.Assert(!string.IsNullOrEmpty(viewEnginePath));
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (1)
26Debug.Assert(!string.IsNullOrEmpty(rootDirectory));
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
150if (!string.IsNullOrEmpty(handlerName))
Infrastructure\PageViewLocationExpander.cs (1)
16if ((context.ActionContext.ActionDescriptor is PageActionDescriptor) && !string.IsNullOrEmpty(context.PageName))
Microsoft.AspNetCore.Mvc.TagHelpers (36)
AttributeMatcher.cs (1)
68if (attribute.Value is string valueAsString && string.IsNullOrEmpty(valueAsString))
Cache\CacheTagKey.cs (2)
130if (!string.IsNullOrEmpty(_varyBy)) 270if (string.IsNullOrEmpty(keys))
EnvironmentTagHelper.cs (1)
82if (string.IsNullOrEmpty(currentEnvironmentName))
FileProviderGlobbingDirectory.cs (1)
34else if (!string.IsNullOrEmpty(parent?.RelativePath))
FormTagHelper.cs (1)
199if (string.IsNullOrEmpty(attributeValue))
GlobbingUrlBuilder.cs (3)
102if (string.IsNullOrEmpty(include)) 186if (string.IsNullOrEmpty(x) || string.IsNullOrEmpty(y))
InputTagHelper.cs (9)
193if (string.IsNullOrEmpty(InputTypeName)) 212if (string.IsNullOrEmpty(For.Name) && 213string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) && 214!string.IsNullOrEmpty(Name)) 337!string.IsNullOrEmpty(Name)) 402if (string.IsNullOrEmpty(format)) 482string.IsNullOrEmpty(modelExplorer.Metadata.EditFormatString)) 526if (!string.IsNullOrEmpty(modelExplorer.Metadata.TemplateHint)) 531if (!string.IsNullOrEmpty(modelExplorer.Metadata.DataTypeName))
LinkTagHelper.cs (2)
292if (mode == Mode.GlobbedHref || mode == Mode.Fallback && !string.IsNullOrEmpty(HrefInclude)) 295if (string.IsNullOrEmpty(Href))
PartialTagHelper.cs (2)
115if (!result.Success && !string.IsNullOrEmpty(FallbackName)) 131if (!string.IsNullOrEmpty(FallbackName))
ScriptTagHelper.cs (2)
319if (mode == Mode.GlobbedSrc || mode == Mode.Fallback && !string.IsNullOrEmpty(SrcInclude)) 322if (string.IsNullOrEmpty(Src))
SelectTagHelper.cs (3)
135if (string.IsNullOrEmpty(For.Name) && 136string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) && 137!string.IsNullOrEmpty(Name))
TagHelperOutputExtensions.cs (4)
144if (string.IsNullOrEmpty(classValue)) 217if (string.IsNullOrEmpty(currentClassValue)) 370if (!string.IsNullOrEmpty(stringValue)) 378if (!string.IsNullOrEmpty(_right))
TextAreaTagHelper.cs (3)
73if (string.IsNullOrEmpty(For.Name) && 74string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) && 75!string.IsNullOrEmpty(Name))
ValidationMessageTagHelper.cs (2)
63if (string.IsNullOrEmpty(For.Name) && 64string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) &&
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\CookieContainerHandler.cs (1)
45if (!string.IsNullOrEmpty(cookieHeader))
Microsoft.AspNetCore.Mvc.ViewFeatures (64)
Buffers\ViewBufferTextWriter.cs (1)
94if (string.IsNullOrEmpty(value))
CookieTempDataProvider.cs (3)
71if (!string.IsNullOrEmpty(encodedValue)) 125if (!string.IsNullOrEmpty(_options.Cookie.Path)) 132if (!string.IsNullOrEmpty(pathBase))
DefaultDisplayTemplates.cs (1)
236if (!string.IsNullOrEmpty(label))
DefaultEditorTemplates.cs (1)
481HasContent |= !string.IsNullOrEmpty(value);
DefaultHtmlGenerator.cs (19)
104return !string.IsNullOrEmpty(value) ? _htmlEncoder.Encode(value) : string.Empty; 246if (!string.IsNullOrEmpty(fullName)) 266if (string.IsNullOrEmpty(method)) 571if (!string.IsNullOrEmpty(fullName)) 660if (!string.IsNullOrEmpty(fullName)) 746modelError = modelErrors.FirstOrDefault(m => !string.IsNullOrEmpty(m.ErrorMessage)) ?? modelErrors[0]; 756if (string.IsNullOrEmpty(tag)) 771if (!string.IsNullOrEmpty(message)) 787if (!string.IsNullOrEmpty(fullName)) 792var replaceValidationMessageContents = string.IsNullOrEmpty(message); 826if (string.IsNullOrEmpty(message)) 832if (string.IsNullOrEmpty(headerTag)) 855if (!string.IsNullOrEmpty(errorText)) 995else if (!string.IsNullOrEmpty(stringValue)) 1101if (string.IsNullOrEmpty(method)) 1168if (!string.IsNullOrEmpty(fullName)) 1314if (!string.IsNullOrEmpty(placeholder)) 1526if (string.IsNullOrEmpty(fullName)) 1538if (string.IsNullOrEmpty(attributeString))
ExpressionMetadataProvider.cs (1)
158string.IsNullOrEmpty(expression))
Filters\SaveTempDataPropertyFilterBase.cs (1)
103if (string.IsNullOrEmpty(key))
Filters\ViewDataAttributePropertyProvider.cs (1)
30if (string.IsNullOrEmpty(key))
HtmlHelper.cs (2)
1070string.IsNullOrEmpty(forAttribute)) 1391if (!string.IsNullOrEmpty(keyValuePair.Key.Group))
ModelStateDictionaryExtensions.cs (1)
122if (string.IsNullOrEmpty(modelKey))
NameAndIdProvider.cs (5)
37if (string.IsNullOrEmpty(fullName)) 101if (string.IsNullOrEmpty(fullName)) 112if (!string.IsNullOrEmpty(sanitizedId)) 131if (string.IsNullOrEmpty(expression)) 136if (string.IsNullOrEmpty(htmlFieldPrefix))
PartialViewResultExecutor.cs (1)
176!string.IsNullOrEmpty(value))
RemoteAttributeBase.cs (4)
86if (!string.IsNullOrEmpty(delimitedAdditionalFields)) 153if (!string.IsNullOrEmpty(HttpMethod)) 196!string.IsNullOrEmpty(ErrorMessage) && 197string.IsNullOrEmpty(ErrorMessageResourceName) &&
Rendering\MultiSelectList.cs (3)
143return (!string.IsNullOrEmpty(DataValueField)) ? 205if (!string.IsNullOrEmpty(expression)) 222if (string.IsNullOrEmpty(groupName))
Rendering\TagBuilder.cs (4)
157if (string.IsNullOrEmpty(name)) 216if (string.IsNullOrEmpty(name)) 227if (!string.IsNullOrEmpty(sanitizedId)) 243string.IsNullOrEmpty(attribute.Value))
TemplateBuilder.cs (1)
92else if (!string.IsNullOrEmpty(formatString))
TemplateInfo.cs (2)
90if (string.IsNullOrEmpty(partialFieldName)) 95if (string.IsNullOrEmpty(HtmlFieldPrefix))
TemplateRenderer.cs (1)
155foreach (var templateHint in templateHints.Where(s => !string.IsNullOrEmpty(s)))
ValidationHelpers.cs (2)
15if (!string.IsNullOrEmpty(modelError.ErrorMessage)) 33if (!string.IsNullOrEmpty(modelError.ErrorMessage))
ViewComponents\ViewComponentConventions.cs (3)
28if (attribute != null && !string.IsNullOrEmpty(attribute.Name)) 55if (!string.IsNullOrEmpty(attribute?.Name)) 63if (string.IsNullOrEmpty(componentType.Namespace))
ViewComponents\ViewViewComponentResult.cs (1)
74var isNullOrEmptyViewName = string.IsNullOrEmpty(ViewName);
ViewDataDictionary.cs (1)
405if (string.IsNullOrEmpty(format))
ViewDataEvaluator.cs (4)
50if (string.IsNullOrEmpty(expression)) 126while (!string.IsNullOrEmpty(leftExpression)); 140if (string.IsNullOrEmpty(expression)) 193if (string.IsNullOrEmpty(propertyName) || container is ViewDataDictionary)
ViewResultExecutor.cs (1)
176!string.IsNullOrEmpty(value))
Microsoft.AspNetCore.OpenApi (5)
Extensions\ApiDescriptionExtensions.cs (1)
72if (string.IsNullOrEmpty(apiDescription.RelativePath))
Extensions\JsonNodeSchemaExtensions.cs (1)
510!string.IsNullOrEmpty(schemaIdNode.GetValue<string>()));
Extensions\OpenApiSchemaExtensions.cs (1)
49&& !string.IsNullOrEmpty(schemaIdString))
Services\Schemas\OpenApiSchemaService.cs (1)
349if (!string.IsNullOrEmpty(targetReferenceId))
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.AspNetCore.OpenApi.SourceGenerators (12)
XmlCommentGenerator.Emitter.cs (1)
807var exampleLiteral = string.IsNullOrEmpty(parameter.Example)
XmlComments\XmlComment.cs (6)
162if (string.IsNullOrEmpty(xmlText) || 169return !string.IsNullOrEmpty(resolvedComment) ? new XmlComment(compilation, resolvedComment!) : null; 180if (node == null || string.IsNullOrEmpty(elementName)) 191if (string.IsNullOrEmpty(cref)) 212if (node == null || string.IsNullOrEmpty(elementName)) 223if (string.IsNullOrEmpty(langword))
XmlComments\XmlComment.InheritDoc.cs (3)
29if (string.IsNullOrEmpty(xmlText)) 199if (string.IsNullOrEmpty(pathAttribute?.Value)) 371=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
XmlComments\XmlParameterComment.cs (1)
28if (!string.IsNullOrEmpty(name))
XmlComments\XmlResponseComment.cs (1)
29if (!string.IsNullOrEmpty(code))
Microsoft.AspNetCore.OutputCaching (9)
CacheEntryHelpers.cs (1)
44if (!string.IsNullOrEmpty(stringValue))
OutputCacheEntryFormatter.cs (1)
191if (string.IsNullOrEmpty(value))
OutputCacheKeyProvider.cs (2)
71return !string.IsNullOrEmpty(value) && value.ContainsAny(KeyDelimiter, KeySubDelimiter); 78if (!string.IsNullOrEmpty(cacheKeyPrefix))
OutputCacheMiddleware.cs (4)
143if (context.AllowLocking && !string.IsNullOrEmpty(context.CacheKey)) 336if (string.IsNullOrEmpty(cacheContext.CacheKey)) 378if (!string.IsNullOrEmpty(context.CacheKey)) 435if (string.IsNullOrEmpty(context.CacheKey))
StringBuilderExtensions.cs (1)
12if (!string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Owin (3)
DictionaryStringValuesWrapper.cs (1)
56!string.IsNullOrEmpty(rawValue[0]) &&
Utilities.cs (2)
14if (!string.IsNullOrEmpty(queryString)) 26if (!string.IsNullOrEmpty(queryString))
Microsoft.AspNetCore.Razor.Utilities.Shared (3)
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\StringExtensions.cs (2)
23/// <see cref="string.IsNullOrEmpty(string?)"/> is not annotated for nullability. 26=> string.IsNullOrEmpty(value);
Microsoft.AspNetCore.ResponseCaching (6)
CacheEntry\CacheEntryHelpers.cs (2)
53if (!string.IsNullOrEmpty(cachedVaryByRules.VaryByKeyPrefix)) 77if (!string.IsNullOrEmpty(stringValue))
ResponseCachingFeature.cs (1)
24if (string.IsNullOrEmpty(value[i]))
ResponseCachingKeyProvider.cs (1)
214if (!string.IsNullOrEmpty(value) && value.ContainsAny(KeyDelimiter, KeySubDelimiter, KeyNameValueDelimiter))
ResponseCachingMiddleware.cs (1)
281if (string.IsNullOrEmpty(context.BaseKey))
StringBuilderExtensions.cs (1)
12if (!string.IsNullOrEmpty(value))
Microsoft.AspNetCore.ResponseCompression (2)
ResponseCompressionProvider.cs (2)
191if (string.IsNullOrEmpty(mimeType)) 222if (string.IsNullOrEmpty(context.Request.Headers.AcceptEncoding))
Microsoft.AspNetCore.Rewrite (20)
ApacheModRewrite\CookieActionFactory.cs (2)
72action!.Domain = string.IsNullOrEmpty(value) || value == ";" 77if (string.IsNullOrEmpty(value))
ApacheModRewrite\FileParser.cs (1)
18if (string.IsNullOrEmpty(line))
ApacheModRewrite\RuleBuilder.cs (1)
206if (string.IsNullOrEmpty(statusCode))
ApacheModRewrite\RuleRegexParser.cs (1)
10if (string.IsNullOrEmpty(regex))
ApacheModRewrite\Tokenizer.cs (3)
27if (string.IsNullOrEmpty(rule)) 67if (!string.IsNullOrEmpty(token)) 91if (!string.IsNullOrEmpty(done))
IISUrlRewrite\UrlRewriteFileParser.cs (4)
150if (string.IsNullOrEmpty(parsedPatternString)) 175if (string.IsNullOrEmpty(parsedPatternString)) 203if (string.IsNullOrEmpty(url)) 237if (!string.IsNullOrEmpty(urlAction.Attribute(RewriteTags.SubStatusCode)?.Value))
PatternSegments\QueryStringSegment.cs (1)
12if (!string.IsNullOrEmpty(queryString))
RedirectRule.cs (1)
54if (string.IsNullOrEmpty(newPath))
RewriteRule.cs (1)
50if (string.IsNullOrEmpty(result))
UrlActions\CustomResponseAction.cs (2)
27if (!string.IsNullOrEmpty(StatusReason)) 32if (!string.IsNullOrEmpty(StatusDescription))
UrlActions\RedirectAction.cs (1)
40if (string.IsNullOrEmpty(pattern))
UrlActions\RewriteAction.cs (1)
50if (string.IsNullOrEmpty(pattern))
UrlNormalizer.cs (1)
12if (string.IsNullOrEmpty(url))
Microsoft.AspNetCore.Routing (25)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (5)
77if (responseType is Type && string.IsNullOrEmpty(contentType)) 104if (string.IsNullOrEmpty(contentType)) 125if (string.IsNullOrEmpty(contentType)) 146if (string.IsNullOrEmpty(contentType)) 170if (string.IsNullOrEmpty(contentType))
Constraints\RequiredRouteConstraint.cs (1)
33return !string.IsNullOrEmpty(valueString);
EndpointDataSource.cs (1)
103template = string.IsNullOrEmpty(template) ? "\"\"" : template;
Matching\AcceptsMatcherPolicy.cs (3)
93var mediaType = string.IsNullOrEmpty(contentType) ? (ReadOnlyMediaTypeHeaderValue?)null : new(contentType); 308return !string.IsNullOrEmpty(mediaType) ? new ReadOnlyMediaTypeHeaderValue(mediaType) : default; 360if (string.IsNullOrEmpty(contentType))
Matching\FastPathTokenizer.cs (1)
18if (string.IsNullOrEmpty(path))
Patterns\RoutePatternLiteralPart.cs (1)
22Debug.Assert(!string.IsNullOrEmpty(content));
Patterns\RoutePatternSeparatorPart.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(content));
RouteCollection.cs (3)
51if (!string.IsNullOrEmpty(namedRouter.Name)) 101if (!string.IsNullOrEmpty(context.RouteName)) 154if (!string.IsNullOrEmpty(url) && (_options.LowercaseUrls || _options.AppendTrailingSlash))
RouteValueEqualityComparer.cs (3)
36if (string.IsNullOrEmpty(stringX) && string.IsNullOrEmpty(stringY)) 50if (string.IsNullOrEmpty(stringObj))
RouteValuesAddressScheme.cs (2)
30if (string.IsNullOrEmpty(address.RouteName)) 127if (string.IsNullOrEmpty(entry.RouteName))
src\aspnetcore\src\Shared\Diagnostics\RouteDiagnosticsHelpers.cs (1)
15return string.IsNullOrEmpty(route) ? "/" : route;
Template\TemplateBinder.cs (1)
622if (!string.IsNullOrEmpty(converted))
UriBuildingContext.cs (2)
62if (string.IsNullOrEmpty(value)) 144if (string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Routing.Abstractions (1)
VirtualPathData.cs (1)
81if (string.IsNullOrEmpty(path))
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
713if (string.IsNullOrEmpty(cacheControlHeader))
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolMetrics.cs (1)
117if (!string.IsNullOrEmpty(owner))
Microsoft.AspNetCore.Server.IIS (23)
Core\IISHttpContext.cs (4)
182else if (string.IsNullOrEmpty(pathBase) || pathBase == "/") 632var reasonPhrase = string.IsNullOrEmpty(ReasonPhrase) ? ReasonPhrases.GetReasonPhrase(StatusCode) : ReasonPhrase; 661if (string.IsNullOrEmpty(headerValue)) 707if (string.IsNullOrEmpty(headerValue))
Core\IISHttpServer.cs (1)
53&& !string.IsNullOrEmpty(webSocketsSupported);
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolMetrics.cs (1)
117if (!string.IsNullOrEmpty(owner))
src\aspnetcore\src\Shared\ErrorPage\ErrorPage.Designer.cs (4)
321if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File)) 365else if (!string.IsNullOrEmpty(location)) 504if (string.IsNullOrEmpty(frame.File))
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
104if (string.IsNullOrEmpty(stackFrame.File)) 122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath))
src\aspnetcore\src\Shared\StackTrace\StackFrame\MethodDisplayInfo.cs (2)
36if (!string.IsNullOrEmpty(DeclaringTypeName)) 50if (!string.IsNullOrEmpty(SubMethod))
src\aspnetcore\src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs (1)
20if (!string.IsNullOrEmpty(Prefix))
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.AspNetCore.Server.IISIntegration (4)
WebHostBuilderIISExtensions.cs (4)
54if (!string.IsNullOrEmpty(port) && !string.IsNullOrEmpty(path) && !string.IsNullOrEmpty(pairingToken)) 60if (string.IsNullOrEmpty(iisAuth))
Microsoft.AspNetCore.Server.IntegrationTesting (31)
ApplicationPublisher.cs (1)
25if (string.IsNullOrEmpty(deploymentParameters.TargetFramework))
CachingApplicationPublisher.cs (1)
28if (!string.IsNullOrEmpty(deploymentParameters.PublishedApplicationRootPath))
Common\DeploymentParameters.cs (3)
19if (configAttribute != null && !string.IsNullOrEmpty(configAttribute.Configuration)) 30if (configAttribute != null && !string.IsNullOrEmpty(configAttribute.Configuration)) 69if (configAttribute != null && !string.IsNullOrEmpty(configAttribute.Configuration))
Common\DotNetCommands.cs (5)
28if (!string.IsNullOrEmpty(dotnetHome)) 32else if (!string.IsNullOrEmpty(dotnetRoot)) 44else if (!string.IsNullOrEmpty(dotnetInstallDir)) 48else if (!string.IsNullOrEmpty(userProfile)) 52else if (!string.IsNullOrEmpty(home))
Common\ProcessLoggingExtensions.cs (2)
15if (!string.IsNullOrEmpty(dataArgs.Data)) 23if (!string.IsNullOrEmpty(dataArgs.Data))
Common\TestUriHelper.cs (1)
25if (string.IsNullOrEmpty(hint))
Deployers\ApplicationDeployer.cs (2)
37if (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.None && !string.IsNullOrEmpty(DeploymentParameters.TargetFramework)) 51if (string.IsNullOrEmpty(DeploymentParameters.ApplicationName))
Deployers\NginxDeployer.cs (2)
34var uri = string.IsNullOrEmpty(DeploymentParameters.ApplicationBaseUriHint) ? 107if (!string.IsNullOrEmpty(retVal))
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (9)
37if (string.IsNullOrEmpty(_deploymentParameters.ServerName)) 42if (string.IsNullOrEmpty(_deploymentParameters.ServerAccountName)) 48if (string.IsNullOrEmpty(_deploymentParameters.ServerAccountPassword)) 55&& string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 61if (string.IsNullOrEmpty(_deploymentParameters.RemoteServerFileSharePath)) 67if (string.IsNullOrEmpty(_deploymentParameters.ApplicationBaseUriHint)) 159if (!string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 218if (!string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 225if (!string.IsNullOrEmpty(executableParameters))
Deployers\SelfHostDeployer.cs (2)
149if (!string.IsNullOrEmpty(dataArgs.Data) && dataArgs.Data.Contains(ApplicationStartedMessage)) 153else if (!string.IsNullOrEmpty(dataArgs.Data))
src\aspnetcore\src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\aspnetcore\src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Microsoft.AspNetCore.Server.Kestrel.Core (28)
Internal\AddressBinder.cs (1)
114if (!string.IsNullOrEmpty(parsedAddress.PathBase))
Internal\Certificates\CertificateConfigLoader.cs (2)
327var storeName = string.IsNullOrEmpty(certInfo.Store) ? StoreName.My.ToString() : certInfo.Store; 330if (!string.IsNullOrEmpty(location))
Internal\ConfigurationReader.cs (4)
98if (string.IsNullOrEmpty(url)) 147if (string.IsNullOrEmpty(sniChild.Key)) 394public bool IsFileCert => !string.IsNullOrEmpty(Path); 411public bool IsStoreCert => !string.IsNullOrEmpty(Subject);
Internal\Http\HttpHeaders.cs (2)
63if (string.IsNullOrEmpty(key)) 195if (string.IsNullOrEmpty(key))
Internal\Http\ReasonPhrases.cs (2)
84Debug.Assert(!string.IsNullOrEmpty(reasonPhrase)); 170if (candidate is not null && (string.IsNullOrEmpty(reasonPhrase) || WebUtilities.ReasonPhrases.GetReasonPhrase(statusCode) == reasonPhrase))
Internal\Http3\Http3Stream.cs (2)
1109if (!string.IsNullOrEmpty(HttpRequestHeaders.HeaderScheme) || !string.IsNullOrEmpty(HttpRequestHeaders.HeaderPath))
Internal\Infrastructure\HttpUtilities.cs (2)
272if (string.IsNullOrEmpty(value)) 493if (string.IsNullOrEmpty(hostText))
Internal\SniOptionsSelector.cs (1)
120if (!string.IsNullOrEmpty(serverName) && !_exactNameOptions.TryGetValue(serverName, out sniOptions) && IsValidSniServerName(serverName))
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolMetrics.cs (1)
117if (!string.IsNullOrEmpty(owner))
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
444if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 662if (!string.IsNullOrEmpty(targetDirectoryPath))
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
62if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 103if (string.IsNullOrEmpty(sslCertDirString)) 368if (!string.IsNullOrEmpty(existingSslCertDir)) 653if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WSL_INTEROP"))) 807if (!string.IsNullOrEmpty(@override)) 833if (string.IsNullOrEmpty(nssDbOverride))
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
TlsConfigurationLoader.cs (1)
173else if (!string.IsNullOrEmpty(certificatePath))
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
WebHostBuilderDirectTlsExtensions.cs (1)
134if (string.IsNullOrEmpty(informationalVersion))
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolMetrics.cs (1)
117if (!string.IsNullOrEmpty(owner))
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolMetrics.cs (1)
117if (!string.IsNullOrEmpty(owner))
Microsoft.AspNetCore.Session (2)
CookieProtection.cs (2)
15if (string.IsNullOrEmpty(data)) 30if (string.IsNullOrEmpty(protectedText))
Microsoft.AspNetCore.SignalR.Client.Core (9)
HubConnection.cs (5)
1389if (!string.IsNullOrEmpty(_serviceName)) 1613if (!string.IsNullOrEmpty(bindingFailure.InvocationId)) 1647if (string.IsNullOrEmpty(close.Error)) 1684var expectsResult = !string.IsNullOrEmpty(invocation.InvocationId); 1934if (string.IsNullOrEmpty(invocationMessage.InvocationId))
Internal\ConnectionLogScope.cs (2)
42public int Count => string.IsNullOrEmpty(ConnectionId) ? 0 : 1; 61if (!string.IsNullOrEmpty(ConnectionId))
Internal\InvocationRequest.cs (2)
114if (!string.IsNullOrEmpty(completionMessage.Error)) 187if (!string.IsNullOrEmpty(completionMessage.Error))
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (12)
HubClientProxyGenerator.Emitter.cs (6)
25if (string.IsNullOrEmpty(_spec.SetterClassAccessibility) || 26string.IsNullOrEmpty(_spec.SetterMethodAccessibility) || 27string.IsNullOrEmpty(_spec.SetterClassName) || 28string.IsNullOrEmpty(_spec.SetterMethodName) || 29string.IsNullOrEmpty(_spec.SetterTypeParameterName) || 30string.IsNullOrEmpty(_spec.SetterHubConnectionParameterName))
HubServerProxyGenerator.Emitter.cs (6)
25if (string.IsNullOrEmpty(_spec.GetterClassAccessibility) || 26string.IsNullOrEmpty(_spec.GetterMethodAccessibility) || 27string.IsNullOrEmpty(_spec.GetterClassName) || 28string.IsNullOrEmpty(_spec.GetterMethodName) || 29string.IsNullOrEmpty(_spec.GetterTypeParameterName) || 30string.IsNullOrEmpty(_spec.GetterHubConnectionParameterName))
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\HandshakeProtocol.cs (1)
93if (!string.IsNullOrEmpty(responseMessage.Error))
Microsoft.AspNetCore.SignalR.Core (12)
DefaultHubLifetimeManager.cs (1)
233if (string.IsNullOrEmpty(groupName))
HubConnectionHandler.cs (2)
207if (!string.IsNullOrEmpty(newUserId) 251if (claim is not null && !string.IsNullOrEmpty(claim.Value))
Internal\DefaultHubDispatcher.cs (5)
334if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 462if (cts != null && !string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 519if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 735if (string.IsNullOrEmpty(invocationId)) 800if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId))
src\aspnetcore\src\Shared\Diagnostics\ActivityCreator.cs (4)
52activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 76if (!string.IsNullOrEmpty(requestId)) 103if (!string.IsNullOrEmpty(requestId)) 105if (!string.IsNullOrEmpty(traceState))
Microsoft.AspNetCore.SignalR.Protocols.Json (11)
Protocol\JsonHubProtocol.cs (11)
226if (string.IsNullOrEmpty(invocationId)) 263if (!string.IsNullOrEmpty(invocationId)) 298if (string.IsNullOrEmpty(target)) 595if (!string.IsNullOrEmpty(message.Error)) 717if (!string.IsNullOrEmpty(message.InvocationId)) 730if (string.IsNullOrEmpty(invocationId)) 740if (string.IsNullOrEmpty(invocationId)) 760if (string.IsNullOrEmpty(invocationId)) 776if (string.IsNullOrEmpty(invocationId)) 786if (string.IsNullOrEmpty(target)) 799if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Protocol\MessagePackHubProtocolWorker.cs (4)
80if (string.IsNullOrEmpty(invocationId)) 431if (string.IsNullOrEmpty(message.InvocationId)) 560if (string.IsNullOrEmpty(message.Error)) 709if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (11)
Protocol\NewtonsoftJsonHubProtocol.cs (11)
204if (string.IsNullOrEmpty(invocationId)) 253if (!string.IsNullOrEmpty(invocationId)) 285if (string.IsNullOrEmpty(target)) 594if (!string.IsNullOrEmpty(message.Error)) 696if (!string.IsNullOrEmpty(message.InvocationId)) 723if (string.IsNullOrEmpty(invocationId)) 733if (string.IsNullOrEmpty(invocationId)) 753if (string.IsNullOrEmpty(invocationId)) 768if (string.IsNullOrEmpty(invocationId)) 778if (string.IsNullOrEmpty(target)) 790if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
Internal\TaskExtensions.cs (1)
61=> string.IsNullOrEmpty(filePath)
src\aspnetcore\src\Shared\TaskExtensions.cs (1)
144=> string.IsNullOrEmpty(filePath)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (7)
Internal\RedisProtocol.cs (2)
51if (!string.IsNullOrEmpty(returnChannel)) 76if (!string.IsNullOrEmpty(returnChannel))
RedisHubLifetimeManager.cs (5)
104if (!string.IsNullOrEmpty(connection.UserIdentifier)) 144if (!string.IsNullOrEmpty(connection.UserIdentifier)) 265if (!string.IsNullOrEmpty(groupName)) 283if (!string.IsNullOrEmpty(userId)) 539if (!string.IsNullOrEmpty(invocation.InvocationId))
Microsoft.AspNetCore.SpaProxy (1)
SpaDevelopmentServerOptions.cs (1)
14if (!String.IsNullOrEmpty(RedirectUrl))
Microsoft.AspNetCore.SpaServices.Extensions (7)
AngularCli\AngularCliBuilder.cs (1)
43if (string.IsNullOrEmpty(sourcePath))
AngularCli\AngularCliMiddleware.cs (1)
30if (string.IsNullOrEmpty(sourcePath))
AngularCli\AngularCliMiddlewareExtensions.cs (1)
31if (string.IsNullOrEmpty(spaOptions.SourcePath))
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
30if (string.IsNullOrEmpty(sourcePath))
ReactDevelopmentServer\ReactDevelopmentServerMiddlewareExtensions.cs (1)
31if (string.IsNullOrEmpty(spaOptions.SourcePath))
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
24if (string.IsNullOrEmpty(options.RootPath))
StaticFiles\SpaStaticFilesExtensions.cs (1)
36if (string.IsNullOrEmpty(options.RootPath))
Microsoft.AspNetCore.StaticAssets (4)
LoggerExtensions.cs (1)
19if (string.IsNullOrEmpty(physicalPath))
StaticAssetEndpointFactory.cs (1)
28!string.IsNullOrEmpty(resource.Order) && int.TryParse(resource.Order, CultureInfo.InvariantCulture, out var order) ? order : -100);
StaticAssetsInvoker.cs (2)
95if (!string.IsNullOrEmpty(_contentType)) 232var logPath = !string.IsNullOrEmpty(FileInfo.PhysicalPath) ? FileInfo.PhysicalPath : Route;
Microsoft.AspNetCore.StaticFiles (3)
LoggerExtensions.cs (1)
22if (string.IsNullOrEmpty(physicalPath))
StaticFileContext.cs (2)
254if (!string.IsNullOrEmpty(_contentType)) 387var logPath = !string.IsNullOrEmpty(_fileInfo.PhysicalPath) ? _fileInfo.PhysicalPath : SubPath;
Microsoft.AspNetCore.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.AspNetCore.WebUtilities (4)
HttpResponseStreamWriter.cs (2)
273if (string.IsNullOrEmpty(value)) 475if (string.IsNullOrEmpty(value) && NewLine.Length == 0)
MultipartReader.cs (1)
111while (!string.IsNullOrEmpty(line))
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
220if (string.IsNullOrEmpty(input))
Microsoft.Bcl.AsyncInterfaces (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Bcl.Numerics (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Build (319)
BackEnd\BuildManager\BuildManager.cs (2)
1296if (!string.IsNullOrEmpty(errorMessage)) 1625if (string.IsNullOrEmpty(submission.BuildRequestData.ProjectFullPath))
BackEnd\BuildManager\BuildParameters.cs (1)
1082if (!string.IsNullOrEmpty(location) && CheckMSBuildExeExistsAt(location))
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
36if (string.IsNullOrEmpty(dotnetHostPath))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
156if (string.IsNullOrEmpty(_debugDumpDirectory))
BackEnd\Components\Caching\ConfigCache.cs (1)
246if (String.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDENABLEAGGRESSIVECACHING")))
BackEnd\Components\Communications\NodeLauncher.cs (1)
66bool showNodeWindow = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDNODEWINDOW"));
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (7)
226if (String.IsNullOrEmpty(msbuildLocation)) 248if (String.IsNullOrEmpty(msbuildLocation)) 252if (!String.IsNullOrEmpty(msbuildExeName)) 513string wouldLaunchPath = !string.IsNullOrEmpty(configuredNodeExeLocation) 521string primary = !string.IsNullOrEmpty(wouldLaunchPath) 529return string.IsNullOrEmpty(alternate) || string.Equals(primary, alternate, StringComparison.OrdinalIgnoreCase) 561if (string.IsNullOrEmpty(msbuildLocation)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (6)
426if (string.IsNullOrEmpty(name)) 429if (string.IsNullOrEmpty(name)) 540if (string.IsNullOrEmpty(path)) 582if (string.IsNullOrEmpty(lastDirectoryName)) 612if (!string.IsNullOrEmpty(envPath)) 832if (string.IsNullOrEmpty(resolvedDotnetHostPath))
BackEnd\Components\Logging\BuildErrorTelemetryTracker.cs (2)
136if (string.IsNullOrEmpty(errorCode)) 142if (!string.IsNullOrEmpty(subcategory) && IsCompilerPrefix(subcategory!))
BackEnd\Components\Logging\LoggingService.cs (2)
331if (!String.IsNullOrEmpty(queueCapacityEnvironment)) 1443string.IsNullOrEmpty(taskParameterEventArgs.ProjectFile) &&
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
426if (!string.IsNullOrEmpty(outputFilePath))
BackEnd\Components\Logging\ProjectTelemetry.cs (1)
102if (!string.IsNullOrEmpty(baseTypeName) &&
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
602if (string.IsNullOrEmpty(targetNames)) 679if (string.IsNullOrEmpty(targetNames)) 697if (string.IsNullOrEmpty(targetNames)) 708if (string.IsNullOrEmpty(targetNames))
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
69if (string.IsNullOrEmpty(typeName))
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (1)
88if (!String.IsNullOrEmpty(value))
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (3)
85if (!String.IsNullOrEmpty(child.KeepMetadata)) 94if (!String.IsNullOrEmpty(child.RemoveMetadata)) 103if (!String.IsNullOrEmpty(child.MatchOnMetadata))
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (8)
246if (!String.IsNullOrEmpty(RemoveProperties)) 553if (!String.IsNullOrEmpty(projects[i].GetMetadata(ItemMetadataNames.PropertiesMetadataName))) 576if (!String.IsNullOrEmpty(projectUndefineProperties)) 597if (!String.IsNullOrEmpty(projects[i].GetMetadata(ItemMetadataNames.AdditionalPropertiesMetadataName))) 630if (!String.IsNullOrEmpty(projects[i].GetMetadata("ToolsVersion"))) 697if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceProjectFile))) 704if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceTargetName))) 722if (string.IsNullOrEmpty(value))
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
105LoggingContext.ProcessPropertyWrite(new PropertyWriteInfo(property.Name, string.IsNullOrEmpty(evaluatedValue), property.Location));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
739if (string.IsNullOrEmpty(Thread.CurrentThread.Name))
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
487if (dependencyResult != DependencyAnalysisResult.SkipUpToDate && _host.BuildParameters.Question && !string.IsNullOrEmpty(_target.Inputs) && !string.IsNullOrEmpty(_target.Outputs)) 611if (!String.IsNullOrEmpty(targetReturns)) 913if (!string.IsNullOrEmpty(_target.Returns))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
282if (!String.IsNullOrEmpty(taskOutputSpecification.Condition)) 288if (!String.IsNullOrEmpty(_taskNode.Condition)) 293if (!String.IsNullOrEmpty(_taskNode.ContinueOnError)) 1242if (!String.IsNullOrEmpty(taskParameterValue))
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1251if (!string.IsNullOrEmpty(results[i].SchedulerInducedError))
BackEnd\Components\Scheduler\Scheduler.cs (7)
230if (!String.IsNullOrEmpty(_schedulingUnlimitedVariable)) 239if (!String.IsNullOrEmpty(strNodeLimitOffset)) 267if (string.IsNullOrEmpty(_debugDumpDirectory)) 374Assumed.True(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target"); 379Assumed.True(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target"); 400Assumed.True(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target"); 917if (!String.IsNullOrEmpty(customScheduler))
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
100if (String.IsNullOrEmpty(planName)) 149if (String.IsNullOrEmpty(planName))
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (6)
122if ((string.IsNullOrEmpty(rootFolder) || !FileUtilities.DirectoryExistsNoThrow(rootFolder)) && AdditionalResolversFolder == null) 154if (!string.IsNullOrEmpty(rootFolder) && FileUtilities.DirectoryExistsNoThrow(rootFolder)) 191if (!string.IsNullOrEmpty(pathToManifest) && !FileUtilities.FileExistsNoThrow(pathToManifest)) 205if (manifest == null || string.IsNullOrEmpty(manifest.Path)) 216if (string.IsNullOrEmpty(manifest.Path) || !FileUtilities.FileExistsNoThrow(manifest.Path)) 228if (string.IsNullOrEmpty(assemblyPath) || !FileUtilities.FileExistsNoThrow(assemblyPath))
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
91if (String.IsNullOrEmpty(sdk.Version))
BackEnd\Node\OutOfProcNode.cs (1)
837if (!String.IsNullOrEmpty(forwardPropertiesFromChild))
BuildCheck\API\BuildCheckResult.cs (1)
59: (!string.IsNullOrEmpty(CheckRule.HelpLinkUri) ? $"{CheckRule.HelpLinkUri} - " : null) +
BuildCheck\Checks\DoubleWritesCheck.cs (1)
106if (!string.IsNullOrEmpty(fileBeingWritten))
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
91!string.IsNullOrEmpty(s) &&
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
59if (string.IsNullOrEmpty(targetPath))
BuildCheck\Checks\SharedOutputPathCheck.cs (3)
56!string.IsNullOrEmpty(objPath) && !string.IsNullOrEmpty(absoluteBinPath) && 67if (string.IsNullOrEmpty(path))
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (2)
49!string.IsNullOrEmpty(frameworks) && 51!string.IsNullOrEmpty(framework) &&
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (1)
56!string.IsNullOrEmpty(framework ?? frameworks)
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
162string.IsNullOrEmpty(acquisitionData.ProjectPath) ? BuildEventFileInfo.Empty : new BuildEventFileInfo(acquisitionData.ProjectPath),
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
481if (string.IsNullOrEmpty(projectImportedEventArgs.ImportedProjectFile)) 581if (!string.IsNullOrEmpty(projectFullPath)) 589if (!string.IsNullOrEmpty(projectFullPath))
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (3)
72var lines = string.IsNullOrEmpty(text) ? [] : text.Split(["\r\n", "\n"], StringSplitOptions.None); 92Debug.Assert(!string.IsNullOrEmpty(sectionName)); 105Debug.Assert(!string.IsNullOrEmpty(key));
Construction\ProjectItemElement.cs (9)
105ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 127ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || Remove.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.remove); 128ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || Update.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.update); 149ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Include.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 168ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 && Include.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 191ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || RemoveMetadata.Length != 0, "OM_MatchOnMetadataOnlyApplicableToRemoveItems", ElementName, XMakeAttributes.matchOnMetadata); 211ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || MatchOnMetadata.Length != 0, "OM_MatchOnMetadataOptionsOnlyApplicableToItemsWithMatchOnMetadata", ElementName, XMakeAttributes.matchOnMetadataOptions); 232ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || RemoveMetadata.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.removeMetadata, XMakeAttributes.keepMetadata); 253ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || KeepMetadata.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata);
Construction\ProjectOutputElement.cs (5)
93ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(PropertyName), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.itemName, XMakeAttributes.propertyName); 113ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(ItemType), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.itemName, XMakeAttributes.propertyName); 142String.IsNullOrEmpty(itemType) ^ String.IsNullOrEmpty(propertyName), 152if (!String.IsNullOrEmpty(itemType))
Construction\ProjectRootElement.cs (2)
1650ErrorUtilities.VerifyThrowInvalidOperation(!string.IsNullOrEmpty(FullPath), "ValueNotSet", $"{nameof(ProjectRootElement)}.{nameof(FullPath)}"); 1997return String.IsNullOrEmpty(contents) || XmlDeclarationRegex.IsMatch(contents);
Construction\ProjectTargetElement.cs (1)
171if (String.IsNullOrEmpty(value) && !BuildParameters.KeepDuplicateOutputs)
Construction\ProjectUsingTaskElement.cs (5)
57ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(AssemblyName), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName); 74ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(AssemblyFile), "OM_EitherAttributeButNotBoth", XMakeElements.usingTask, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName); 235String.IsNullOrEmpty(assemblyFile) ^ String.IsNullOrEmpty(assemblyName), 250if (!String.IsNullOrEmpty(assemblyFile))
Construction\ProjectUsingTaskParameterElement.cs (3)
91return String.IsNullOrEmpty(typeAttribute) ? typeof(String).FullName : typeAttribute; 109return String.IsNullOrEmpty(outputAttribute) ? bool.FalseString : outputAttribute; 126return String.IsNullOrEmpty(requiredAttribute) ? bool.FalseString : requiredAttribute;
Construction\Solution\ProjectInSolution.cs (2)
338bool emptyNamespace = string.IsNullOrEmpty(mainProjectElement.NamespaceURI); 484if (string.IsNullOrEmpty(ProjectGuid))
Construction\Solution\SolutionConfigurationInSolution.cs (1)
51if (!string.IsNullOrEmpty(platformName))
Construction\Solution\SolutionFile.cs (7)
231if (string.IsNullOrEmpty(value)) 422=> !string.IsNullOrEmpty(projectModel.DisplayName) ? projectModel.DisplayName : projectModel.ActualDisplayName; 509if (!string.IsNullOrEmpty(proj.ProjectGuid)) 517=> !string.IsNullOrEmpty(solutionFolderModel.Name) ? solutionFolderModel.Name : solutionFolderModel.ActualDisplayName; 1279if (!String.IsNullOrEmpty(proj.ProjectGuid)) 1480if (!string.IsNullOrEmpty(property) && (property[0] == '"') && (property[property.Length - 1] == '"')) 1513if (String.IsNullOrEmpty(proj.ProjectName))
Construction\Solution\SolutionProjectGenerator.cs (9)
682if (String.IsNullOrEmpty(activeSolutionConfiguration)) 687if (String.IsNullOrEmpty(activeSolutionPlatform)) 1368if (String.IsNullOrEmpty(baseName)) 1412if (!String.IsNullOrEmpty(outputItem)) 1450if (!string.IsNullOrEmpty(outputItem)) 2042if (!String.IsNullOrEmpty(outputItem)) 2114if (!String.IsNullOrEmpty(outputItem)) 2248if (!string.IsNullOrEmpty(referencedWebProjectGuid)) 2277if (!String.IsNullOrEmpty(dependencyGuid))
Definition\Project.cs (3)
2547if (string.IsNullOrEmpty(itemType)) 2656if (string.IsNullOrEmpty(itemToMatch)) 2676if (elementLocation != null && !string.IsNullOrEmpty(itemSpec))
Definition\ProjectCollection.cs (2)
412if (!string.IsNullOrEmpty(parseConfigDirectory)) 415if (!string.IsNullOrEmpty(configPath) && !config.ContainsLoadedFile(configPath))
Definition\Toolset.cs (2)
331if (string.IsNullOrEmpty(expression) || ImportPropertySearchPathsTable == null) 890if (!String.IsNullOrEmpty(_overrideTasksPath))
Definition\ToolsetConfigurationReader.cs (3)
238if (string.IsNullOrEmpty(property.Value) || string.IsNullOrEmpty(property.Name)) 247.Where(path => !string.IsNullOrEmpty(path));
Definition\ToolsetReader.cs (3)
183if (!string.IsNullOrEmpty(libraryPath)) 490if (String.IsNullOrEmpty(toolsPath) && String.IsNullOrEmpty(binPath))
ElementLocation\ElementLocation.cs (1)
190if (string.IsNullOrEmpty(file) && line == 0 && column == 0)
ElementLocation\XmlDocumentWithLocation.cs (3)
366if ((!String.IsNullOrEmpty(windowsFolder) && directory.StartsWith(windowsFolder, StringComparison.OrdinalIgnoreCase)) || 367(!String.IsNullOrEmpty(FrameworkLocationHelper.programFiles32) && directory.StartsWith(FrameworkLocationHelper.programFiles32, StringComparison.OrdinalIgnoreCase)) || 368(!String.IsNullOrEmpty(FrameworkLocationHelper.programFiles64) && directory.StartsWith(FrameworkLocationHelper.programFiles64, StringComparison.OrdinalIgnoreCase)))
Errors\InvalidProjectFileException.cs (1)
253return base.Message + ((!String.IsNullOrEmpty(ProjectFile))
Evaluation\Conditionals\StringExpressionNode.cs (1)
121=> string.IsNullOrEmpty(_value);
Evaluation\Evaluator.cs (6)
256string.IsNullOrEmpty(projectRootElement.ProjectFileLocation.File) ? "(null)" : projectRootElement.ProjectFileLocation.File); 665string projectFile = string.IsNullOrEmpty(_projectRootElement.ProjectFileLocation.File) ? "(null)" : _projectRootElement.ProjectFileLocation.File; 1248if (string.IsNullOrEmpty(_projectRootElement.FullPath)) 1250SetBuiltInProperty(ReservedPropertyNames.projectDirectory, string.IsNullOrEmpty(_projectRootElement.DirectoryPath) ? 1678if (string.IsNullOrEmpty(extensionPath)) 2489if (!string.IsNullOrEmpty(importedBy)) // The full path of a project loaded from memory can be null.
Evaluation\Expander.Function.cs (1)
571if (String.IsNullOrEmpty(_remainder))
Evaluation\Expander.ItemExpander.cs (3)
221if (!string.IsNullOrEmpty(entry.Value)) 453ProjectErrorUtilities.VerifyThrowInvalidProject(!string.IsNullOrEmpty(expressionCapture.ItemType), elementLocation, "InvalidFunctionPropertyExpression"); 616if (!string.IsNullOrEmpty(entry.Value) && currentLength + entry.Value.Length > CharacterLimitPerExpansion)
Evaluation\Expander.ItemExpander.Transforms.cs (12)
107if (String.IsNullOrEmpty(item.Value)) 133if (!String.IsNullOrEmpty(result)) 160if (String.IsNullOrEmpty(item.Value)) 216if (String.IsNullOrEmpty(item.Value)) 247if (String.IsNullOrEmpty(item.Value)) 289while (!String.IsNullOrEmpty(directoryName)) 331if (String.IsNullOrEmpty(item.Value)) 375if (!String.IsNullOrEmpty(directoryName)) 418if (!String.IsNullOrEmpty(metadataValue)) 591if (!string.IsNullOrEmpty(include)) 701if (string.IsNullOrEmpty(cachedMatch)) 820if (!string.IsNullOrEmpty(metadataValue))
Evaluation\Expander.MetadataExpander.cs (2)
234!string.IsNullOrEmpty(metadataName) && 236(string.IsNullOrEmpty(itemType) || string.Equals(itemType, itemMetadata.ItemType, StringComparison.Ordinal)))
Evaluation\Expander.PropertyExpander.cs (2)
106if (((options & ExpanderOptions.ExpandProperties) == 0) || String.IsNullOrEmpty(expression)) 348if (!String.IsNullOrEmpty(propertyName))
Evaluation\Expander\ArgumentParser.cs (1)
164if (string.IsNullOrEmpty(val) || !Version.TryParse(val, out arg0))
Evaluation\Expander\WellKnownFunctions.cs (2)
108returnVal = !string.IsNullOrEmpty(FileUtilities.CurrentThreadWorkingDirectory) 820returnVal = string.IsNullOrEmpty(arg0);
Evaluation\GlobResultBuilder.cs (3)
87if (!string.IsNullOrEmpty(itemElement.Include)) 96else if (!string.IsNullOrEmpty(itemElement.Remove)) 139if (!string.IsNullOrEmpty(itemElement.Exclude))
Evaluation\IntrinsicFunctions.cs (1)
382if (String.IsNullOrEmpty(conditionValue))
Evaluation\ItemSpec.cs (2)
179if (string.IsNullOrEmpty(evaluatedItemspecEscaped)) 621if (String.IsNullOrEmpty(m))
Evaluation\ParserIgnoreConfiguration.cs (5)
95if (string.IsNullOrEmpty(filePath)) 202if (!string.IsNullOrEmpty(envValue)) 271if (string.IsNullOrEmpty(filePath)) 343if (!string.IsNullOrEmpty(elementName) && !string.IsNullOrEmpty(name))
Evaluation\Preprocessor.cs (1)
103if (!String.IsNullOrEmpty(_project.FullPath)) // Ignore in-memory projects
Evaluation\Profiler\EvaluationLocationMarkdownPrettyPrinter.cs (1)
36if (string.IsNullOrEmpty(text))
Evaluation\Profiler\EvaluationLocationTabSeparatedPrettyPrinter.cs (1)
35if (string.IsNullOrEmpty(text))
Evaluation\ProjectParser.cs (1)
941if (string.IsNullOrEmpty(element.GetAttribute(XMakeAttributes.sdkName)))
Evaluation\ProjectRootElementCache.cs (1)
88private static readonly bool s_сheckFileContent = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDCACHECHECKFILECONTENT"));
Evaluation\PropertiesUseTracker.cs (1)
80!string.IsNullOrEmpty(CurrentlyEvaluatingPropertyElementName) &&
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (2)
205if (string.IsNullOrEmpty(name)) 272loggingContext.ProcessPropertyWrite(new PropertyWriteInfo(property.Name, string.IsNullOrEmpty(property.EscapedValue), location));
Evaluation\ToolsetElement.cs (5)
77if (String.IsNullOrEmpty(msbuildSection.SectionInformation.Type) || 279if (!String.IsNullOrEmpty(element.ElementInformation.Source)) 689return String.IsNullOrEmpty(defaultValue) ? null : defaultValue; 712return String.IsNullOrEmpty(defaultValue) ? null : defaultValue; 736return String.IsNullOrEmpty(defaultValue) ? null : defaultValue;
Globbing\MSBuildGlob.cs (2)
150if (string.IsNullOrEmpty(stringToMatch)) 177if (string.IsNullOrEmpty(globRoot))
Graph\GraphBuilder.cs (1)
561if (!string.IsNullOrEmpty(innerDetail))
Graph\ProjectGraph.cs (1)
917if (string.IsNullOrEmpty(targetsString))
Graph\ProjectInterpretation.cs (6)
108if (!String.IsNullOrEmpty(projectReferenceItem.GetMetadataValue(ToolsVersionMetadataName))) 370if (!String.IsNullOrEmpty(setConfigurationString) || !String.IsNullOrEmpty(setPlatformString) || !String.IsNullOrEmpty(setTargetFrameworkString)) 462if (String.IsNullOrEmpty(propertyNameAndValuesString)) 487if (String.IsNullOrEmpty(propertyNamesString))
Instance\ImmutableProjectCollections\ImmutableProjectPropertyCollectionConverter.cs (1)
48if (string.IsNullOrEmpty(unescapedValue))
Instance\ProjectInstance.cs (9)
487Toolset = string.IsNullOrEmpty(linkedProject.ToolsVersion) ? null : linkedProject.ProjectCollection.GetToolset(linkedProject.ToolsVersion); 2996String.IsNullOrEmpty(condition) ? null : ElementLocation.EmptyLocation, 2997String.IsNullOrEmpty(inputs) ? null : ElementLocation.EmptyLocation, 2998String.IsNullOrEmpty(outputs) ? null : ElementLocation.EmptyLocation, 2999String.IsNullOrEmpty(returns) ? null : ElementLocation.EmptyLocation, 3000String.IsNullOrEmpty(keepDuplicateOutputs) ? null : ElementLocation.EmptyLocation, 3001String.IsNullOrEmpty(dependsOnTargets) ? null : ElementLocation.EmptyLocation, 3002String.IsNullOrEmpty(beforeTargets) ? null : ElementLocation.EmptyLocation, 3003String.IsNullOrEmpty(afterTargets) ? null : ElementLocation.EmptyLocation,
Instance\ProjectItemInstance.cs (4)
1425if (string.IsNullOrEmpty(metadataName)) 1561if (String.IsNullOrEmpty(destinationValue)) 1571if (String.IsNullOrEmpty(originalItemSpec)) 1595.Where(metadatum => string.IsNullOrEmpty(destinationItem.GetMetadataValueEscaped(metadatum.Key)));
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
641if (string.IsNullOrEmpty(netCoreSdkRoot)) 644if (!string.IsNullOrEmpty(ridGraphPath)) 652if (string.IsNullOrEmpty(dotnetHostPath) || string.IsNullOrEmpty(netCoreSdkRoot)) 714if (!string.IsNullOrEmpty(assemblyName) && FileClassifier.IsMicrosoftAssembly(assemblyName)) 721if (!string.IsNullOrEmpty(assemblyFile))
Instance\TaskFactories\TaskHostTask.cs (1)
317if (string.IsNullOrEmpty(taskLocation))
Instance\TaskRegistry.cs (7)
321if (String.IsNullOrEmpty(taskFactory) || taskFactory.Equals(RegisteredTaskRecord.AssemblyTaskFactory, StringComparison.OrdinalIgnoreCase) || taskFactory.Equals(RegisteredTaskRecord.TaskHostFactory, StringComparison.OrdinalIgnoreCase)) 899int nameHash = String.IsNullOrEmpty(obj.Name) ? 0 : StringComparer.OrdinalIgnoreCase.GetHashCode(obj.Name); 1155if (string.IsNullOrEmpty(taskFactory)) 1191!string.IsNullOrEmpty(_parameterGroupAndTaskBody?.InlineTaskXmlBody) || 1192(!string.IsNullOrEmpty(_taskFactoryAssemblyLoadInfo.AssemblyName) && 1194(!string.IsNullOrEmpty(_taskFactoryAssemblyLoadInfo.AssemblyFile) && 1778!String.IsNullOrEmpty(expandedType),
Logging\BaseConsoleLogger.cs (1)
883Traits.LogAllEnvironmentVariables = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGALLENVIRONMENTVARIABLES"));
Logging\BinaryLogger\BinaryLogger.cs (3)
565if (!string.IsNullOrEmpty(directory)) 728if (string.IsNullOrEmpty(parameters)) 816if (string.IsNullOrEmpty(parameters))
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1654if (string.IsNullOrEmpty(itemType))
Logging\BinaryLogger\BuildEventArgsWriter.cs (4)
1091if (item is ITaskItem taskItem && !string.IsNullOrEmpty(taskItem.ItemSpec)) 1095else if (item is string itemSpec && !string.IsNullOrEmpty(itemSpec)) 1114if (Path.IsPathRooted(itemSpec) || string.IsNullOrEmpty(projectFile)) 1120return string.IsNullOrEmpty(projectDirectory)
Logging\ConsoleLogger.cs (2)
111if (!string.IsNullOrEmpty(_parameters)) 155if (!string.IsNullOrEmpty(_parameters))
Logging\DistributedLoggers\DistributedFileLogger.cs (2)
73if (string.IsNullOrEmpty(parameterValue)) 107if (string.IsNullOrEmpty(extension))
Logging\LoggerDescription.cs (3)
97if (!string.IsNullOrEmpty(_loggerClassName) && 98!string.IsNullOrEmpty(_loggerAssembly.AssemblyFile)) 102else if (!string.IsNullOrEmpty(_loggerClassName))
Logging\ParallelLogger\ParallelConsoleLogger.cs (9)
123if (String.IsNullOrEmpty(parameterValue)) 502if (!string.IsNullOrEmpty(valuePair.Key.TargetName)) 703if (string.IsNullOrEmpty(targets)) 1470if (!String.IsNullOrEmpty(targetStartedEvent.ParentTarget)) 1481if (!String.IsNullOrEmpty(targetStartedEvent.ParentTarget)) 1540if (string.IsNullOrEmpty(targetNames)) 1556if (string.IsNullOrEmpty(targetNames)) 1716if (!string.IsNullOrEmpty(projectTargetNames)) 1742if (!string.IsNullOrEmpty(projectTargetNames))
Logging\ParallelLogger\ParallelLoggerHelpers.cs (1)
158stackTrace[stackTrace.Length - i - 1] = !string.IsNullOrEmpty(projectStartedEvent.TargetNames) ?
Logging\TerminalLogger\TerminalLogger.cs (9)
322tlpArg.AddRange(tlpMatches.OfType<Match>().Select(m => m.Groups["value"].Value).Where(v => !string.IsNullOrEmpty(v))); 329clpArg.AddRange(clpMatches.OfType<Match>().Select(m => m.Groups["value"].Value).Where(v => !string.IsNullOrEmpty(v))); 533if (String.IsNullOrEmpty(parameterValue)) 988(null, _) => string.IsNullOrEmpty(linkText) ? null : linkText, 1151.FirstOrDefault(root => !string.IsNullOrEmpty(root.GetMetadata("SourceControl"))) 1716if (string.IsNullOrEmpty(file)) 1755if (!string.IsNullOrEmpty(subcategory)) 1761if (!string.IsNullOrEmpty(category)) 1767if (!string.IsNullOrEmpty(code))
Resources\MSBuildAssemblyFileVersion.cs (1)
46if (String.IsNullOrEmpty(versionString) || !Version.TryParse(versionString, out version))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
30return !string.IsNullOrEmpty(debugPath)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 97return string.IsNullOrEmpty(id)
src\msbuild\src\Shared\PlatformNegotiation.cs (8)
26if (string.IsNullOrEmpty(projectReferencePlatformsMetadata) && string.IsNullOrEmpty(referencedProjectPlatform)) 45if (!string.IsNullOrEmpty(overridePlatformValue)) 51else if (!string.IsNullOrEmpty(referencedProjectPlatform) && referencedProjectPlatform.Equals(currentProjectPlatform, StringComparison.OrdinalIgnoreCase)) 92if (!string.IsNullOrEmpty(referencedProjectPlatform) && referencedProjectPlatform.Equals(buildProjectReferenceAs, StringComparison.OrdinalIgnoreCase)) 101if (string.IsNullOrEmpty(stringTable)) 113if (keyVal.Length != 2 || string.IsNullOrEmpty(keyVal[0]) || string.IsNullOrEmpty(keyVal[1]))
src\msbuild\src\Shared\TaskLoggingHelper.cs (5)
383bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 440bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 722bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 1050bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 1385if (string.IsNullOrEmpty(origin))
src\msbuild\src\Shared\TaskParameter.cs (5)
630if (!string.IsNullOrEmpty(recursiveDirEscaped)) 639if (!string.IsNullOrEmpty(recursiveDir)) 800.Where(metadatum => string.IsNullOrEmpty(destinationItem.GetMetadata(metadatum.Key))); 818if (String.IsNullOrEmpty(value)) 825if (String.IsNullOrEmpty(originalItemSpec))
src\msbuild\src\Shared\Tracing.cs (1)
61if (!String.IsNullOrEmpty(val) && System.Double.TryParse(val, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out seconds))
src\msbuild\src\Shared\TypeLoader.cs (2)
267if (string.IsNullOrEmpty(assemblyFilePath) || !File.Exists(assemblyFilePath)) 585if (!string.IsNullOrEmpty(typeName))
Utilities\EngineFileUtilities.cs (1)
573if (string.IsNullOrEmpty(wildCards))
Utilities\FileSpecMatchTester.cs (5)
24Debug.Assert(!string.IsNullOrEmpty(unescapedFileSpec)); 59Debug.Assert(!string.IsNullOrEmpty(fileToMatch)); 79Debug.Assert(!string.IsNullOrEmpty(normalizedFileToMatch)); 122if (string.IsNullOrEmpty(fixedDirPart) && FileMatcher.IsRecursiveDirectoryMatch(wildcardDirectoryPart)) 130var normalizedFixedDirPart = string.IsNullOrEmpty(absoluteFixedDirPart)
Utilities\Utilities.cs (9)
407if (!String.IsNullOrEmpty(toolsVersionFromProject)) 429if (!String.IsNullOrEmpty(s_defaultToolsVersionFromEnvironment)) 448if (!String.IsNullOrEmpty(defaultOverrideToolsVersion) && getToolset(defaultOverrideToolsVersion) != null) 477!String.IsNullOrEmpty(toolsVersionFromProject) && 558if (String.IsNullOrEmpty(localAppData)) 563if (String.IsNullOrEmpty(localAppData)) 568if (String.IsNullOrEmpty(localAppData)) 706if (item is IProperty property && !string.IsNullOrEmpty(property.Name)) 710else if (item is DictionaryEntry dictionaryEntry && dictionaryEntry.Key is string key && !string.IsNullOrEmpty(key))
Xml\ProjectXmlUtilities.cs (1)
91else if (string.IsNullOrEmpty(element.NamespaceURI))
Xml\XmlReaderExtension.cs (1)
113return !string.IsNullOrEmpty(encodingAttributeString)
Microsoft.Build.Framework (126)
BackEnd\CommunicationsUtilities.cs (2)
625if (!isNetTaskHostWorkerNode && !string.IsNullOrEmpty(architectureFlagToSet)) 792if (!string.IsNullOrEmpty(s_debugDumpPath))
BackEnd\Handshake.cs (1)
192if (!NativeMethods.IsWindows || string.IsNullOrEmpty(path) || path!.Length < 2 || path[1] != ':')
BuildEnvironmentHelper.cs (11)
122if (string.IsNullOrEmpty(msbuildExePath)) 159if (string.IsNullOrEmpty(sdkRoot)) 229!string.IsNullOrEmpty(processPath) && processPath.EndsWith(Constants.MSBuildExecutableName, StringComparison.OrdinalIgnoreCase); 256if (!string.IsNullOrEmpty(msBuildPath)) 306if (string.IsNullOrEmpty(vsInstallDir) || string.IsNullOrEmpty(vsVersion) || 362if (string.IsNullOrEmpty(appContextBaseDirectory)) 375if (!string.IsNullOrEmpty(msBuildExePath) && FileSystems.Default.FileExists(msBuildExePath)) 432if (string.IsNullOrEmpty(processFileName)) 462return string.IsNullOrEmpty(entryAssemblyPath) ? processName : entryAssemblyPath; 592if (!string.IsNullOrEmpty(currentMSBuildExePath))
BuildEnvironmentState.cs (2)
33if (!string.IsNullOrEmpty(msbuildHostName)) 38if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("VSCODE_CWD"))
BuildException\BuildExceptionBase.cs (2)
40public override string? StackTrace => string.IsNullOrEmpty(_remoteStackTrace) ? base.StackTrace : _remoteStackTrace; 42public override string ToString() => string.IsNullOrEmpty(_remoteTypeName) ? base.ToString() : $"{_remoteTypeName}->{base.ToString()}";
ChangeWaves.cs (1)
138if (string.IsNullOrEmpty(msbuildDisableFeaturesFromVersion))
Coordinator\CoordinatorSettings.cs (1)
114string pipeName = !string.IsNullOrEmpty(pipeNameOverride)
DebugTrace.cs (1)
19private static readonly bool s_enabled = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDENABLEDEBUGTRACING"));
DotnetHostEnvironmentHelper.cs (2)
87if (string.IsNullOrEmpty(dotnetRoot)) 141if (!string.IsNullOrEmpty(dotnetHostPath))
EncodingUtilities.cs (1)
245string useUtf8 = string.IsNullOrEmpty(encodingSpecification) ? EncodingUtilities.UseUtf8Detect : encodingSpecification;
EnvironmentUtilities.cs (2)
128return !string.IsNullOrEmpty(value) && int.TryParseInvariant(value, out int result) 147return !string.IsNullOrEmpty(value) || defaultValue;
FileClassifier.cs (4)
125if (!string.IsNullOrEmpty(programFiles)) 297if (!string.IsNullOrEmpty(path)) 333return string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/'); // .Replace("//", "/"); 401if (string.IsNullOrEmpty(filePath))
FileSystem\NativeWin32Exception.cs (1)
56if (!string.IsNullOrEmpty(messagePrefix))
FileUtilities_TempFiles.cs (1)
186if (string.IsNullOrEmpty(fileName))
FileUtilities.cs (15)
199return string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == WindowsDirectorySeparator ? path : path.Replace(WindowsDirectorySeparator, UnixDirectorySeparator); 272if (string.IsNullOrEmpty(path.Value)) 300if (string.IsNullOrEmpty(path.Value)) 328if (string.IsNullOrEmpty(path.Value)) 350if (string.IsNullOrEmpty(path.Value) || !HasWindowsDirectorySeparatorOnUnix(path.Value)) 382if (string.IsNullOrEmpty(workingDir) || string.IsNullOrEmpty(path)) 542if (!string.IsNullOrEmpty(path)) 713return string.IsNullOrEmpty(path) ? path : path.Replace('\\', '/'); 731if (NativeMethods.IsWindows || string.IsNullOrEmpty(value) 840if (string.IsNullOrEmpty(baseDirectory)) 925Debug.Assert(!String.IsNullOrEmpty(extension) && extension[0] == '.'); 1314if (String.IsNullOrEmpty(filename)) 1687return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file); 1692if (!string.IsNullOrEmpty(directoryPath) && !DefaultFileSystem.DirectoryExists(directoryPath))
ItemSpecModifiers.cs (2)
440if (string.IsNullOrEmpty(definingProjectEscaped)) 573!string.IsNullOrEmpty(directory) && FileUtilities.IsSlash(directory[0]),
Loader\CoreCLRAssemblyLoader.cs (1)
175foreach (string cultureSubfolder in string.IsNullOrEmpty(assemblyName.CultureName)
Loader\LoadedType.cs (1)
65Path = string.IsNullOrEmpty(loadedAssemblyLocation)
Loader\MSBuildLoadContext.cs (1)
76foreach (var cultureSubfolder in string.IsNullOrEmpty(assemblyName.CultureName)
Logging\AnsiDetector.cs (1)
39if (string.IsNullOrEmpty(termType))
NativeMethods.cs (1)
1322if (IsWindows || string.IsNullOrEmpty(path))
PathHelpers\AbsolutePath.cs (1)
137|| string.IsNullOrEmpty(combined)
Polyfills\StringExtensions.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
ProjectStartedEventArgs.cs (1)
541if (!string.IsNullOrEmpty(TargetNames))
SolutionConfiguration.cs (3)
72if (!string.IsNullOrEmpty(projectGuid)) 75if (!string.IsNullOrEmpty(projectAbsolutePath)) 124if (!string.IsNullOrEmpty(xmlString))
TargetStartedEventArgs.cs (2)
182if (!string.IsNullOrEmpty(parentTarget)) 193if (!string.IsNullOrEmpty(parentTarget))
TaskItem_T.cs (2)
59if (string.IsNullOrEmpty(itemSpec)) 74return !string.IsNullOrEmpty(fullPath) ? fullPath : itemSpec;
Telemetry\CrashTelemetry.cs (4)
775if (string.IsNullOrEmpty(originNamespace)) 837if (string.IsNullOrEmpty(message)) 897if (string.IsNullOrEmpty(stackTrace)) 967if (string.IsNullOrEmpty(frame))
Telemetry\TelemetryDataUtils.cs (1)
118if (string.IsNullOrEmpty(factoryName))
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
59string.IsNullOrEmpty(taskFactoryName) ? null : taskFactoryName, 60string.IsNullOrEmpty(taskHostRuntime) ? null : taskHostRuntime));
Traits.cs (25)
31DebugScheduler = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDDEBUGSCHEDULER")); 32DebugNodeCommunication = DebugEngine || !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDDEBUGCOMM")); 57public readonly bool UseLazyWildCardEvaluation = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildSkipEagerWildCardEvaluationRegexes")); 58public readonly bool LogExpandedWildcards = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGEXPANDEDWILDCARDS")); 65public readonly bool CacheFileExistence = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildCacheFileExistence")); 67public readonly bool UseSimpleProjectRootElementCacheConcurrency = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildUseSimpleProjectRootElementCacheConcurrency")); 72public readonly bool MSBuildCacheFileEnumerations = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildCacheFileEnumerations")); 89public readonly bool ForceEvaluateAsFullFramework = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildForceEvaluateAsFullFramework")); 102public readonly bool EmitSolutionMetaproj = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildEmitSolution")); 112public readonly bool SolutionBatchTargets = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildSolutionBatchTargets")); 117public readonly bool LogPropertyFunctionsRequiringReflection = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildLogPropertyFunctionsRequiringReflection")); 122public readonly bool LogAllAssemblyLoads = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGALLASSEMBLYLOADS")); 127public static bool LogAllEnvironmentVariables = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGALLENVIRONMENTVARIABLES")); 168public readonly bool EnableRarNode = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildRarNode")); 173public readonly bool EnableCoordinator = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(UseCoordinatorEnvVarName)); 208!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildDebugEngine")) || 211!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDDEBUGENGINE"))); 214public readonly bool DebugUnitTests = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildDebugUnitTests")); 241public readonly bool SlnParsingWithSolutionPersistenceOptIn = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILD_PARSE_SLN_WITH_SOLUTIONPERSISTENCE")); 255public readonly bool DoNotSendDeferredMessagesToBuildManager = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildDoNotSendDeferredMessagesToBuildManager")); 261public readonly bool DoNotExpandQualifiedMetadataInUpdateOperation = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildDoNotExpandQualifiedMetadataInUpdateOperation")); 321_logProjectImports = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGIMPORTS")); 358if (!string.IsNullOrEmpty(variable)) 409public readonly bool WarnOnUninitializedProperty = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY")); 509if (string.IsNullOrEmpty(value))
Utilities\AssemblyLoadInfo.cs (2)
28(!string.IsNullOrEmpty(assemblyName)) || (!string.IsNullOrEmpty(assemblyFile)),
Utilities\EventArgsFormatting.cs (2)
231if (string.IsNullOrEmpty(file)) 284if (!string.IsNullOrEmpty(subcategory))
Utilities\FileMatcher.cs (3)
2347if (string.IsNullOrEmpty(aString)) 2672&& string.IsNullOrEmpty(projectDirectory) 3594FileMatcher.Normalize(Path.GetFullPath(string.IsNullOrEmpty(directory) ? "." : directory));
Utilities\FrameworkLocationHelper.cs (12)
831if (!string.IsNullOrEmpty(prefix) && prefix[0] is 'v' or 'V') 844if (!String.IsNullOrEmpty(complusInstallRoot) && !String.IsNullOrEmpty(complusVersion)) 937if (String.IsNullOrEmpty(programFilesX86)) 977if (!String.IsNullOrEmpty(combinedPath)) 1039if (!String.IsNullOrEmpty(frameworkName.Profile)) 1445if (string.IsNullOrEmpty(currentRuntimePath)) 1474if (!string.IsNullOrEmpty(generatedPathToDotNetFramework)) 1499if (!string.IsNullOrEmpty(frameworkPath)) 1504if (!string.IsNullOrEmpty(frameworkPath) && FileSystems.Default.DirectoryExists(frameworkPath)) 1566if (string.IsNullOrEmpty(generatedPathToDotNetFrameworkSdkTools)) 1572if (!string.IsNullOrEmpty(generatedPathToDotNetFrameworkSdkTools))
Utilities\MetadataConversionUtilities.cs (1)
31if (string.IsNullOrEmpty(metadataValue))
Utilities\ProcessExtensions.cs (1)
76if (string.IsNullOrEmpty(value))
Utilities\TaskFactoryUtilities.cs (8)
58public bool IsValid => string.IsNullOrEmpty(AssemblyPath) || FileUtilities.FileExistsNoThrow(AssemblyPath); 79if (string.IsNullOrEmpty(assemblyPath)) 103if (string.IsNullOrEmpty(assemblyPath)) 141if (!string.IsNullOrEmpty(assemblyPath) && FileSystems.Default.FileExists(assemblyPath)) 144if (!string.IsNullOrEmpty(directory) && seenDirectories.Add(directory!)) 162if (string.IsNullOrEmpty(assemblyPath)) 182if (string.IsNullOrEmpty(taskLocation)) 260if (!string.IsNullOrEmpty(assemblyName.CultureName))
Microsoft.Build.Tasks.CodeAnalysis (33)
src\roslyn\src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (2)
215if (!String.IsNullOrEmpty(splits[i].Trim())) 302if (!string.IsNullOrEmpty(argument))
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (7)
160if (!string.IsNullOrEmpty(value)) 312var interceptorsNamespacesIsNullOrEmpty = string.IsNullOrEmpty(interceptorsNamespaces); 313var interceptorsPreviewNamespacesIsNullOrEmpty = string.IsNullOrEmpty(interceptorsPreviewNamespaces); 381if (string.IsNullOrEmpty(aliasString)) 658if (!string.IsNullOrEmpty(Win32Manifest)) 676if (!string.IsNullOrEmpty(ApplicationConfiguration)) 689if (!string.IsNullOrEmpty(PreferredUILang) && !string.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
109return string.IsNullOrEmpty(FileName.ItemSpec) ? true : WriteMSBuildEditorConfig();
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (6)
566var pipeName = !string.IsNullOrEmpty(SharedCompilationId) 603if (!string.IsNullOrEmpty(ProjectName)) 605return string.IsNullOrEmpty(TargetFramework) 634if (string.IsNullOrEmpty(workingDirectory)) 1285if (string.IsNullOrEmpty(win32Manifest) && string.IsNullOrEmpty(Win32Resource))
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
59protected bool UsingBuiltinTool => string.IsNullOrEmpty(ToolPath) && (ToolExe == ToolName || ToolExe == AppHostToolName);
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (6)
78return string.IsNullOrEmpty(path) ? path : EnsureEndsWithSlash(Utilities.GetFullPathNoThrow(path)); 138if (!string.IsNullOrEmpty(root.GetMetadata(Names.SourceControl)) == sourceControlled) 142if (string.IsNullOrEmpty(nestedRoot)) 178if (!string.IsNullOrEmpty(nestedRoot)) 234if (!string.IsNullOrEmpty(leftValue) && !string.IsNullOrEmpty(rightValue) && leftValue != rightValue)
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
25=> string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/');
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (5)
297if (RoslynString.IsNullOrEmpty(PdbFile) || String.IsNullOrEmpty(outputAssembly)) 935if (!String.IsNullOrEmpty(ModuleAssemblyName)) 945if (!String.IsNullOrEmpty(Win32Manifest)) 957else if (!String.IsNullOrEmpty(LangVersion) && !UsedCommandLineTool) 982if (!String.IsNullOrEmpty(PreferredUILang) && !String.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
67if (string.IsNullOrEmpty(directoryName))
Microsoft.Build.Tasks.Core (461)
AddToWin32Manifest.cs (3)
97if (string.IsNullOrEmpty(ApplicationManifest.ItemSpec)) 230if (string.IsNullOrEmpty(winSettingsNode.GetAttribute(XMakeAttributes.xmlns))) 260return !string.IsNullOrEmpty(prefix)
AppConfig\BindingRedirect.cs (2)
41ErrorUtilities.VerifyThrowArgument(!String.IsNullOrEmpty(oldVersion), "AppConfig.BindingRedirectMissingOldVersion"); 72ErrorUtilities.VerifyThrowArgument(!String.IsNullOrEmpty(newVersionAttribute), "AppConfig.BindingRedirectMissingNewVersion");
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigCache.cs (1)
51.Where(assemblyFolder => !string.IsNullOrEmpty(assemblyFolder.DirectoryPath))
AssemblyDependency\AssemblyInformation.cs (2)
314if (!String.IsNullOrEmpty(fullPath) && fileExists(fullPath)) 317if (!String.IsNullOrEmpty(imageRuntimeVersion))
AssemblyDependency\GenerateBindingRedirects.cs (4)
103new XAttribute("culture", String.IsNullOrEmpty(redirect.Key.CultureName) ? "neutral" : redirect.Key.CultureName)), 171if (String.IsNullOrEmpty(cultureString)) 177if (!String.IsNullOrEmpty(culture) && 304String.IsNullOrEmpty(newCulture) ? "neutral" : newCulture),
AssemblyDependency\HintPathResolver.cs (1)
46if (!string.IsNullOrEmpty(hintPath) && !FileUtilities.PathIsInvalid(hintPath))
AssemblyDependency\Reference.cs (10)
501if (string.IsNullOrEmpty(_fullPath)) 536if ((string.IsNullOrEmpty(_directoryName)) && (!string.IsNullOrEmpty(_fullPath))) 556if ((string.IsNullOrEmpty(_fileNameWithoutExtension)) && (!string.IsNullOrEmpty(_fullPath))) 571if ((string.IsNullOrEmpty(_fullPathWithoutExtension)) && (!string.IsNullOrEmpty(_fullPath))) 894if (!string.IsNullOrEmpty(executableExtension)) 1100primaryReference.FoundInGac = !string.IsNullOrEmpty(getAssemblyPathInGac(primaryAssemblyName, targetProcessorArchitecture, getRuntimeVersion, targetedRuntimeVersion, fileExists, true, false)); 1132FoundInGac = !string.IsNullOrEmpty(getAssemblyPathInGac(assemblyName, targetProcessorArchitecture, getRuntimeVersion, targetedRuntimeVersion, fileExists, true, false));
AssemblyDependency\ReferenceTable.cs (12)
761string finalName = string.IsNullOrEmpty(fusionName) ? itemSpec : fusionName; 868if (string.IsNullOrEmpty(version)) 874if (string.IsNullOrEmpty(publicKeyToken)) 880if (string.IsNullOrEmpty(name)) 964if (!String.IsNullOrEmpty(implementationFile) && Path.GetExtension(implementationFile) == ".dll") 1264if (!String.IsNullOrEmpty(parentReferenceResolvedSearchPath)) 1295if (assemblyName == null && !string.IsNullOrEmpty(rawFileNameCandidate) && reference.IsPrimary && reference.ExternallyResolved) 1298isImmutableFrameworkReference = !string.IsNullOrEmpty(frameworkReferenceName); 2805if (!string.IsNullOrEmpty(reference.ResolvedSearchPath)) 2814if (!string.IsNullOrEmpty(reference.RedistName)) 2827if (!string.IsNullOrEmpty(reference.ImageRuntime)) 2843if (string.IsNullOrEmpty(referenceSourceTarget))
AssemblyDependency\ResolveAssemblyReference.cs (16)
720if (!string.IsNullOrEmpty(value)) 1156if (string.IsNullOrEmpty(path)) 1192if (string.IsNullOrEmpty(path)) 1383assemblyIdentityAttributes.Add(new XAttribute("culture", String.IsNullOrEmpty(idealRemappingPartialAssemblyName.CultureName) ? "neutral" : idealRemappingPartialAssemblyName.CultureName)); 1790if (!string.IsNullOrEmpty(metadataValue)) 2344if (!String.IsNullOrEmpty(_targetedFrameworkMoniker)) 2399bool targetingProfile = !String.IsNullOrEmpty(ProfileName) && ((_fullFrameworkFolders.Length > 0) || (FullFrameworkAssemblyTables.Length > 0)); 2623subsetOrProfileName = targetingSubset && String.IsNullOrEmpty(_targetedFrameworkMoniker) ? subsetOrProfileName : _targetedFrameworkMoniker; 2963if (String.IsNullOrEmpty(item.GetMetadata("FrameworkDirectory"))) 3023if (!String.IsNullOrEmpty(subset)) 3035if (!String.IsNullOrEmpty(fileName)) 3038if (!String.IsNullOrEmpty(fileNameNoExtension)) 3058bool profileNameIsSet = !String.IsNullOrEmpty(ProfileName); 3246if (String.IsNullOrEmpty(frameworkDirectory)) 3275if (!String.IsNullOrEmpty(version)) 3311if (!string.IsNullOrEmpty(subType))
AssemblyDependency\Resolver.cs (2)
382if (!string.IsNullOrEmpty(weakNameBaseExtension) && !string.IsNullOrEmpty(weakNameBaseFileName))
AssignCulture.cs (4)
152if (RespectAlreadyAssignedItemCulture && !string.IsNullOrEmpty(existingCulture)) 170!string.IsNullOrEmpty(existingCulture) && 176if (string.IsNullOrEmpty(info.culture)) 182if (!string.IsNullOrEmpty(info.culture))
AssignLinkMetadata.cs (2)
52String.IsNullOrEmpty(item.GetMetadata("Link")) 53&& !String.IsNullOrEmpty(definingProject)
AssignProjectConfiguration.cs (6)
185if (!String.IsNullOrEmpty(SolutionConfigurationContents)) 216if (!String.IsNullOrEmpty(globalPropertiesToRemove)) 266if (!String.IsNullOrEmpty(SolutionConfigurationContents)) 303if (!string.IsNullOrEmpty(projectConfiguration)) 374if (!String.IsNullOrEmpty(VcxToDefaultPlatformMapping)) 379if (!String.IsNullOrEmpty(DefaultToVcxPlatformMapping))
AssignTargetPath.cs (2)
107if (string.IsNullOrEmpty(targetPath)) 112if (string.IsNullOrEmpty(targetPath))
BootstrapperUtil\BootstrapperBuilder.cs (15)
35private static readonly bool s_logging = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("VSPLOG")); 146if (String.IsNullOrEmpty(settings.OutputPath)) 157if (String.IsNullOrEmpty(settings.Culture)) 161if (String.IsNullOrEmpty(settings.FallbackCulture)) 166if (String.IsNullOrEmpty(settings.Culture) || settings.Culture == "*") 403if (!String.IsNullOrEmpty(url)) 437if (String.IsNullOrEmpty(settings.Culture) || settings.Culture == "*") 1019if (!String.IsNullOrEmpty(cultureAttribute?.Value)) 1071if (!String.IsNullOrEmpty(productCode)) 1418if (packageFileSource != null && !String.IsNullOrEmpty(eulaAttribute?.Value) && packageFileSource.Value == eulaAttribute.Value) 1524if (eulas != null && !String.IsNullOrEmpty(eulaAttribute?.Value)) 1925if (!String.IsNullOrEmpty(settings.ApplicationName) || !String.IsNullOrEmpty(settings.ApplicationFile)) 1928if (!String.IsNullOrEmpty(settings.ApplicationName)) 1934if (!String.IsNullOrEmpty(settings.ApplicationFile))
BootstrapperUtil\BuildMessage.cs (1)
31if (!String.IsNullOrEmpty(HelpCode))
BootstrapperUtil\Product.cs (1)
159if (String.IsNullOrEmpty(package?.Culture))
BootstrapperUtil\Util.cs (13)
46if (String.IsNullOrEmpty(path)) 90if (String.IsNullOrEmpty(s_defaultPath)) 93s_defaultPath = String.IsNullOrEmpty(probed) ? Directory.GetCurrentDirectory() : probed; 106if (String.IsNullOrEmpty(visualStudioVersion)) 112return !String.IsNullOrEmpty(probed) ? probed : Directory.GetCurrentDirectory(); 120string normalized = String.IsNullOrEmpty(visualStudioVersion) 125return !String.IsNullOrEmpty(defaultPath) ? defaultPath : projectDirectory; 158if (!String.IsNullOrEmpty(p)) 168if (!String.IsNullOrEmpty(defaultPath)) 174if (!String.IsNullOrEmpty(defaultPath)) 180if (!String.IsNullOrEmpty(defaultPath)) 214if (!string.IsNullOrEmpty(path)) 223if (!string.IsNullOrEmpty(BuildEnvironmentHelper.Instance.MSBuildExtensionsPath))
CombineTargetFrameworkInfoProperties.cs (1)
42if ((!UseAttributeForTargetFrameworkInfoPropertyNames && string.IsNullOrEmpty(RootElementName)) || (UseAttributeForTargetFrameworkInfoPropertyNames && RootElementName == null))
CommandLineBuilderExtension.cs (2)
209if (!String.IsNullOrEmpty(s.Trim())) 251if (!string.IsNullOrEmpty(metadataValue))
Copy.cs (1)
288if (!string.IsNullOrEmpty(destinationFolder) && !_directoriesKnownToExist.ContainsKey(destinationFolder))
CreateCSharpManifestResourceName.cs (10)
102if (string.IsNullOrEmpty(embeddedFileName)) 110if (!string.IsNullOrEmpty(culture) && enableCustomCulture) 123if (!string.IsNullOrEmpty(culture)) 141if (!string.IsNullOrEmpty(result.Name)) 146if (!string.IsNullOrEmpty(info.culture)) 159if (!string.IsNullOrEmpty(rootNamespace)) 177if (!string.IsNullOrEmpty(directoryName)) 190if (!string.IsNullOrEmpty(info.culture)) 203if (!string.IsNullOrEmpty(directoryName)) 217if (!string.IsNullOrEmpty(info.culture))
CreateItem.cs (2)
118if ((!PreserveExistingMetadata) || String.IsNullOrEmpty(newItem.GetMetadata(nameAndValue.Key))) 195if (!string.IsNullOrEmpty(match.wildcardDirectoryPart))
CreateManifestResourceName.cs (9)
169bool isResxFile = (!string.IsNullOrEmpty(fileType) && fileType == "Resx"); 172if (string.IsNullOrEmpty(fileType)) 178if (isResxFile && UseDependentUponConvention && string.IsNullOrEmpty(dependentUpon)) 187if (!string.IsNullOrEmpty(culture)) 204bool isDependentOnSourceFile = !string.IsNullOrEmpty(dependentUpon) && IsSourceFile(dependentUpon); 250if (string.IsNullOrEmpty(ResourceFilesWithManifestResourceNames[i].GetMetadata("LogicalName")) && 316if (string.IsNullOrEmpty(subName)) { return; } 354if (string.IsNullOrEmpty(name)) { return; } 385if (string.IsNullOrEmpty(name)) { return name; }
CreateVisualBasicManifestResourceName.cs (9)
101if (string.IsNullOrEmpty(embeddedFileName)) 109if (!string.IsNullOrEmpty(culture) && enableCustomCulture) 122if (!string.IsNullOrEmpty(culture)) 140if (!string.IsNullOrEmpty(result.Name)) 142if (!string.IsNullOrEmpty(rootNamespace)) 151if (!string.IsNullOrEmpty(info.culture)) 164if (!string.IsNullOrEmpty(rootNamespace)) 181if (!string.IsNullOrEmpty(info.culture)) 199if (!string.IsNullOrEmpty(info.culture))
Exec.cs (1)
461_workingDirectory = !string.IsNullOrEmpty(WorkingDirectory)
FormatVersion.cs (1)
47if (String.IsNullOrEmpty(Version))
GenerateApplicationManifest.cs (12)
237if (String.IsNullOrEmpty(name)) 277if (!String.IsNullOrEmpty(ConfigFile?.ItemSpec)) 282if (!String.IsNullOrEmpty(IconFile?.ItemSpec)) 287if (!String.IsNullOrEmpty(TrustInfoFile?.ItemSpec)) 324if ((!String.IsNullOrEmpty(TargetFrameworkSubset) && TargetFrameworkSubset.Equals(Constants.ClientFrameworkSubset, StringComparison.OrdinalIgnoreCase)) || 325(!String.IsNullOrEmpty(TargetFrameworkProfile) && TargetFrameworkProfile.Equals(Constants.ClientFrameworkSubset, StringComparison.OrdinalIgnoreCase))) 398else if (String.IsNullOrEmpty(manifest.Product)) 402Debug.Assert(!String.IsNullOrEmpty(manifest.Product)); 408else if (String.IsNullOrEmpty(manifest.Publisher)) 411if (!String.IsNullOrEmpty(org)) 420Debug.Assert(!String.IsNullOrEmpty(manifest.Publisher)); 451if (String.IsNullOrEmpty(InputManifest?.ItemSpec) || String.CompareOrdinal(InputManifest.ItemSpec, "NoManifest") == 0)
GenerateDeploymentManifest.cs (6)
137else if (String.IsNullOrEmpty(manifest.Product)) 141Debug.Assert(!String.IsNullOrEmpty(manifest.Product)); 147else if (String.IsNullOrEmpty(manifest.Publisher)) 151manifest.Publisher = !String.IsNullOrEmpty(org) ? org : manifest.Product; 153Debug.Assert(!String.IsNullOrEmpty(manifest.Publisher)); 270if (!String.IsNullOrEmpty(MinimumRequiredVersion) && !Util.IsValidVersion(MinimumRequiredVersion, 4))
GenerateLauncher.cs (2)
70AbsolutePath outputPath = string.IsNullOrEmpty(OutputPath) ? default : TaskEnvironment.GetAbsolutePath(OutputPath); 80!string.IsNullOrEmpty(AssemblyName))
GenerateManifestBase.cs (32)
77if (string.IsNullOrEmpty(_targetFrameworkVersion)) 100if (!String.IsNullOrEmpty(hintPath)) 180if (String.IsNullOrEmpty(name)) 182if (!String.IsNullOrEmpty(baseIdentity?.Name)) 186else if (!String.IsNullOrEmpty(entryPointIdentity?.Name)) 198if (String.IsNullOrEmpty(name)) 204if (String.IsNullOrEmpty(version)) 206if (!String.IsNullOrEmpty(baseIdentity?.Version)) 210else if (!String.IsNullOrEmpty(entryPointIdentity?.Version)) 216if (String.IsNullOrEmpty(version)) 221if (String.IsNullOrEmpty(culture)) 223if (!String.IsNullOrEmpty(baseIdentity?.Culture)) 227else if (!String.IsNullOrEmpty(entryPointIdentity?.Culture)) 233if (String.IsNullOrEmpty(culture) 240if (String.IsNullOrEmpty(_processorArchitecture)) 242if (!String.IsNullOrEmpty(baseIdentity?.ProcessorArchitecture)) 246else if (!String.IsNullOrEmpty(entryPointIdentity?.ProcessorArchitecture)) 252if (String.IsNullOrEmpty(_processorArchitecture)) 355if (String.IsNullOrEmpty(targetPath)) 384if (!String.IsNullOrEmpty(value)) 415if (!String.IsNullOrEmpty(value)) 457if (String.IsNullOrEmpty(InputManifest?.ItemSpec)) 494if (string.IsNullOrEmpty(deployManifest.TargetFrameworkMoniker)) 501if (string.IsNullOrEmpty(applicationManifest.TargetFrameworkVersion)) 507if (!String.IsNullOrEmpty(EntryPoint?.ItemSpec)) 558if (!String.IsNullOrEmpty(targetPath)) 567file.IsOptional = !String.IsNullOrEmpty(file.Group); 577if (!String.IsNullOrEmpty(AssemblyName) && !Util.IsValidAssemblyName(AssemblyName)) 582if (!String.IsNullOrEmpty(AssemblyVersion) && !Util.IsValidVersion(AssemblyVersion, 4)) 587if (!String.IsNullOrEmpty(TargetCulture) && !Util.IsValidCulture(TargetCulture)) 592if (!String.IsNullOrEmpty(Platform)) 595if (String.IsNullOrEmpty(_processorArchitecture))
GenerateResource.cs (2)
652if (String.IsNullOrEmpty(StronglyTypedLanguage)) 2604if (!String.IsNullOrEmpty(fusionName))
GetAssemblyIdentity.cs (1)
71string assemblyPath = !string.IsNullOrEmpty(item.ItemSpec)
GetInstalledSDKLocations.cs (2)
138if (String.IsNullOrEmpty(TargetPlatformVersion) || String.IsNullOrEmpty(TargetPlatformIdentifier))
GetReferenceAssemblyPaths.cs (3)
168AbsolutePath? absoluteRootPath = !string.IsNullOrEmpty(RootPath) 182targetingProfile = !String.IsNullOrEmpty(moniker.Profile); 293if (string.IsNullOrEmpty(fallbackSearchPaths))
GetSDKReferenceFiles.cs (3)
700if (!String.IsNullOrEmpty(TargetSDKIdentifier) && !String.IsNullOrEmpty(TargetSDKVersion)) 931if (!string.IsNullOrEmpty(cacheFile))
LC.cs (1)
138f => !string.IsNullOrEmpty(f)
ManifestUtil\ApplicationIdentity.cs (4)
28if (String.IsNullOrEmpty(url)) 33if (String.IsNullOrEmpty(deployManifestPath)) 38if (String.IsNullOrEmpty(applicationManifestPath)) 55if (String.IsNullOrEmpty(url))
ManifestUtil\ApplicationManifest.cs (21)
126if (String.IsNullOrEmpty(CLRPlatformAssembly.AssemblyIdentity?.Version)) 228String.IsNullOrEmpty(AssemblyIdentity.PublicKeyToken)) 234if (String.IsNullOrEmpty(OSVersion)) 280if (String.IsNullOrEmpty(_oSMajor)) 439if (assembly.ReferenceType == AssemblyReferenceType.NativeAssembly && !assembly.IsPrerequisite && !String.IsNullOrEmpty(assembly.ResolvedPath)) 446if (!String.IsNullOrEmpty(comInfo.ClsId)) 458if (!String.IsNullOrEmpty(comInfo.TlbId)) 515if (String.IsNullOrEmpty(ConfigFile)) 548bool isCorrectFileType = !String.IsNullOrEmpty(_entryPoint.TargetPath) && _entryPoint.TargetPath.EndsWith(".exe", StringComparison.OrdinalIgnoreCase); 568if (string.IsNullOrEmpty(fileAssociation.Extension) || 569string.IsNullOrEmpty(fileAssociation.Description) || 570string.IsNullOrEmpty(fileAssociation.ProgId) || 571string.IsNullOrEmpty(fileAssociation.DefaultIcon)) 575if (!string.IsNullOrEmpty(fileAssociation.Extension)) 594if (!string.IsNullOrEmpty(fileAssociation.DefaultIcon)) 605if (defaultIconReference == null || !string.IsNullOrEmpty(defaultIconReference.Group)) 647if (isPartialTrust && (assembly != EntryPoint) && !String.IsNullOrEmpty(assembly.ResolvedPath)) 653if (!assembly.IsPrerequisite && !String.IsNullOrEmpty(assembly.TargetPath)) 694!String.IsNullOrEmpty(file.ResolvedPath) && PathUtil.IsAssembly(file.ResolvedPath)) 699if (!String.IsNullOrEmpty(file.TargetPath)) 977IsSigned = !String.IsNullOrEmpty(r.PublicKeyToken);
ManifestUtil\AssemblyIdentity.cs (12)
379if (!string.IsNullOrEmpty(frameworkVersion)) 397if (string.IsNullOrEmpty(frameworkIdentifier) && version != null) 407if ((string.IsNullOrEmpty(frameworkIdentifier) || frameworkName.Identifier.Equals(frameworkIdentifier, StringComparison.OrdinalIgnoreCase)) && 452if (!String.IsNullOrEmpty(_version)) 456if (!String.IsNullOrEmpty(_culture)) 460if (!String.IsNullOrEmpty(_publicKeyToken)) 464if (!String.IsNullOrEmpty(_processorArchitecture) && (flags & FullNameFlags.ProcessorArchitecture) != 0) 468if (!String.IsNullOrEmpty(_type) && (flags & FullNameFlags.Type) != 0) 479public bool IsNeutralPlatform => String.IsNullOrEmpty(_processorArchitecture) || String.Equals(_processorArchitecture, "msil", StringComparison.OrdinalIgnoreCase); 485public bool IsStrongName => !String.IsNullOrEmpty(_name) 486&& !String.IsNullOrEmpty(_version) 487&& !String.IsNullOrEmpty(_publicKeyToken);
ManifestUtil\AssemblyReference.cs (1)
155if (!String.IsNullOrEmpty(str))
ManifestUtil\AssemblyReferenceCollection.cs (2)
78if (String.IsNullOrEmpty(name)) 155if (String.IsNullOrEmpty(targetPath))
ManifestUtil\BaseReference.cs (4)
44if (String.IsNullOrEmpty(path)) 150if (!String.IsNullOrEmpty(_sourcePath)) 155if (!String.IsNullOrEmpty(_resolvedPath)) 160if (!String.IsNullOrEmpty(_targetPath))
ManifestUtil\ConvertUtil.cs (1)
20if (!String.IsNullOrEmpty(value))
ManifestUtil\DeployManifest.cs (8)
105if (!string.IsNullOrEmpty(moniker)) 121if (string.IsNullOrEmpty(installableFrameworkName.Profile)) 224if (!String.IsNullOrEmpty(nameattr?.Value)) 425if (AssemblyIdentity != null && String.IsNullOrEmpty(AssemblyIdentity.PublicKeyToken)) 566if (!String.IsNullOrEmpty(_deploymentUrl) && PathUtil.IsLocalPath(_deploymentUrl)) 578if (!String.IsNullOrEmpty(_entryPoint.TargetPath) && !_entryPoint.TargetPath.EndsWith( 616if (!String.IsNullOrEmpty(_minimumRequiredVersion)) 679get => !String.IsNullOrEmpty(_install) ? _install.ToLower(CultureInfo.InvariantCulture) : "true"; // NOTE: Install attribute shouldn't be null in the manifest, so specify install="true" by default
ManifestUtil\FileReferenceCollection.cs (1)
78if (String.IsNullOrEmpty(targetPath))
ManifestUtil\LauncherBuilder.cs (3)
44AbsolutePath path = string.IsNullOrEmpty(outputPath) ? default : TaskEnvironment.GetAbsolutePath(outputPath); 60if (String.IsNullOrEmpty(outputPath.Value)) 66AbsolutePath launcherPath = string.IsNullOrEmpty(LauncherPath) ? default : TaskEnvironment.GetAbsolutePath(LauncherPath);
ManifestUtil\Manifest.cs (18)
160if (!String.IsNullOrEmpty(a.ResolvedPath)) 168if (!String.IsNullOrEmpty(a.ResolvedPath)) 175if (!String.IsNullOrEmpty(a.ResolvedPath)) 191if (!String.IsNullOrEmpty(f.ResolvedPath)) 197if (!String.IsNullOrEmpty(f.ResolvedPath)) 218if (!String.IsNullOrEmpty(_sourcePath)) 313if (String.IsNullOrEmpty(path)) 332if (!String.IsNullOrEmpty(searchPath)) 371return !String.IsNullOrEmpty(_sourcePath) ? _sourcePath : AssemblyIdentity.ToString(); 473else if (!String.IsNullOrEmpty(a.ResolvedPath)) 494if (string.IsNullOrEmpty(f.ResolvedPath)) 501if (string.IsNullOrEmpty(targetFrameworkVersion)) 521if (!string.IsNullOrEmpty(f.TargetPath)) 525else if (!string.IsNullOrEmpty(AssemblyName)) 537if (string.IsNullOrEmpty(f.TargetPath)) 539if (!string.IsNullOrEmpty(f.SourcePath)) 576if (!String.IsNullOrEmpty(a.ResolvedPath)) // only check resolved items... 598if (!String.IsNullOrEmpty(f.ResolvedPath)) // only check resolved items...
ManifestUtil\ManifestFormatter.cs (1)
59if (String.IsNullOrEmpty(r.Value) &&
ManifestUtil\ManifestReader.cs (1)
220if (String.IsNullOrEmpty(n))
ManifestUtil\ManifestWriter.cs (2)
110if (String.IsNullOrEmpty(n)) 118if (string.IsNullOrEmpty(targetframeWorkVersion) || Util.CompareFrameworkVersions(targetframeWorkVersion, Constants.TargetFrameworkVersion40) <= 0)
ManifestUtil\mansign2.cs (1)
751if (!string.IsNullOrEmpty(timeStampUrl))
ManifestUtil\MetadataReader.cs (2)
162if (String.IsNullOrEmpty(culture)) 199if (!String.IsNullOrEmpty(publicKeyToken))
ManifestUtil\OutputMessage.cs (2)
97if (!String.IsNullOrEmpty(taskText)) 108if (!String.IsNullOrEmpty(taskText))
ManifestUtil\PathUtil.cs (8)
22if (!String.IsNullOrEmpty(path)) 47if (String.IsNullOrEmpty(path)) 77if (String.IsNullOrEmpty(path)) 134return String.IsNullOrEmpty(u.Host); 139if (String.IsNullOrEmpty(path)) 152if (String.IsNullOrEmpty(path)) 202return !u.IsUnc && !String.IsNullOrEmpty(u.Host); 209if (String.IsNullOrEmpty(path))
ManifestUtil\SecurityUtil.cs (4)
570if (String.IsNullOrEmpty(certThumbprint)) 581if (!String.IsNullOrEmpty(targetFrameworkVersion)) 591if (String.IsNullOrEmpty(targetFrameworkIdentifier) || 671if (String.IsNullOrEmpty(path))
ManifestUtil\TrustInfo.cs (1)
114if (String.IsNullOrEmpty(idAttribute.Value))
ManifestUtil\Util.cs (6)
28internal static readonly bool logging = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("VSPLOG")); 134if (string.IsNullOrEmpty(targetFrameworkVersion)) 172if (!String.IsNullOrEmpty(targetFramework)) 229if (string.IsNullOrEmpty(targetFrameWorkVersion) || CompareFrameworkVersions(targetFrameWorkVersion, Constants.TargetFrameworkVersion40) <= 0) 284if (!String.IsNullOrEmpty(org)) 415if (String.IsNullOrEmpty(item.ItemSpec))
ManifestUtil\XmlUtil.cs (2)
25string prefix = !String.IsNullOrEmpty(r.Prefix) ? r.Prefix : nsmgr.LookupPrefix(r.NamespaceURI); 26if (!String.IsNullOrEmpty(prefix))
Message.cs (1)
53if (string.IsNullOrEmpty(Importance))
Move.cs (1)
240if (!string.IsNullOrEmpty(destinationFolder) && !FileSystems.Default.DirectoryExists(destinationFolder))
MSBuild.cs (8)
205if (!String.IsNullOrEmpty(RemoveProperties)) 503if (!String.IsNullOrEmpty(projects[i].GetMetadata("Properties"))) 522if (!String.IsNullOrEmpty(projectUndefineProperties)) 543if (!String.IsNullOrEmpty(projects[i].GetMetadata("AdditionalProperties"))) 572if (!String.IsNullOrEmpty(projects[i].GetMetadata("ToolsVersion"))) 639if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceProjectFile))) 646if (String.IsNullOrEmpty(outputItemFromTarget.GetMetadata(ItemMetadataNames.msbuildSourceTargetName))) 664if (string.IsNullOrEmpty(value))
NativeMethods.cs (1)
393if (!string.IsNullOrEmpty(match.Groups[1].Value))
ParserState.cs (1)
104if (!string.IsNullOrEmpty(namespacePiece))
RedistList.cs (7)
153if (!String.IsNullOrEmpty(entry?.RedistName)) 606if (!String.IsNullOrEmpty(redistName)) 641if (String.IsNullOrEmpty(redistName)) 902bool isValidEntry = !string.IsNullOrEmpty(name) && (!fullFusionNameRequired || (fullFusionNameRequired && !string.IsNullOrEmpty(version) && !string.IsNullOrEmpty(publicKeyToken) && !string.IsNullOrEmpty(culture)));
RemoveDir.cs (1)
59if (string.IsNullOrEmpty(directory.ItemSpec))
RequiresFramework35SP1Assembly.cs (3)
33if (string.IsNullOrEmpty(_targetFrameworkVersion)) 102if (string.IsNullOrEmpty(ErrorReportUrl)) 171return !string.IsNullOrEmpty(SuiteName);
ResolveCodeAnalysisRuleSet.cs (3)
79if (string.IsNullOrEmpty(CodeAnalysisRuleSet)) 88if (!string.IsNullOrEmpty(MSBuildProjectDirectory)) 115if (!string.IsNullOrEmpty(MSBuildProjectDirectory))
ResolveKeySource.cs (5)
98if (!string.IsNullOrEmpty(KeyFile)) 180if (!string.IsNullOrEmpty(CertificateThumbprint)) 209if (!string.IsNullOrEmpty(CertificateFile) && !certInStore) 278else if (!certInStore && !string.IsNullOrEmpty(CertificateFile) && !string.IsNullOrEmpty(CertificateThumbprint))
ResolveManifestFiles.cs (30)
138if (string.IsNullOrEmpty(_targetFrameworkVersion)) 151if (string.IsNullOrEmpty(_targetFrameworkIdentifier)) 250if (!String.IsNullOrEmpty(TargetCulture)) 280if (String.IsNullOrEmpty(targetPath)) 285if (!String.IsNullOrEmpty(group)) 290if (!String.IsNullOrEmpty(includeHash)) 302if (String.IsNullOrEmpty(targetPath)) 310!String.IsNullOrEmpty(AssemblyName)) 313if (String.IsNullOrEmpty(targetPath)) 324if (!String.IsNullOrEmpty(group) && !isDataFile) 329if (!String.IsNullOrEmpty(includeHash)) 350if (!String.IsNullOrEmpty(copyLocal)) 362if (String.IsNullOrEmpty(itemCulture)) 367Debug.Assert(!String.IsNullOrEmpty(itemCulture), $"Satellite item '{item.ItemSpec}' is missing expected attribute 'Culture'"); 376if (String.IsNullOrEmpty(targetPath)) 380if (String.IsNullOrEmpty(targetPath)) 417AssemblyIdentity identity = String.IsNullOrEmpty(item.ItemSpec) 546if (String.IsNullOrEmpty(itemDestPath)) 552if (String.IsNullOrEmpty(assemblyDestPath)) 691if (!string.IsNullOrEmpty(targetPath)) 697if (!string.IsNullOrEmpty(manifestEntryPointList[i].includeHash)) 776AssemblyIdentity identity = String.IsNullOrEmpty(item.ItemSpec) 802if (!String.IsNullOrEmpty(str)) 873if (String.IsNullOrEmpty(fusionName)) 876if (!String.IsNullOrEmpty(destSubDir)) 937AssemblyIdentity identity = string.IsNullOrEmpty(item.ItemSpec) 950AssemblyIdentity identity = string.IsNullOrEmpty(item.ItemSpec) 991Debug.Assert(!String.IsNullOrEmpty(targetPath)); 992if (String.IsNullOrEmpty(targetPath)) 1025if (!String.IsNullOrEmpty(value))
ResolveSDKReference.cs (42)
361if (!String.IsNullOrEmpty(reference.ProductFamilyName)) 406if (!String.IsNullOrEmpty(notCompatibleReference.ProductFamilyName)) 551if (!String.IsNullOrEmpty(dependsOnSDK)) 774public bool Resolved => !String.IsNullOrEmpty(ResolvedPath); 1028if (String.IsNullOrEmpty(SupportedArchitectures)) 1034if (String.IsNullOrEmpty(DependsOnSDK)) 1040if (String.IsNullOrEmpty(FrameworkIdentity)) 1057if (String.IsNullOrEmpty(AppxLocation)) 1072if (String.IsNullOrEmpty(PlatformIdentity)) 1078if (String.IsNullOrEmpty(MinOSVersion)) 1084if (String.IsNullOrEmpty(MaxOSVersionTested)) 1090if (String.IsNullOrEmpty(MoreInfo)) 1096if (String.IsNullOrEmpty(MaxPlatformVersion)) 1102if (String.IsNullOrEmpty(TargetPlatform)) 1108if (String.IsNullOrEmpty(TargetPlatformMinVersion)) 1114if (String.IsNullOrEmpty(TargetPlatformVersion)) 1120if (String.IsNullOrEmpty(sdkTypeFromMetadata)) 1131if (String.IsNullOrEmpty(DisplayName)) 1137if (String.IsNullOrEmpty(SupportPrefer32Bit)) 1143if (String.IsNullOrEmpty(CopyRedistToSubDirectory)) 1149if (String.IsNullOrEmpty(ProductFamilyName)) 1165return !String.IsNullOrEmpty(multipleVersionsValue) && Enum.TryParse<MultipleVersionSupport>(multipleVersionsValue, /*ignoreCase*/true, out _supportsMultipleVersions); 1177if (!String.IsNullOrEmpty(ProductFamilyName)) 1188targetArchitecture = String.IsNullOrEmpty(targetArchitecture) ? NeutralArch : targetArchitecture; 1189targetConfiguration = String.IsNullOrEmpty(targetConfiguration) ? Retail : targetConfiguration; 1213if (!string.IsNullOrEmpty(SupportedArchitectures)) 1252if (!String.IsNullOrEmpty(MaxPlatformVersion)) 1264if (!String.IsNullOrEmpty(TargetPlatform) && !String.Equals(targetPlatformIdentifier, TargetPlatform) && (!PlatformAliases.TryGetValue(TargetPlatform, out string platform) || !String.Equals(targetPlatformIdentifier, platform, StringComparison.OrdinalIgnoreCase))) 1269if (!String.IsNullOrEmpty(TargetPlatformMinVersion)) 1277if (String.Equals(NeutralArch, sdkArchitecture, StringComparison.OrdinalIgnoreCase) && !String.IsNullOrEmpty(SupportPrefer32Bit) && _prefer32BitFromProject) 1290if (String.IsNullOrEmpty(FrameworkIdentity)) 1333if (!String.IsNullOrEmpty(PlatformIdentity)) 1340if (String.IsNullOrEmpty(AppxLocation)) 1352if (!String.IsNullOrEmpty(appxLocation.Key)) 1454if (!String.IsNullOrEmpty(DisplayName)) 1460bool frameworkSDK = SDKType == SDKType.Framework || !String.IsNullOrEmpty(FrameworkIdentity); 1461bool hasPlatformIdentity = SDKType == SDKType.Platform || !String.IsNullOrEmpty(PlatformIdentity); 1499if (!String.IsNullOrEmpty(CopyRedistToSubDirectory)) 1504if (!String.IsNullOrEmpty(MaxPlatformVersion)) 1509if (!String.IsNullOrEmpty(MinOSVersion)) 1514if (!String.IsNullOrEmpty(MaxOSVersionTested)) 1519if (!String.IsNullOrEmpty(MoreInfo))
ResourceHandling\MSBuildResXReader.cs (1)
63if (string.IsNullOrEmpty(alias))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (5)
499string projectDirectory = !string.IsNullOrEmpty(projectFilePath) ? Path.GetDirectoryName(projectFilePath) : null; 726if (!string.IsNullOrEmpty(cachedEntry.AssemblyPath) && !FileUtilities.FileExistsNoThrow(cachedEntry.AssemblyPath)) 785if (!String.IsNullOrEmpty(toolExe)) 801if (!String.IsNullOrEmpty(toolExe)) 860if (!_compileForOutOfProcess && !string.IsNullOrEmpty(_assemblyPath) && FileSystems.Default.FileExists(_assemblyPath))
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
56if (string.IsNullOrEmpty(_dotnetCliPath))
SdkToolsPathUtility.cs (1)
54if (!String.IsNullOrEmpty(sdkToolsPath))
SetRidAgnosticValueForProjects.cs (1)
34if (string.IsNullOrEmpty(nearestTargetFramework))
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (6)
231if (!(String.IsNullOrEmpty(platform) && String.IsNullOrEmpty(osVersion))) 237if (!string.IsNullOrEmpty(platform)) 241if (!String.IsNullOrEmpty(platformValue) && !MatchingPlatformExists(platform, platformValue)) 247if (!string.IsNullOrEmpty(osVersion)) 275if (!string.IsNullOrEmpty(platformValue))
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersFromConfig.cs (6)
41FindDirectories(assemblyTargets, target => string.IsNullOrEmpty(target.Platform)); 48target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x64", StringComparison.OrdinalIgnoreCase)); 50target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x86", StringComparison.OrdinalIgnoreCase)); 55target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x86", StringComparison.OrdinalIgnoreCase)); 57target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x64", StringComparison.OrdinalIgnoreCase)); 63target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x86", StringComparison.OrdinalIgnoreCase));
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
30return !string.IsNullOrEmpty(debugPath)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 97return string.IsNullOrEmpty(id)
src\msbuild\src\Shared\PlatformNegotiation.cs (8)
26if (string.IsNullOrEmpty(projectReferencePlatformsMetadata) && string.IsNullOrEmpty(referencedProjectPlatform)) 45if (!string.IsNullOrEmpty(overridePlatformValue)) 51else if (!string.IsNullOrEmpty(referencedProjectPlatform) && referencedProjectPlatform.Equals(currentProjectPlatform, StringComparison.OrdinalIgnoreCase)) 92if (!string.IsNullOrEmpty(referencedProjectPlatform) && referencedProjectPlatform.Equals(buildProjectReferenceAs, StringComparison.OrdinalIgnoreCase)) 101if (string.IsNullOrEmpty(stringTable)) 113if (keyVal.Length != 2 || string.IsNullOrEmpty(keyVal[0]) || string.IsNullOrEmpty(keyVal[1]))
src\msbuild\src\Shared\TaskParameter.cs (5)
630if (!string.IsNullOrEmpty(recursiveDirEscaped)) 639if (!string.IsNullOrEmpty(recursiveDir)) 800.Where(metadatum => string.IsNullOrEmpty(destinationItem.GetMetadata(metadatum.Key))); 818if (String.IsNullOrEmpty(value)) 825if (String.IsNullOrEmpty(originalItemSpec))
src\msbuild\src\Shared\Tracing.cs (1)
61if (!String.IsNullOrEmpty(val) && System.Double.TryParse(val, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out seconds))
StateFileBase.cs (5)
46if (string.IsNullOrEmpty(stateFile)) 61if (!string.IsNullOrEmpty(stateFile)) 100if (string.IsNullOrEmpty(stateFile)) 118if (!string.IsNullOrEmpty(stateFile) && FileSystems.Default.FileExists(stateFile)) 174if (!string.IsNullOrEmpty(stateFile))
system.design\stronglytypedresourcebuilder.cs (2)
206if (!String.IsNullOrEmpty(generatedCodeNamespace)) 359else if (!string.IsNullOrEmpty(nameSpace))
SystemState.cs (2)
462if (!string.IsNullOrEmpty(path) && path.EndsWith(".dll", StringComparison.OrdinalIgnoreCase)) 521if (String.IsNullOrEmpty(fileState.RuntimeVersion))
TarDirectory.cs (1)
372if (string.IsNullOrEmpty(DeterministicTimestamp))
TaskEnvironmentExtensions.cs (2)
52result[i] = string.IsNullOrEmpty(paths[i]) 66=> string.IsNullOrEmpty(path) ? path : taskEnvironment.GetAbsolutePath(path).Value;
Telemetry.cs (1)
37if (!String.IsNullOrEmpty(EventData))
Touch.cs (2)
153if (string.IsNullOrEmpty(Importance)) 313if (string.IsNullOrEmpty(Time))
WriteCodeFragment.cs (1)
86if (String.IsNullOrEmpty(Language))
XmlTaskUtility.cs (1)
68if (string.IsNullOrEmpty(xml))
XslTransformation.cs (1)
231if (!string.IsNullOrEmpty(currentInputPath))
Microsoft.Build.Tasks.Git (7)
GitDataReader\GitEnvironment.cs (1)
115return string.IsNullOrEmpty(unixEtcDir) ? "/etc" : unixEtcDir;
GitDataReader\PathUtils.cs (2)
52Debug.Assert(!string.IsNullOrEmpty(root)); 74if (string.IsNullOrEmpty(path))
RepositoryTask.cs (2)
120if (string.IsNullOrEmpty(initialPath) || !PathUtilities.IsPathFullyQualified(initialPath)) 160=> new(typeof(RepositoryTask), (string.IsNullOrEmpty(ConfigurationScope) ? "*" : ConfigurationScope) + ":" + repositoryId);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.Build.Utilities.Core (83)
AssemblyFolders\AssemblyFoldersFromConfigInfo.cs (1)
29if (!string.IsNullOrEmpty(BuildEnvironmentHelper.Instance.VisualStudioInstallRootDirectory))
CommandLineBuilder.cs (1)
523if (string.IsNullOrEmpty(switchName))
PlatformManifest.cs (1)
71public bool ReadError => !string.IsNullOrEmpty(ReadErrorMessage);
SDKManifest.cs (1)
459=> !string.IsNullOrEmpty(multipleVersionsValue) && Enum.TryParse(multipleVersionsValue, /*ignoreCase*/true, out MultipleVersionSupport supportsMultipleVersions)
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (6)
231if (!(String.IsNullOrEmpty(platform) && String.IsNullOrEmpty(osVersion))) 237if (!string.IsNullOrEmpty(platform)) 241if (!String.IsNullOrEmpty(platformValue) && !MatchingPlatformExists(platform, platformValue)) 247if (!string.IsNullOrEmpty(osVersion)) 275if (!string.IsNullOrEmpty(platformValue))
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersFromConfig.cs (6)
41FindDirectories(assemblyTargets, target => string.IsNullOrEmpty(target.Platform)); 48target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x64", StringComparison.OrdinalIgnoreCase)); 50target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x86", StringComparison.OrdinalIgnoreCase)); 55target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x86", StringComparison.OrdinalIgnoreCase)); 57target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x64", StringComparison.OrdinalIgnoreCase)); 63target => !string.IsNullOrEmpty(target.Platform) && target.Platform.Equals("x86", StringComparison.OrdinalIgnoreCase));
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
30return !string.IsNullOrEmpty(debugPath)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 97return string.IsNullOrEmpty(id)
src\msbuild\src\Shared\TaskLoggingHelper.cs (5)
383bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 440bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 722bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 1050bool fillInLocation = (String.IsNullOrEmpty(file) && (lineNumber == 0) && (columnNumber == 0)); 1385if (string.IsNullOrEmpty(origin))
src\msbuild\src\Shared\Tracing.cs (1)
61if (!String.IsNullOrEmpty(val) && System.Double.TryParse(val, NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture.NumberFormat, out seconds))
TaskItem.cs (6)
419copiedMetadata = _metadata.SetItems(destinationMetadata.Where(entry => !String.IsNullOrEmpty(entry.Value))); 423copiedMetadata = destinationMetadata.SetItems(_metadata.Where(entry => !destinationMetadata.TryGetValue(entry.Key, out string val) || String.IsNullOrEmpty(val))); 440.Where(metadatum => string.IsNullOrEmpty(destinationAsITaskItem2.GetMetadataValueEscaped(metadatum.Key))); 463if (string.IsNullOrEmpty(value)) 472if (string.IsNullOrEmpty(value)) 481if (string.IsNullOrEmpty(originalItemSpec))
ToolLocationHelper.cs (40)
478string.IsNullOrEmpty(platformSDK.TargetPlatformIdentifier) 534string.IsNullOrEmpty(platform.TargetPlatformIdentifier) 594if (!string.IsNullOrEmpty(diskRoots)) 600if (!string.IsNullOrEmpty(extensionDiskRoots)) 838if (!string.IsNullOrEmpty(sdkRoot)) 843if (string.IsNullOrEmpty(sdkIdentifier)) 899if (string.IsNullOrEmpty(sdkIdentifier) && string.IsNullOrEmpty(sdkVersion)) 1037if (!string.IsNullOrEmpty(sdkRoot)) 1052if (!string.IsNullOrEmpty(winmdLocation)) 1173if (!string.IsNullOrEmpty(platformManifestLocation)) 1293if (!string.IsNullOrEmpty(diskRoots)) 1436var folders = string.IsNullOrEmpty(subFolder) ? vsInstallFolders : vsInstallFolders.Select(i => Path.Combine(i, subFolder)); 1456if (string.IsNullOrEmpty(minVersionString) || !Version.TryParse(minVersionString, out minVersion)) 1460if (string.IsNullOrEmpty(maxVersionString) || !Version.TryParse(maxVersionString, out maxVersion)) 1488if (!string.IsNullOrEmpty(possibleRoots)) 1565if (!string.IsNullOrEmpty(diskRoots)) 1571if (!string.IsNullOrEmpty(multiPlatformDiskRoots)) 1821if (targetFrameworkIdentifier.Equals(FrameworkLocationHelper.dotNetFrameworkIdentifier, StringComparison.OrdinalIgnoreCase) && frameworkVersion.Major < 4 && string.IsNullOrEmpty(targetFrameworkProfile)) 2184IList<string> pathsList = string.IsNullOrEmpty(targetFrameworkRootPath) 2193if (!string.IsNullOrEmpty(targetFrameworkFallbackSearchPaths)) 2242if (string.IsNullOrEmpty(frameworkName.Profile)) // profiles are always in new locations 2310if (!string.IsNullOrEmpty(frameworkName.Profile)) 2342while (!string.IsNullOrEmpty(path)) 2348if (!string.IsNullOrEmpty(path)) 2478if (!string.IsNullOrEmpty(cachedExtensionSdksKey)) 2645if (!string.IsNullOrEmpty(targetPlatformSDK.Path)) 2676if (string.IsNullOrEmpty(registryKeyRoot)) 2765if (!string.IsNullOrEmpty(targetPlatformSDK.Path)) 2926if (diskRoots != null && !string.IsNullOrEmpty(directoryRoots)) 3000if (!string.IsNullOrEmpty(registryRootLocation)) 3193if (!string.IsNullOrEmpty(includeFramework)) 3210else if (!string.IsNullOrEmpty(redirectPath) && FileSystems.Default.DirectoryExists(redirectPath)) 3726if (!string.IsNullOrEmpty(targetFrameworkVersion) && targetFrameworkVersion[0] is 'v' or 'V') 3745if (string.IsNullOrEmpty(frameworkReferenceRoot)) 3814if (string.IsNullOrEmpty(frameworkReferenceRoot)) 3819if (string.IsNullOrEmpty(frameworkIdentifier)) 3881if (string.IsNullOrEmpty(frameworkReferenceRoot)) 3886if (string.IsNullOrEmpty(frameworkIdentifier)) 3891if (string.IsNullOrEmpty(frameworkVersion))
ToolTask.cs (12)
178if (!string.IsNullOrEmpty(_toolExe)) 524if (!string.IsNullOrEmpty(ToolPath)) 537if (pathToTool != null && !string.IsNullOrEmpty(_toolExe)) 603if (!string.IsNullOrEmpty(responseFileCommands)) 640if (!string.IsNullOrEmpty(responseFileSwitch)) 679if (!string.IsNullOrEmpty(workingDirectory)) 889AbsolutePath filePath = !string.IsNullOrEmpty(fileName) ? TaskEnvironment.GetAbsolutePath(fileName) : new AbsolutePath(fileName, ignoreRootedCheck: true); 1366if (string.IsNullOrEmpty(StandardErrorImportance)) 1386if (string.IsNullOrEmpty(StandardOutputImportance)) 1420if (string.IsNullOrEmpty(path)) 1436.FirstOrDefault(fullPath => !string.IsNullOrEmpty(fullPath) && FileSystems.Default.FileExists(TaskEnvironment.GetAbsolutePath(fullPath))); 1581if (string.IsNullOrEmpty(commandLineCommands))
Microsoft.CodeAnalysis (65)
CodeGen\PermissionSetAttribute.cs (1)
81Debug.Assert(!String.IsNullOrEmpty(fileName));
CommandLine\AnalyzerConfig.cs (3)
189if (pathToFile is null || !Path.IsPathRooted(pathToFile) || string.IsNullOrEmpty(Path.GetFileName(pathToFile))) 227Debug.Assert(!string.IsNullOrEmpty(sectionName)); 241Debug.Assert(!string.IsNullOrEmpty(key));
CommandLine\CommandLineParser.cs (3)
727if (string.IsNullOrEmpty(value)) 754if (string.IsNullOrEmpty(value)) 1232var resolvedDirectoryPath = string.IsNullOrEmpty(directory) ?
CommandLine\CommandLineReference.cs (1)
22Debug.Assert(!string.IsNullOrEmpty(reference));
CommandLine\CommandLineSourceFile.cs (1)
21Debug.Assert(!string.IsNullOrEmpty(path));
CommandLine\CommonCompiler.cs (2)
184return string.IsNullOrEmpty(location) ? "<unknown>" : location; 1276if (Arguments.ParseOptions.HasFeature(Feature.PdbPathDeterminism) && !string.IsNullOrEmpty(emitOptions.PdbFilePath))
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(suppressionId));
CommandLine\ErrorLogOptions.cs (1)
31if (string.IsNullOrEmpty(path))
CommandLine\SarifErrorLogger.cs (2)
120return !string.IsNullOrEmpty(location.GetLineSpan().Path); 127Debug.Assert(!string.IsNullOrEmpty(path));
CommandLine\SarifV1ErrorLogger.cs (2)
177if (!string.IsNullOrEmpty(descriptor.HelpLinkUri)) 184if (!string.IsNullOrEmpty(descriptor.Category))
CommandLine\SarifV2ErrorLogger.cs (5)
191if (!string.IsNullOrEmpty(_totalAnalyzerExecutionTime)) 238var reportAnalyzerExecutionTime = !string.IsNullOrEmpty(_totalAnalyzerExecutionTime); 262if (!string.IsNullOrEmpty(descriptor.HelpLinkUri)) 279if (!string.IsNullOrEmpty(descriptor.Category) || isEverSuppressed || reportAnalyzerExecutionTime || descriptor.ImmutableCustomTags.Any()) 283if (!string.IsNullOrEmpty(descriptor.Category))
Compilation\Compilation.cs (4)
2212string.IsNullOrEmpty(StrongNameKeys.KeyContainer) && 2518if (!string.IsNullOrEmpty(tree.FilePath) && tree.GetText().Encoding == null) 2536Debug.Assert(!string.IsNullOrEmpty(text.FilePath)); 2554if (!string.IsNullOrEmpty(tree.FilePath))
Compilation\CompilationOptions.cs (1)
302this.CryptoKeyFile = string.IsNullOrEmpty(cryptoKeyFile) ? null : cryptoKeyFile;
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
32if (!string.IsNullOrEmpty(id))
Diagnostic\DiagnosticFormatter.cs (1)
110if (string.IsNullOrEmpty(uri) || HasDefaultHelpLinkUri(diagnostic))
Diagnostic\DiagnosticInfo.cs (1)
318if (string.IsNullOrEmpty(message))
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
438if (string.IsNullOrEmpty(language))
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
68if (string.IsNullOrEmpty(_name))
DiaSymReader\SymUnmanagedFactory.cs (1)
115if (string.IsNullOrEmpty(dir))
Emit\AnonymousTypeValue.cs (1)
18Debug.Assert(!string.IsNullOrEmpty(name));
FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Interop\ClrStrongName.cs (2)
39if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("COMPLUS_InstallRoot"))) 42if (!string.IsNullOrEmpty(version))
MetadataReader\MetadataHelpers.cs (2)
740if (!string.IsNullOrEmpty(qualifier)) 976return !string.IsNullOrEmpty(str) && str.IsValidUnicodeString() && str.IndexOf('\0') == -1;
MetadataReader\TypeNameDecoder.cs (1)
50if (string.IsNullOrEmpty(s))
MetadataReference\AssemblyIdentity.cs (1)
244return !string.IsNullOrEmpty(name) && name.IndexOf('\0') < 0;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
756if (string.IsNullOrEmpty(name))
MetadataReference\MetadataReference.cs (2)
355if (string.IsNullOrEmpty(location)) 378return !assembly.IsDynamic && !string.IsNullOrEmpty(assembly.Location);
NativePdbWriter\PdbWriter.cs (1)
208if (!string.IsNullOrEmpty(defaultNamespace))
PEWriter\MetadataWriter.cs (1)
3750if (!string.IsNullOrEmpty(identity.CultureName))
RuleSet\RuleSetInclude.cs (1)
117else if (!string.IsNullOrEmpty(parentRulesetPath))
RuleSet\RuleSetProcessor.cs (1)
261if (string.IsNullOrEmpty(attribute.Value))
SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
322builder.Add(string.IsNullOrEmpty(value) ? null : value); 584if (string.IsNullOrEmpty(import))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
StrongName\DesktopStrongNameProvider.cs (5)
71if (!string.IsNullOrEmpty(keyFilePath)) 90else if (!string.IsNullOrEmpty(keyContainerName)) 164Debug.Assert(string.IsNullOrEmpty(keys.KeyFilePath) != string.IsNullOrEmpty(keys.KeyContainer)); 166if (!string.IsNullOrEmpty(keys.KeyFilePath))
StrongName\StrongNameKeys.cs (4)
105if (string.IsNullOrEmpty(keyFilePath)) 168if (string.IsNullOrEmpty(keyFilePath) && string.IsNullOrEmpty(keyContainerName)) 229if (string.IsNullOrEmpty(publicKey) || publicKey.Length % 2 != 0)
Microsoft.CodeAnalysis.Analyzers (26)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (1)
355if (!string.IsNullOrEmpty(helpLink))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
715return !string.IsNullOrEmpty(filePath); 945!string.IsNullOrEmpty(value))
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (1)
140!string.IsNullOrEmpty(fixValue);
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
61if (!string.IsNullOrEmpty(propertyValue))
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
233return !string.IsNullOrEmpty(value); 483if (string.IsNullOrEmpty(optionValue)) 498if (!string.IsNullOrEmpty(optionDefaultValue))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (1)
204if (!string.IsNullOrEmpty(argumentName))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Microsoft.CodeAnalysis.AnalyzerUtilities (18)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
233return !string.IsNullOrEmpty(value); 483if (string.IsNullOrEmpty(optionValue)) 498if (!string.IsNullOrEmpty(optionDefaultValue))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (1)
204if (!string.IsNullOrEmpty(argumentName))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.CodeAnalysis.CodeStyle (19)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (1)
58if (string.IsNullOrEmpty(fileHeaderTemplate))
src\roslyn\src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
72|| string.IsNullOrEmpty(projectDir))
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
116if (string.IsNullOrEmpty(symbol.Name))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
96RoslynDebug.Assert(!string.IsNullOrEmpty(targetSymbolString)); 104if (!string.IsNullOrEmpty(docCommentId))
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
68if (string.IsNullOrEmpty(_name))
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (1)
204if (!string.IsNullOrEmpty(argumentName))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
111if (string.IsNullOrEmpty(name))
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
114if (string.IsNullOrEmpty(current.Name))
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
211if (string.IsNullOrEmpty(line))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
167return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
261if (!string.IsNullOrEmpty(parameterName))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
298return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
98if (!string.IsNullOrEmpty(formatString))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder_Conversions.cs (1)
1535if (string.IsNullOrEmpty(methodName))
Binder\Binder_Crefs.cs (1)
174if (string.IsNullOrEmpty(memberName))
Binder\Binder_Lambda.cs (1)
389if (string.IsNullOrEmpty(name))
Binder\Binder_NameConflicts.cs (3)
40if (string.IsNullOrEmpty(name)) 63if (string.IsNullOrEmpty(name)) 116if (string.IsNullOrEmpty(name))
Binder\Binder.ValueChecks.cs (1)
3106if (string.IsNullOrEmpty(parameterName))
Binder\ForEachLoopBinder.cs (1)
806if (string.IsNullOrEmpty(collectionExprType.Name) && collectionExpr.HasErrors)
CommandLine\CSharpCommandLineParser.cs (10)
395if (string.IsNullOrEmpty(value)) 646if (string.IsNullOrEmpty(unquotedModuleName)) 983if (string.IsNullOrEmpty(value) || 1053if (string.IsNullOrEmpty(value)) 1074if (string.IsNullOrEmpty(value)) 1116if (string.IsNullOrEmpty(value) || !TryParseUInt64(value, out newBaseAddress)) 1157if (string.IsNullOrEmpty(unquoted)) 1185if (string.IsNullOrEmpty(unquoted)) 1320if (string.IsNullOrEmpty(unquoted)) 1452if (!string.IsNullOrEmpty(additionalReferenceDirectories))
Compiler\DocumentationCommentCompiler.cs (1)
920if (string.IsNullOrEmpty(lines[numLines - 1]))
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
254return string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name); 259return string.IsNullOrEmpty(attribute.Name.NamespaceName) && DocumentationCommentXmlNames.AttributeEquals(attribute.Name.LocalName, name);
CSharpCompilationOptions.cs (1)
341if (string.IsNullOrEmpty(path))
Declarations\DeclarationTreeBuilder.cs (1)
308d => !d.File.ContainsDiagnostics && !string.IsNullOrEmpty(d.File.ValueText));
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
563Debug.Assert(!string.IsNullOrEmpty(sourceMember.MetadataName));
Emitter\Model\PEModuleBuilder.cs (1)
183!string.IsNullOrEmpty(refIdentity.CultureName) &&
Errors\ErrorFacts.cs (2)
138RoslynDebug.Assert(!string.IsNullOrEmpty(message), $"{code}"); 146RoslynDebug.Assert(!string.IsNullOrEmpty(message), $"{code}");
Errors\XmlSyntaxDiagnosticInfo.cs (1)
43RoslynDebug.Assert(!string.IsNullOrEmpty(message));
FlowAnalysis\AbstractFlowPass.cs (1)
246if (string.IsNullOrEmpty(name))
FlowAnalysis\DefiniteAssignment.cs (3)
2282if (symbol.DeclarationKind != LocalDeclarationKind.PatternVariable && !string.IsNullOrEmpty(symbol.Name)) // avoid diagnostics for parser-inserted names 2301if (!string.IsNullOrEmpty(symbol.Name)) // avoid diagnostics for parser-inserted names 2841string.IsNullOrEmpty(id.Symbol.Name) ? "<anon>" + id.Symbol.GetHashCode() :
Parser\Lexer.cs (4)
1052if (string.IsNullOrEmpty(valueText)) 3802if (!string.IsNullOrEmpty(valueText) && actualText != valueText) 4429if (!String.IsNullOrEmpty(text)) 4475if (!String.IsNullOrEmpty(text))
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
393string.IsNullOrEmpty(symbolName))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
28Debug.Assert(!string.IsNullOrEmpty(name));
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
203if (string.IsNullOrEmpty(specifierText))
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
354bool hasNameInMetadata = !string.IsNullOrEmpty(_name);
Symbols\ObsoleteAttributeHelpers.cs (1)
192if (string.IsNullOrEmpty(data.Message))
Symbols\PublicModel\NamedTypeSymbol.cs (2)
213|| (!string.IsNullOrEmpty(UnderlyingNamedTypeSymbol.ExtensionGroupingName) && !string.IsNullOrEmpty(UnderlyingNamedTypeSymbol.ExtensionMarkerName)));
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
78if (!string.IsNullOrEmpty(aliasQualifierOpt))
Symbols\Source\SourceAssemblySymbol.cs (9)
493if (!string.IsNullOrEmpty(keyFile) && !PathUtilities.IsAbsolute(keyFile)) 505if (string.IsNullOrEmpty(keyFile)) 517if (string.IsNullOrEmpty(keyContainer)) 527var hasCounterSignature = !string.IsNullOrEmpty(this.SignatureKey); 785if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer)) 832if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile)) 2022if (!string.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) && 2032if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) && 2454if (!string.IsNullOrEmpty(cultureString))
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1210if (string.IsNullOrEmpty(methodName))
Symbols\SymbolDistinguisher.cs (2)
169if (!string.IsNullOrEmpty(path)) 184if (!string.IsNullOrEmpty(path))
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
34Debug.Assert(!string.IsNullOrEmpty(name)); 95Debug.Assert(!string.IsNullOrEmpty(name));
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
32Debug.Assert(!string.IsNullOrEmpty(name));
Symbols\Tuples\TupleTypeSymbol.cs (2)
675if (defaultImplicitlyDeclared && !string.IsNullOrEmpty(providedName)) 772if (defaultImplicitlyDeclared && !String.IsNullOrEmpty(providedName))
Syntax\AttributeSyntax.cs (1)
25Debug.Assert(!String.IsNullOrEmpty(namedArgName));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
312if (!string.IsNullOrEmpty(triviaString) && SyntaxFacts.IsNewLine(triviaString[^1]))
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeLens\CSharpCodeLensDisplayInfoService.cs (2)
163return string.IsNullOrEmpty(enclosingScopeString) ? "Using" : enclosingScopeString + " Using"; 170return string.IsNullOrEmpty(enclosingScopeString) ? "Alias" : enclosingScopeString + " Alias";
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
82.Where(s => !string.IsNullOrEmpty(s))!);
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (2)
102if (!string.IsNullOrEmpty(name)) 124if (!string.IsNullOrEmpty(identifierAlias))
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
189if (!string.IsNullOrEmpty(elementName))
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.cs (1)
126if (string.IsNullOrEmpty(symbol.Name) || symbol.IsAnonymousType)
Microsoft.NetCore.Analyzers\Usage\CSharpMissingShebangInFileBasedProgram.cs (1)
25if (string.IsNullOrEmpty(entryPointFilePath))
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Rename\CSharpRenameRewriterLanguageService.cs (2)
582if (!string.IsNullOrEmpty(prefix)) 587if (!string.IsNullOrEmpty(suffix))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
312if (!string.IsNullOrEmpty(triviaString) && SyntaxFacts.IsNewLine(triviaString[^1]))
SyncedSource\FileBasedPrograms\MSBuildUtilities.cs (1)
36if (string.IsNullOrEmpty(parameterValue))
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (1)
158if (string.IsNullOrEmpty(directory))
Microsoft.CodeAnalysis.Extensions.Package (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
Microsoft.CodeAnalysis.Features (56)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (3)
42if (!string.IsNullOrEmpty(formattingOptions.FileHeaderTemplate)) 103if (!string.IsNullOrEmpty(fileName)) 112if (!string.IsNullOrEmpty(fileName))
AddFileBanner\AbstractAddFileBannerNewDocumentFormattingProvider.cs (1)
28if (!string.IsNullOrEmpty(fileHeaderTemplate))
AddFileBanner\AddFileBannerHelpers.cs (2)
56if (string.IsNullOrEmpty(sourceName) || string.IsNullOrEmpty(destinationName))
AddImport\SymbolResult.cs (1)
36return !string.IsNullOrEmpty(DesiredName) &&
CodeFixes\Configuration\ConfigurationUpdater.cs (7)
85Debug.Assert(configurationKind != ConfigurationKind.OptionValue || !string.IsNullOrEmpty(newOptionValueOpt)); 86Debug.Assert(!string.IsNullOrEmpty(newSeverity)); 163Contract.ThrowIfFalse(!string.IsNullOrEmpty(category)); 236Debug.Assert(!string.IsNullOrEmpty(optionName)); 368if (!string.IsNullOrEmpty(editorConfigString)) 689var newEntry = !string.IsNullOrEmpty(_optionNameOpt) && !string.IsNullOrEmpty(_newOptionValueOpt)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (1)
77if (!string.IsNullOrEmpty(diagnostic.Descriptor.Category))
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (4)
49if (!string.IsNullOrEmpty(_project.FilePath)) 53if (!string.IsNullOrEmpty(directory)) 56if (!string.IsNullOrEmpty(suppressionsFilePath)) 79var fullPath = !string.IsNullOrEmpty(filePath) ? Path.GetFullPath(filePath) : filePath;
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (2)
104return !string.IsNullOrEmpty(codeFixAttribute.Name) 111return !string.IsNullOrEmpty(codeRefactoringAttribute.Name)
CodeLens\CodeLensReferencesService.cs (1)
367return !string.IsNullOrEmpty(fullName) ? new ReferenceMethodDescriptor(fullName, document.FilePath, document.Project.OutputFilePath) : null;
CodeRefactorings\CodeRefactoringService.cs (1)
56var documentExtensions = provider.Metadata.DocumentExtensions.Where(e => !string.IsNullOrEmpty(e));
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
275if (!string.IsNullOrEmpty(publicKey))
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
288=> string.IsNullOrEmpty(containingNamespace) ? name : containingNamespace + "." + name;
Completion\Providers\RecommendedKeyword.cs (1)
37if (!string.IsNullOrEmpty(toolTip))
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
64var kind = string.IsNullOrEmpty(prefix) ? NumericKind.Decimal
DocumentationComments\CopilotDocumentationCommentGenerator.cs (6)
172if (edit.TagType == DocumentationCommentTagType.Summary && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Summary.ToString(), out var summary) && !string.IsNullOrEmpty(summary)) 176else if (edit.TagType == DocumentationCommentTagType.Remarks && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Remarks.ToString(), out var remarks) && !string.IsNullOrEmpty(remarks)) 180else if (edit.TagType == DocumentationCommentTagType.TypeParam && documentationCommentDictionary.TryGetValue(symbolKey!, out var typeParam) && !string.IsNullOrEmpty(typeParam)) 184else if (edit.TagType == DocumentationCommentTagType.Param && documentationCommentDictionary.TryGetValue(symbolKey!, out var param) && !string.IsNullOrEmpty(param)) 188else if (edit.TagType == DocumentationCommentTagType.Returns && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Returns.ToString(), out var returns) && !string.IsNullOrEmpty(returns)) 192else if (edit.TagType == DocumentationCommentTagType.Exception && documentationCommentDictionary.TryGetValue(symbolKey!, out var exception) && !string.IsNullOrEmpty(exception))
EditAndContinue\SourceFileSpan.cs (1)
74=> string.IsNullOrEmpty(Path) ? Span.ToString() : $"{Path}: {Span}";
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
536includeUsingsOrImports = string.IsNullOrEmpty(includeUsingsOrImports)
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
93if (string.IsNullOrEmpty(parameter?.Name))
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
279if (string.IsNullOrEmpty(rawXmlText))
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
289Debug.Assert(symbol != null && !string.IsNullOrEmpty(targetNamespace));
Shared\Utilities\ExtractTypeHelpers.cs (1)
82var namespaceParts = namespaceWithoutRoot.Split('.').Where(s => !string.IsNullOrEmpty(s));
Snippets\SnippetFunctionService.cs (1)
97if (string.IsNullOrEmpty(xmlFunctionText))
Snippets\SnippetPlaceholder.cs (1)
35if (string.IsNullOrEmpty(text))
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (1)
58if (string.IsNullOrEmpty(fileHeaderTemplate))
src\roslyn\src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
72|| string.IsNullOrEmpty(projectDir))
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
116if (string.IsNullOrEmpty(symbol.Name))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
96RoslynDebug.Assert(!string.IsNullOrEmpty(targetSymbolString)); 104if (!string.IsNullOrEmpty(docCommentId))
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
111if (string.IsNullOrEmpty(name))
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
114if (string.IsNullOrEmpty(current.Name))
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
211if (string.IsNullOrEmpty(line))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
167return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
261if (!string.IsNullOrEmpty(parameterName))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
298return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\roslyn\src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
98if (!string.IsNullOrEmpty(formatString))
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
68if (string.IsNullOrEmpty(_name))
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
322builder.Add(string.IsNullOrEmpty(value) ? null : value); 584if (string.IsNullOrEmpty(import))
Microsoft.CodeAnalysis.NetAnalyzers (16)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ProvideObsoleteAttributeMessage.cs (1)
73string.IsNullOrEmpty(attribute.ConstructorArguments.First().Value as string)))
Microsoft.NetCore.Analyzers\ImmutableCollections\DoNotCallToImmutableCollectionOnAnImmutableCollectionValue.cs (1)
77Debug.Assert(!string.IsNullOrEmpty(metadataName));
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (1)
2107!string.IsNullOrEmpty(value))
Microsoft.NetCore.Analyzers\Performance\PreferConvertToHexStringOverBitConverter.cs (1)
345string.IsNullOrEmpty(newValueString);
Microsoft.NetCore.Analyzers\Runtime\ForwardCancellationTokenToInvocations.Fixer.cs (3)
115string.IsNullOrEmpty(shouldFix) || 123string.IsNullOrEmpty(argumentName)) 163if (!string.IsNullOrEmpty(fix.ParameterName))
Microsoft.NetCore.Analyzers\Runtime\LoggerMessageDefineAnalyzer.cs (1)
232else if (!string.IsNullOrEmpty(valueName) && char.IsLower(valueName[0]))
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLength.cs (1)
20/// Comparing strings using the <see cref="string.Length"/> property or the <see cref="string.IsNullOrEmpty"/> method is significantly faster than using <see cref="string.Equals(string)"/>.
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
232return !string.IsNullOrEmpty(value); 482if (string.IsNullOrEmpty(optionValue)) 497if (!string.IsNullOrEmpty(optionDefaultValue))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
190var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RoslynString.cs (2)
10/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 12=> string.IsNullOrEmpty(value);
Microsoft.CodeAnalysis.Razor.Compiler (68)
CSharp\DefaultTagHelperDescriptorFactory.cs (2)
182if (!string.IsNullOrEmpty(xml)) 236if (!string.IsNullOrEmpty(xml))
Language\CodeGeneration\CodeWriterExtensions.cs (1)
125if (!string.IsNullOrEmpty(value))
Language\Components\ComponentBindLoweringPass.cs (3)
440if (string.IsNullOrEmpty(original.Content)) 448!string.IsNullOrEmpty(valueAttributeName) && 461!string.IsNullOrEmpty(changeAttributeName) &&
Language\Components\ComponentCssScopePass.cs (1)
26if (string.IsNullOrEmpty(cssScope))
Language\Components\ComponentGenericTypePass.cs (1)
418@namespace = string.IsNullOrEmpty(@namespace) ? "__Blazor" : "__Blazor." + @namespace;
Language\Components\ComponentNodeWriter.cs (2)
762if (!string.IsNullOrEmpty(node.Prefix)) 880if (!string.IsNullOrEmpty(node.EventUpdatesAttributeName))
Language\Components\ComponentRenderModeDirectivePass.cs (1)
107var namespaceSeparator = string.IsNullOrEmpty(@namespace.Name) ? string.Empty : ".";
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (7)
448if (wrapLiteralsInCSharpExpression && !string.IsNullOrEmpty(csharpExprAttrValue.Prefix)) 654if (!mergedFirst && !string.IsNullOrEmpty(prefix) && valueChild is HtmlIntermediateToken htmlToken) 671if (!mergedFirst && !string.IsNullOrEmpty(prefix)) 681if (!string.IsNullOrEmpty(unresolvedExpr.Prefix)) 787if (!string.IsNullOrEmpty(prefix) && htmlAttrValue.Children is [IntermediateToken firstToken, ..]) 840if (!string.IsNullOrEmpty(prefix)) 1198!string.IsNullOrEmpty(tagName) &&
Language\DefaultTagHelperResolutionPhase.cs (2)
539if (string.IsNullOrEmpty(childTagName)) 1096if (!string.IsNullOrEmpty(unresolvedValue.Prefix))
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (11)
820if (!string.IsNullOrEmpty(prefix)) 1042if (!string.IsNullOrEmpty(attrContent)) 1064if (!string.IsNullOrEmpty(attrContent)) 1098if (!string.IsNullOrEmpty(exprAttrValue.Prefix)) 1259string.IsNullOrEmpty(firstExpr.Prefix) && 1270string.IsNullOrEmpty(soleCodeBlock.Prefix)) 1369&& !string.IsNullOrEmpty(unresolvedExpr.Prefix)) 1374&& !string.IsNullOrEmpty(unresolvedLiteral.Prefix)) 1507if (!mergedPrefixWithFirst && !string.IsNullOrEmpty(prefix)) 1535if (!mergedPrefixWithFirst && !string.IsNullOrEmpty(prefix)) 1544&& !string.IsNullOrEmpty(unresolvedExpr2.Prefix))
Language\Extensions\DefaultMetadataIdentifierFeature.cs (1)
28if (string.IsNullOrEmpty(sourceDocument.RelativePath))
Language\Extensions\MetadataAttributePass.cs (2)
53if (@class == null || string.IsNullOrEmpty(@class.Name)) 75TypeName = string.IsNullOrEmpty(@namespace.Name)
Language\Extensions\ViewCssScopePass.cs (1)
21if (string.IsNullOrEmpty(cssScope))
Language\HtmlConventions.cs (1)
43if (string.IsNullOrEmpty(input))
Language\Legacy\HtmlMarkupParser.cs (2)
2208if (!string.IsNullOrEmpty(preSequence.Content)) 2343if (string.IsNullOrEmpty(tagName))
Language\Legacy\ImplicitExpressionEditHandler.cs (1)
149!string.IsNullOrEmpty(target.GetContent()) &&
Language\Legacy\LocationTagged.cs (1)
64if (string.IsNullOrEmpty(format))
Language\Legacy\TagHelperParseTreeRewriter.cs (4)
245if (string.IsNullOrEmpty(tagName) || tagName.StartsWith("!", StringComparison.Ordinal)) 316if (string.IsNullOrEmpty(tagName) || tagName.StartsWith("!", StringComparison.Ordinal)) 600if (string.IsNullOrEmpty(tagName)) 632if (string.IsNullOrEmpty(tagName))
Language\RazorDiagnosticDescriptor.cs (2)
30if (string.IsNullOrEmpty(id)) 35if (string.IsNullOrEmpty(messageFormat))
Language\RazorProjectFileSystem.cs (1)
88Debug.Assert(!string.IsNullOrEmpty(path));
Language\RazorSourceDocument.cs (2)
136if (string.IsNullOrEmpty(filePath)) 142if (string.IsNullOrEmpty(filePath))
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (3)
182if (!string.IsNullOrEmpty(xml)) 331if (!string.IsNullOrEmpty(xml)) 655if (!string.IsNullOrEmpty(xml))
Language\VirtualRazorProjectFileSystem.cs (1)
133Debug.Assert(!string.IsNullOrEmpty(path));
Mvc.Version1_X\MvcViewDocumentClassifierPass.cs (1)
28if (string.IsNullOrEmpty(filePath))
Mvc.Version1_X\ViewComponentTagHelperDescriptorFactory.cs (1)
249if (!string.IsNullOrEmpty(name))
Mvc.Version2_X\AssemblyAttributeInjectionPass.cs (3)
31if (@class == null || string.IsNullOrEmpty(@class.Name)) 37var generatedTypeName = string.IsNullOrEmpty(@namespace.Name) 87if (string.IsNullOrEmpty(relativePath))
Mvc.Version2_X\MvcViewDocumentClassifierPass.cs (1)
28if (string.IsNullOrEmpty(filePath))
Mvc.Version2_X\NamespaceDirective.cs (3)
88if (string.IsNullOrEmpty(baseNamespace)) 94if (string.IsNullOrEmpty(source) || directiveSource == null) 138if (string.IsNullOrEmpty(path))
Mvc.Version2_X\RazorPageDocumentClassifierPass.cs (2)
60if (string.IsNullOrEmpty(filePath)) 88if (string.IsNullOrEmpty(pageDirective.RouteTemplate))
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (1)
264if (!string.IsNullOrEmpty(name))
Mvc\RazorPageDocumentClassifierPass.cs (1)
107if (string.IsNullOrEmpty(pageDirective.RouteTemplate))
Mvc\ViewComponentTagHelperDescriptorFactory.cs (1)
267if (!string.IsNullOrEmpty(name))
SourceGenerators\RazorSourceGenerator.RazorProviders.cs (1)
90if (string.IsNullOrEmpty(razorWarningLevelString))
Microsoft.CodeAnalysis.Rebuild (4)
CompilationOptionsReader.cs (1)
401if (string.IsNullOrEmpty(externAliases))
CSharpCompilationFactory.cs (2)
96!string.IsNullOrEmpty(checkedString) && bool.Parse(checkedString), 97!string.IsNullOrEmpty(unsafeString) && bool.Parse(unsafeString),
VisualBasicCompilationFactory.cs (1)
67if (!string.IsNullOrEmpty(globalNamespacesString))
Microsoft.CodeAnalysis.ResxSourceGenerator (21)
AbstractResxGenerator.cs (3)
119if (!string.IsNullOrEmpty(rootNamespace)) 423if (string.IsNullOrEmpty(ResourceInformation.ResourceName)) 429var resourceAccessName = string.IsNullOrEmpty(ResourceInformation.ResourceClassName) ? ResourceInformation.ResourceName : ResourceInformation.ResourceClassName;
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
233return !string.IsNullOrEmpty(value); 483if (string.IsNullOrEmpty(optionValue)) 498if (!string.IsNullOrEmpty(optionDefaultValue))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (1)
204if (!string.IsNullOrEmpty(argumentName))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.CodeAnalysis.Scripting (5)
Hosting\ObjectFormatter\CommonObjectFormatter.Builder.cs (1)
66if (string.IsNullOrEmpty(ellipsis))
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (4)
159else if (debuggerDisplay != null && !string.IsNullOrEmpty(debuggerDisplay.Value)) 447if (!string.IsNullOrEmpty(name)) 473if (string.IsNullOrEmpty(name)) 779if (string.IsNullOrEmpty(format))
Microsoft.CodeAnalysis.VisualBasic (98)
Analysis\MissingRuntimeMemberDiagnosticHelper.vb (1)
32If embedVBCoreRuntime AndAlso (Not String.IsNullOrEmpty(verifiedTypename)) Then
Binding\Binder_AnonymousTypes.vb (1)
188If String.IsNullOrEmpty(fieldName) Then
Binding\Binder_Expressions.vb (4)
2465If String.IsNullOrEmpty(name) Then 2884If String.IsNullOrEmpty(rightName) Then 2911If String.IsNullOrEmpty(rightName) Then 2934If String.IsNullOrEmpty(rightName) Then
Binding\Binder_Symbols.vb (1)
847If String.IsNullOrEmpty(idText) Then
Binding\Binder_XmlLiterals.vb (5)
378Dim localName = If(String.IsNullOrEmpty(prefix), StringConstants.XmlnsPrefix, prefix) 379Dim [namespace] = If(String.IsNullOrEmpty(prefix), StringConstants.DefaultXmlNamespace, StringConstants.XmlnsNamespace) 1218String.IsNullOrEmpty(namespaceName) AndAlso 1219Not String.IsNullOrEmpty(prefix) Then 1272If Not String.IsNullOrEmpty(prefixName) Then
Binding\Binder.vb (1)
501If Not String.IsNullOrEmpty(rootNamespace) Then
Binding\DocumentationCommentCrefBinder_Compat.vb (2)
238Debug.Assert(Not String.IsNullOrEmpty(name)) 240If String.IsNullOrEmpty(name) Then
Binding\DocumentationCommentCrefBinder.vb (2)
718Debug.Assert(Not String.IsNullOrEmpty(name)) 749Debug.Assert(Not String.IsNullOrEmpty(name))
Binding\DocumentationCommentParamBinder.vb (1)
59If String.IsNullOrEmpty(name) Then
Binding\DocumentationCommentTypeParamBinder.vb (1)
30If String.IsNullOrEmpty(name) Then
CommandLine\VisualBasicCommandLineParser.vb (35)
183If String.IsNullOrEmpty(unquoted) Then 236If String.IsNullOrEmpty(value) Then 247If String.IsNullOrEmpty(value) Then 337If String.IsNullOrEmpty(value) Then 353If String.IsNullOrEmpty(value) Then 401If (String.IsNullOrEmpty(value)) Then 422If String.IsNullOrEmpty(value) Then 497If String.IsNullOrEmpty(value) Then 524If String.IsNullOrEmpty(unquoted) Then 550If String.IsNullOrEmpty(value) Then 563If String.IsNullOrEmpty(value) Then 629If String.IsNullOrEmpty(value) Then 643If String.IsNullOrEmpty(value) Then 659If String.IsNullOrEmpty(value) Then 674If String.IsNullOrEmpty(value) Then 687If String.IsNullOrEmpty(value) Then 740If String.IsNullOrEmpty(value) Then 903If String.IsNullOrEmpty(value) Then 964If String.IsNullOrEmpty(value) Then 1109If String.IsNullOrEmpty(value) Then 1119If String.IsNullOrEmpty(value) Then 1134If (String.IsNullOrEmpty(unquoted)) Then 1257If String.IsNullOrEmpty(value) Then 1269If String.IsNullOrEmpty(value) Then 1278If String.IsNullOrEmpty(value) Then 1370If Not String.IsNullOrEmpty(additionalReferenceDirectories) Then 1378If publicSign AndAlso Not String.IsNullOrEmpty(keyFileSetting) Then 1409If Not String.IsNullOrEmpty(baseDirectory) Then 1413If Not String.IsNullOrEmpty(outputDirectory) AndAlso baseDirectory <> outputDirectory Then 1702If String.IsNullOrEmpty(value) Then 1713If String.IsNullOrEmpty(value) Then 1734If String.IsNullOrEmpty(resourceDescriptor) Then 1783If String.IsNullOrEmpty(name) Then 2200If String.IsNullOrEmpty(value) Then 2221If String.IsNullOrEmpty(value) Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
112If String.IsNullOrEmpty(elementName) Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
432Return String.IsNullOrEmpty(element.Name.NamespaceName) AndAlso 437Return String.IsNullOrEmpty(attribute.Name.NamespaceName) AndAlso
Compilation\SyntaxTreeSemanticModel.vb (1)
1320If Not String.IsNullOrEmpty(aliasName) Then
Compilation\VisualBasicCompilation.vb (1)
773If Not String.IsNullOrEmpty(Options.RootNamespace) Then
Declarations\DeclarationTreeBuilder.vb (1)
103Function(d) Not d.File.ContainsDiagnostics AndAlso Not String.IsNullOrEmpty(d.File.ValueText))
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
209Debug.Assert(properties.All(Function(f) Not String.IsNullOrEmpty(f.Name)))
Emit\PEModuleBuilder.vb (1)
151Not String.IsNullOrEmpty(refIdentity.CultureName) AndAlso
Parser\ParseXml.vb (1)
1675If Not String.IsNullOrEmpty(text) Then
Scanner\CharacterInfo.vb (1)
329If String.IsNullOrEmpty(name) Then
Scanner\Scanner.vb (1)
413Debug.Assert(Not String.IsNullOrEmpty(chars))
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
249String.IsNullOrEmpty(symbolName) Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1107Return If(String.IsNullOrEmpty(_lazyDefaultPropertyName), Nothing, _lazyDefaultPropertyName)
Symbols\Metadata\PE\PEParameterSymbol.vb (1)
272hasNameInMetadata = Not String.IsNullOrEmpty(name)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
249Return (Not String.IsNullOrEmpty(defaultPropertyName)) AndAlso
Symbols\ObsoleteAttributeHelpers.vb (3)
151If String.IsNullOrEmpty(data.Message) Then 165If String.IsNullOrEmpty(data.Message) Then 173If String.IsNullOrEmpty(data.Message) Then
Symbols\Source\SourceAssemblySymbol.vb (9)
1065If Not String.IsNullOrEmpty(cultureString) Then 1292If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) Then 1317If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) Then 1611If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) AndAlso 1620If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) AndAlso 1702If Not String.IsNullOrEmpty(keyFile) AndAlso Not PathUtilities.IsAbsolute(keyFile) Then 1717If String.IsNullOrEmpty(keyFile) Then 1727If String.IsNullOrEmpty(keyContainer) Then 1735Dim hasCounterSignature = Not String.IsNullOrEmpty(SignatureKey)
Symbols\Source\SourceMethodSymbol.vb (2)
263If String.IsNullOrEmpty(moduleName) AndAlso Not syntax.LibraryName.IsMissing Then 272If String.IsNullOrEmpty(entryPointName) Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
45If Not String.IsNullOrEmpty(strVal) Then 51If Not String.IsNullOrEmpty(strVal) Then 57If Not String.IsNullOrEmpty(strVal) Then
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2334If Not String.IsNullOrEmpty(defaultProperty) AndAlso 2578If Not String.IsNullOrEmpty(DefaultPropertyName) AndAlso Not HasDefaultMemberAttribute() Then
Symbols\Source\SourcePropertySymbol.vb (2)
247Dim omitFurtherDiagnostics As Boolean = String.IsNullOrEmpty(name) 364Dim omitFurtherDiagnostics As Boolean = String.IsNullOrEmpty(_name)
Symbols\Symbol.vb (1)
654Return Not String.IsNullOrEmpty(Me.Name) AndAlso SyntaxFacts.IsIdentifierStartCharacter(Me.Name(0))
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (1)
26Debug.Assert(Not String.IsNullOrEmpty(name))
Symbols\Tuples\TupleTypeSymbol.vb (2)
767If defaultImplicitlyDeclared AndAlso Not String.IsNullOrEmpty(providedName) Then 860If defaultImplicitlyDeclared AndAlso Not String.IsNullOrEmpty(providedName) Then
Syntax\SyntaxNormalizer.vb (1)
599String.IsNullOrEmpty(nextToken.ValueText) Then
VisualBasicCompilationOptions.vb (3)
380If String.IsNullOrEmpty(_rootNamespace) OrElse Not OptionsValidator.IsValidNamespaceName(_rootNamespace) Then 741If String.IsNullOrEmpty(path) Then 1058If Not String.IsNullOrEmpty(RootNamespace) AndAlso Not OptionsValidator.IsValidNamespaceName(RootNamespace) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
915If Not containsGlobalKeyword AndAlso Not String.IsNullOrEmpty(rootNamespace) Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (1)
112If Not String.IsNullOrEmpty(identifierName.Identifier.ValueText) Then
SignatureHelp\SignatureHelpUtilities.vb (1)
45Return If(String.IsNullOrEmpty(value), Nothing, value)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
82If Not String.IsNullOrEmpty(name) AndAlso name <> token.ValueText Then 235If String.IsNullOrEmpty(symbol.Name) Then
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
536If Not String.IsNullOrEmpty(prefix) Then 540If Not String.IsNullOrEmpty(suffix) Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
915If Not containsGlobalKeyword AndAlso Not String.IsNullOrEmpty(rootNamespace) Then
Microsoft.CodeAnalysis.Workspaces (47)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
173if (string.IsNullOrEmpty(text))
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
253private static readonly Predicate<string> s_isNotNullOrEmpty = s => !string.IsNullOrEmpty(s);
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (2)
219if (string.IsNullOrEmpty(name)) 311if (string.IsNullOrEmpty(fullyQualifiedContainerName))
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
104if (string.IsNullOrEmpty(typeName)) 336return string.IsNullOrEmpty(fullyQualifiedContainerName)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
239if (!string.IsNullOrEmpty(argumentName))
Rename\Renamer.cs (3)
50if (string.IsNullOrEmpty(newName)) 162Contract.ThrowIfTrue(string.IsNullOrEmpty(newName)); 204Contract.ThrowIfTrue(string.IsNullOrEmpty(newName));
Shared\Extensions\ILanguageMetadataExtensions.cs (1)
53if (!string.IsNullOrEmpty(language))
Shared\Extensions\ISymbolExtensions.cs (3)
229if (string.IsNullOrEmpty(xmlText)) 393if (string.IsNullOrEmpty(pathAttribute?.Value)) 634=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (1)
204if (!string.IsNullOrEmpty(argumentName))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
SymbolSearch\ISymbolSearchService.cs (1)
28public bool IsDefault => string.IsNullOrEmpty(Name);
Workspace\CommandLineProject.cs (2)
151var absolutePath = Path.IsPathRooted(fileArg.Path) || string.IsNullOrEmpty(projectDirectory) 194if (string.IsNullOrEmpty(directory))
Workspace\Host\DocumentService\ISpanMappingService.cs (1)
72if (string.IsNullOrEmpty(filePath))
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
84if (string.IsNullOrEmpty(fullPath)) 190if (string.IsNullOrEmpty(fullPath)) 307if (string.IsNullOrEmpty(fullPath))
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
935if (string.IsNullOrEmpty(fullPath)) 1061if (string.IsNullOrEmpty(fullPath)) 1107if (string.IsNullOrEmpty(fullPath))
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
72if (Environment.GetEnvironmentVariable("DOTNET_ROOT") is string dotnetRoot && !string.IsNullOrEmpty(dotnetRoot))
Workspace\Solution\ProjectState.cs (1)
388if (!string.IsNullOrEmpty(documentState.FilePath))
Workspace\Solution\SolutionState.cs (3)
1210if (string.IsNullOrEmpty(filePath)) 1291if (string.IsNullOrEmpty(filePath)) 1349if (string.IsNullOrEmpty(filePath))
Workspace\Workspace.cs (2)
1446if (!string.IsNullOrEmpty(p.OutputFilePath)) 1451if (!string.IsNullOrEmpty(p.OutputRefFilePath))
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProjectFileInfoProvider.cs (1)
93return string.IsNullOrEmpty(path) ? [] : [path];
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
48if (!string.IsNullOrEmpty(categoryName))
MSBuild\MSBuildProjectLoader.Worker.cs (1)
260checksumAlgorithm = !string.IsNullOrEmpty(projectFileInfo.ChecksumAlgorithm) && SourceHashAlgorithms.TryParseAlgorithmName(projectFileInfo.ChecksumAlgorithm, out var algorithm)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (2)
28if (string.IsNullOrEmpty(name) || name.Any(char.IsWhiteSpace)) 45if (string.IsNullOrEmpty(value) || (addQuoteIfValueContainsWhitespace && value.Any(char.IsWhiteSpace)))
MSBuild\ProjectFile\ProjectInstanceReader.cs (2)
44Contract.ThrowIfTrue(string.IsNullOrEmpty(_projectFullPath)); 117if (string.IsNullOrEmpty(checksumAlgorithm))
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
438if (!string.IsNullOrEmpty(argName))
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (1)
100if (string.IsNullOrEmpty(typeName))
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
260if (string.IsNullOrEmpty(methodName))
Microsoft.Data.Analysis (2)
DataFrame.IO.cs (2)
35if (!string.IsNullOrEmpty(columnValue)) 274return string.IsNullOrEmpty(columnNames[columnIndex]) ? defaultColumnName : columnNames[columnIndex];
Microsoft.Data.Analysis.Tests (2)
DataFrame.IOTests.cs (2)
1108Assert.True(string.IsNullOrEmpty(text[2])); 1657if (string.IsNullOrEmpty(item) || string.Equals(item, "null", StringComparison.OrdinalIgnoreCase))
Microsoft.Deployment.DotNet.Releases (1)
ReleaseComponent.cs (1)
77if (!string.IsNullOrEmpty(file.Name) && !file.Name.Contains("-gs") && !file.Name.Contains("-nj"))
Microsoft.Diagnostics.DataContractReader.DataGenerator (2)
Emitter.cs (2)
45if (!string.IsNullOrEmpty(model.Namespace)) 548string ns = string.IsNullOrEmpty(model.Namespace) ? "Global" : model.Namespace.Replace('.', '_');
Microsoft.Diagnostics.DataContractReader.Legacy (25)
ClrDataMethodDefinition.cs (1)
138if (!string.IsNullOrEmpty(namespaceName))
ClrDataModule.cs (3)
226if ((string.IsNullOrEmpty(@namespace) || StringEquals(reader.GetString(td.Namespace), @namespace)) && 611if (string.IsNullOrEmpty(result)) 616if (string.IsNullOrEmpty(result))
ClrDataTypeDefinition.cs (1)
136name = string.IsNullOrEmpty(typeNamespace) ? typeName : $"{typeNamespace}.{typeName}";
Dbi\DacDbiImpl.cs (4)
233if (string.IsNullOrEmpty(path)) 363if (string.IsNullOrEmpty(path)) 590pData->fInMemory = string.IsNullOrEmpty(path) ? Interop.BOOL.TRUE : Interop.BOOL.FALSE; 4850if (string.IsNullOrEmpty(path))
MetaDataImportImpl.cs (4)
2095string fullName = string.IsNullOrEmpty(ns) ? name : $"{ns}.{name}"; 2223string fullName = string.IsNullOrEmpty(ns) ? name : $"{ns}.{name}"; 2291return string.IsNullOrEmpty(ns) ? name : $"{ns}.{name}"; 2298return string.IsNullOrEmpty(ns) ? name : $"{ns}.{name}";
SigFormat.cs (6)
56if (!string.IsNullOrEmpty(namespaceName)) 61if (!string.IsNullOrEmpty(className)) 66if (!string.IsNullOrEmpty(memberName)) 149if (!string.IsNullOrEmpty(_namespace)) 189if (!string.IsNullOrEmpty(_namespace)) 357if (!string.IsNullOrEmpty(_namespace))
SOSDacImpl.cs (4)
545if (string.IsNullOrEmpty(path)) 1234if (string.IsNullOrEmpty(name)) 2709if (!string.IsNullOrEmpty(fallbackNameString)) 3723if (string.IsNullOrEmpty(path))
TypeNameBuilder.cs (2)
475if (!string.IsNullOrEmpty(assemblySpec)) 691if (!string.IsNullOrEmpty(_namespace))
Microsoft.Diagnostics.NETCore.Client (27)
DiagnosticsClient\DiagnosticsClient.cs (8)
342if (string.IsNullOrEmpty(startupHookPath)) 360if (string.IsNullOrEmpty(startupHookPath)) 709if (string.IsNullOrEmpty(profilerPath)) 745if (string.IsNullOrEmpty(name)) 761if (string.IsNullOrEmpty(profilerPath)) 772if (string.IsNullOrEmpty(dumpPath)) 791if (string.IsNullOrEmpty(dumpPath)) 810if (string.IsNullOrEmpty(startupHookPath))
DiagnosticsIpc\IpcEndpointConfig.cs (5)
45if (string.IsNullOrEmpty(address)) 122if (string.IsNullOrEmpty(config)) 131if (!string.IsNullOrEmpty(config)) 139if (string.IsNullOrEmpty(parts[0])) 180else if (!string.IsNullOrEmpty(parsedAddress.Scheme))
DiagnosticsIpc\IpcTcpSocketEndPoint.cs (3)
71if (!string.IsNullOrEmpty(uriToParse) && Uri.TryCreate(uriToParse, UriKind.RelativeOrAbsolute, out Uri uri)) 87if (string.IsNullOrEmpty(host) || port == -1) 114if (string.IsNullOrEmpty(host) || port == -1)
DiagnosticsIpc\IpcTransport.cs (4)
319if (!string.IsNullOrEmpty(dsrouterAddress)) 338if (!string.IsNullOrEmpty(dsrouterAddress) && !string.IsNullOrEmpty(address)) 355return !string.IsNullOrEmpty(address);
DiagnosticsIpc\IpcUnixDomainSocket.cs (1)
38if (_ownsSocketFile && !string.IsNullOrEmpty(_path) && File.Exists(_path))
DiagnosticsIpc\ProcessInfo.cs (1)
105if (string.IsNullOrEmpty(ClrProductVersionString))
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (5)
303_tcpServerAddress = IpcTcpSocketEndPoint.NormalizeTcpIpEndPoint(string.IsNullOrEmpty(tcpServer) ? "127.0.0.1:0" : tcpServer); 359Debug.Assert(!string.IsNullOrEmpty(webSocketURL)); 428_tcpClientAddress = IpcTcpSocketEndPoint.NormalizeTcpIpEndPoint(string.IsNullOrEmpty(tcpClient) ? "127.0.0.1:" + string.Format("{0}", 56000 + (Process.GetCurrentProcess().Id % 1000)) : tcpClient); 555if (string.IsNullOrEmpty(ipcServer)) 1088if (string.IsNullOrEmpty(_ipcClientRouterFactory.IpcClientPath))
Microsoft.DiaSymReader (1)
SymUnmanagedFactory.cs (1)
130if (string.IsNullOrEmpty(dir))
Microsoft.DotNet.ApiCompat.Task (2)
src\sdk\src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\ValidatePackage.cs (1)
48if (!string.IsNullOrEmpty(options.BaselinePackagePath))
src\sdk\src\Compatibility\Microsoft.DotNet.ApiSymbolExtensions\Logging\MSBuildLog.cs (1)
14private readonly HashSet<string> _noWarn = string.IsNullOrEmpty(noWarn) ? [] : new(noWarn!.Split(';'), StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.ApiCompatibility (5)
Logging\Suppression.cs (2)
85=> string.IsNullOrEmpty(first?.Trim()) && string.IsNullOrEmpty(second?.Trim()) || StringComparer.InvariantCultureIgnoreCase.Equals(first?.Trim(), second?.Trim());
Logging\SuppressionEngine.cs (1)
21private readonly HashSet<string> _noWarn = string.IsNullOrEmpty(noWarn) ? [] : new(noWarn!.Split(';'), StringComparer.OrdinalIgnoreCase);
Rules\AssemblyIdentityMustMatch.cs (2)
76string leftAssemblyCulture = string.IsNullOrEmpty(leftIdentity.CultureName) ? "neutral" : leftIdentity.CultureName; 81string rightAssemblyCulture = string.IsNullOrEmpty(rightIdentity.CultureName) ? "neutral" : rightIdentity.CultureName;
Microsoft.DotNet.ApiSymbolExtensions (3)
AssemblySymbolLoader.cs (2)
274if (string.IsNullOrEmpty(assemblyName)) 367if (!string.IsNullOrEmpty(directory))
Logging\ConsoleLog.cs (1)
11private readonly HashSet<string> _noWarn = string.IsNullOrEmpty(noWarn) ? [] : new(noWarn!.Split(';'), StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Arcade.Sdk (15)
src\ExtractNgenMethodList.cs (1)
79var outputFileNameSuffix = string.IsNullOrEmpty(AssemblyTargetFramework)
src\GenerateChecksums.cs (1)
28if (string.IsNullOrEmpty(destinationPath))
src\GenerateResxSource.cs (3)
77if (string.IsNullOrEmpty(ResourceName)) 83string resourceAccessName = string.IsNullOrEmpty(ResourceClassName) ? ResourceName : ResourceClassName; 264if (string.IsNullOrEmpty(ResourceClassName) || ResourceName == ResourceClassName)
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
64if (string.IsNullOrEmpty(url))
src\GetAssemblyFullName.cs (1)
29var assemblyPath = string.IsNullOrEmpty(PathMetadata) ? item.ItemSpec : item.GetMetadata(PathMetadata);
src\GroupItemsBy.cs (2)
69(string.IsNullOrEmpty(left) || left == right) ? right : string.IsNullOrEmpty(right) ? left : left + ";" + right);
src\InstallDotNetCore.cs (4)
161if (!String.IsNullOrEmpty(e.Data)) 168if (!String.IsNullOrEmpty(e.Data)) 203if (!string.IsNullOrEmpty(architecture)) 275if (string.IsNullOrEmpty(runtime) && runtime == "sdk")
src\SaveItems.cs (1)
47if (!string.IsNullOrEmpty(path))
src\SetCorFlags.cs (1)
45if (string.IsNullOrEmpty(value))
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
59if (string.IsNullOrEmpty(value))
Microsoft.DotNet.Build.Manifest (20)
ArtifactModel.cs (2)
39if (!string.IsNullOrEmpty(val)) 56if (string.IsNullOrEmpty(val))
BlobArtifactModelFactory.cs (1)
36if (string.IsNullOrEmpty(path))
BuildIdentity.cs (9)
105if (string.IsNullOrEmpty(value)) 134if (string.IsNullOrEmpty(value)) 169if (string.IsNullOrEmpty(value)) 191if (string.IsNullOrEmpty(value)) 218if (string.IsNullOrEmpty(value)) 236if (!string.IsNullOrEmpty(ProductVersion)) 240if (!string.IsNullOrEmpty(Branch)) 244if (!string.IsNullOrEmpty(Commit)) 248if (!string.IsNullOrEmpty(BuildId))
BuildModelFactory.cs (2)
93if (string.IsNullOrEmpty(item.GetMetadata("Kind"))) 225if (!string.IsNullOrEmpty(parsedUri.UserInfo))
MSBuildListSplitter.cs (2)
13if (string.IsNullOrEmpty(input)) 38if (string.IsNullOrEmpty(key))
PackageArtifactModel.cs (1)
39if (!string.IsNullOrEmpty(val))
PdbArtifactModelFactory.cs (1)
34if (string.IsNullOrEmpty(path))
VersionIdentifier.cs (1)
227if (!string.IsNullOrEmpty(pathSegments[i]))
XElementParsingExtensions.cs (1)
16if (string.IsNullOrEmpty(value))
Microsoft.DotNet.Build.Tasks.Feed (14)
src\PushToBuildStorage.cs (14)
208if (string.IsNullOrEmpty(AssetsLocalStorageDir) || 209string.IsNullOrEmpty(ShippingPackagesLocalStorageDir) || 210string.IsNullOrEmpty(NonShippingPackagesLocalStorageDir) || 211string.IsNullOrEmpty(PdbArtifactsLocalStorageDir) || 212string.IsNullOrEmpty(AssetManifestsLocalStorageDir)) 228if (!string.IsNullOrEmpty(FutureArtifactName) || 229!string.IsNullOrEmpty(FutureArtifactPublishBasePath)) 236if (string.IsNullOrEmpty(FutureArtifactName) != 237string.IsNullOrEmpty(FutureArtifactPublishBasePath)) 281!string.IsNullOrEmpty(ManifestRepoName) ? ManifestRepoName : ManifestRepoUri, 321if (string.IsNullOrEmpty(PdbArtifactsLocalStorageDir) && buildModel.Artifacts.Pdbs.Count > 0) 379if (_publishingVersion == PublishingInfraVersion.V4 && !string.IsNullOrEmpty(FutureArtifactPublishBasePath)) 433string.IsNullOrEmpty(relativeBlobPath) ? filename : relativeBlobPath); 442string.IsNullOrEmpty(relativePdbPath) ? filename : relativePdbPath);
Microsoft.DotNet.Build.Tasks.FileCatalog (6)
CatalogBuilder.cs (1)
99if (string.IsNullOrEmpty(path))
CatalogEntry.cs (2)
29if (string.IsNullOrEmpty(filePath)) 69if (string.IsNullOrEmpty(name))
GenerateFileCatalog.cs (3)
28if (string.IsNullOrEmpty(OutputPath)) 54if (string.IsNullOrEmpty(path)) 69if (!string.IsNullOrEmpty(directory))
Microsoft.DotNet.Build.Tasks.Installers (23)
src\CreateControlFile.cs (1)
58if (!string.IsNullOrEmpty(version))
src\CreateRpmPackage.cs (1)
136if (string.IsNullOrEmpty(kind))
src\CreateWixBuildWixpack.cs (16)
290if (PdbFile != null && !string.IsNullOrEmpty(PdbFile.ItemSpec)) 296if (BindTrackingFile != null && !string.IsNullOrEmpty(BindTrackingFile.ItemSpec)) 307if (!string.IsNullOrEmpty(InstallerPlatform)) 315if (!string.IsNullOrEmpty(OutputType)) 321if (PdbFile != null && !string.IsNullOrEmpty(PdbFile.ItemSpec)) 327if (!string.IsNullOrEmpty(PdbType)) 394if (!string.IsNullOrEmpty(bindName)) 407if (BindTrackingFile != null && !string.IsNullOrEmpty(BindTrackingFile.ItemSpec)) 413if (!string.IsNullOrEmpty(AdditionalOptions)) 473if (!string.IsNullOrEmpty(key)) 503if (SourceFiles == null || _defineConstantsDictionary == null || string.IsNullOrEmpty(WixpackWorkingDir)) 557if (string.IsNullOrEmpty(source)) 607if (string.IsNullOrEmpty(id)) 966if (!string.IsNullOrEmpty(eqMatch.Groups[1].Value)) 1052if (!string.IsNullOrEmpty(bindName)) 1094return string.IsNullOrEmpty(relativeRoot) ?
src\GenerateCurrentVersion.cs (3)
53if (string.IsNullOrEmpty(OfficialBuildId)) 87if (string.IsNullOrEmpty(GeneratedVersion)) 120if (string.IsNullOrEmpty(comparisonDate))
src\RpmBuilder.cs (1)
140if (string.IsNullOrEmpty(version))
src\StabilizeWixFileId.cs (1)
61if (string.IsNullOrEmpty(replacement))
Microsoft.DotNet.Build.Tasks.Packaging (75)
ApplyMetaPackages.cs (1)
70if (string.IsNullOrEmpty(tfmSpecificSupression))
ApplyPreReleaseSuffix.cs (2)
58if (String.IsNullOrEmpty(PreReleaseSuffix)) 156if (!string.IsNullOrEmpty(suffix) && suffix[0] != '-')
CreateTrimDependencyGroups.cs (1)
200if (string.IsNullOrEmpty(versionString))
Extensions.cs (8)
23return String.IsNullOrEmpty(metadataValue) ? null : metadataValue; 41if (!string.IsNullOrEmpty(metadataValue)) 53if (!string.IsNullOrEmpty(metadataValue)) 64if (string.IsNullOrEmpty(packageDirectoryName)) 78if (!string.IsNullOrEmpty(metadataValue)) 89if (!string.IsNullOrEmpty(metadataValue)) 99if (!string.IsNullOrEmpty(metadataValue)) 101return metadataValue.Split(';').Where(v => !String.IsNullOrEmpty(v.Trim())).ToArray();
FrameworkUtilities.cs (1)
44if (String.IsNullOrEmpty(versionString))
GenerateNuSpec.cs (9)
120if (!String.IsNullOrEmpty(directory) && !Directory.Exists(directory)) 153if (!string.IsNullOrEmpty(PackageLicenseExpression) && string.IsNullOrEmpty(LicenseUrl)) 179if (!string.IsNullOrEmpty(InputFileName)) 204if (!string.IsNullOrEmpty(IconUrl)) 208if (!string.IsNullOrEmpty(Icon)) 215if (!string.IsNullOrEmpty(PackageLicenseExpression)) 225else if (!string.IsNullOrEmpty(LicenseUrl)) 234if (!string.IsNullOrEmpty(ProjectUrl))
GeneratePackageReport.cs (2)
106if (runtimeIds.All(rid => !String.IsNullOrEmpty(rid))) 121string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}";
GenerateRuntimeDependencies.cs (8)
55if (String.IsNullOrEmpty(PackageId)) 80if (String.IsNullOrEmpty(alias)) 96if (String.IsNullOrEmpty(targetRuntimeId)) 132if (!String.IsNullOrEmpty(sourceRuntimeFilePath)) 139if (!String.IsNullOrEmpty(destRuntimeFileDir) && !Directory.Exists(destRuntimeFileDir)) 154if (!String.IsNullOrEmpty(targetPackageAlias) && !packageAliases.TryGetValue(targetPackageAlias, out targetPackageId)) 163if (String.IsNullOrEmpty(targetPackageId)) 177if (String.IsNullOrEmpty(dependencyVersionString))
GetApplicableAssetsFromPackageReports.cs (1)
64string targetString = String.IsNullOrEmpty(TargetRuntime) ? fx.ToString() : $"{fx}/{TargetRuntime}";
GetApplicableAssetsFromPackages.cs (2)
137if (!string.IsNullOrEmpty(TargetRuntime) && RuntimeAssets == null) 214if (!String.IsNullOrEmpty(packageItem.TargetPath))
GetInboxFrameworks.cs (1)
49if (String.IsNullOrEmpty(AssemblyName))
GetLayoutFiles.cs (1)
50return String.IsNullOrEmpty(rids) ? new HashSet<string>() : new HashSet<string>(rids.Split(';'));
GetPackageDescription.cs (3)
47if (String.IsNullOrEmpty(PackageId)) 78if (String.IsNullOrEmpty(description)) 119if (String.IsNullOrEmpty(metadata.Description))
GetPackageDestination.cs (4)
83var packageTargetFrameworks = PackageTargetFrameworks.NullAsEmpty().Where(p => !String.IsNullOrEmpty(p.ItemSpec)); 138if (!String.IsNullOrEmpty(runtime) && !IsReferenceAssembly) 152if (!String.IsNullOrEmpty(runtime) && PackageDesktopAsLib) 168if (!String.IsNullOrEmpty(framework))
GetPackageVersion.cs (1)
36var versionsToConsider = Files.Where(f => !String.IsNullOrEmpty(f.GetMetadata("AssemblyVersion")))
GetRuntimeJsonValues.cs (1)
31if (string.IsNullOrEmpty(JsonFilename) || !File.Exists(JsonFilename))
GetRuntimeTargets.cs (1)
30if (string.IsNullOrEmpty(JsonFilename) || !File.Exists(JsonFilename))
GetSupportedPackagesFromPackageReports.cs (1)
47if (!String.IsNullOrEmpty(ridList))
HarvestPackage.cs (6)
214string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}"; 325if (!String.IsNullOrEmpty(remappedTargetPath)) 333if (!String.IsNullOrEmpty(additionalTargetPaths)) 337if (!String.IsNullOrEmpty(additionalTargetPath)) 543!String.IsNullOrEmpty(probePath); 560!String.IsNullOrEmpty(probePath);
NuGetAssetResolver.cs (2)
28if (!string.IsNullOrEmpty(runtimeFile)) 167if (!String.IsNullOrEmpty(runtimeFile))
NuGetPack.cs (7)
156if (String.IsNullOrEmpty(OutputDirectory)) 211string baseDirectoryPath = (string.IsNullOrEmpty(BaseDirectory)) ? Path.GetDirectoryName(nuspecPath) : BaseDirectory; 226if (String.IsNullOrEmpty(id)) 233if (!string.IsNullOrEmpty(PackageVersion)) 248if (String.IsNullOrEmpty(version)) 256if (isSymbolsPackage && !string.IsNullOrEmpty(SymbolPackageOutputDirectory)) 273string baseDirectoryPath = (string.IsNullOrEmpty(BaseDirectory)) ? Path.GetDirectoryName(nuspecPath) : BaseDirectory;
PackageIndex.cs (2)
79if (!String.IsNullOrEmpty(directory) && !Directory.Exists(directory)) 671if (!String.IsNullOrEmpty(framework.Profile))
SplitDependenciesBySupport.cs (2)
70if (!String.IsNullOrEmpty(fx)) 80if (!String.IsNullOrEmpty(minNSFx))
SplitReferences.cs (1)
70if (!string.IsNullOrEmpty(TargetFramework) && index != null && index.IsInbox(referenceName, targetFx, referenceVersion))
UpdatePackageIndex.cs (1)
198if (!String.IsNullOrEmpty(PreRelease))
ValidateFrameworkPackage.cs (2)
88var targetKey = string.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}"; 97return string.IsNullOrEmpty(Runtime) ? target.CompileAssets : target.RuntimeAssets;
ValidateHarvestVersionIsLatestForRelease.cs (3)
77if (!string.IsNullOrEmpty(compileAsset.HarvestedFrom)) 85if (!string.IsNullOrEmpty(runtimeAsset.HarvestedFrom)) 93if (!string.IsNullOrEmpty(nativeAsset.HarvestedFrom))
ValidatePackage.cs (1)
193string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}";
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
ChooseBestP2PTargetFrameworkTask.cs (1)
85if (string.IsNullOrEmpty(referencedProjectFrameworkString))
Microsoft.DotNet.Build.Tasks.Templating (2)
GenerateFileFromTemplate.cs (1)
93if (!string.IsNullOrEmpty(directory))
MSBuildListSplitter.cs (1)
30if (string.IsNullOrEmpty(key))
Microsoft.DotNet.Build.Tasks.VisualStudio (5)
OptProf\FindLatestDrop.cs (1)
72if (string.IsNullOrEmpty((string)item["Name"]))
OptProf\GenerateTrainingPropsFile.cs (2)
43bool hasDropName = !string.IsNullOrEmpty(ProductDropName); 51var outputFileNameNoExt = string.IsNullOrEmpty(RepositoryName) ? "ProfilingInputs" : RepositoryName.Replace('/', '.');
Vsix\GetPkgDefAssemblyDependencyGuid.cs (2)
45var value = string.IsNullOrEmpty(InputMetadata) ? item.ItemSpec : item.GetMetadata(InputMetadata); 46if (string.IsNullOrEmpty(value))
Microsoft.DotNet.Build.Tasks.Workloads (4)
Swix\SwixComponent.cs (3)
171resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Title)) ? resourceItem.GetMetadata(Metadata.Title) : workload.Description ?? throw new Exception(Strings.ComponentTitleCannotBeNull), 172resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Description)) ? resourceItem.GetMetadata(Metadata.Description) : workload.Description ?? throw new Exception(Strings.ComponentDescriptionCannotBeNull), 174resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Category)) ? resourceItem.GetMetadata(Metadata.Category) : DefaultValues.ComponentCategory ?? throw new Exception(Strings.ComponentCategoryCannotBeNull),
WorkloadPackageBase.cs (1)
289if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Split('.').Any(s => string.Equals("ci", s) || string.Equals("dev", s)))
Microsoft.DotNet.Cli.CommandLine (3)
SpanParsableExtensions.cs (2)
102if (string.IsNullOrEmpty(tokenToParse)) 144if (string.IsNullOrEmpty(tokenToParse))
SymbolDocumentationExtensions.cs (1)
30if (string.IsNullOrEmpty(value))
Microsoft.DotNet.Cli.CoreUtils (1)
SdkPaths.cs (1)
77string.IsNullOrEmpty(assemblyDirectory) ? AppContext.BaseDirectory : assemblyDirectory);
Microsoft.DotNet.Cli.Definitions (15)
Commands\Test\TestCommandDefinition.cs (1)
52if (!string.IsNullOrEmpty(trimmedEnvValue) && TryResolveRunner(trimmedEnvValue) is { } runnerFromEnv)
Common\CommonArguments.cs (3)
36if (string.IsNullOrEmpty(packageIdentity)) 44if (string.IsNullOrEmpty(packageId)) 49if (string.IsNullOrEmpty(versionString))
Common\CommonOptions.cs (1)
136.Where(t => !string.IsNullOrEmpty(t));
Common\TargetPlatformOptions.cs (4)
101os = string.IsNullOrEmpty(os) ? GetOsFromRid(GetCurrentRuntimeId()) : os; 102arch = string.IsNullOrEmpty(arch) ? GetArchFromRid(GetCurrentRuntimeId()) : arch; 117string runtimeIdentifierChainPath = string.IsNullOrEmpty(Product.Version) || !Directory.Exists(Path.Combine(sdkPath, Product.Version)) ? 120string[] currentRuntimeIdentifiers = File.Exists(runtimeIdentifierChainPath) ? [.. File.ReadAllLines(runtimeIdentifierChainPath).Where(l => !string.IsNullOrEmpty(l))] : [];
Help\HelpBuilder.Default.cs (1)
76if (!string.IsNullOrEmpty(joined))
src\sdk\src\Resolvers\Microsoft.DotNet.NativeWrapper\EnvironmentProvider.cs (2)
55if (!string.IsNullOrEmpty(environmentOverride)) 67if (string.IsNullOrEmpty(dotnetExe) || !Path.GetFileName(dotnetExe)
Telemetry\EnvironmentDetectionRule.cs (3)
50return _variables.All(variable => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(variable))); 68return _variables.Any(variable => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(variable))); 107return !string.IsNullOrEmpty(value) && value.Equals(_expectedValue, StringComparison.OrdinalIgnoreCase);
Microsoft.DotNet.Cli.Telemetry (4)
Implementation\AzureMonitorLogSerializer.cs (3)
57if (string.IsNullOrEmpty(scopeItem.Key) || scopeItem.Key == BreezeSchema.OriginalFormatKey) 107if (!string.IsNullOrEmpty(logRecord.CategoryName) && seenKeys.Add(BreezeSchema.CategoryNameProperty)) 118if (!string.IsNullOrEmpty(logRecord.EventId.Name) && seenKeys.Add(BreezeSchema.EventNameProperty))
Implementation\TelemetryResourceContextFactory.cs (1)
95if (string.IsNullOrEmpty(version))
Microsoft.DotNet.Cli.Utils (18)
EnvironmentProvider.cs (2)
61if (path.StartsWith(tildeSlash, StringComparison.Ordinal) && !string.IsNullOrEmpty(_userHomeDirectory.Value)) 115if (string.IsNullOrEmpty(str))
Extensions\MSBuildProjectExtensions.cs (4)
25if (!string.IsNullOrEmpty(projectElement.Condition)) 32if (!string.IsNullOrEmpty(parent.Condition)) 112return string.IsNullOrEmpty(combinedValue) ? Enumerable.Empty<string>() : combinedValue.Split(';'); 118if (string.IsNullOrEmpty(framework))
FrameworkDependencyFile.cs (2)
63if (!string.IsNullOrEmpty(currentRuntimeIdentifier)) 72if (runtimeFallbacksCandidates.Length == 0 && !string.IsNullOrEmpty(alternativeCurrentRuntimeIdentifier))
MSBuildForwardingAppWithoutLogging.cs (1)
105if (string.IsNullOrEmpty(Env.GetEnvironmentVariable("MSBUILDUSESERVER")))
PathUtility.cs (9)
40if (!string.IsNullOrEmpty(path)) 146if (string.IsNullOrEmpty(path1)) 151if (string.IsNullOrEmpty(path2)) 200if (len1 + 1 == len2 && !string.IsNullOrEmpty(path1Segments[index]) && 219if (!string.IsNullOrEmpty(path2Segments[len2 - 1])) 274if (string.IsNullOrEmpty(path)) 284if (string.IsNullOrEmpty(component)) 289if (string.IsNullOrEmpty(result)) 368return string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/');
Microsoft.DotNet.CMake.Sdk (2)
src\GetCMakeArtifactsFromFileApi.cs (2)
160if (string.IsNullOrEmpty(target.JsonFile)) 182if (!string.IsNullOrEmpty(artifact.Path))
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
125if (String.IsNullOrEmpty(altMsg))
Microsoft.DotNet.Configurer (4)
CliFolderPathCalculator.cs (1)
34return string.IsNullOrEmpty(Environment.GetEnvironmentVariable(DotnetHomeVariableName))
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (3)
44if (string.IsNullOrEmpty(home)) 54if (string.IsNullOrEmpty(home)) 60if (string.IsNullOrEmpty(home))
Microsoft.DotNet.GenFacades (8)
GenPartialFacadeSourceGenerator.cs (1)
61return defineConstants?.Split(';', ',').Where(t => !string.IsNullOrEmpty(t)).ToArray();
NotSupportedAssemblyGenerator.cs (2)
47if (!string.IsNullOrEmpty(ApiExclusionListPath) && File.Exists(ApiExclusionListPath)) 74if (!String.IsNullOrEmpty(LangVersion) && !LanguageVersionFacts.TryParse(LangVersion, out languageVersion))
SourceGenerator.cs (1)
109if (!string.IsNullOrEmpty(alias))
TypeParser.cs (4)
21if (!string.IsNullOrEmpty(langVersion) && !LanguageVersionFacts.TryParse(langVersion, out languageVersion)) 99return string.IsNullOrEmpty(nested) ? withoutNested : withoutNested + "." + nested; 102return GetFullyQualifiedName((BaseTypeDeclarationSyntax)node.Parent, string.IsNullOrEmpty(nested) ? typeName : typeName + "." + nested); 139if (string.IsNullOrEmpty(sourceFile))
Microsoft.DotNet.HotReload.Utils.Generator (1)
Runners\ScriptRunner.cs (1)
22if (!string.IsNullOrEmpty(config.OutputSummaryPath)) {
Microsoft.DotNet.HotReload.Utils.Generator.Frontend (3)
Frontend.cs (3)
89if (String.IsNullOrEmpty(builder.ProjectPath)) { 95if (!Xor(builder.Live, !String.IsNullOrEmpty(builder.ScriptPath))) { 101if (builder.Live && !String.IsNullOrEmpty(builder.OutputSummaryPath)) {
Microsoft.DotNet.HotReload.Watch (6)
Aspire\AspireServiceFactory.cs (1)
266else if (!string.IsNullOrEmpty(projectLaunchInfo.LaunchProfile))
HotReload\HotReloadDotNetWatcher.cs (2)
1115if (!string.IsNullOrEmpty(selectedDeviceRuntimeIdentifier)) 1272if (!string.IsNullOrEmpty(device.RuntimeIdentifier))
Process\LaunchSettingsProfile.cs (1)
58if (string.IsNullOrEmpty(launchProfileName))
src\sdk\src\Dotnet.Watch\AspireService\Helpers\LoggerProvider.cs (1)
23if (!string.IsNullOrEmpty(message))
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (1)
67if (string.IsNullOrEmpty(capabilities))
Microsoft.DotNet.HotReload.WebAssembly.Browser (2)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (2)
301if (!string.IsNullOrEmpty(startupHooks)) 316Debug.Assert(!string.IsNullOrEmpty(environment), $"{nameof(environment)} must be set");
Microsoft.DotNet.MacOsPkg.Core (14)
ExecuteHelper.cs (1)
14if (string.IsNullOrEmpty(command))
MacOsPkgCore.cs (5)
13if (string.IsNullOrEmpty(srcPath)) 45if (string.IsNullOrEmpty(srcPath)) 50if (string.IsNullOrEmpty(dstPath)) 90if (string.IsNullOrEmpty(srcPath)) 95if (string.IsNullOrEmpty(dstPath))
Package.cs (7)
19if (!string.IsNullOrEmpty(distribution)) 26if (!string.IsNullOrEmpty(packageInfo)) 38if (!string.IsNullOrEmpty(distribution)) 45if (!string.IsNullOrEmpty(packageInfo)) 126if (!string.IsNullOrEmpty(resources)) 132if (!string.IsNullOrEmpty(scripts)) 167if (!string.IsNullOrEmpty(script))
Utilities.cs (1)
38if (!string.IsNullOrEmpty(parent))
Microsoft.DotNet.NativeWrapper (5)
EnvironmentProvider.cs (2)
55if (!string.IsNullOrEmpty(environmentOverride)) 67if (string.IsNullOrEmpty(dotnetExe) || !Path.GetFileName(dotnetExe)
Interop.cs (2)
78if (string.IsNullOrEmpty(hostFxrPath)) 83if (string.IsNullOrEmpty(hostFxrPath))
src\sdk\src\Common\HostFxrPathResolver.cs (1)
36if (string.IsNullOrEmpty(dotnetRoot))
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\UpdatePackageVersionTask.cs (1)
42if (string.IsNullOrEmpty(VersionKind))
Microsoft.DotNet.PackageTesting (3)
GetCompatiblePackageTargetFrameworks.cs (1)
76if (!string.IsNullOrEmpty(minDotnetTargetFramework) && frameworksToTest.Any(t => t.Framework == ".NETStandard"))
VerifyClosure.cs (2)
66if (!String.IsNullOrEmpty(DependencyGraphFilePath)) 137if (!string.IsNullOrEmpty(versionString))
Microsoft.DotNet.PackageValidation (1)
Package.cs (1)
125if (string.IsNullOrEmpty(packagePath))
Microsoft.DotNet.ProjectTools (5)
LaunchSettings\LaunchProfileParser.cs (1)
16=> string.IsNullOrEmpty(launchProfile) ? Resources.DefaultLaunchProfileDisplayName : launchProfile;
LaunchSettings\LaunchSettings.cs (2)
63if (!string.IsNullOrEmpty(launchProfile)) 97if (string.IsNullOrEmpty(profileName))
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\VirtualProjectBuilder.cs (1)
158if (string.IsNullOrEmpty(directory))
src\sdk\src\Common\MSBuildUtilities.cs (1)
36if (string.IsNullOrEmpty(parameterValue))
Microsoft.DotNet.SharedFramework.Sdk (11)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
66if (!String.IsNullOrEmpty(DependencyGraphFilePath)) 137if (!string.IsNullOrEmpty(versionString))
src\CreateFrameworkListFile.cs (2)
219if (!string.IsNullOrEmpty(profile)) 226if (!string.IsNullOrEmpty(referencedByDefault))
src\GeneratePlatformManifestEntriesFromTemplate.cs (4)
62assemblyVersion = !string.IsNullOrEmpty(localAssemblyVersionFallback) ? localAssemblyVersionFallback : FallbackAssemblyVersion; 71fileVersion = !string.IsNullOrEmpty(localFileVersionFallback) ? localFileVersionFallback : FallbackFileVersion; 86if (string.IsNullOrEmpty(entry.AssemblyVersion) && !entry.IsNative) 91if (string.IsNullOrEmpty(entry.FileVersion))
src\GenerateSharedFrameworkDepsFile.cs (3)
57if (!string.IsNullOrEmpty(file.GetMetadata("GeneratedBuildFile"))) 66if (!string.IsNullOrEmpty(cultureMaybe)) 113var depsFileName = string.IsNullOrEmpty(SharedFrameworkDepsNameOverride) ? $"{SharedFrameworkName}.deps.json" : $"{SharedFrameworkDepsNameOverride}.deps.json";
Microsoft.DotNet.SourceBuild.Tasks (9)
src\UsageReport\Usage.cs (3)
69if (!string.IsNullOrEmpty(RuntimePackageRid)) 86(string.IsNullOrEmpty(RuntimePackageRid) ? "" : $"({RuntimePackageRid}) ") + 87(string.IsNullOrEmpty(AssetsFile) ? "with unknown use" : $"used by '{AssetsFile}'");
src\UsageReport\UsagePattern.cs (2)
28if (!string.IsNullOrEmpty(IdentityRegex)) 33if (!string.IsNullOrEmpty(IdentityGlob))
src\UsageReport\WritePackageUsageData.cs (1)
146if (!string.IsNullOrEmpty(ProjectAssetsJsonArchiveFile))
src\UsageReport\WriteUsageReports.cs (3)
194if (string.IsNullOrEmpty(creationTime)) 229if (!string.IsNullOrEmpty(id) && 230!string.IsNullOrEmpty(origin))
Microsoft.DotNet.StrongName (2)
Signing.cs (1)
102if (!string.IsNullOrEmpty(snPath))
Verification.cs (1)
37if (!string.IsNullOrEmpty(snPath))
Microsoft.DotNet.TemplateLocator (22)
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
112return !string.IsNullOrEmpty(targetFrameworkVersion) && Version.TryParse(targetFrameworkVersion.Substring(1), out var version) ? version : null;
src\sdk\src\Resolvers\Microsoft.DotNet.MSBuildSdkResolver\FXVersion.cs (9)
41if (string.IsNullOrEmpty(s1.Pre) || string.IsNullOrEmpty(s2.Pre)) 44return string.IsNullOrEmpty(s1.Pre) ? (string.IsNullOrEmpty(s2.Pre) ? 0 : 1) : -1; 139if (string.IsNullOrEmpty(id)) 161if (string.IsNullOrEmpty(ids)) 209if (string.IsNullOrEmpty(fxVersionString) || fxVersionString == null) 307=> (!string.IsNullOrEmpty(Pre), !string.IsNullOrEmpty(Build)) switch
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (3)
119foreach (var manifestId in File.ReadAllLines(knownManifestIdsFilePath).Where(l => !string.IsNullOrEmpty(l))) 209if (!string.IsNullOrEmpty(installState.WorkloadVersion)) 450if (!string.IsNullOrEmpty(manifestDir))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs (1)
18if (string.IsNullOrEmpty(globalJsonPath))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (2)
18if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Contains("dev") || version.Prerelease.Contains("ci") || version.Prerelease.Contains("rtm")) 70public bool IsPrerelease => !string.IsNullOrEmpty(_featureBand.Prerelease);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadId.cs (1)
16if (string.IsNullOrEmpty(id))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (1)
487if (!isAbstract && kind == WorkloadDefinitionKind.Dev && string.IsNullOrEmpty(description))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (4)
32File.ReadAllLines(runtimeIdentifierChainPath).Where(l => !string.IsNullOrEmpty(l)).ToArray() : 46if (!string.IsNullOrEmpty(packRootEnvironmentVariable)) 388if (string.IsNullOrEmpty(workloadId)) 490if (string.IsNullOrEmpty(packId))
Microsoft.DotNet.XliffTasks (8)
Tasks\GatherTranslatedSource.cs (4)
61if (string.IsNullOrEmpty(link)) 88if (!string.IsNullOrEmpty(manifestResourceName)) 98if (!string.IsNullOrEmpty(logicalName)) 109if (!string.IsNullOrEmpty(dependentUpon))
Tasks\GatherXlf.cs (1)
60if (string.IsNullOrEmpty(translatedFileName))
Tasks\TaskItemExtensions.cs (2)
14if (string.IsNullOrEmpty(value)) 26if (string.IsNullOrEmpty(value))
Tasks\XlfTask.cs (1)
89Release.Assert(!string.IsNullOrEmpty(language));
Microsoft.Extensions.AI (20)
ChatCompletion\ChatResponse{T}.cs (1)
127if (string.IsNullOrEmpty(json))
ChatCompletion\ImageGeneratingChatClient.cs (1)
432if (string.IsNullOrEmpty(imageId))
ChatCompletion\OpenTelemetryChatClient.cs (1)
69string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
ChatCompletion\OpenTelemetryImageGenerator.cs (1)
61string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
Common\OtelMessageSerializer.cs (1)
297if (input is TextContent tc && !string.IsNullOrEmpty(tc.Text))
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
65string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
Files\OpenTelemetryHostedFileClient.cs (1)
81string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (3)
734if (string.IsNullOrEmpty(pathOrExtension)) 741if (string.IsNullOrEmpty(extension)) 762if (string.IsNullOrEmpty(mediaType))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Realtime\OpenTelemetryRealtimeClientSession.cs (7)
119string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!; 428content = string.IsNullOrEmpty(textAudioMsg.Audio) ? "[audio data]" : textAudioMsg.Audio; 442if (string.IsNullOrEmpty(content)) 455case InputAudioTranscriptionRealtimeServerMessage transcriptionMsg when !string.IsNullOrEmpty(transcriptionMsg.Transcription): 530case TextContent tc when !string.IsNullOrEmpty(tc.Text): 534case TextReasoningContent trc when !string.IsNullOrEmpty(trc.Text): 703if (!string.IsNullOrEmpty(options.Voice))
SpeechToText\OpenTelemetrySpeechToTextClient.cs (1)
63string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
TextToSpeech\OpenTelemetryTextToSpeechClient.cs (1)
62string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
Microsoft.Extensions.AI.Abstractions (11)
ChatCompletion\ChatResponseExtensions.cs (1)
293canMerge: static (r1, r2) => string.IsNullOrEmpty(r1.ProtectedData), // we allow merging if the first item has no ProtectedData, even if the second does
Contents\DataContent.cs (2)
176if (!string.IsNullOrEmpty(fileName)) 228if (string.IsNullOrEmpty(name))
Files\HostedFileClientExtensions.cs (1)
117if (string.IsNullOrEmpty(fileName))
Functions\AIFunctionFactory.cs (1)
814!string.IsNullOrEmpty(parameters[i].Name))
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (3)
734if (string.IsNullOrEmpty(pathOrExtension)) 741if (string.IsNullOrEmpty(extension)) 762if (string.IsNullOrEmpty(mediaType))
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (1)
106metaParameter = string.IsNullOrEmpty(parameter.Name) ? metaMethod.ReturnParameter : GetMetaParameter(metaMethod, parameter);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Tools\AITool.cs (1)
71if (Description is string description && !string.IsNullOrEmpty(description))
Microsoft.Extensions.AI.Evaluation (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Console (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.NLP (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Quality (4)
EvaluationMetricExtensions.cs (1)
114string.IsNullOrEmpty(trimmedMatchText))
IntentResolutionEvaluator.cs (1)
331if (string.IsNullOrEmpty(evaluationResponseText))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
RelevanceTruthAndCompletenessEvaluator.cs (1)
279if (string.IsNullOrEmpty(evaluationResponseText))
Microsoft.Extensions.AI.Evaluation.Reporting (1)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
EmbeddingTests.cs (1)
16Assert.SkipUnless(!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("TF_BUILD")), "Skipping test because it is not running in CI");
ScenarioRunResultTests.cs (2)
277if (!string.IsNullOrEmpty(witnessPath)) 280if (!string.IsNullOrEmpty(witnessDirectory))
Microsoft.Extensions.AI.Evaluation.Safety (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Integration.Tests (4)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
PromptBasedFunctionCallingChatClient.cs (1)
110if (!string.IsNullOrEmpty(toolCallParsed?.Name))
VerbatimMultiPartHttpHandler.cs (2)
55if (!string.IsNullOrEmpty(ExpectedRequestUriContains)) 66if (string.IsNullOrEmpty(boundary))
Microsoft.Extensions.AI.OpenAI (22)
OpenAIAssistantsChatClient.cs (2)
203if (!string.IsNullOrEmpty(details.CodeInterpreterInput)) 490if (!string.IsNullOrEmpty(toAppend))
OpenAIHostedFileClient.cs (1)
340if (string.IsNullOrEmpty(file.Id))
OpenAIRealtimeClientSession.cs (6)
208if (responseCreate.OutputAudioOptions is not null || !string.IsNullOrEmpty(responseCreate.OutputVoice)) 216if (!string.IsNullOrEmpty(responseCreate.OutputVoice)) 242if (!string.IsNullOrEmpty(responseCreate.Instructions)) 537if (tool is AIFunction aiFunction && !string.IsNullOrEmpty(aiFunction.Name)) 1178if (!string.IsNullOrEmpty(argsJson)) 1217if (!string.IsNullOrEmpty(argsJson))
OpenAIResponsesChatClient.cs (9)
149if (!string.IsNullOrEmpty(responseResult.EndUserId)) 653if (string.IsNullOrEmpty(errorMessage)) 658if (string.IsNullOrEmpty(errorCode)) 663if (string.IsNullOrEmpty(errorParam)) 895if (!string.IsNullOrEmpty(description)) 935if (!string.IsNullOrEmpty(itemId)) 1008result.Instructions = string.IsNullOrEmpty(result.Instructions) ? 1206else if (string.IsNullOrEmpty(existing.Description)) 1565if (!string.IsNullOrEmpty(reasoningItemId))
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (3)
734if (string.IsNullOrEmpty(pathOrExtension)) 741if (string.IsNullOrEmpty(extension)) 762if (string.IsNullOrEmpty(mediaType))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.OpenAI.Tests (8)
OpenAIResponseClientIntegrationTests.cs (4)
738.First(r => !string.IsNullOrEmpty(r.ProtectedData)); 753.Where(r => !string.IsNullOrEmpty(r.ProtectedData))) 819.First(r => !string.IsNullOrEmpty(r.ProtectedData)); 834.Where(r => !string.IsNullOrEmpty(r.ProtectedData)))
OpenAIResponseClientTests.cs (4)
469var assistantUpdate = updates.First(u => u.Role == ChatRole.Assistant && !string.IsNullOrEmpty(u.Text)); 5948Assert.True(string.IsNullOrEmpty(errorContent.Message)); 5949Assert.True(string.IsNullOrEmpty(errorContent.ErrorCode)); 5950Assert.True(string.IsNullOrEmpty(errorContent.Details));
Microsoft.Extensions.AI.Templates.Tests (2)
TemplateTestUtilities.cs (1)
57.Where(arg => !string.IsNullOrEmpty(arg));
TestCommand.cs (1)
28if (string.IsNullOrEmpty(FileName))
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
1346if (!string.IsNullOrEmpty(result))
Microsoft.Extensions.AmbientMetadata.Application (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
26context.DisplayName = string.IsNullOrEmpty(name) ? "ApplicationMetadata.ApplicationName" : $"{name}.ApplicationName"; 34context.DisplayName = string.IsNullOrEmpty(name) ? "ApplicationMetadata.EnvironmentName" : $"{name}.EnvironmentName";
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AmbientMetadata.Build (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Caching.Hybrid (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Caching.Hybrid.Tests (1)
PayloadTests.cs (1)
44var tags = string.IsNullOrEmpty(delimitedTags)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
104if (!string.IsNullOrEmpty(instanceName))
Microsoft.Extensions.Compliance.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Compliance.Redaction (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
24context.DisplayName = string.IsNullOrEmpty(name) ? "HmacRedactorOptions.Key" : $"{name}.Key";
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Compliance.Testing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
24context.DisplayName = string.IsNullOrEmpty(name) ? "FakeRedactorOptions.RedactionFormat" : $"{name}.RedactionFormat";
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationPath.cs (2)
52if (string.IsNullOrEmpty(path)) 68if (string.IsNullOrEmpty(path))
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
501if (!string.IsNullOrEmpty(configValue)) 993if (string.IsNullOrEmpty(value))
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
77if (!string.IsNullOrEmpty(_prefix))
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationProvider.cs (1)
167if (!string.IsNullOrEmpty(file?.PhysicalPath))
FileConfigurationSource.cs (1)
81!string.IsNullOrEmpty(Path) &&
Microsoft.Extensions.Configuration.Ini (1)
IniConfigurationExtensions.cs (1)
69if (string.IsNullOrEmpty(path))
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationExtensions.cs (1)
69if (string.IsNullOrEmpty(path))
Microsoft.Extensions.Configuration.UserSecrets (5)
PathHelper.cs (3)
43if (string.IsNullOrEmpty(userSecretsId)) 68if (string.IsNullOrEmpty(root)) 78return !string.IsNullOrEmpty(appData)
UserSecretsConfigurationExtensions.cs (1)
177if (string.IsNullOrEmpty(secretPath))
UserSecretsIdAttribute.cs (1)
25if (string.IsNullOrEmpty(userSecretId))
Microsoft.Extensions.Configuration.Xml (6)
XmlConfigurationElement.cs (1)
40SiblingName = string.IsNullOrEmpty(Name) ? ElementName : ElementName + ":" + Name;
XmlConfigurationExtensions.cs (1)
78if (string.IsNullOrEmpty(path))
XmlStreamConfigurationProvider.cs (4)
216if (!string.IsNullOrEmpty(reader.NamespaceURI)) 240if (!string.IsNullOrEmpty(reader.NamespaceURI)) 267if (!string.IsNullOrEmpty(root.Name)) 359var hasName = !string.IsNullOrEmpty(child.Name);
Microsoft.Extensions.DataIngestion (8)
Chunkers\DocumentTokenChunker.cs (1)
53if (string.IsNullOrEmpty(elementContent))
Chunkers\ElementsChunker.cs (1)
65if (string.IsNullOrEmpty(semanticContent))
Chunkers\HeaderChunker.cs (1)
72string chunkHeader = string.Join(" ", headers.Where(h => !string.IsNullOrEmpty(h)));
Chunkers\SectionChunker.cs (1)
59context = string.IsNullOrEmpty(context)
Chunkers\SemanticSimilarityChunker.cs (1)
70if (!string.IsNullOrEmpty(semanticContent))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Processors\ImageAlternativeTextEnricher.cs (2)
86img.Content.HasValue && !string.IsNullOrEmpty(img.MediaType) && string.IsNullOrEmpty(img.AlternativeText);
Microsoft.Extensions.DataIngestion.Abstractions (6)
IngestionDocumentElement.cs (1)
31_markdown = string.IsNullOrEmpty(markdown) ? throw new ArgumentNullException(nameof(markdown)) : markdown;
IngestionDocumentReader.cs (1)
46return await ReadAsync(stream, identifier, string.IsNullOrEmpty(mediaType) ? GetMediaType(source) : mediaType!, cancellationToken).ConfigureAwait(false);
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (3)
734if (string.IsNullOrEmpty(pathOrExtension)) 741if (string.IsNullOrEmpty(extension)) 762if (string.IsNullOrEmpty(mediaType))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.DataIngestion.Markdig (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.DataIngestion.MarkItDown (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\DocumentReaderConformanceTests.cs (1)
122Assert.Contains(elements, element => element is IngestionDocumentImage img && img.Content.HasValue && !string.IsNullOrEmpty(img.MediaType));
Microsoft.Extensions.DependencyInjection (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.DependencyModel (41)
CollectionExtensions.cs (3)
15if (string.IsNullOrEmpty(runtime)) 30if (string.IsNullOrEmpty(runtime)) 54if (string.IsNullOrEmpty(runtime))
Dependency.cs (2)
14if (string.IsNullOrEmpty(name)) 18if (string.IsNullOrEmpty(version))
DependencyContextJsonReader.cs (12)
223if (!string.IsNullOrEmpty(runtimeTargetName)) 357if (string.IsNullOrEmpty(targetName)) 380if (string.IsNullOrEmpty(targetLibraryName)) 459if (string.IsNullOrEmpty(name)) 463if (string.IsNullOrEmpty(version)) 486if (string.IsNullOrEmpty(libraryName)) 514if (string.IsNullOrEmpty(path)) 557if (string.IsNullOrEmpty(runtimePath)) 611if (string.IsNullOrEmpty(path)) 656if (string.IsNullOrEmpty(libraryName)) 710if (string.IsNullOrEmpty(type)) 737if (string.IsNullOrEmpty(runtime))
DependencyContextLoader.cs (4)
91if (!string.IsNullOrEmpty(location)) 114if (!string.IsNullOrEmpty(depsJsonFile)) 131if (string.IsNullOrEmpty(assemblyLocation)) 144if (!string.IsNullOrEmpty(assemblyCodeBase) &&
DependencyContextWriter.cs (1)
313using IEnumerator<RuntimeAssetGroup> groups = assetGroups.Where(g => !string.IsNullOrEmpty(g.Runtime)).GetEnumerator();
Library.cs (3)
43if (string.IsNullOrEmpty(type)) 47if (string.IsNullOrEmpty(name)) 51if (string.IsNullOrEmpty(version))
Resolution\AppBaseCompilationAssemblyResolver.cs (1)
82if (isPublished && isPackage && !string.IsNullOrEmpty(sharedPath))
Resolution\DotNetReferenceAssembliesPathResolver.cs (1)
17if (!string.IsNullOrEmpty(path))
Resolution\PackageCompilationAssemblyResolver.cs (3)
47if (!string.IsNullOrEmpty(listOfDirectories)) 54if (!string.IsNullOrEmpty(packageDirectory)) 61if (string.IsNullOrEmpty(basePath))
Resolution\ReferenceAssemblyPathResolver.cs (3)
118if (!string.IsNullOrEmpty(referenceAssembliesPath)) 134if (string.IsNullOrEmpty(programFiles)) 140if (string.IsNullOrEmpty(programFiles))
Resolution\ResolverUtils.cs (1)
13if (string.IsNullOrEmpty(path))
ResourceAssembly.cs (2)
16if (string.IsNullOrEmpty(path)) 20if (string.IsNullOrEmpty(locale))
RuntimeAssembly.cs (2)
16if (string.IsNullOrEmpty(assemblyName)) 20if (string.IsNullOrEmpty(path))
RuntimeFallbacks.cs (1)
18if (string.IsNullOrEmpty(runtime))
RuntimeFile.cs (1)
16if (string.IsNullOrEmpty(path))
TargetInfo.cs (1)
14if (string.IsNullOrEmpty(framework))
Microsoft.Extensions.Diagnostics (30)
Metrics\ListenerSubscription.cs (13)
148if (!string.IsNullOrEmpty(rule.ListenerName) 155if (!string.IsNullOrEmpty(rule.InstrumentName) 214if (!string.IsNullOrEmpty(rule.ListenerName) && string.IsNullOrEmpty(best.ListenerName)) 218else if (string.IsNullOrEmpty(rule.ListenerName) && !string.IsNullOrEmpty(best.ListenerName)) 224if (!string.IsNullOrEmpty(rule.MeterName)) 226if (string.IsNullOrEmpty(best.MeterName)) 237else if (!string.IsNullOrEmpty(best.MeterName)) 243if (!string.IsNullOrEmpty(rule.InstrumentName) && string.IsNullOrEmpty(best.InstrumentName)) 247else if (string.IsNullOrEmpty(rule.InstrumentName) && !string.IsNullOrEmpty(best.InstrumentName))
Tracing\DefaultActivitySourceFactory.cs (17)
33if (string.IsNullOrEmpty(name)) 349if (string.IsNullOrEmpty(rule.OperationName)) 429if (!string.IsNullOrEmpty(rule.ListenerName) 445if (considerOperationName && !string.IsNullOrEmpty(rule.OperationName)) 464if (!string.IsNullOrEmpty(rule.ListenerName) && string.IsNullOrEmpty(best.ListenerName)) 468else if (string.IsNullOrEmpty(rule.ListenerName) && !string.IsNullOrEmpty(best.ListenerName)) 473if (!string.IsNullOrEmpty(rule.SourceName)) 475if (string.IsNullOrEmpty(best.SourceName)) 485else if (!string.IsNullOrEmpty(best.SourceName)) 492if (!string.IsNullOrEmpty(rule.OperationName) && string.IsNullOrEmpty(best.OperationName)) 496else if (string.IsNullOrEmpty(rule.OperationName) && !string.IsNullOrEmpty(best.OperationName)) 530if (string.IsNullOrEmpty(pattern)) 600if (!string.IsNullOrEmpty(rule.OperationName))
Microsoft.Extensions.Diagnostics.Abstractions (2)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Tracing\TracingRule.cs (1)
45if (!string.IsNullOrEmpty(sourceName))
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (14)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (4)
101if (!string.IsNullOrEmpty(value1)) 120if (!string.IsNullOrEmpty(value2)) 164if (!string.IsNullOrEmpty(value11)) 176if (!string.IsNullOrEmpty(value12))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (7)
25string displayName = string.IsNullOrEmpty(name) ? "ResourceUsageThresholds.Validate" : $"{name}.Validate"; 34context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceUsageThresholds.DegradedUtilizationPercentage" : $"{name}.DegradedUtilizationPercentage"; 42context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceUsageThresholds.UnhealthyUtilizationPercentage" : $"{name}.UnhealthyUtilizationPercentage"; 74string displayName = string.IsNullOrEmpty(name) ? "ResourceUtilizationHealthCheckOptions.Validate" : $"{name}.Validate"; 84(builder ??= new()).AddResult(global::Microsoft.Extensions.Diagnostics.HealthChecks.__ResourceUsageThresholdsValidator__.Validate(string.IsNullOrEmpty(name) ? "ResourceUtilizationHealthCheckOptions.CpuThresholds" : $"{name}.CpuThresholds", options.CpuThresholds)); 89(builder ??= new()).AddResult(global::Microsoft.Extensions.Diagnostics.HealthChecks.__ResourceUsageThresholdsValidator__.Validate(string.IsNullOrEmpty(name) ? "ResourceUtilizationHealthCheckOptions.MemoryThresholds" : $"{name}.MemoryThresholds", options.MemoryThresholds)); 93context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceUtilizationHealthCheckOptions.SamplingWindow" : $"{name}.SamplingWindow";
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.Probes (6)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
24context.DisplayName = string.IsNullOrEmpty(name) ? "TcpEndpointProbesOptions.TcpPort" : $"{name}.TcpPort"; 32context.DisplayName = string.IsNullOrEmpty(name) ? "TcpEndpointProbesOptions.MaxPendingConnections" : $"{name}.MaxPendingConnections"; 42context.DisplayName = string.IsNullOrEmpty(name) ? "TcpEndpointProbesOptions.HealthAssessmentPeriod" : $"{name}.HealthAssessmentPeriod";
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.ResourceMonitoring (9)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (6)
24context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceMonitoringOptions.CollectionWindow" : $"{name}.CollectionWindow"; 32context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceMonitoringOptions.SamplingInterval" : $"{name}.SamplingInterval"; 42context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceMonitoringOptions.PublishingWindow" : $"{name}.PublishingWindow"; 52context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceMonitoringOptions.CpuConsumptionRefreshInterval" : $"{name}.CpuConsumptionRefreshInterval"; 62context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceMonitoringOptions.MemoryConsumptionRefreshInterval" : $"{name}.MemoryConsumptionRefreshInterval"; 72context.DisplayName = string.IsNullOrEmpty(name) ? "ResourceMonitoringOptions.SourceIpAddresses" : $"{name}.SourceIpAddresses";
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogger.cs (1)
43Category = string.IsNullOrEmpty(category) ? null : category;
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.DotNetDeltaApplier (6)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
165if (!string.IsNullOrEmpty(prefix))
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\Transport.cs (3)
31if (!string.IsNullOrEmpty(namedPipeName)) 38if (!string.IsNullOrEmpty(webSocketEndpoint)) 48if (string.IsNullOrEmpty(serverPublicKey))
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (2)
301if (!string.IsNullOrEmpty(startupHooks)) 316Debug.Assert(!string.IsNullOrEmpty(environment), $"{nameof(environment)} must be set");
Microsoft.Extensions.FileProviders.Embedded (9)
EmbeddedFileProvider.cs (7)
60_baseNamespace = string.IsNullOrEmpty(baseNamespace) ? string.Empty : baseNamespace + "."; 66if (!string.IsNullOrEmpty(assemblyLocation)) 91if (string.IsNullOrEmpty(subpath)) 110if (!string.IsNullOrEmpty(everettId)) 225if (string.IsNullOrEmpty(subName)) { return; } 261if (string.IsNullOrEmpty(name)) { return; } 291if (string.IsNullOrEmpty(name)) { return name; }
Manifest\EmbeddedFilesManifest.cs (1)
38if (string.IsNullOrEmpty(path) || HasInvalidPathChars(path))
ManifestEmbeddedFileProvider.cs (1)
131if (!string.IsNullOrEmpty(assemblyLocation))
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
GenerateEmbeddedResourcesManifest.cs (2)
93private static string GetManifestPath(ITaskItem taskItem) => string.IsNullOrEmpty(taskItem.GetMetadata(LogicalName)) || string.Equals(taskItem.GetMetadata(LogicalName), taskItem.GetMetadata(ManifestResourceName)) ? 97private static string GetAssemblyResourceName(ITaskItem taskItem) => string.IsNullOrEmpty(taskItem.GetMetadata(LogicalName)) || string.Equals(taskItem.GetMetadata(LogicalName), taskItem.GetMetadata(ManifestResourceName)) ?
Microsoft.Extensions.FileProviders.Physical (4)
Internal\PathUtils.cs (1)
34if (!string.IsNullOrEmpty(path) &&
PhysicalFileProvider.cs (1)
259if (string.IsNullOrEmpty(subpath) || PathUtils.HasInvalidPathChars(subpath))
PhysicalFilesWatcher.cs (2)
516if (string.IsNullOrEmpty(path)) 678if (string.IsNullOrEmpty(_fileWatcher.Path))
Microsoft.Extensions.FileSystemGlobbing (2)
InMemoryDirectoryInfo.cs (1)
45if (string.IsNullOrEmpty(rootDir))
Internal\MatcherContext.cs (1)
171if (string.IsNullOrEmpty(left))
Microsoft.Extensions.Hosting (6)
HostBuilder.cs (2)
236if (string.IsNullOrEmpty(applicationName)) 255if (string.IsNullOrEmpty(contentRootPath))
HostOptions.cs (4)
65if (!string.IsNullOrEmpty(timeoutSeconds) 72if (!string.IsNullOrEmpty(timeoutSeconds) 79if (!string.IsNullOrEmpty(servicesStartConcurrently) 86if (!string.IsNullOrEmpty(servicesStopConcurrently)
Microsoft.Extensions.Hosting.Systemd (5)
SystemdHelpers.cs (4)
39if (!string.IsNullOrEmpty(systemdExecPid)) 55return !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(SystemdConstants.NotifySocket)) || 56!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(SystemdConstants.ListenPid)); 92return !string.IsNullOrEmpty(socketPath);
SystemdNotifier.cs (1)
63if (string.IsNullOrEmpty(socketPath))
Microsoft.Extensions.Hosting.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetimeHostBuilderExtensions.cs (1)
140if (string.IsNullOrEmpty(settings.SourceName))
Microsoft.Extensions.Http (2)
Logging\LoggingHttpMessageHandlerBuilderFilter.cs (1)
46string loggerName = !string.IsNullOrEmpty(builder.Name) ? builder.Name : "Default";
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.Extensions.Http.Diagnostics (17)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (8)
24context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.RequestQueryParametersDataClasses" : $"{name}.RequestQueryParametersDataClasses"; 32context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.BodySizeLimit" : $"{name}.BodySizeLimit"; 42context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.BodyReadTimeout" : $"{name}.BodyReadTimeout"; 52context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.RequestBodyContentTypes" : $"{name}.RequestBodyContentTypes"; 62context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.ResponseBodyContentTypes" : $"{name}.ResponseBodyContentTypes"; 72context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.RequestHeadersDataClasses" : $"{name}.RequestHeadersDataClasses"; 82context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.ResponseHeadersDataClasses" : $"{name}.ResponseHeadersDataClasses"; 92context.DisplayName = string.IsNullOrEmpty(name) ? "LoggingOptions.RouteParameterDataClasses" : $"{name}.RouteParameterDataClasses";
Http\HttpDependencyMetadataResolver.cs (2)
105if (!string.IsNullOrEmpty(route)) 344if (!string.IsNullOrEmpty(trieCurrent.DependencyName))
Http\HttpDiagnosticsHttpWebRequestExtensions.cs (2)
51RequestName = string.IsNullOrEmpty(requestName) ? TelemetryConstants.Unknown : requestName, 52DependencyName = string.IsNullOrEmpty(dependencyName) ? TelemetryConstants.Unknown : dependencyName
Logging\Internal\HttpRequestReader.cs (2)
138if (_logRequestQueryParameters && !string.IsNullOrEmpty(request.RequestUri?.Query)) 187if (!string.IsNullOrEmpty(value) && _queryParameterDataClasses.TryGetValue(key, out var classification))
Logging\Internal\Log.cs (2)
100var urlQueryPropertyCount = string.IsNullOrEmpty(record.QueryString) ? 0 : 1; 111if (!string.IsNullOrEmpty(record.QueryString))
Logging\Internal\MediaTypeCollectionExtensions.cs (1)
22if (!string.IsNullOrEmpty(sample))
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingExtensionsTest.cs (1)
679Assert.False(string.IsNullOrEmpty(latencyInfo));
Microsoft.Extensions.Http.Resilience (55)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (52)
25context.DisplayName = string.IsNullOrEmpty(name) ? "HedgingEndpointOptions.RateLimiter" : $"{name}.RateLimiter"; 34(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpRateLimiterStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HedgingEndpointOptions.RateLimiter" : $"{name}.RateLimiter", options.RateLimiter)); 38context.DisplayName = string.IsNullOrEmpty(name) ? "HedgingEndpointOptions.CircuitBreaker" : $"{name}.CircuitBreaker"; 49(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpCircuitBreakerStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HedgingEndpointOptions.CircuitBreaker" : $"{name}.CircuitBreaker", options.CircuitBreaker)); 53context.DisplayName = string.IsNullOrEmpty(name) ? "HedgingEndpointOptions.Timeout" : $"{name}.Timeout"; 64(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpTimeoutStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HedgingEndpointOptions.Timeout" : $"{name}.Timeout", options.Timeout)); 91context.DisplayName = string.IsNullOrEmpty(name) ? "HttpCircuitBreakerStrategyOptions.FailureRatio" : $"{name}.FailureRatio"; 99context.DisplayName = string.IsNullOrEmpty(name) ? "HttpCircuitBreakerStrategyOptions.MinimumThroughput" : $"{name}.MinimumThroughput"; 109context.DisplayName = string.IsNullOrEmpty(name) ? "HttpCircuitBreakerStrategyOptions.SamplingDuration" : $"{name}.SamplingDuration"; 119context.DisplayName = string.IsNullOrEmpty(name) ? "HttpCircuitBreakerStrategyOptions.BreakDuration" : $"{name}.BreakDuration"; 129context.DisplayName = string.IsNullOrEmpty(name) ? "HttpCircuitBreakerStrategyOptions.ShouldHandle" : $"{name}.ShouldHandle"; 162context.DisplayName = string.IsNullOrEmpty(name) ? "HttpHedgingStrategyOptions.MaxHedgedAttempts" : $"{name}.MaxHedgedAttempts"; 170context.DisplayName = string.IsNullOrEmpty(name) ? "HttpHedgingStrategyOptions.ShouldHandle" : $"{name}.ShouldHandle"; 180context.DisplayName = string.IsNullOrEmpty(name) ? "HttpHedgingStrategyOptions.ActionGenerator" : $"{name}.ActionGenerator"; 213context.DisplayName = string.IsNullOrEmpty(name) ? "HttpRateLimiterStrategyOptions.DefaultRateLimiterOptions" : $"{name}.DefaultRateLimiterOptions"; 244context.DisplayName = string.IsNullOrEmpty(name) ? "HttpRetryStrategyOptions.MaxRetryAttempts" : $"{name}.MaxRetryAttempts"; 252context.DisplayName = string.IsNullOrEmpty(name) ? "HttpRetryStrategyOptions.Delay" : $"{name}.Delay"; 262context.DisplayName = string.IsNullOrEmpty(name) ? "HttpRetryStrategyOptions.MaxDelay" : $"{name}.MaxDelay"; 272context.DisplayName = string.IsNullOrEmpty(name) ? "HttpRetryStrategyOptions.ShouldHandle" : $"{name}.ShouldHandle"; 282context.DisplayName = string.IsNullOrEmpty(name) ? "HttpRetryStrategyOptions.Randomizer" : $"{name}.Randomizer"; 315context.DisplayName = string.IsNullOrEmpty(name) ? "HttpTimeoutStrategyOptions.Timeout" : $"{name}.Timeout"; 346context.DisplayName = string.IsNullOrEmpty(name) ? "UriEndpointGroup.Endpoints" : $"{name}.Endpoints"; 360(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__WeightedUriEndpointValidator__.Validate(string.IsNullOrEmpty(name) ? $"UriEndpointGroup.Endpoints[{count}]" : $"{name}.Endpoints[{count}]", o)); 364(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"UriEndpointGroup.Endpoints[{count}] is null" : $"{name}.Endpoints[{count}] is null"); 394context.DisplayName = string.IsNullOrEmpty(name) ? "WeightedUriEndpointGroup.Weight" : $"{name}.Weight"; 402context.DisplayName = string.IsNullOrEmpty(name) ? "WeightedUriEndpointGroup.Endpoints" : $"{name}.Endpoints"; 418(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__WeightedUriEndpointValidator__.Validate(string.IsNullOrEmpty(name) ? $"WeightedUriEndpointGroup.Endpoints[{count}]" : $"{name}.Endpoints[{count}]", o)); 422(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"WeightedUriEndpointGroup.Endpoints[{count}] is null" : $"{name}.Endpoints[{count}] is null"); 452context.DisplayName = string.IsNullOrEmpty(name) ? "WeightedUriEndpoint.Uri" : $"{name}.Uri"; 460context.DisplayName = string.IsNullOrEmpty(name) ? "WeightedUriEndpoint.Weight" : $"{name}.Weight"; 492context.DisplayName = string.IsNullOrEmpty(name) ? "OrderedGroupsRoutingOptions.Groups" : $"{name}.Groups"; 507(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__UriEndpointGroupValidator__.Validate(string.IsNullOrEmpty(name) ? $"OrderedGroupsRoutingOptions.Groups[{count}]" : $"{name}.Groups[{count}]", o)); 511(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"OrderedGroupsRoutingOptions.Groups[{count}] is null" : $"{name}.Groups[{count}] is null"); 540context.DisplayName = string.IsNullOrEmpty(name) ? "WeightedGroupsRoutingOptions.Groups" : $"{name}.Groups"; 555(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__WeightedUriEndpointGroupValidator__.Validate(string.IsNullOrEmpty(name) ? $"WeightedGroupsRoutingOptions.Groups[{count}]" : $"{name}.Groups[{count}]", o)); 559(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"WeightedGroupsRoutingOptions.Groups[{count}] is null" : $"{name}.Groups[{count}] is null"); 588context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardHedgingResilienceOptions.TotalRequestTimeout" : $"{name}.TotalRequestTimeout"; 597(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpTimeoutStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardHedgingResilienceOptions.TotalRequestTimeout" : $"{name}.TotalRequestTimeout", options.TotalRequestTimeout)); 601context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardHedgingResilienceOptions.Hedging" : $"{name}.Hedging"; 612(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpHedgingStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardHedgingResilienceOptions.Hedging" : $"{name}.Hedging", options.Hedging)); 616context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardHedgingResilienceOptions.Endpoint" : $"{name}.Endpoint"; 627(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HedgingEndpointOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardHedgingResilienceOptions.Endpoint" : $"{name}.Endpoint", options.Endpoint)); 653context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.RateLimiter" : $"{name}.RateLimiter"; 662(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpRateLimiterStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.RateLimiter" : $"{name}.RateLimiter", options.RateLimiter)); 666context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.TotalRequestTimeout" : $"{name}.TotalRequestTimeout"; 677(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpTimeoutStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.TotalRequestTimeout" : $"{name}.TotalRequestTimeout", options.TotalRequestTimeout)); 681context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.Retry" : $"{name}.Retry"; 692(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpRetryStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.Retry" : $"{name}.Retry", options.Retry)); 696context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.CircuitBreaker" : $"{name}.CircuitBreaker"; 707(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpCircuitBreakerStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.CircuitBreaker" : $"{name}.CircuitBreaker", options.CircuitBreaker)); 711context.DisplayName = string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.AttemptTimeout" : $"{name}.AttemptTimeout"; 722(builder ??= new()).AddResult(global::Microsoft.Extensions.Http.Resilience.__HttpTimeoutStrategyOptionsValidator__.Validate(string.IsNullOrEmpty(name) ? "HttpStandardResilienceOptions.AttemptTimeout" : $"{name}.AttemptTimeout", options.AttemptTimeout));
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Identity.Core (2)
UserClaimsPrincipalFactory.cs (1)
83if (!string.IsNullOrEmpty(email))
UserValidator.cs (1)
61else if (!string.IsNullOrEmpty(manager.Options.User.AllowedUserNameCharacters) &&
Microsoft.Extensions.Localization (3)
Internal\ResourceManagerStringProvider.cs (1)
47if (!string.IsNullOrEmpty(culture.Name))
ResourceManagerStringLocalizerFactory.cs (2)
46if (!string.IsNullOrEmpty(_resourcesRelativePath)) 82if (string.IsNullOrEmpty(resourcesRelativePath))
Microsoft.Extensions.Logging (1)
LoggerRuleSelector.cs (1)
28|| (!string.IsNullOrEmpty(providerAlias) && IsBetter(rule, current, providerAlias, category)))
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.Extensions.Logging.AzureAppServices (3)
BatchLoggerConfigureOptions.cs (1)
27if (string.IsNullOrEmpty(text) ||
WebAppContext.cs (2)
30public bool IsRunningInAzureWebApp => !string.IsNullOrEmpty(HomeFolder) && 31!string.IsNullOrEmpty(SiteName);
Microsoft.Extensions.Logging.Configuration (2)
_generated\0\BindingExtensions.g.cs (1)
49if (TryGetConfigurationValue(section, key: null, out string? value) && !string.IsNullOrEmpty(value))
LoggerFilterConfigureOptions.cs (1)
74if (string.IsNullOrEmpty(value))
Microsoft.Extensions.Logging.Console (28)
_generated\0\BindingExtensions.g.cs (20)
113if (!string.IsNullOrEmpty(value0)) 138if (!string.IsNullOrEmpty(value2)) 155if (!string.IsNullOrEmpty(value3)) 167if (!string.IsNullOrEmpty(value4)) 192if (!string.IsNullOrEmpty(value6)) 204if (!string.IsNullOrEmpty(value7)) 229if (!string.IsNullOrEmpty(value9)) 241if (!string.IsNullOrEmpty(value10)) 253if (!string.IsNullOrEmpty(value11)) 324if (!string.IsNullOrEmpty(value24)) 336if (!string.IsNullOrEmpty(value25)) 348if (!string.IsNullOrEmpty(value26)) 373if (!string.IsNullOrEmpty(value28)) 385if (!string.IsNullOrEmpty(value29)) 416if (!string.IsNullOrEmpty(value34)) 441if (!string.IsNullOrEmpty(value36)) 458if (!string.IsNullOrEmpty(value37)) 470if (!string.IsNullOrEmpty(value38)) 482if (!string.IsNullOrEmpty(value39)) 507if (!string.IsNullOrEmpty(value41))
ConfigurationConsoleLoggerSettings.cs (2)
44if (string.IsNullOrEmpty(value)) 87if (string.IsNullOrEmpty(value))
ConsoleControlCharacterSanitizer.cs (1)
22if (string.IsNullOrEmpty(value))
SimpleConsoleFormatter.cs (1)
138if (!string.IsNullOrEmpty(message))
src\runtime\src\libraries\Common\src\System\Console\ConsoleUtils.cs (3)
46if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("FORCE_COLOR")) || 47!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION"))) 53if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NO_COLOR")))
SystemdConsoleFormatter.cs (1)
92if (!string.IsNullOrEmpty(message))
Microsoft.Extensions.Logging.Debug (2)
DebugLogger.cs (2)
50if (string.IsNullOrEmpty(formatted) && exception == null) 57if (string.IsNullOrEmpty(formatted))
Microsoft.Extensions.Logging.EventLog (5)
EventLogLogger.cs (1)
86if (string.IsNullOrEmpty(message))
EventLogSettings.cs (4)
43string logName = string.IsNullOrEmpty(LogName) ? "Application" : LogName; 44string machineName = string.IsNullOrEmpty(MachineName) ? "." : MachineName; 45string sourceName = string.IsNullOrEmpty(SourceName) ? ".NET Runtime" : SourceName; 48if (string.IsNullOrEmpty(SourceName))
Microsoft.Extensions.Logging.Generators (4)
LoggerMessageGenerator.Emitter.cs (1)
583if (string.IsNullOrEmpty(text))
LoggerMessageGenerator.Parser.cs (2)
355if (paramSyntax != null && !string.IsNullOrEmpty(paramSyntax.Identifier.Text)) 838if (string.IsNullOrEmpty(message))
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Logging.TraceSource (5)
TraceSourceLogger.cs (2)
47string exceptionDelimiter = string.IsNullOrEmpty(message) ? string.Empty : " "; 51if (!string.IsNullOrEmpty(message))
TraceSourceLoggerProvider.cs (3)
65if (string.IsNullOrEmpty(parentSourceName)) 109return string.IsNullOrEmpty(traceSource.Switch.DisplayName) == string.IsNullOrEmpty(traceSource.Name) &&
Microsoft.Extensions.ML (3)
ModelLoaders\FileModelLoader.cs (1)
47if (string.IsNullOrEmpty(directory))
PredictionEnginePool.cs (2)
103if (string.IsNullOrEmpty(modelName)) 157if (string.IsNullOrEmpty(modelName))
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Options.Contextual (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Primitives (2)
StringValues.cs (2)
4311 => string.IsNullOrEmpty(values[0]), 438return string.IsNullOrEmpty(Unsafe.As<string>(data));
Microsoft.Extensions.Resilience (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.ServiceDiscovery (3)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
parent\parent\Shared\FxPolyfills\ArgumentException.cs (1)
15if (string.IsNullOrEmpty(argument))
PassThrough\PassThroughServiceEndpointProviderFactory.cs (1)
55else if (!string.IsNullOrEmpty(host))
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
parent\parent\Shared\FxPolyfills\ArgumentException.cs (1)
15if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.ServiceDiscovery.Dns (3)
DnsSrvServiceEndpointProviderFactory.cs (2)
128if (string.IsNullOrEmpty(host) || string.IsNullOrEmpty(port))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Program.cs (1)
48if (string.IsNullOrEmpty(inputFiles))
Microsoft.Extensions.ServiceDiscovery.Yarp (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
ServiceDiscoveryDestinationResolver.cs (1)
95if (!string.IsNullOrEmpty(originalConfig.Host))
Microsoft.Extensions.Telemetry (10)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (5)
25context.DisplayName = string.IsNullOrEmpty(name) ? "RandomProbabilisticSamplerFilterRule.Probability" : $"{name}.Probability"; 55context.DisplayName = string.IsNullOrEmpty(name) ? "RandomProbabilisticSamplerOptions.Rules" : $"{name}.Rules"; 69(builder ??= new()).AddResult(global::Microsoft.Extensions.Diagnostics.Sampling.__RandomProbabilisticSamplerFilterRuleValidator__.Validate(string.IsNullOrEmpty(name) ? $"RandomProbabilisticSamplerOptions.Rules[{count}]" : $"{name}.Rules[{count}]", o)); 73(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"RandomProbabilisticSamplerOptions.Rules[{count}] is null" : $"{name}.Rules[{count}] is null"); 102context.DisplayName = string.IsNullOrEmpty(name) ? "LoggerEnrichmentOptions.MaxStackTraceLength" : $"{name}.MaxStackTraceLength";
Logging\Import\LoggerRuleSelector.cs (1)
32|| (!string.IsNullOrEmpty(providerAlias) && IsBetter(rule, current, providerAlias, category)))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\LogBuffering\SerializedLogRecordFactory.cs (1)
69if (string.IsNullOrEmpty(str))
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Telemetry.Abstractions (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (3)
26context.DisplayName = string.IsNullOrEmpty(name) ? "LatencyContextRegistrationOptions.CheckpointNames" : $"{name}.CheckpointNames"; 34context.DisplayName = string.IsNullOrEmpty(name) ? "LatencyContextRegistrationOptions.MeasureNames" : $"{name}.MeasureNames"; 44context.DisplayName = string.IsNullOrEmpty(name) ? "LatencyContextRegistrationOptions.TagNames" : $"{name}.TagNames";
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.TimeProvider.Testing (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.VectorData.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Gen.ComplianceReports (2)
Emitter.cs (2)
65if (!string.IsNullOrEmpty(c.Notes)) 109if (!string.IsNullOrEmpty(c.Notes))
Microsoft.Gen.ContextualOptions (2)
Emitter.cs (2)
31$@"{(!string.IsNullOrEmpty(optionsContextType.Namespace) ? $"namespace {optionsContextType.Namespace}" + 42{(!string.IsNullOrEmpty(optionsContextType.Namespace) ? "}" : string.Empty)}";
Microsoft.Gen.Logging (10)
Emitter.Method.cs (5)
37if (!string.IsNullOrEmpty(lm.Message)) 112if (!string.IsNullOrEmpty(lm.Message) && 133else if (string.IsNullOrEmpty(lm.Message)) 320if (!string.IsNullOrEmpty(lm.Message)) 335if (!string.IsNullOrEmpty(lm.Message))
Parser.cs (2)
189else if (lp.IsNormalParameter && !parameterInTemplate && !loggingProperties && !string.IsNullOrEmpty(lm.Message)) 583if (!string.IsNullOrEmpty(paramSyntax!.Identifier.Text))
Parser.LogProperties.cs (1)
213if (!string.IsNullOrEmpty(propertyIdentifier))
TemplateProcessor.cs (2)
23if (string.IsNullOrEmpty(message)) 80if (string.IsNullOrEmpty(message))
Microsoft.Gen.MetadataExtractor (12)
Emitter.cs (2)
65if (!string.IsNullOrEmpty(c.Notes)) 109if (!string.IsNullOrEmpty(c.Notes))
MetadataReportsGenerator.cs (2)
102.Append((string.IsNullOrEmpty(metadataReport.complianceReport) ? "{}" : metadataReport.complianceReport)) 105.Append((string.IsNullOrEmpty(metadataReport.metricReport) ? "[]" : metadataReport.metricReport) + " }");
MetricDefinitionEmitter.cs (1)
94if (!string.IsNullOrEmpty(metricMethod.Summary))
Parser_2.cs (7)
349if (string.IsNullOrEmpty(xmlComment)) 395if (!string.IsNullOrEmpty(xmlDefinition)) 466if (!string.IsNullOrEmpty(xmlDefinition)) 760if (!string.IsNullOrEmpty(xmlDefinition)) 762tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 792if (!string.IsNullOrEmpty(xmlDefinition)) 794tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Gen.Metrics (12)
Emitter.cs (3)
304if (string.IsNullOrEmpty(metricMethod.StrongTypeObjectName)) 327var access = string.IsNullOrEmpty(config.Path) 338if (string.IsNullOrEmpty(metricMethod.StrongTypeObjectName))
MetricFactoryEmitter.cs (2)
41if (string.IsNullOrEmpty(str) || 151if (string.IsNullOrEmpty(metricMethod.MetricUnit))
Parser.cs (7)
349if (string.IsNullOrEmpty(xmlComment)) 395if (!string.IsNullOrEmpty(xmlDefinition)) 466if (!string.IsNullOrEmpty(xmlDefinition)) 760if (!string.IsNullOrEmpty(xmlDefinition)) 762tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 792if (!string.IsNullOrEmpty(xmlDefinition)) 794tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Gen.MetricsReports (8)
MetricDefinitionEmitter.cs (1)
94if (!string.IsNullOrEmpty(metricMethod.Summary))
Parser.cs (7)
349if (string.IsNullOrEmpty(xmlComment)) 395if (!string.IsNullOrEmpty(xmlDefinition)) 466if (!string.IsNullOrEmpty(xmlDefinition)) 760if (!string.IsNullOrEmpty(xmlDefinition)) 762tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 792if (!string.IsNullOrEmpty(xmlDefinition)) 794tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Interop.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
Microsoft.Maui (9)
Handlers\HybridWebView\HybridWebViewHandler.cs (2)
104 if (string.IsNullOrEmpty(rawMessage)) 179 if (string.IsNullOrEmpty(invokeDataString))
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (2)
12 if (string.IsNullOrEmpty(url)) 33 if (!string.IsNullOrEmpty(url))
Platform\TimeExtensions.cs (1)
21 if (string.IsNullOrEmpty(format))
WeakEventManager.cs (4)
19 if (IsNullOrEmpty(eventName)) 30 if (IsNullOrEmpty(eventName)) 85 if (IsNullOrEmpty(eventName)) 96 if (IsNullOrEmpty(eventName))
Microsoft.Maui.Controls (55)
Accelerator.cs (1)
18 if (string.IsNullOrEmpty(text))
AcceleratorTypeConverter.cs (1)
29 if (string.IsNullOrEmpty(strValue))
AnimatableKey.cs (1)
16 if (string.IsNullOrEmpty(handle))
BindableObject.cs (1)
467 if (string.IsNullOrEmpty(key))
BindingExpression.cs (1)
693 if (!string.IsNullOrEmpty(name))
Brush\BrushTypeConverter.cs (2)
342 if (!hasPositionX && !string.IsNullOrEmpty(directionX)) 345 if (!hasPositionY && !string.IsNullOrEmpty(directionY))
DeviceStateTrigger.cs (1)
40 if (string.IsNullOrEmpty(Device))
FileImageSource.cs (1)
14 public override bool IsEmpty => string.IsNullOrEmpty(File);
FlyoutPage\FlyoutPage.cs (1)
100 if (string.IsNullOrEmpty(value.Title))
FontAttributes.cs (1)
34 if (string.IsNullOrEmpty(strValue))
FontImageSource.cs (1)
10 public override bool IsEmpty => string.IsNullOrEmpty(Glyph);
HybridWebView\HybridWebView.cs (2)
90 if (string.IsNullOrEmpty(methodName)) 119 if (string.IsNullOrEmpty(methodName))
Interactivity\EventTrigger.cs (1)
51 if (!string.IsNullOrEmpty(Event))
Internals\ImageParser.cs (1)
265 return !string.IsNullOrEmpty(TypeIdentifier) && TypeIdentifier.StartsWith("GIF", StringComparison.OrdinalIgnoreCase);
Internals\TextTransformUtilites.cs (2)
24 if (string.IsNullOrEmpty(source)) 55 if ((string.IsNullOrEmpty(formsText) && platformText.Length == 0))
LegacyLayouts\ConstraintExpression.cs (3)
41 if (string.IsNullOrEmpty(Property)) 48 if (string.IsNullOrEmpty(Property)) 50 if (string.IsNullOrEmpty(ElementName))
Page\Page.cs (1)
340 if (string.IsNullOrEmpty(cancel))
PlatformBindingHelpers.cs (4)
23 if (IsNullOrEmpty(updateSourceEventName) && binding != null && !IsNullOrEmpty(binding.UpdateSourceEventName)) 26 if (!IsNullOrEmpty(updateSourceEventName)) 37 if (IsNullOrEmpty(targetProperty))
PropertyChangedEventArgsExtensions.cs (5)
12 if (string.IsNullOrEmpty(args.PropertyName)) 21 if (string.IsNullOrEmpty(args.PropertyName)) 31 if (string.IsNullOrEmpty(args.PropertyName)) 42 if (string.IsNullOrEmpty(args.PropertyName)) 54 if (string.IsNullOrEmpty(args.PropertyName))
RadioButton\RadioButton.cs (6)
382 if (!IsChecked || string.IsNullOrEmpty(GroupName)) 395 if (!string.IsNullOrEmpty(newGroupName)) 397 if (string.IsNullOrEmpty(oldGroupName)) 410 if (!string.IsNullOrEmpty(oldGroupName)) 426 if (!IsChecked || selected == this || string.IsNullOrEmpty(GroupName) || GroupName != selected.GroupName || (Value is not null && object.Equals(Value, args.Value)) || !MatchesScope(args)) 436 if (IsChecked || string.IsNullOrEmpty(GroupName) || GroupName != args.GroupName || !object.Equals(Value, args.Value) || !MatchesScope(args))
RadioButton\RadioButtonGroup.cs (2)
59 Element scope = string.IsNullOrEmpty(groupName) 81 if (rb != null && rb != radioButton && string.IsNullOrEmpty(rb.GroupName) && (rb.IsChecked == true))
RadioButton\RadioButtonGroupController.cs (3)
25 if (!string.IsNullOrEmpty(_groupName)) 77 if (string.IsNullOrEmpty(_groupName)) 122 if (string.IsNullOrEmpty(currentName) || currentName == oldName)
ResourceDictionary.cs (1)
345 if (string.IsNullOrEmpty(style.Class))
Setter.cs (2)
71 if (!string.IsNullOrEmpty(TargetName) && target is Element element) 95 if (!string.IsNullOrEmpty(TargetName) && target is Element element)
SettersExtensions.cs (1)
29 if (string.IsNullOrEmpty(key))
Shapes\MatrixTypeConverter.cs (1)
22 if (string.IsNullOrEmpty(value))
Shell\ShellNavigationManager.cs (1)
288 if (string.IsNullOrEmpty(route) || Routing.IsImplicit(route))
ShellToolbar.cs (1)
115 !String.IsNullOrEmpty(Title) ||
StyleSheets\Style.cs (2)
39 if (!string.IsNullOrEmpty(propertyName) && !string.IsNullOrEmpty(propertyValue))
TypedBinding.cs (1)
502 if (!string.IsNullOrEmpty(e.PropertyName) && string.CompareOrdinal(e.PropertyName, PropertyName) != 0)
VisualElement\VisualElement.cs (2)
226 if (string.IsNullOrEmpty(transform) || openBracket < 0 || closeBracket < 0) 2444 if (!string.IsNullOrEmpty(strValue))
VisualStateManager.cs (1)
554 if (states.Any(state => string.IsNullOrEmpty(state.Name)))
Microsoft.Maui.Controls.Build.Tasks (25)
CompiledConverters\BindablePropertyConverter.cs (1)
19 if (IsNullOrEmpty(value))
CompiledConverters\BoundsTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledConverters\BrushTypeConverter.cs (1)
15 if (!string.IsNullOrEmpty(value))
CompiledConverters\ColorTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledConverters\ConstraintTypeConverter.cs (1)
19 if (string.IsNullOrEmpty(value) || !double.TryParse(value, NumberStyles.Number, CultureInfo.InvariantCulture, out size))
CompiledConverters\CornerRadiusTypeConverter.cs (1)
17 if (!string.IsNullOrEmpty(value))
CompiledConverters\EnumTypeConverter.cs (1)
13 if (!string.IsNullOrEmpty(value))
CompiledConverters\FlexBasisTypeConverter.cs (1)
16 if (!string.IsNullOrEmpty(value))
CompiledConverters\FontSizeTypeConverter.cs (1)
16 if (!string.IsNullOrEmpty(value))
CompiledConverters\ImageSourceTypeConverter.cs (1)
14 if (!string.IsNullOrEmpty(value))
CompiledConverters\LayoutOptionsConverter.cs (1)
19 if (string.IsNullOrEmpty(value))
CompiledConverters\PointTypeConverter.cs (1)
15 if (!string.IsNullOrEmpty(value) && Point.TryParse(value.Trim(), out var point))
CompiledConverters\RDSourceTypeConverter.cs (2)
81 if (!string.IsNullOrEmpty(asmName)) 137 if (!string.IsNullOrEmpty(asmName))
CompiledConverters\RectangleTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledConverters\StrokeShapeTypeConverter.cs (1)
20 if (!string.IsNullOrEmpty(value))
CompiledConverters\ThicknessTypeConverter.cs (1)
17 if (!string.IsNullOrEmpty(value))
CompiledConverters\TypeTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledMarkupExtensions\StaticExtension.cs (1)
20 if (IsNullOrEmpty(member) || !member.Contains("."))
DebugXamlCTask.cs (1)
32 var debug = DebugSymbols || (!string.IsNullOrEmpty(DebugType) && DebugType.ToLowerInvariant() != "none");
ExpandMarkupsVisitor.cs (2)
135 if (!string.IsNullOrEmpty(prefix) && string.IsNullOrEmpty(namespaceuri))
SetPropertiesVisitor.cs (1)
1954 if (string.IsNullOrEmpty(runTimeName))
XamlCTask.cs (2)
170 if (GenerateFullPaths && string.IsNullOrEmpty(FullPathPrefix)) 193 var debug = DebugSymbols || (!string.IsNullOrEmpty(DebugType) && DebugType.ToLowerInvariant() != "none");
Microsoft.Maui.Controls.DesignTools (6)
BoundsDesignTypeConverter.cs (1)
13 if (string.IsNullOrEmpty(strValue))
ButtonContentDesignTypeConverter.cs (1)
22 if (string.IsNullOrEmpty(stringValue))
ColorDesignTypeConverter.cs (1)
211 if (!string.IsNullOrEmpty(funcName) && funcValues != null)
DesignTypeConverterHelper.cs (1)
13 if (string.IsNullOrEmpty(numberCollection))
GridLengthDesignTypeConverter.cs (1)
22 if (string.IsNullOrEmpty(value))
ThicknessTypeDesignConverter.cs (1)
13 if (string.IsNullOrEmpty(strValue))
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (2)
286 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_'); 633 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_');
Microsoft.Maui.Controls.Xaml (9)
ApplyPropertiesVisitor.cs (1)
466 if (eventInfo == null || IsNullOrEmpty(stringValue))
MarkupExtensions\DataTemplateExtension.cs (1)
19 if (string.IsNullOrEmpty(TypeName))
MarkupExtensions\StaticExtension.cs (1)
23 if (string.IsNullOrEmpty(Member) || Member.IndexOf(".", StringComparison.Ordinal) == -1)
MarkupExtensions\StyleSheetExtension.cs (2)
23 if (!string.IsNullOrEmpty(Style) && Source != null) 42 if (!string.IsNullOrEmpty(Style))
MarkupExtensions\TypeExtension.cs (1)
18 if (string.IsNullOrEmpty(TypeName))
SimplifyOnPlatformVisitor.cs (1)
13 if (string.IsNullOrEmpty(targetFramework))
XamlLoader.cs (2)
51 if (string.IsNullOrEmpty(xaml)) 323 if (!string.IsNullOrEmpty(info.FileName) &&
Microsoft.Maui.Essentials (6)
Share\Share.shared.cs (2)
112 if (string.IsNullOrEmpty(request.Text) && string.IsNullOrEmpty(request.Uri))
TextToSpeech\TextToSpeech.shared.cs (1)
158 if (string.IsNullOrEmpty(text))
Types\Shared\WebUtils.shared.cs (3)
17 if (!string.IsNullOrEmpty(uri.Query)) 21 if (!string.IsNullOrEmpty(uri.Fragment)) 95 if (!string.IsNullOrEmpty(expectedUrl.Host))
Microsoft.Maui.Graphics (11)
Font.cs (1)
60 => string.IsNullOrEmpty(Name);
PathBuilder.cs (1)
12 if (string.IsNullOrEmpty(definition))
Point.cs (1)
133 if (!string.IsNullOrEmpty(value))
PointF.cs (1)
132 if (!string.IsNullOrEmpty(value))
Rect.cs (1)
225 if (!string.IsNullOrEmpty(value))
RectF.cs (1)
225 if (!string.IsNullOrEmpty(value))
Size.cs (1)
110 if (!string.IsNullOrEmpty(value))
SizeF.cs (1)
126 if (!string.IsNullOrEmpty(value))
Text\TextColors.cs (2)
155 if (string.IsNullOrEmpty(color)) 198 if (string.IsNullOrEmpty(color))
Text\XmlAttributedTextWriter.cs (1)
24 if (attributedText != null && !string.IsNullOrEmpty(attributedText.Text))
Microsoft.Maui.Graphics.Skia (6)
FontExtensions.cs (1)
12 if (string.IsNullOrEmpty(font?.Name))
SkiaCanvas.cs (2)
622 if (string.IsNullOrEmpty(value)) 656 if (string.IsNullOrEmpty(value))
SkiaStringSizeService.cs (2)
9 if (string.IsNullOrEmpty(value)) 23 if (string.IsNullOrEmpty(value))
SkiaTextLayout.cs (1)
69 if (string.IsNullOrEmpty(_value))
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\SimpleCssParser.cs (1)
10 if (string.IsNullOrEmpty(css))
Microsoft.Maui.Resizetizer (47)
CreatePartialInfoPlistTask.cs (1)
55 if (!string.IsNullOrEmpty(Storyboard))
DpiPath.cs (1)
378 if (!string.IsNullOrEmpty(r.Path))
GeneratePackageAppxManifest.cs (27)
77 if (!string.IsNullOrEmpty(ApplicationId) || !string.IsNullOrEmpty(ApplicationDisplayVersion) || !string.IsNullOrEmpty(ApplicationVersion)) 89 if (!string.IsNullOrEmpty(ApplicationId)) 93 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PackageNamePlaceholder) 100 if (!string.IsNullOrEmpty(ApplicationDisplayVersion) || !string.IsNullOrEmpty(ApplicationVersion)) 104 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PackageVersionPlaceholder) 121 if (!string.IsNullOrEmpty(ApplicationTitle) || appIconInfo != null) 133 if (!string.IsNullOrEmpty(ApplicationTitle)) 137 if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == DefaultPlaceholder) 146 if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == PngPlaceholder) 167 if (!string.IsNullOrEmpty(ApplicationTitle) || appIconInfo != null || splashInfo != null) 196 if (!string.IsNullOrEmpty(ApplicationTitle)) 202 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == DefaultPlaceholder) 210 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == DefaultPlaceholder) 219 if (attr == null || string.IsNullOrEmpty(attr.Value)) 229 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 241 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 265 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 277 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 289 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 299 if (!string.IsNullOrEmpty(ApplicationTitle)) 303 if (attr == null || string.IsNullOrEmpty(attr.Value)) 339 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 358 if (parts.Length > 3 && !string.IsNullOrEmpty(version)) 372 if (!string.IsNullOrEmpty(version))
GenerateSplashStoryboard.cs (1)
135 if (!string.IsNullOrEmpty(image))
GenerateTizenManifest.cs (5)
101 if (!string.IsNullOrEmpty(ApplicationId)) 107 if (!string.IsNullOrEmpty(ApplicationDisplayVersion)) 120 if (!string.IsNullOrEmpty(ApplicationTitle)) 193 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == placeholder) 201 if (string.IsNullOrEmpty(element.Value) || element.Value == placeholder)
GetMauiAssetPath.cs (3)
47 var path = string.IsNullOrEmpty(link) 61 if (!string.IsNullOrEmpty(FolderName)) 78 if (string.IsNullOrEmpty(projectDirectory))
ResizeImageInfo.cs (4)
103 if (info.TintColor is null && !string.IsNullOrEmpty(tintColor)) 108 if (info.Color is null && !string.IsNullOrEmpty(color)) 118 if (!string.IsNullOrEmpty(fgFile)) 128 if (info.IsAppIcon && string.IsNullOrEmpty(info.ForegroundFilename))
Resizer.cs (1)
50 if (!string.IsNullOrEmpty(intermediateOutputPath))
SkiaSharpTools.cs (2)
31 if (string.IsNullOrEmpty(retryVariable) || !int.TryParse(retryVariable, out fileWriteRetry)) 48 if (string.IsNullOrEmpty(delayVariable) || !int.TryParse(delayVariable, out fileWriteRetryDelay))
Utils.cs (2)
20 if (string.IsNullOrEmpty(tint)) 38 if (string.IsNullOrEmpty(size))
Microsoft.ML.AutoML (4)
ColumnInference\ColumnTypeInference.cs (1)
84return !string.IsNullOrEmpty(x.ToString()) &&
Utils\SweepableParamAttributes.cs (3)
114var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 163var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 210var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", ";
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
155if (string.IsNullOrEmpty(textToAppend))
Template\SearchSpace.cs (1)
172if (string.IsNullOrEmpty(textToAppend))
Template\SweepableEstimator_T_.cs (1)
179if (string.IsNullOrEmpty(textToAppend))
Template\SweepableEstimator.cs (1)
174if (string.IsNullOrEmpty(textToAppend))
Template\SweepableEstimatorFactory.cs (1)
150if (string.IsNullOrEmpty(textToAppend))
Microsoft.ML.CodeGenerator (16)
Templates\Azure\Console\AzureModelBuilder.cs (1)
249if (string.IsNullOrEmpty(textToAppend))
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
190if (string.IsNullOrEmpty(textToAppend))
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
190if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ConsumeModel.cs (1)
201if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelBuilder.cs (6)
46if(!string.IsNullOrEmpty(TestPath)){ 71if(!string.IsNullOrEmpty(TestPath)){ 91if(string.IsNullOrEmpty(TestPath) && !HasOnnxModel){ 95if(!string.IsNullOrEmpty(TestPath) && !HasOnnxModel){ 161if(!string.IsNullOrEmpty(TestPath)){ 566if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelInputClass.cs (1)
164if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelOutputClass.cs (1)
207if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelProject.cs (1)
196if (string.IsNullOrEmpty(textToAppend))
Templates\Console\PredictProgram.cs (1)
223if (string.IsNullOrEmpty(textToAppend))
Templates\Console\PredictProject.cs (1)
201if (string.IsNullOrEmpty(textToAppend))
Utils.cs (1)
135if (!string.IsNullOrEmpty(input) && int.TryParse(input.Substring(0, 1), out int val))
Microsoft.ML.Core (43)
CommandLine\CmdLexer.cs (2)
322if (string.IsNullOrEmpty(str)) 406if (string.IsNullOrEmpty(str))
CommandLine\CmdParser.cs (11)
442if (string.IsNullOrEmpty(name)) 569Contracts.Assert(!string.IsNullOrEmpty(str)); 1003if (string.IsNullOrEmpty(args)) 1075if (string.IsNullOrEmpty(text)) 1148string[] argsArray = string.IsNullOrEmpty(args) ? Array.Empty<string>() : new string[] { args }; 1575if (i < values.Count && IsCurlyGroup((string)values[i].Value) && string.IsNullOrEmpty(values[i].Key)) 1682Contracts.Assert(string.IsNullOrEmpty(tag) || tag.StartsWith("[") && tag.EndsWith("]")); 1743if (string.IsNullOrEmpty(data)) 2039if (!string.IsNullOrEmpty(tag)) 2345if (settings == null || (settings.Length == 1 && string.IsNullOrEmpty(settings[0]))) 2359if (string.IsNullOrEmpty(Name) && Settings.Length == 0)
ComponentModel\AssemblyLoadingUtils.cs (1)
272if (!string.IsNullOrEmpty(path))
ComponentModel\ComponentCatalog.cs (1)
1026if (!string.IsNullOrEmpty(options))
Data\ModelHeader.cs (1)
177if (!string.IsNullOrEmpty(loaderAssemblyName))
Data\ModelLoading.cs (2)
57if (string.IsNullOrEmpty(name)) 286if (!string.IsNullOrEmpty(LoaderAssemblyName))
Data\ModelSaveContext.cs (1)
223_ectx.CheckParam(!string.IsNullOrEmpty(str), nameof(str));
Data\Repository.cs (1)
408if (!string.IsNullOrEmpty(path))
Data\RoleMappedSchema.cs (1)
223if (string.IsNullOrEmpty(kvp.Value))
EntryPoints\ModuleArgs.cs (3)
394var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 447var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 498var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", ";
Environment\HostEnvironmentBase.cs (3)
49ParentFullName = string.IsNullOrEmpty(parentFullName) ? null : parentFullName; 50ShortName = string.IsNullOrEmpty(shortName) ? null : shortName; 60if (string.IsNullOrEmpty(ParentFullName))
Utilities\Contracts.cs (8)
600if (string.IsNullOrEmpty(s)) 606if (string.IsNullOrEmpty(s)) 626if (string.IsNullOrEmpty(s)) 632if (string.IsNullOrEmpty(s)) 904if (string.IsNullOrEmpty(s)) 910if (string.IsNullOrEmpty(s)) 930if (string.IsNullOrEmpty(s)) 936if (string.IsNullOrEmpty(s))
Utilities\PathUtils.cs (1)
134if (!string.IsNullOrEmpty(folder))
Utilities\ResourceManagerUtils.cs (7)
46if (!string.IsNullOrEmpty(envUrl)) 111if (File.Exists(filePath) || !string.IsNullOrEmpty(error)) 136if (string.IsNullOrEmpty(thisDownloadResult)) 207var absDir = Path.Combine(string.IsNullOrEmpty(envDir) ? appDataDir : envDir, dir); 211if (!Directory.Exists(appDataBaseDir) && string.IsNullOrEmpty(envDir)) 338var errorResult = result.FirstOrDefault(res => !string.IsNullOrEmpty(res.ErrorMessage)); 341else if (string.IsNullOrEmpty(errorResult.DownloadUrl))
Microsoft.ML.Core.Tests (2)
UnitTests\TestEntryPoints.cs (2)
2560if (string.IsNullOrEmpty(transforms)) 2565var scorerModel = string.IsNullOrEmpty(transforms) ? "Model" : "CombinedModel";
Microsoft.ML.CpuMath (8)
src\Microsoft.ML.Core\Utilities\Contracts.cs (8)
600if (string.IsNullOrEmpty(s)) 606if (string.IsNullOrEmpty(s)) 626if (string.IsNullOrEmpty(s)) 632if (string.IsNullOrEmpty(s)) 904if (string.IsNullOrEmpty(s)) 910if (string.IsNullOrEmpty(s)) 930if (string.IsNullOrEmpty(s)) 936if (string.IsNullOrEmpty(s))
Microsoft.ML.Data (63)
Commands\CrossValidationCommand.cs (2)
158if (!string.IsNullOrEmpty(ImplOptions.OutputDataFile)) 201validDataCreator, ApplyAllTransformsToData, inputPredictor, cmd, loader, !string.IsNullOrEmpty(ImplOptions.OutputDataFile));
Commands\EvaluateCommand.cs (2)
78if (string.IsNullOrEmpty(_groupName) || string.IsNullOrEmpty(_nameFormat))
Commands\TestCommand.cs (1)
66Host.CheckUserArg(!string.IsNullOrEmpty(ImplOptions.InputModelFile), nameof(ImplOptions.InputModelFile), "The input model file is required.");
Commands\TrainCommand.cs (2)
290if (!string.IsNullOrEmpty(inputModelFile)) 458if (string.IsNullOrEmpty(featureColumn))
Commands\TrainTestCommand.cs (1)
190bool hasOutfile = !string.IsNullOrEmpty(ImplOptions.OutputModelFile);
DataLoadSave\Binary\BinaryLoader.cs (1)
337ch.CheckDecode(!string.IsNullOrEmpty(kind), "Metadata kind must be non-empty string");
DataLoadSave\Binary\BinarySaver.cs (1)
283_host.Check(!string.IsNullOrEmpty(metaColumn.Name), "Metadata with null or empty kind detected, disallowed");
DataLoadSave\Binary\CodecFactory.cs (1)
162Contracts.CheckDecode(!string.IsNullOrEmpty(signature), "Non-empty signature string expected");
DataLoadSave\LegacyCompositeDataLoader.cs (2)
152if (!string.IsNullOrEmpty(pair.Key) && composite._transforms.Any(x => x.Tag == pair.Key)) 222if (string.IsNullOrEmpty(tag))
DataLoadSave\Text\TextLoader.cs (3)
386if (string.IsNullOrEmpty(rest) || rest == "*") 992if (!string.IsNullOrEmpty(result)) 1229if (string.IsNullOrEmpty(s))
DataLoadSave\Text\TextLoaderCursor.cs (1)
508if (string.IsNullOrEmpty(line))
DataLoadSave\Text\TextSaver.cs (1)
279Contracts.CheckUserArg(!string.IsNullOrEmpty(sep), nameof(Arguments.Separator), "Must specify a separator");
DataView\InternalSchemaDefinition.cs (1)
259var colName = string.IsNullOrEmpty(col.ColumnName) ? col.MemberName : col.ColumnName;
DataView\TypedCursor.cs (1)
282var colName = string.IsNullOrEmpty(col.ColumnName) ? col.MemberName : col.ColumnName;
Deprecated\Instances\HeaderSchema.cs (2)
208names[i] = string.IsNullOrEmpty(name) ? null : name; 225if (!string.IsNullOrEmpty(name))
Dirty\PredictionUtils.cs (2)
110if (string.IsNullOrEmpty(sep)) 130if (string.IsNullOrEmpty(s))
EntryPoints\EntryPointNode.cs (3)
532if (string.IsNullOrEmpty(colField)) 538if (!string.IsNullOrEmpty(colName) && Utils.Size(_entryPoint.InputKinds) > 0 && 773if (!string.IsNullOrEmpty(StageId))
EntryPoints\InputBase.cs (1)
47if (string.IsNullOrEmpty(value?.Value))
Evaluators\BinaryClassifierEvaluator.cs (9)
1070if (string.IsNullOrEmpty(_probCol) || !schema.TryGetColumnIndex(_probCol, out _probIndex)) 1098Host.CheckDecode(!string.IsNullOrEmpty(_probCol) || _useRaw); 1131Contracts.Assert(!string.IsNullOrEmpty(_probCol) || _useRaw); 1274Host.Assert(!string.IsNullOrEmpty(_probCol)); 1332evalArgs.NumRocExamples = string.IsNullOrEmpty(args.PRFilename) ? 0 : args.NumRocExamples; 1398ch.Assert(string.IsNullOrEmpty(weightedConf) == string.IsNullOrEmpty(weightedFold)); 1399if (!string.IsNullOrEmpty(weightedConf)) 1417if (!string.IsNullOrEmpty(_prFileName))
Evaluators\EvaluatorBase.cs (2)
488if (!string.IsNullOrEmpty(LabelCol) && !schema.TryGetColumnIndex(LabelCol, out LabelIndex)) 504if (!string.IsNullOrEmpty(LabelCol) && !schema.TryGetColumnIndex(LabelCol, out LabelIndex))
Evaluators\EvaluatorUtils.cs (2)
239if (!string.IsNullOrEmpty(str)) 1710if (!string.IsNullOrEmpty(filename))
Evaluators\MamlEvaluator.cs (2)
146if (!string.IsNullOrEmpty(weight)) 178if (!string.IsNullOrEmpty(weightedMetrics))
Evaluators\MulticlassClassificationEvaluator.cs (3)
942ch.Assert(string.IsNullOrEmpty(weightedConf) == string.IsNullOrEmpty(weightedFold)); 943if (!string.IsNullOrEmpty(weightedConf))
Evaluators\QuantileRegressionEvaluator.cs (1)
501if (!string.IsNullOrEmpty(weightedMetrics))
Evaluators\RankingEvaluator.cs (2)
886evalOpts.OutputGroupSummary = !string.IsNullOrEmpty(args.GroupSummaryFilename); 904if (!string.IsNullOrEmpty(_groupSummaryFilename))
Model\Pfa\ModelUtils.cs (1)
14if (string.IsNullOrEmpty(name))
Model\Pfa\SavePfaCommand.cs (1)
127if (string.IsNullOrEmpty(ImplOptions.InputModelFile))
TrainCatalog.cs (1)
455var eval = new ClusteringEvaluator(Environment, new ClusteringEvaluator.Arguments() { CalculateDbi = !string.IsNullOrEmpty(featureColumnName) });
Transforms\ColumnBindingsBase.cs (2)
151return Source.All(s => !string.IsNullOrEmpty(s)); 194return Source.All(s => !string.IsNullOrEmpty(s));
Transforms\ColumnConcatenatingEstimator.cs (1)
59_host.CheckParam(!inputColumnNames.Any(r => string.IsNullOrEmpty(r)), nameof(inputColumnNames),
Transforms\ColumnConcatenatingTransformer.cs (1)
96if (Source == null || Source.Any(kvp => !string.IsNullOrEmpty(kvp.Key)))
Transforms\TransformBase.cs (1)
393host.CheckDecode(!string.IsNullOrEmpty(src));
Transforms\TypeConverting.cs (1)
121else if (!string.IsNullOrEmpty(Range))
Transforms\ValueMapping.cs (2)
610var keyColumnName = (string.IsNullOrEmpty(options.KeyColumn)) ? DefaultKeyColumnName : options.KeyColumn; 611var valueColumnName = (string.IsNullOrEmpty(options.ValueColumn)) ? DefaultValueColumnName : options.ValueColumn;
Transforms\ValueToKeyMappingTransformer.cs (2)
72if (MaxNumTerms != null || !string.IsNullOrEmpty(Term) || Sort != null || TextKeyValues != null) 277if ((options.Terms != null || !string.IsNullOrEmpty(options.Term)) &&
Utilities\TypeParsingUtils.cs (1)
132if (string.IsNullOrEmpty(str) || str == "*")
Microsoft.ML.DataView (9)
DataViewSchema.cs (9)
38if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); 63if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); 107if (string.IsNullOrEmpty(name)) 150if (string.IsNullOrEmpty(name)) 297if (string.IsNullOrEmpty(name)) 320if (string.IsNullOrEmpty(name)) 340if (string.IsNullOrEmpty(name)) 363Debug.Assert(!string.IsNullOrEmpty(name)); 398if (string.IsNullOrEmpty(name))
Microsoft.ML.Ensemble (5)
PipelineEnsemble.cs (2)
738while (string.IsNullOrEmpty(firstLine)) 740if (!string.IsNullOrEmpty(firstLine))
Selector\SubModelSelector\BestPerformanceRegressionSelector.cs (1)
44Host.Assert(!string.IsNullOrEmpty(_metricName));
Selector\SubModelSelector\BestPerformanceSelector.cs (1)
44Host.Assert(!string.IsNullOrEmpty(_metricName));
Selector\SubModelSelector\BestPerformanceSelectorMulticlass.cs (1)
44Host.Assert(!string.IsNullOrEmpty(_metricName));
Microsoft.ML.FastTree (5)
FastTree.cs (2)
3158if (string.IsNullOrEmpty(name)) 3218if (string.IsNullOrEmpty(name))
GamModelParameters.cs (2)
818Name = string.IsNullOrEmpty(name) ? $"f{index}" : name; 938sch?.Register("canSave", () => !string.IsNullOrEmpty(ImplOptions.OutputModelFile));
TreeEnsembleFeaturizer.cs (1)
621host.CheckUserArg(!string.IsNullOrEmpty(args.FeatureColumn), nameof(args.FeatureColumn), "Transform needs an input features column");
Microsoft.ML.GenAI.Mistral (1)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
97TextMessage when message.GetRole() == Role.User && !string.IsNullOrEmpty(systemMessage) => $"[INST]{systemMessage}{Newline}{Newline}{content.Trim()}[/INST]",
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
107if (String.IsNullOrEmpty(imageFolder))
Microsoft.ML.InternalCodeAnalyzer (4)
NameAnalyzer.cs (1)
141=> !string.IsNullOrEmpty(name) && name.StartsWith("_", StringComparison.OrdinalIgnoreCase) && Utils.NameIsGood(name, 1, false);
NameFixProvider.cs (3)
135if (string.IsNullOrEmpty(name)) 150if (string.IsNullOrEmpty(name)) 169if (string.IsNullOrEmpty(token))
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
453var catBoundaries = !String.IsNullOrEmpty(modelParameters["categorical_feature"]) ? modelParameters["categorical_feature"].Split(',').Select(x => int.Parse(x, CultureInfo.InvariantCulture)).ToArray() : null;
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
300if (string.IsNullOrEmpty(ImplOptions.InputModelFile))
Microsoft.ML.Parquet (5)
PartitionedFileLoader.cs (3)
111if (string.IsNullOrEmpty(str)) 520if (String.IsNullOrEmpty(curPath)) 538} while (String.IsNullOrEmpty(path));
PartitionedPathParser.cs (2)
334if (string.IsNullOrEmpty(path)) 373if (string.IsNullOrEmpty(dir))
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
89if (!string.IsNullOrEmpty(WeightColumn) || Rank != null || Oversampling != null ||
Microsoft.ML.StandardTrainers (3)
Standard\LinearPredictorUtils.cs (1)
73if (string.IsNullOrEmpty(featureName))
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
225Contracts.Assert(!string.IsNullOrEmpty(_labelNames[i]));
Standard\ModelStatistics.cs (1)
447if (string.IsNullOrEmpty(name))
Microsoft.ML.Sweeper (3)
ConfigRunner.cs (3)
70Host.CheckUserArg(!string.IsNullOrEmpty(options.OptionsPattern), nameof(options.OptionsPattern), "The command pattern is missing"); 71Host.CheckUserArg(!string.IsNullOrEmpty(options.OutputFolderName), nameof(options.OutputFolderName), "Please specify an output folder"); 74Prefix = string.IsNullOrEmpty(options.Prefix) ? "" : options.Prefix;
Microsoft.ML.TensorFlow (4)
TensorflowTransform.cs (2)
450var isFrozen = string.IsNullOrEmpty(_savedModelPath); 525if (!string.IsNullOrEmpty(_savedModelPath) && _isTemporarySavedModel)
TensorflowUtils.cs (2)
201if (!string.IsNullOrEmpty(modelFile)) 238if (string.IsNullOrEmpty(modelFile))
Microsoft.ML.TestFramework (8)
BaseTestPredictorsMaml.cs (4)
310if (!string.IsNullOrEmpty(extraTag)) 317string filePrefix = (string.IsNullOrEmpty(predictor.Tag) ? predictor.Trainer.Kind : predictor.Tag); 330if (!string.IsNullOrEmpty(dataset.loaderSettings)) 332if (!string.IsNullOrEmpty(dataset.labelFilename))
DataPipe\TestDataPipeBase.cs (1)
316if (string.IsNullOrEmpty(pathData))
SubComponent.cs (3)
49set { _settings = string.IsNullOrEmpty(value) ? _empty : new string[] { value }; } 85if (settings == null || settings.Length == 1 && string.IsNullOrEmpty(settings[0])) 94if (string.IsNullOrEmpty(settings))
Microsoft.ML.TestFrameworkCommon (4)
TestDownloadUtils.cs (1)
17if (!string.IsNullOrEmpty(directory))
Utility\LibraryLoader.cs (2)
42if (string.IsNullOrEmpty(name)) 121if (string.IsNullOrEmpty(functionName))
Utility\PathResolver.cs (1)
44if (!string.IsNullOrEmpty(AppContext.BaseDirectory))
Microsoft.ML.Tests (1)
Scenarios\Api\TestApi.cs (1)
272.Where(line => !string.IsNullOrEmpty(line) && !line.StartsWith("//"))
Microsoft.ML.TimeSeries (7)
PredictionEngine.cs (1)
88env.CheckParam(!string.IsNullOrEmpty(modelPath), nameof(modelPath));
SequentialForecastingTransformBase.cs (3)
130if (!string.IsNullOrEmpty(_parent.ConfidenceUpperBoundColumn)) 159var getters = string.IsNullOrEmpty(_parent.ConfidenceUpperBoundColumn) ? new Delegate[1] : new Delegate[3]; 171if (!string.IsNullOrEmpty(_parent.ConfidenceUpperBoundColumn))
SequentialTransformerBase.cs (1)
501if (!string.IsNullOrEmpty(forecastingConfidenceIntervalMinOutputColumnName))
SSaForecasting.cs (1)
343if (!string.IsNullOrEmpty(_options.ConfidenceUpperBoundColumn))
SsaForecastingBase.cs (1)
139options.DiscountFactor, options.RankSelectionMethod, options.Rank, options.MaxRank, !string.IsNullOrEmpty(options.ConfidenceLowerBoundColumn),
Microsoft.ML.Tokenizers (48)
Model\BertTokenizer.cs (2)
665string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), 722Stream stream = string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath);
Model\BPETokenizer.cs (5)
438if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 497if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 564if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 645if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 697if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\CodeGenTokenizer.cs (9)
149if (!string.IsNullOrEmpty(UnknownToken)) 159if (!string.IsNullOrEmpty(BeginningOfSentenceToken)) 169if (!string.IsNullOrEmpty(EndOfSentenceToken)) 179if (AddBeginningOfSentence && string.IsNullOrEmpty(BeginningOfSentenceToken)) 184if (AddEndOfSentence && string.IsNullOrEmpty(EndOfSentenceToken)) 329if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 585if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 804if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 941if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\EnglishRobertaTokenizer.cs (4)
316if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 417if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 503if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 549if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\LlamaTokenizer.cs (1)
52if (modelProto.NormalizerSpec.Name != "identity" && !string.IsNullOrEmpty(modelProto.NormalizerSpec.Name))
Model\SentencePieceBpeModel.cs (2)
69if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 289if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\SentencePieceUnigramModel.cs (4)
377ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 836ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 1236ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 1516ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan();
Model\TiktokenTokenizer.cs (8)
47this(string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), preTokenizer, specialTokens, normalizer, cacheSize, disposeStream: true) 260if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 370if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 539if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 664if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 1458if (string.IsNullOrEmpty(modelName)) 1498if (string.IsNullOrEmpty(modelName)) 1539if (string.IsNullOrEmpty(encodingName))
Model\WordPieceTokenizer.cs (6)
134Create(string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), options, disposeStream: true); 192string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), 274if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 397if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 549if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 609if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Normalizer\BertNormalizer.cs (1)
31if (string.IsNullOrEmpty(original))
Normalizer\SentencePieceNormalizationStep.cs (2)
162return new PrecompiledStep(string.IsNullOrEmpty(charsMap) ? default : DecodePrecompiledCharsMap(charsMap!)); 465return string.IsNullOrEmpty(_literal) ? text : text.Replace(_literal, _content);
Normalizer\SentencePieceNormalizer.cs (2)
98if (string.IsNullOrEmpty(original)) 111if (string.IsNullOrEmpty(text))
PreTokenizer\RegexPreTokenizer.cs (1)
50if (string.IsNullOrEmpty(text))
PreTokenizer\RobertaPreTokenizer.cs (1)
27if (string.IsNullOrEmpty(text))
Microsoft.ML.Tokenizers.Tests (3)
LlamaTests.cs (1)
264bool isEmptyInput = string.IsNullOrEmpty(input);
NormalizerTests.cs (1)
143if (string.IsNullOrEmpty(original))
PreTokenizerTests.cs (1)
118if (string.IsNullOrEmpty(text))
Microsoft.ML.Transforms (14)
Dracula\CountTableTransformer.cs (2)
470if (!string.IsNullOrEmpty(options.InitialCountsModel)) 579Host.Assert(!string.IsNullOrEmpty(_labelClassNames[i]));
Dracula\CountTargetEncodingTransformer.cs (2)
173if (!string.IsNullOrEmpty(options.InitialCountsModel)) 513inputColumnName = string.IsNullOrEmpty(inputColumnName) ? outputColumnName : inputColumnName;
HashJoiningTransform.cs (1)
99if (Join != null || !string.IsNullOrEmpty(CustomSlotMap) || NumberOfBits != null ||
MissingValueReplacing.cs (1)
414if (!string.IsNullOrEmpty(srcStr))
OneHotEncoding.cs (1)
115if (!string.IsNullOrEmpty(options.DataFile))
PermutationFeatureImportanceExtensions.cs (1)
714if (string.IsNullOrEmpty(name))
Text\StopWordsRemovingTransformer.cs (1)
378if (!string.IsNullOrEmpty(_parent._columns[i].LanguageColumn))
Text\TextFeaturizingEstimator.cs (4)
343public bool NeedsWordTokenizationTransform { get { return WordExtractorFactory != null || NeedsRemoveStopwordsTransform || !string.IsNullOrEmpty(OutputTextTokensColumnName); } } 530if (!string.IsNullOrEmpty(tparams.OutputTextTokensColumnName)) 598Contracts.Assert(charFeatureCol != null || wordFeatureCol != null || !string.IsNullOrEmpty(tparams.OutputTextTokensColumnName)); 659if (!string.IsNullOrEmpty(OptionalSettings.OutputTokensColumnName))
UngroupTransform.cs (1)
332ectx.CheckUserArg(!string.IsNullOrEmpty(name), nameof(Options.Columns), "Column name cannot be empty");
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (1)
301if (!string.IsNullOrEmpty(options.LearningRateOperation))
ImageClassificationTrainer.cs (3)
539if (string.IsNullOrEmpty(options.WorkspacePath)) 550if (string.IsNullOrEmpty(options.TrainSetBottleneckCachedValuesFileName)) 556if (string.IsNullOrEmpty(options.ValidationSetBottleneckCachedValuesFileName))
Microsoft.NET.Build.Containers (31)
AuthHandshakeMessageHandler.cs (2)
399if (!string.IsNullOrEmpty(credU) && !string.IsNullOrEmpty(credP))
ContainerHelpers.cs (2)
63if (string.IsNullOrEmpty(portNumber)) 74if (!string.IsNullOrEmpty(portType))
ContentStore.cs (1)
96if (!string.IsNullOrEmpty(xdgCacheHome) && Path.IsPathFullyQualified(xdgCacheHome))
DestinationImageReference.cs (2)
72if (!string.IsNullOrEmpty(archiveOutputPath)) 76else if (!string.IsNullOrEmpty(outputRegistry))
ImageBuilder.cs (1)
170if (string.IsNullOrEmpty(appCommandInstruction))
ImageConfig.cs (3)
76return !string.IsNullOrEmpty(os) ? os : throw new ArgumentException("Base image configuration should contain a non-empty 'os' property."); 82return !string.IsNullOrEmpty(architecture) ? architecture : throw new ArgumentException("Base image configuration should contain a non-empty 'architecture' property."); 168static JsonArray ToJsonArray(IEnumerable<string> items) => new(items.Where(s => !string.IsNullOrEmpty(s)).Select(s => JsonValue.Create(s)).ToArray<JsonNode?>());
LocalDaemons\KnownLocalRegistryTypes.cs (1)
33if (string.IsNullOrEmpty(type))
SourceImageReference.cs (4)
20if (!string.IsNullOrEmpty(Tag)) 25if (!string.IsNullOrEmpty(Digest)) 37=> !string.IsNullOrEmpty(Digest) ? Digest : !string.IsNullOrEmpty(Tag) ? Tag : "latest";
src\sdk\src\Common\VSHostObject.cs (2)
50if (string.IsNullOrEmpty(username)) 81if (!string.IsNullOrEmpty(rawTaskItems))
Tasks\ComputeDotnetBaseImageAndTag.cs (2)
86private bool RequiresInference => String.IsNullOrEmpty(UserBaseImage); 338var telemetryData = new InferenceTelemetryData(InferencePerformed: true, TargetFramework: ParseSemVerToMajorMinor(TargetFrameworkVersion), imageName, tag, String.IsNullOrEmpty(ContainerFamily) ? null : ContainerFamily, GetTelemetryProjectType(), GetTelemetryPublishMode(), UsesInvariantGlobalization, TargetRuntimeIdentifiers);
Tasks\CreateImageIndex.cs (6)
99if (string.IsNullOrEmpty(config) || string.IsNullOrEmpty(manifestDigest) || string.IsNullOrEmpty(manifest) || string.IsNullOrEmpty(manifestMediaType)) 152if (string.IsNullOrEmpty(architecture)) 158if (string.IsNullOrEmpty(os))
Tasks\ParseContainerProperties.cs (3)
89if (!string.IsNullOrEmpty(ContainerImageTag) && ContainerImageTags.Length >= 1) 95if (!string.IsNullOrEmpty(ContainerImageTag)) 121if (!string.IsNullOrEmpty(ContainerRegistry) && !ContainerHelpers.IsValidRegistry(ContainerRegistry))
VSHostObject.cs (2)
45if (string.IsNullOrEmpty(username)) 73if (!string.IsNullOrEmpty(rawTaskItems))
Microsoft.NET.Build.Extensions.Tasks (15)
src\sdk\src\Common\MSBuildUtilities.cs (1)
36if (string.IsNullOrEmpty(parameterValue))
src\sdk\src\Tasks\Common\ConflictResolution\ConflictItem.cs (1)
238_sourcePathForFileAccess = !string.IsNullOrEmpty(sourcePath) && _taskEnvironment != null
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
42if (string.IsNullOrEmpty(itemKey))
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (2)
78if (string.IsNullOrEmpty(assemblyName)) 89if (string.IsNullOrEmpty(assemblyVersionString) || !Version.TryParse(assemblyVersionString, out assemblyVersion))
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
49if (!string.IsNullOrEmpty(overriddenPackagesString))
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
138if (string.IsNullOrEmpty(pm.ItemSpec))
src\sdk\src\Tasks\Common\ItemUtilities.cs (3)
30return !string.IsNullOrEmpty(value); 49if (!string.IsNullOrEmpty(aliases)) 67if (string.IsNullOrEmpty(sourcePath))
src\sdk\src\Tasks\Common\MessageBase.cs (5)
37if (string.IsNullOrEmpty(FormattedText) && string.IsNullOrEmpty(ResourceName)) 41else if (!string.IsNullOrEmpty(FormattedText) && !string.IsNullOrEmpty(ResourceName)) 45else if (!string.IsNullOrEmpty(ResourceName))
Microsoft.NET.Build.Tasks (213)
AddPackageType.cs (2)
28if (string.IsNullOrEmpty(toAdd)) 37.Where(t => !string.IsNullOrEmpty(t))
AllowEmptyTelemetry.cs (1)
52if (string.IsNullOrEmpty(value))
ApplyImplicitVersions.cs (1)
44if (string.IsNullOrEmpty(versionOnPackageReference))
AssetsFileResolver.cs (1)
110if (!string.IsNullOrEmpty(runtimeTarget.Runtime))
CheckSdkVulnerabilities.cs (3)
34if (string.IsNullOrEmpty(userProfileDir)) 79if (!string.IsNullOrEmpty(cveIds)) 92if (summary.FeatureBandDiscontinued && !string.IsNullOrEmpty(summary.LatestSdkVersion))
CollectSDKReferencesDesignTime.cs (2)
48if (string.IsNullOrEmpty(defaultImplicitPackages)) 74if (string.IsNullOrEmpty(isImplicitlyDefinedString))
CreateWindowsSdkKnownFrameworkReferences.cs (8)
42if (!string.IsNullOrEmpty(WindowsSdkPackageMinimumRevision)) 44if (!string.IsNullOrEmpty(WindowsSdkPackageVersion)) 56if (!string.IsNullOrEmpty(WindowsSdkPackageVersion)) 78if (!string.IsNullOrEmpty(windowsSdkPackageVersion)) 82if (!string.IsNullOrEmpty(minimumNETVersion)) 101if (!string.IsNullOrEmpty(WindowsSdkPackageMinimumRevision) && 149string itemSpec = string.IsNullOrEmpty(profile) 165if (!string.IsNullOrEmpty(profile))
DependencyContextBuilder.cs (7)
115_isPortable = _isFrameworkDependent && (string.IsNullOrEmpty(_runtimeIdentifier) || _runtimeIdentifier == "any"); 247if (string.IsNullOrEmpty(referenceAssembliesPath) || 433if (!string.IsNullOrEmpty(_referenceAssembliesPath) && 798if (!string.IsNullOrEmpty(library.Sha512)) 823string relativePath = string.IsNullOrEmpty(resolvedFile.PathInPackage) ? resolvedFile.DestinationSubPath : resolvedFile.PathInPackage; 853if (string.IsNullOrEmpty(projectPath)) 877if (_isFrameworkDependent && !string.IsNullOrEmpty(_platformLibrary))
FilterResolvedFiles.cs (1)
69if (!string.IsNullOrEmpty(pkgName))
FrameworkPackages\FrameworkPackages.cs (2)
126if (!string.IsNullOrEmpty(targetingPackRoot.Value)) 174if (string.IsNullOrEmpty(version))
FrameworkReferenceResolver.cs (3)
31if (!string.IsNullOrEmpty(referenceAssembliesPath)) 47if (string.IsNullOrEmpty(programFiles)) 53if (string.IsNullOrEmpty(programFiles))
GenerateBundle.cs (1)
60AbsolutePath outputPath = string.IsNullOrEmpty(outputDir)
GenerateDepsFile.cs (5)
40private string EffectiveRuntimeIdentifier => string.IsNullOrEmpty(RuntimeIdentifier) ? null : RuntimeIdentifier == "any" ? null : RuntimeIdentifier; 146string.IsNullOrEmpty(AssetsFilePath) ? AssetsFilePath : TaskEnvironment.GetAbsolutePath(AssetsFilePath)); 229string.IsNullOrEmpty(RuntimeGraphPath) ? RuntimeGraphPath : TaskEnvironment.GetAbsolutePath(RuntimeGraphPath)); 270string destinationSubPath = string.IsNullOrEmpty(destinationSubDir) ? null : Path.Combine(destinationSubDir, Path.GetFileName(i.ItemSpec)); 308if (string.IsNullOrEmpty(runtimeIdentifier))
GenerateGlobalUsings.cs (1)
47if (!string.IsNullOrEmpty(@using.Alias))
GenerateRuntimeConfigurationFiles.cs (5)
98if (GenerateProbingPathsToRuntimeConfigDevFile && AdditionalProbingPaths?.Any() == true && string.IsNullOrEmpty(RuntimeConfigDevPath)) 104if (!string.IsNullOrEmpty(RollForward)) 159if (GenerateRuntimeConfigDevFile && !string.IsNullOrEmpty(RuntimeConfigDevPath)) 284if (string.IsNullOrEmpty(UserRuntimeConfig)) 397if (!string.IsNullOrEmpty(path))
GenerateToolsSettingsFile.cs (2)
47if (string.IsNullOrEmpty(commandRunner)) 72if (string.IsNullOrEmpty(runtimeIdentifier) && (toolPackageRuntimeIdentifiers?.Any() ?? false))
GetAssemblyAttributes.cs (1)
50.Where(kv => !string.IsNullOrEmpty(kv.Value))
GetPackageDirectory.cs (7)
30if (Items.Length == 0 || (PackageFolders.Length == 0 && string.IsNullOrEmpty(AssetsFileWithAdditionalPackageFolders))) 40if (!string.IsNullOrEmpty(AssetsFileWithAdditionalPackageFolders)) 49.Select(p => string.IsNullOrEmpty(p) ? p : (string)TaskEnvironment.GetAbsolutePath(p)) 55if (!string.IsNullOrEmpty(absolutePackageFolders[i])) 71if (string.IsNullOrEmpty(packageName) || string.IsNullOrEmpty(packageVersion) 72|| !string.IsNullOrEmpty(item.GetMetadata(MetadataKeys.PackageDirectory)))
GetPackagesToPrune.cs (1)
151.Where(r => !string.IsNullOrEmpty(r))
ItemUtilities.NuGet.cs (2)
19if (string.IsNullOrEmpty(packageName) || string.IsNullOrEmpty(packageVersion))
JoinItems.cs (4)
54else if (!string.IsNullOrEmpty(ItemSpecToUse)) 69(string.IsNullOrEmpty(LeftKey) || useLeftItemSpec) && 77(string.IsNullOrEmpty(RightKey) || useRightItemSpec) && 137if (string.IsNullOrEmpty(key))
LockFileCache.cs (1)
25if (string.IsNullOrEmpty(path))
LockFileExtensions.cs (7)
19lockFile.PackageSpec.TargetFrameworks.All(tfi => string.IsNullOrEmpty(tfi.TargetAlias))) 35string targetMoniker = string.IsNullOrEmpty(runtimeIdentifier) ? 40if (string.IsNullOrEmpty(runtimeIdentifier)) 97(!isSelfContained || (string.IsNullOrEmpty(runtimeIdentifier) || runtimeIdentifier == "any")); 102if (string.IsNullOrEmpty(libraryName)) 144if (string.IsNullOrEmpty(groupFrameworkAlias) || string.IsNullOrEmpty(frameworkAlias) || groupFrameworkAlias.Equals(frameworkAlias) ||
PickBestRid.cs (1)
42if (string.IsNullOrEmpty(RuntimeGraphPath))
PrepareForReadyToRunCompilation.cs (5)
82if (ReadyToRunUseCrossgen2 && !string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 94if (ReadyToRunUseCrossgen2 && !string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 106_crossgen2IsVersion5 = !string.IsNullOrEmpty(isVersion5) && bool.Parse(isVersion5); 109_perfmapFormatVersion = !string.IsNullOrEmpty(perfmapVersion) ? int.Parse(perfmapVersion) : 0; 122!string.IsNullOrEmpty(diaSymReaderPath) && File.Exists(diaSymReaderPath);
ProcessFrameworkReferences.cs (17)
180!string.IsNullOrEmpty(EffectiveRuntimeIdentifier); 282if (string.IsNullOrEmpty(targetingPackVersion)) 299if (!string.IsNullOrEmpty(knownFrameworkReference.Profile)) 343if (string.IsNullOrEmpty(isTrimmable)) 426if (!string.IsNullOrEmpty(knownFrameworkReference.RuntimeFrameworkName) && !knownFrameworkReference.RuntimePackAlwaysCopyLocal) 620if (!string.IsNullOrEmpty(knownFrameworkReferenceTargetFramework.Platform) 832if (!string.IsNullOrEmpty(RuntimeFrameworkVersion)) 866bool usePortable = !string.IsNullOrEmpty(NETCoreSdkPortableRuntimeIdentifier) 1075if (!string.IsNullOrEmpty(requestedVersion)) 1120if (!string.IsNullOrEmpty(packRootEnvironmentVariable)) 1128if (!string.IsNullOrEmpty(NetCoreRoot) && !string.IsNullOrEmpty(NETCoreSdkVersion)) 1138if (!string.IsNullOrEmpty(TargetingPackRoot)) 1188string? absoluteUserProfileDir = string.IsNullOrEmpty(userProfileDir) ? null : (string)TaskEnvironment.GetAbsolutePath(userProfileDir); 1241if (!string.IsNullOrEmpty(value)) 1262if (string.IsNullOrEmpty(requestedVersion)) 1337public readonly bool HasRuntimePackages => !string.IsNullOrEmpty(RuntimePackNamePatterns);
ProduceContentAssets.cs (7)
125if (!string.IsNullOrEmpty(ContentPreprocessorOutputDirectory)) 156if (string.IsNullOrEmpty(ProjectLanguage)) 192!string.IsNullOrEmpty(contentFile.GetMetadata(MetadataKeys.PPOutputPath)); 202if (!string.IsNullOrEmpty(ppOutputPath)) 204if (string.IsNullOrEmpty(ContentPreprocessorOutputDirectory)) 220outputPath = string.IsNullOrEmpty(outputPath) ? ppOutputPath : outputPath; 222if (!string.IsNullOrEmpty(outputPath))
ProjectContext.cs (3)
47public bool IsPortable => IsFrameworkDependent && string.IsNullOrEmpty(_lockFileTarget.RuntimeIdentifier); 75if (string.IsNullOrEmpty(lockFileTarget.RuntimeIdentifier)) 206if (!string.IsNullOrEmpty(libraryName) && libraryLookup.ContainsKey(libraryName))
ReferenceInfo.cs (7)
80if (!string.IsNullOrEmpty(projectFilePath)) 88if (string.IsNullOrEmpty(projectName)) 141if (!string.IsNullOrEmpty(originalItemSpec)) 169string destinationSubPath = string.IsNullOrEmpty(destinationSubDirectory) ? null : Path.Combine(destinationSubDirectory, Path.GetFileName(fullPath)); 179if (string.IsNullOrEmpty(version)) 182if (!string.IsNullOrEmpty(fusionName)) 188if (string.IsNullOrEmpty(version))
ResolveAppHosts.cs (3)
109if (!string.IsNullOrEmpty(AppHostRuntimeIdentifier)) 245if (!string.IsNullOrEmpty(RuntimeFrameworkVersion)) 296if (!string.IsNullOrEmpty(TargetingPackRoot))
ResolvedFile.cs (1)
40return string.IsNullOrEmpty(DestinationSubDirectory) ?
ResolvePackageAssets.cs (15)
66private string EffectiveRuntimeIdentifier => !string.IsNullOrEmpty(RuntimeIdentifier) && RuntimeIdentifier != "any" ? RuntimeIdentifier : null; 346if (string.IsNullOrEmpty(ProjectAssetsFile)) 1086if (string.IsNullOrEmpty(compilerApiVersion)) 1156filter: asset => !string.IsNullOrEmpty(asset.PPOutputPath), 1286if (_task.EnsureRuntimePackageDependencies && !string.IsNullOrEmpty(_task.EffectiveRuntimeIdentifier)) 1324if (string.IsNullOrEmpty(packageName) || 1325string.IsNullOrEmpty(expectedVersion) || 1463if (string.IsNullOrEmpty(package.Name) || !allowItemSpecs.Contains(packageId)) 1486var resolved = !string.IsNullOrEmpty(resolvedPath); 1539if (string.IsNullOrEmpty(message.LibraryId)) continue; 1555if (string.IsNullOrEmpty(parentPackage.Name)) continue; 1835if (!string.IsNullOrEmpty(value)) 1870string.IsNullOrEmpty(destinationSubDirectory) ? 1873if (!string.IsNullOrEmpty(destinationSubDirectory)) 1902if ((!_task.IsSelfContained || string.IsNullOrEmpty(_runtimeTarget.RuntimeIdentifier)) &&
ResolvePackageDependencies.cs (4)
149if (string.IsNullOrEmpty(t.RuntimeIdentifier)) 159ReadProjectFileDependencies(string.IsNullOrEmpty(TargetFramework) || !_targetNameToAliasMap.ContainsKey(TargetFramework) ? null : _targetNameToAliasMap[TargetFramework]); 430if (string.IsNullOrEmpty(relativeMSBuildProjectPath)) 471AbsolutePath absProjectDir = string.IsNullOrEmpty(projectDirectory)
ResolveReadyToRunCompilers.cs (3)
113if (!string.IsNullOrEmpty(_crossgenTool.DiaSymReaderPath)) 153if (string.IsNullOrEmpty(_crossgen2Tool.PackagePath) || 196if (!string.IsNullOrEmpty(PerfmapFormatVersion))
ResolveRuntimePackAssets.cs (4)
119AbsolutePath absoluteRuntimePackRoot = string.IsNullOrEmpty(runtimePackRoot) 178if (!string.IsNullOrEmpty(targetFrameworkVersion)) 208string assetPath = string.IsNullOrEmpty(pathAttributeValue) 278if (string.IsNullOrEmpty(culture))
ResolveTargetingPackAssets.cs (4)
119AbsolutePath path = string.IsNullOrEmpty(targetingPackPath) 155if (string.IsNullOrEmpty(targetingPackRoot.Value) || !Directory.Exists(targetingPackRoot)) 206if (string.IsNullOrEmpty(targetingPackTargetFramework)) 378if (!string.IsNullOrEmpty(profile))
RunReadyToRunCompiler.cs (23)
42private bool IsPdbCompilation => !string.IsNullOrEmpty(_createPDBCommand); 52return !string.IsNullOrEmpty(version5) && bool.Parse(version5); 63if (!string.IsNullOrEmpty(hostPath)) 85_emitSymbols = !string.IsNullOrEmpty(emitSymbolsMetadata) && bool.Parse(emitSymbolsMetadata); 88_createCompositeImage = !string.IsNullOrEmpty(createCompositeImageMetadata) && bool.Parse(createCompositeImageMetadata); 90_partialCompile = !string.IsNullOrEmpty(partialCompilationMetadata) && bool.Parse(partialCompilationMetadata); 114if (!string.IsNullOrEmpty(hostPath) && !File.Exists(hostPath)) 120if (!string.IsNullOrEmpty(jitPath)) 137if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 142if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch))) 174if (!string.IsNullOrEmpty(DiaSymReader) && !File.Exists(DiaSymReader)) 181if (string.IsNullOrEmpty(_outputPDBImage)) 210if (string.IsNullOrEmpty(_outputR2RImage)) 216if (_emitSymbols && string.IsNullOrEmpty(_outputPDBImage)) 257if (ActuallyUseCrossgen2 && !string.IsNullOrEmpty(DotNetHostPath)) 287if (!string.IsNullOrEmpty(DiaSymReader)) 312if (!string.IsNullOrEmpty(jitPath)) 338if (!string.IsNullOrEmpty(perfmapFormatVersion)) 353if (!string.IsNullOrEmpty(Crossgen2ContainerFormat)) 358if (!string.IsNullOrEmpty(Crossgen2ExtraCommandLineArgs)) 369&& !string.IsNullOrEmpty(Crossgen2CompositeExtraCommandLineArgs)) 385if (_createCompositeImage || (!string.IsNullOrEmpty(Crossgen2ContainerFormat) && Crossgen2ContainerFormat != "pe" && Crossgen2ContainerFormat != "wasm")) 389if (!string.IsNullOrEmpty(_r2rHeaderSymbolName))
RuntimeGraphCache.cs (1)
27if (string.IsNullOrEmpty(runtimeJsonPath))
SelectRuntimeIdentifierSpecificItems.cs (1)
67if (string.IsNullOrEmpty(itemRuntimeIdentifier))
SingleProjectInfo.cs (3)
85if (string.IsNullOrEmpty(sourceProjectFile)) 106if (string.IsNullOrEmpty(sourceProjectFile)) 116if (!string.IsNullOrEmpty(originalItemSpec))
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (3)
44if (string.IsNullOrEmpty(home)) 54if (string.IsNullOrEmpty(home)) 60if (string.IsNullOrEmpty(home))
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
112return !string.IsNullOrEmpty(targetFrameworkVersion) && Version.TryParse(targetFrameworkVersion.Substring(1), out var version) ? version : null;
src\sdk\src\Common\MSBuildUtilities.cs (1)
36if (string.IsNullOrEmpty(parameterValue))
src\sdk\src\Resolvers\Microsoft.DotNet.MSBuildSdkResolver\FXVersion.cs (9)
41if (string.IsNullOrEmpty(s1.Pre) || string.IsNullOrEmpty(s2.Pre)) 44return string.IsNullOrEmpty(s1.Pre) ? (string.IsNullOrEmpty(s2.Pre) ? 0 : 1) : -1; 139if (string.IsNullOrEmpty(id)) 161if (string.IsNullOrEmpty(ids)) 209if (string.IsNullOrEmpty(fxVersionString) || fxVersionString == null) 307=> (!string.IsNullOrEmpty(Pre), !string.IsNullOrEmpty(Build)) switch
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (3)
119foreach (var manifestId in File.ReadAllLines(knownManifestIdsFilePath).Where(l => !string.IsNullOrEmpty(l))) 209if (!string.IsNullOrEmpty(installState.WorkloadVersion)) 450if (!string.IsNullOrEmpty(manifestDir))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs (1)
18if (string.IsNullOrEmpty(globalJsonPath))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (2)
18if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Contains("dev") || version.Prerelease.Contains("ci") || version.Prerelease.Contains("rtm")) 70public bool IsPrerelease => !string.IsNullOrEmpty(_featureBand.Prerelease);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadId.cs (1)
16if (string.IsNullOrEmpty(id))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (1)
487if (!isAbstract && kind == WorkloadDefinitionKind.Dev && string.IsNullOrEmpty(description))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (4)
32File.ReadAllLines(runtimeIdentifierChainPath).Where(l => !string.IsNullOrEmpty(l)).ToArray() : 46if (!string.IsNullOrEmpty(packRootEnvironmentVariable)) 388if (string.IsNullOrEmpty(workloadId)) 490if (string.IsNullOrEmpty(packId))
src\sdk\src\Tasks\Common\ConflictResolution\ConflictItem.cs (1)
238_sourcePathForFileAccess = !string.IsNullOrEmpty(sourcePath) && _taskEnvironment != null
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (1)
42if (string.IsNullOrEmpty(itemKey))
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (2)
78if (string.IsNullOrEmpty(assemblyName)) 89if (string.IsNullOrEmpty(assemblyVersionString) || !Version.TryParse(assemblyVersionString, out assemblyVersion))
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
49if (!string.IsNullOrEmpty(overriddenPackagesString))
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
138if (string.IsNullOrEmpty(pm.ItemSpec))
src\sdk\src\Tasks\Common\ItemUtilities.cs (3)
30return !string.IsNullOrEmpty(value); 49if (!string.IsNullOrEmpty(aliases)) 67if (string.IsNullOrEmpty(sourcePath))
src\sdk\src\Tasks\Common\MessageBase.cs (5)
37if (string.IsNullOrEmpty(FormattedText) && string.IsNullOrEmpty(ResourceName)) 41else if (!string.IsNullOrEmpty(FormattedText) && !string.IsNullOrEmpty(ResourceName)) 45else if (!string.IsNullOrEmpty(ResourceName))
TypeLibraryDictionaryBuilder.cs (2)
25if (!string.IsNullOrEmpty(idMetadata)) 41if (string.IsNullOrEmpty(idMetadata))
ValidateExecutableReferences.cs (1)
35if (string.IsNullOrEmpty(nearestTargetFramework) || !project.HasMetadataValue("AdditionalPropertiesFromProject"))
Microsoft.NET.HostModel (2)
Bundle\Bundler.cs (2)
53if (!string.IsNullOrEmpty(Path.GetDirectoryName(hostName))) 59_outputDir = Path.GetFullPath(string.IsNullOrEmpty(outputDir) ? Environment.CurrentDirectory : outputDir);
Microsoft.Net.Http.Headers (7)
HeaderUtilities.cs (4)
234if (StringValues.IsNullOrEmpty(headerValues) || string.IsNullOrEmpty(targetValue)) 291if (StringValues.IsNullOrEmpty(cacheControlDirectives) || string.IsNullOrEmpty(targetDirectives)) 372if (string.IsNullOrEmpty(value.Buffer) || value.Length == 0) 398if (string.IsNullOrEmpty(value.Buffer) || value.Length == 0)
HttpHeaderParser.cs (2)
82while (!string.IsNullOrEmpty(value) && index < value.Length) 144while (!string.IsNullOrEmpty(value) && index < value.Length)
src\aspnetcore\src\Http\Shared\CookieHeaderParserShared.cs (1)
33while (!string.IsNullOrEmpty(value) && index < value.Length)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (50)
BrotliCompress.cs (4)
39if (!string.IsNullOrEmpty(_dotnetPath)) 45if (string.IsNullOrEmpty(_dotnetPath)) 56if (string.IsNullOrEmpty(path) || (path[0] == '\"' && path[path.Length - 1] == '\"')) 74if (!string.IsNullOrEmpty(CompressionLevel))
CreateBlazorTrimmerRootDescriptorFile.cs (1)
56if (!string.IsNullOrEmpty(typePreserved))
GenerateBlazorWebAssemblyBootJson50.cs (1)
108else if (!string.IsNullOrEmpty(resourceCulture))
GenerateServiceWorkerAssetsManifest.cs (2)
43if (string.IsNullOrEmpty(hash)) 62if (string.IsNullOrEmpty(version))
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (37)
256if (!string.IsNullOrEmpty(sourceId) && !string.Equals(SourceId, sourceId, StringComparison.Ordinal)) 304if (!string.IsNullOrEmpty(asset.RelatedAsset) && excluded.Contains(asset.RelatedAsset)) 368string.IsNullOrEmpty(asset.RelatedAsset) || seen.Contains(asset.RelatedAsset); 458if (string.IsNullOrEmpty(key)) 470if (string.IsNullOrEmpty(assetGroups)) 552_fileLength = !string.IsNullOrEmpty(fileLengthString) && 576_lastWriteTime = !string.IsNullOrEmpty(lastWriteTimeString) && 804if (string.IsNullOrEmpty(asset.AssetGroups)) 821result.OriginalItemSpec = string.IsNullOrEmpty(result.OriginalItemSpec) ? item.GetMetadata("FullPath") : result.OriginalItemSpec; 841CopyToOutputDirectory = string.IsNullOrEmpty(CopyToOutputDirectory) ? AssetCopyOptions.Never : CopyToOutputDirectory; 842CopyToPublishDirectory = string.IsNullOrEmpty(CopyToPublishDirectory) ? AssetCopyOptions.PreserveNewest : CopyToPublishDirectory; 843AssetKind = !string.IsNullOrEmpty(AssetKind) ? AssetKind : !ShouldCopyToPublishDirectory() ? AssetKinds.Build : AssetKinds.All; 844AssetMode = string.IsNullOrEmpty(AssetMode) ? AssetModes.All : AssetMode; 845AssetRole = string.IsNullOrEmpty(AssetRole) ? AssetRoles.Primary : AssetRole; 846if (string.IsNullOrEmpty(Fingerprint) || string.IsNullOrEmpty(Integrity) || FileLength == -1 || LastWriteTime == DateTimeOffset.MinValue) 849(Fingerprint, Integrity) = string.IsNullOrEmpty(Fingerprint) || string.IsNullOrEmpty(Integrity) ? 941if (string.IsNullOrEmpty(SourceId)) 946if (string.IsNullOrEmpty(ContentRoot)) 951if (string.IsNullOrEmpty(BasePath)) 956if (string.IsNullOrEmpty(RelativePath)) 961if (string.IsNullOrEmpty(OriginalItemSpec)) 996if (!IsPrimaryAsset() && string.IsNullOrEmpty(RelatedAsset)) 1001if (IsAlternativeAsset() && (string.IsNullOrEmpty(AssetTraitName) || string.IsNullOrEmpty(AssetTraitValue))) 1006if (string.IsNullOrEmpty(Fingerprint)) 1011if (string.IsNullOrEmpty(Integrity)) 1133ContentRoot = !string.IsNullOrEmpty(ContentRoot) ? NormalizeContentRootPath(ContentRoot, env) : ContentRoot; 1136RelatedAsset = !string.IsNullOrEmpty(RelatedAsset) ? Path.GetFullPath(env.GetAbsolutePath(RelatedAsset)) : RelatedAsset; 1146=> Path.GetFullPath(string.IsNullOrEmpty(path) ? path : env.GetAbsolutePath(path)) + 1240if (string.IsNullOrEmpty(asset.Identity)) 1288if (!string.IsNullOrEmpty(relativePath)) 1295if (!string.IsNullOrEmpty(targetPath)) 1302if (!string.IsNullOrEmpty(linkPath)) 1692var fileInfo = new FileInfo(string.IsNullOrEmpty(identity) ? identity: env.GetAbsolutePath(identity)); 1697fileInfo = new FileInfo(string.IsNullOrEmpty(originalItemSpec) ? originalItemSpec : env.GetAbsolutePath(originalItemSpec));
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetGroup.cs (2)
50if (string.IsNullOrEmpty(group.Name)) 55if (string.IsNullOrEmpty(group.SourceId))
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (3)
294if (!tokens.TryGetValue(staticWebAsset, tokenNameString, out var tokenValue) || string.IsNullOrEmpty(tokenValue)) 480if (!resolver.TryGetValue(staticWebAsset, tokenName.ToString(), out var tokenValue) || string.IsNullOrEmpty(tokenValue)) 597if (string.Equals(tokenName, "fingerprint", StringComparison.OrdinalIgnoreCase) && string.IsNullOrEmpty(fingerprint))
Microsoft.NET.Sdk.Publish.Tasks (129)
EnvironmentHelper.cs (1)
16if (string.IsNullOrEmpty(str))
Kudu\KuduZipDeploy.cs (1)
45if (string.IsNullOrEmpty(zipFilePath))
MsDeploy\CommonUtility.cs (25)
481if (!string.IsNullOrEmpty(s_strMinimumVersion)) 509if (!string.IsNullOrEmpty(s_strMinimumVersion)) 605if (!string.IsNullOrEmpty(data)) 619if (string.IsNullOrEmpty(valueQuote) || valueQuote == "\"") 632if (string.IsNullOrEmpty(quote)) 658if (listOfItems is not null && !string.IsNullOrEmpty(source)) 703strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 705strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedPackage, Path.GetFileName(destRoot), string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 779strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedArchiveDir, string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 781strSucceedFailMsg = string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_SucceedPackage, Path.GetFileName(destRoot), string.IsNullOrEmpty(dirUri) ? destRoot : dirUri); 922if (string.IsNullOrEmpty(element)) 942if (!string.IsNullOrEmpty(kind)) 1049if (!string.IsNullOrEmpty(filename)) 1194if (!string.IsNullOrEmpty(item.Kind)) 1288if (string.IsNullOrEmpty(element)) 1292if (string.IsNullOrEmpty(value)) 1367if (!string.IsNullOrEmpty(dirPath) && Directory.Exists(dirPath)) 1412if (!fOptimisticPickNextNonNullDefaultValue || string.IsNullOrEmpty(PropertyName) || taskItems == null || taskItems.GetLength(0) <= 0) 1436bool fIsCurrentItemEmpty = string.IsNullOrEmpty(item.GetMetadata(PropertyName)); 1452if (!string.IsNullOrEmpty(itemData)) 1702int iPriority = string.IsNullOrEmpty(priority) ? 0 : Convert.ToInt32(priority, CultureInfo.InvariantCulture); 1726if (!string.IsNullOrEmpty(str)) 1744if (source is null || Path.IsPathRooted(source) || string.IsNullOrEmpty(sourceRootPath)) 1782if (!string.IsNullOrEmpty(IISBindingIPString)) 1852if (!string.IsNullOrEmpty(text) && text?.IndexOfAny(@"$%".ToArray()) >= 0)
MsDeploy\VSMSDeployHostObject.cs (1)
35if (!string.IsNullOrEmpty(userName))
MsDeploy\VsMSDeployObject.cs (18)
84if (!string.IsNullOrEmpty(vSMSDeployObject.AuthenticationType)) 94if (!string.IsNullOrEmpty(vSMSDeployObject.EncryptPassword)) 97if (!string.IsNullOrEmpty(vSMSDeployObject.WebServerManifest)) 99if (!string.IsNullOrEmpty(vSMSDeployObject.WebServerDirectory)) 102if (!string.IsNullOrEmpty(vSMSDeployObject.WebServerAppHostConfigDirectory)) 111if (!string.IsNullOrEmpty(vSMSDeployObject.UserAgent)) 170if (!string.IsNullOrEmpty(listOfLinkExtensions)) 226m_root = string.IsNullOrEmpty(root) ? string.Empty : root; 257if (string.IsNullOrEmpty(m_root)) 274if (!string.IsNullOrEmpty(value)) 293if (!string.IsNullOrEmpty(value)) 369get { return string.IsNullOrEmpty(ComputerName) && string.IsNullOrEmpty(MSDeployServiceUrl); } 374get { return !string.IsNullOrEmpty(UserName); } 421Diagnostics.Debug.Assert(string.IsNullOrEmpty(value), "Not yet implement"); 436if (string.IsNullOrEmpty(authType)) 438if (!string.IsNullOrEmpty(MSDeployServiceUrl) && string.IsNullOrEmpty(ComputerName))
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
112return !string.IsNullOrEmpty(targetFrameworkVersion) && Version.TryParse(targetFrameworkVersion.Substring(1), out var version) ? version : null;
src\sdk\src\Common\VSHostObject.cs (2)
50if (string.IsNullOrEmpty(username)) 81if (!string.IsNullOrEmpty(rawTaskItems))
Tasks\GenerateEFSQLScripts.cs (1)
72if (string.IsNullOrEmpty(EFSQLScriptsFolderName))
Tasks\GenerateEnvTransform.cs (2)
24if (string.IsNullOrEmpty(WebConfigEnvironmentVariables)) 90if (string.IsNullOrEmpty(webConfigEnvironmentVariables))
Tasks\Kudu\KuduDeploy.cs (4)
76if (string.IsNullOrEmpty(PublishIntermediateOutputPath)) 83if (string.IsNullOrEmpty(connectionInfo.UserName) || string.IsNullOrEmpty(connectionInfo.Password) || string.IsNullOrEmpty(connectionInfo.DestinationUrl))
Tasks\MsDeploy\CreateManifestFile.cs (2)
66if (!string.IsNullOrEmpty(additionProviderSetting)) 72if (!string.IsNullOrEmpty(value))
Tasks\MsDeploy\CreateParameterFile.cs (4)
133if (string.IsNullOrEmpty(elementValue)) 159if (!string.IsNullOrEmpty(metadataValue) 205fAddEntry |= !string.IsNullOrEmpty(identityValues[i]); 214if (!string.IsNullOrEmpty(value))
Tasks\MsDeploy\GetPassword.cs (1)
17if (!string.IsNullOrEmpty(EncryptedPassword))
Tasks\MsDeploy\MSDeploy.cs (19)
263if (string.IsNullOrEmpty(m_exePath)) 470if (!string.IsNullOrEmpty(value)) 635if (!string.IsNullOrEmpty(name)) 638if (string.IsNullOrEmpty(element)) 700if (commandLineBuilder is not null && !string.IsNullOrEmpty(parameterFlag) && items is not null)// Dev10 bug 496639 foreach will throw the exception if the replaceRuleItem is null 705if (!string.IsNullOrEmpty(fileName)) 730if (!string.IsNullOrEmpty(name)) 764if (!string.IsNullOrEmpty(name)) 767if (string.IsNullOrEmpty(element)) 797if (arguments.Count > 0 && !string.IsNullOrEmpty(data)) 834string setData = (string.IsNullOrEmpty(path)) ? provider : string.Concat(provider, "=", valueData); 852if (!string.IsNullOrEmpty(value)) 865if (!string.IsNullOrEmpty(value)) 891if (!string.IsNullOrEmpty(item.ItemSpec)) 895if (!string.IsNullOrEmpty(settingName) && !string.IsNullOrEmpty(settingValue)) 920if (!string.IsNullOrEmpty(dl)) 938if (!string.IsNullOrEmpty(userName)) 1004if (!string.IsNullOrEmpty(UserAgent))
Tasks\MsDeploy\NormalizeServiceUrl.cs (3)
66if (!string.IsNullOrEmpty(tempUrl)) 146if (string.IsNullOrEmpty(serviceUriBuilder.Path) || serviceUriBuilder.Path.Equals("/", StringComparison.OrdinalIgnoreCase)) 157if (string.IsNullOrEmpty(serviceUriBuilder.Query))
Tasks\MsDeploy\VsMsdeploy.cs (10)
496if (!string.IsNullOrEmpty(strMsg)) 750if (!string.IsNullOrEmpty(value)) 951|| string.IsNullOrEmpty(item.GetMetadata(VSMsDeployTaskHostObject.SkipApplyMetadataName)))).ToArray(); 956|| string.IsNullOrEmpty(item.GetMetadata(VSMsDeployTaskHostObject.SkipApplyMetadataName)))).ToArray(); 966if (!string.IsNullOrEmpty(DeploymentTraceLevel)) 996where (string.IsNullOrEmpty(item.GetMetadata(VSMsDeployTaskHostObject.SkipApplyMetadataName)) || 1002where (string.IsNullOrEmpty(item.GetMetadata(VSMsDeployTaskHostObject.SkipApplyMetadataName)) || 1016if (!string.IsNullOrEmpty(item.ItemSpec)) 1020if (!string.IsNullOrEmpty(settingName) && !string.IsNullOrEmpty(settingValue))
Tasks\OneDeploy\CreatePackageFile.cs (3)
42|| string.IsNullOrEmpty(ProjectName) 43|| string.IsNullOrEmpty(IntermediateTempPath)) 57return !string.IsNullOrEmpty(CreatedPackageFilePath);
Tasks\OneDeploy\DeploymentResponse.cs (4)
49return string.IsNullOrEmpty(StatusText) 77|| string.IsNullOrEmpty(deploymentResponse.LogUrl) 78|| string.IsNullOrEmpty(deploymentResponse.Id)) 89if (!string.IsNullOrEmpty(pathAndQuery))
Tasks\OneDeploy\OneDeploy.cs (3)
88if (string.IsNullOrEmpty(password) && !GetCredentialsFromTask(out username, out password)) 123var errorMessage = !string.IsNullOrEmpty(responseText) 135if (!string.IsNullOrEmpty(deploymentUrl) && Uri.TryCreate(deploymentUrl, UriKind.Absolute, out var _))
Tasks\OneDeploy\OneDeploy.WebJob.cs (1)
24!string.IsNullOrEmpty(webjobName) &&
Tasks\TransformAppSettings.cs (3)
67if (string.IsNullOrEmpty(DestinationAppSettingsName)) 105if (string.IsNullOrEmpty(SourceAppSettingsName)) 110if (string.IsNullOrEmpty(EnvironmentName))
Tasks\ValidateParameter.cs (1)
19if (string.IsNullOrEmpty(ParameterValue))
Tasks\Xdt\TaskTransformationLogger.cs (1)
164if (!string.IsNullOrEmpty(exIterator.StackTrace))
Tasks\Xdt\TransformXml.cs (2)
60if (string.IsNullOrEmpty(_transformRootPath)) 144if (!string.IsNullOrEmpty(ex.SourceUri))
Tasks\ZipDeploy\DeploymentResponse.cs (3)
25|| string.IsNullOrEmpty(deploymentResponse.LogUrl) 26|| string.IsNullOrEmpty(deploymentResponse.Id)) 37if (!string.IsNullOrEmpty(pathAndQuery))
Tasks\ZipDeploy\ZipDeploy.cs (3)
39if (string.IsNullOrEmpty(password) && !GetDestinationCredentials(out user, out password)) 71else if (!string.IsNullOrEmpty(siteName)) 112if (!string.IsNullOrEmpty(deploymentUrl))
WebConfigTelemetry.cs (5)
34if (string.IsNullOrEmpty(projectGuid) && !ignoreProjectGuid && !isCLIOptOutEnabled) 54if (!string.IsNullOrEmpty(solutionFileFullPath) && File.Exists(solutionFileFullPath)) 64if (string.IsNullOrEmpty(solutionDirectory) || !Directory.Exists(solutionDirectory)) 76if (!string.IsNullOrEmpty(projectGuid)) 95if (!string.IsNullOrEmpty(solutionFileFullPath) && File.Exists(solutionFileFullPath))
WebConfigTransform.cs (5)
47if (!string.IsNullOrEmpty(environmentName)) 76if (string.IsNullOrEmpty(aspNetCoreModuleName)) 147if (!string.IsNullOrEmpty(projectFullPath)) 173if (!string.IsNullOrEmpty(aspNetCoreHostingModelValue)) 250if (document != null && !string.IsNullOrEmpty(projectGuid))
Microsoft.NET.Sdk.Razor.Tasks (17)
DotnetToolTask.cs (3)
56if (!string.IsNullOrEmpty(_dotnetPath)) 62_dotnetPath = string.IsNullOrEmpty(dotnetHostPath) ? ToolExe : dotnetHostPath; 268if (string.IsNullOrEmpty(workingDirectory))
FindAssembliesWithReferencesTo.cs (2)
34if (string.IsNullOrEmpty(fusionName)) 45Path = string.IsNullOrEmpty(item.ItemSpec)
SdkRazorGenerate.cs (5)
129if (!string.IsNullOrEmpty(kind)) 147if (!string.IsNullOrEmpty(cssScope)) 172if (!string.IsNullOrEmpty(RootNamespace)) 189if (!string.IsNullOrEmpty(CSharpLanguageVersion)) 227if (string.IsNullOrEmpty(value))
SdkRazorTagHelper.cs (1)
130if (string.IsNullOrEmpty(value))
src\sdk\src\RazorSdk\Tool\PipeName.cs (1)
22if (string.IsNullOrEmpty(toolDirectory))
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (5)
69if (!string.IsNullOrEmpty(workingDir)) 71if (!string.IsNullOrEmpty(tmp)) 76if (!string.IsNullOrEmpty(temp)) 99if (string.IsNullOrEmpty(pipeName)) 282if (!string.IsNullOrEmpty(expectedPath))
Microsoft.NET.Sdk.StaticWebAssets.Tasks (127)
Compression\BrotliCompress.cs (4)
30if (!string.IsNullOrEmpty(_dotnetPath)) 36if (string.IsNullOrEmpty(_dotnetPath)) 48if (string.IsNullOrEmpty(path) || (path[0] == '\"' && path[^1] == '\"')) 68if (!string.IsNullOrEmpty(CompressionLevel))
Compression\DiscoverPrecompressedAssets.cs (1)
47string.IsNullOrEmpty(candidate.RelatedAsset))
Compression\ResolveCompressedAssets.cs (3)
52if (string.IsNullOrEmpty(Formats)) 216if (string.IsNullOrEmpty(relatedAssetItemSpec)) 264=> string.IsNullOrEmpty(pattern) ? [] : pattern
ComputeReferenceStaticWebAssetItems.cs (1)
145if (string.IsNullOrEmpty(FrameworkPattern))
ComputeStaticWebAssetsTargetPaths.cs (1)
46if (AdjustPathsForPack && string.IsNullOrEmpty(Path.GetExtension(targetPath)))
Data\StaticWebAsset.cs (37)
256if (!string.IsNullOrEmpty(sourceId) && !string.Equals(SourceId, sourceId, StringComparison.Ordinal)) 304if (!string.IsNullOrEmpty(asset.RelatedAsset) && excluded.Contains(asset.RelatedAsset)) 368string.IsNullOrEmpty(asset.RelatedAsset) || seen.Contains(asset.RelatedAsset); 458if (string.IsNullOrEmpty(key)) 470if (string.IsNullOrEmpty(assetGroups)) 552_fileLength = !string.IsNullOrEmpty(fileLengthString) && 576_lastWriteTime = !string.IsNullOrEmpty(lastWriteTimeString) && 804if (string.IsNullOrEmpty(asset.AssetGroups)) 821result.OriginalItemSpec = string.IsNullOrEmpty(result.OriginalItemSpec) ? item.GetMetadata("FullPath") : result.OriginalItemSpec; 841CopyToOutputDirectory = string.IsNullOrEmpty(CopyToOutputDirectory) ? AssetCopyOptions.Never : CopyToOutputDirectory; 842CopyToPublishDirectory = string.IsNullOrEmpty(CopyToPublishDirectory) ? AssetCopyOptions.PreserveNewest : CopyToPublishDirectory; 843AssetKind = !string.IsNullOrEmpty(AssetKind) ? AssetKind : !ShouldCopyToPublishDirectory() ? AssetKinds.Build : AssetKinds.All; 844AssetMode = string.IsNullOrEmpty(AssetMode) ? AssetModes.All : AssetMode; 845AssetRole = string.IsNullOrEmpty(AssetRole) ? AssetRoles.Primary : AssetRole; 846if (string.IsNullOrEmpty(Fingerprint) || string.IsNullOrEmpty(Integrity) || FileLength == -1 || LastWriteTime == DateTimeOffset.MinValue) 849(Fingerprint, Integrity) = string.IsNullOrEmpty(Fingerprint) || string.IsNullOrEmpty(Integrity) ? 941if (string.IsNullOrEmpty(SourceId)) 946if (string.IsNullOrEmpty(ContentRoot)) 951if (string.IsNullOrEmpty(BasePath)) 956if (string.IsNullOrEmpty(RelativePath)) 961if (string.IsNullOrEmpty(OriginalItemSpec)) 996if (!IsPrimaryAsset() && string.IsNullOrEmpty(RelatedAsset)) 1001if (IsAlternativeAsset() && (string.IsNullOrEmpty(AssetTraitName) || string.IsNullOrEmpty(AssetTraitValue))) 1006if (string.IsNullOrEmpty(Fingerprint)) 1011if (string.IsNullOrEmpty(Integrity)) 1133ContentRoot = !string.IsNullOrEmpty(ContentRoot) ? NormalizeContentRootPath(ContentRoot, env) : ContentRoot; 1136RelatedAsset = !string.IsNullOrEmpty(RelatedAsset) ? Path.GetFullPath(env.GetAbsolutePath(RelatedAsset)) : RelatedAsset; 1146=> Path.GetFullPath(string.IsNullOrEmpty(path) ? path : env.GetAbsolutePath(path)) + 1240if (string.IsNullOrEmpty(asset.Identity)) 1288if (!string.IsNullOrEmpty(relativePath)) 1295if (!string.IsNullOrEmpty(targetPath)) 1302if (!string.IsNullOrEmpty(linkPath)) 1692var fileInfo = new FileInfo(string.IsNullOrEmpty(identity) ? identity: env.GetAbsolutePath(identity)); 1697fileInfo = new FileInfo(string.IsNullOrEmpty(originalItemSpec) ? originalItemSpec : env.GetAbsolutePath(originalItemSpec));
Data\StaticWebAssetEndpoint.cs (3)
60_order = string.IsNullOrEmpty(value) ? null : value; 624if (!string.IsNullOrEmpty(normalizedOldBase) && 635else if (string.IsNullOrEmpty(normalizedOldBase))
Data\StaticWebAssetEndpointGroup.cs (1)
59if (!string.IsNullOrEmpty(item.AssetFile) && excludedAssetFiles.Contains(item.AssetFile))
Data\StaticWebAssetEndpointProperty.cs (1)
22internal static StaticWebAssetEndpointProperty[] FromMetadataValue(string value) => string.IsNullOrEmpty(value) ? [] : JsonSerializer.Deserialize(value, _jsonTypeInfo);
Data\StaticWebAssetEndpointResponseHeader.cs (1)
22internal static StaticWebAssetEndpointResponseHeader[] FromMetadataValue(string value) => string.IsNullOrEmpty(value) ? [] : JsonSerializer.Deserialize(value, _jsonTypeInfo);
Data\StaticWebAssetEndpointSelector.cs (1)
24public static StaticWebAssetEndpointSelector[] FromMetadataValue(string value) => string.IsNullOrEmpty(value) ? [] : JsonSerializer.Deserialize(value, _jsonTypeInfo);
Data\StaticWebAssetGroup.cs (2)
50if (string.IsNullOrEmpty(group.Name)) 55if (string.IsNullOrEmpty(group.SourceId))
Data\StaticWebAssetPathPattern.cs (3)
294if (!tokens.TryGetValue(staticWebAsset, tokenNameString, out var tokenValue) || string.IsNullOrEmpty(tokenValue)) 480if (!resolver.TryGetValue(staticWebAsset, tokenName.ToString(), out var tokenValue) || string.IsNullOrEmpty(tokenValue)) 597if (string.Equals(tokenName, "fingerprint", StringComparison.OrdinalIgnoreCase) && string.IsNullOrEmpty(fingerprint))
DefineStaticWebAssetEndpoints.cs (4)
210headers[4] = new() { Name = "Cache-Control", Value = !string.IsNullOrEmpty(cacheSetting) ? cacheSetting : "no-cache" }; 274if (string.IsNullOrEmpty(definition.Replacement)) 279else if (string.IsNullOrEmpty(capturedStem)) 300Order = !string.IsNullOrEmpty(definition.Order) ? definition.Order : null,
DefineStaticWebAssets.Cache.cs (3)
20var cacheManifestPath = string.IsNullOrEmpty(CacheManifestPath) 166if (!string.IsNullOrEmpty(hash)) 176if (!string.IsNullOrEmpty(hash))
DefineStaticWebAssets.cs (19)
114var matcher = !string.IsNullOrEmpty(RelativePathPattern) ? 118var filter = !string.IsNullOrEmpty(RelativePathFilter) ? 154if (matcher != null && string.IsNullOrEmpty(candidate.GetMetadata("RelativePath"))) 279if (FingerprintCandidates && !string.IsNullOrEmpty(fingerprint)) 318if (!string.IsNullOrEmpty(existingGroups)) 420if (!string.IsNullOrEmpty(relativeFileName) && !string.Equals(relativeFileName, itemSpecFileName, StringComparison.OrdinalIgnoreCase)) 452if (string.IsNullOrEmpty(value)) 476if (!string.IsNullOrEmpty(relativePath)) 484if (!string.IsNullOrEmpty(targetPath)) 492if (!string.IsNullOrEmpty(linkPath)) 500var normalizedContentRoot = StaticWebAsset.NormalizeContentRootPath(string.IsNullOrEmpty(candidate.GetMetadata(nameof(StaticWebAsset.ContentRoot))) ? 720if (string.IsNullOrEmpty(value)) 727if (string.IsNullOrEmpty(sourceId)) 741if (string.IsNullOrEmpty(includePattern)) 756if (!string.IsNullOrEmpty(excludePattern)) 764if (!string.IsNullOrEmpty(relativePathPattern)) 862if (!string.IsNullOrEmpty(def.RelativePathPrefix)) 876if (!string.IsNullOrEmpty(def.RelativePathPrefix) && def.RelativePathMatcher == null) 883if (!string.IsNullOrEmpty(def.ContentRootSuffix))
FilterStaticWebAssetEndpoints.cs (1)
165(string.IsNullOrEmpty(criteria.Value) || string.Equals(value, criteria.Value, StringComparison.Ordinal));
GeneratePackageAssetsManifestFile.cs (3)
75if (string.IsNullOrEmpty(FrameworkPattern)) 137if (!string.IsNullOrEmpty(relatedAssetValue) && 142else if (!string.IsNullOrEmpty(relatedAssetValue))
GenerateStaticWebAssetEndpointsManifest.cs (8)
39var manifestAbsolutePath = !string.IsNullOrEmpty(ManifestPath) ? TaskEnvironment.GetAbsolutePath(ManifestPath).Value : ManifestPath; 40var cacheAbsolutePath = !string.IsNullOrEmpty(CacheFilePath) ? TaskEnvironment.GetAbsolutePath(CacheFilePath).Value : CacheFilePath; 41var exclusionCacheAbsolutePath = !string.IsNullOrEmpty(ExclusionPatternsCacheFilePath) ? TaskEnvironment.GetAbsolutePath(ExclusionPatternsCacheFilePath).Value : ExclusionPatternsCacheFilePath; 44var existingPatternString = !string.IsNullOrEmpty(ExclusionPatternsCacheFilePath) && File.Exists(exclusionCacheAbsolutePath) 47existingPatternString = string.IsNullOrEmpty(existingPatternString) ? null : existingPatternString; 48if (!string.IsNullOrEmpty(CacheFilePath) && File.Exists(manifestAbsolutePath) && File.GetLastWriteTimeUtc(manifestAbsolutePath) > File.GetLastWriteTimeUtc(cacheAbsolutePath)) 194if (string.IsNullOrEmpty(patterns)) 207if (string.IsNullOrEmpty(ExclusionPatternsCacheFilePath))
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
94var targetPropsFilePath = string.IsNullOrEmpty(TargetPropsFilePath) ? TargetPropsFilePath : TaskEnvironment.GetAbsolutePath(TargetPropsFilePath).Value;
GenerateStaticWebAssetsManifest.cs (2)
132string absolutizedManifestPath = !string.IsNullOrEmpty(ManifestPath) ? TaskEnvironment.GetAbsolutePath(ManifestPath) : ManifestPath; 133bool isManifestCacheFileConfigured = !string.IsNullOrEmpty(ManifestCacheFilePath);
GenerateStaticWebAssetsPropsFile.cs (4)
69if (!string.IsNullOrEmpty(FrameworkPattern)) 163var targetPropsAbsoluteFilePath = string.IsNullOrEmpty(TargetPropsFilePath) ? TargetPropsFilePath : TaskEnvironment.GetAbsolutePath(TargetPropsFilePath).Value; 230if (allowEmpty && string.IsNullOrEmpty(candidateMetadata)) 260var isInvalidValue = allowEmpty ? !HasMetadata(item, metadataName) : string.IsNullOrEmpty(value);
Legacy\GenerateStaticWebAssetsPropsFile50.cs (2)
177if (allowEmpty && string.IsNullOrEmpty(candidateMetadata)) 207var isInvalidValue = allowEmpty ? !HasMetadata(item, metadataName) : string.IsNullOrEmpty(value);
Legacy\GenerateV1StaticWebAssetsManifest.cs (1)
152if (string.IsNullOrEmpty(value))
Legacy\ValidateStaticWebAssetsUniquePaths.cs (1)
75if (string.IsNullOrEmpty(value))
MergeConfigurationProperties.cs (1)
114referenceMetadata = !string.IsNullOrEmpty(referenceMetadata) ? referenceMetadata : projectReference.ItemSpec;
OverrideHtmlAssetPlaceholders.cs (4)
129if (!string.IsNullOrEmpty(asset.PreloadAs)) 133if (!string.IsNullOrEmpty(asset.PreloadPriority)) 137if (!string.IsNullOrEmpty(asset.PreloadCrossorigin)) 141if (!string.IsNullOrEmpty(asset.Integrity))
ReadPackageAssetsManifest.cs (2)
36if (string.IsNullOrEmpty(IntermediateOutputPath)) 138if (!string.IsNullOrEmpty(asset.RelatedAsset))
ReadStaticWebAssetsManifestFile.cs (1)
32string manifestPath = string.IsNullOrEmpty(ManifestPath) ? ManifestPath : TaskEnvironment.GetAbsolutePath(ManifestPath);
ScopedCss\ComputeCssScope.cs (1)
34scope = !string.IsNullOrEmpty(scope) ? scope : GenerateScope(TargetName, relativePath);
ScopedCss\RewriteCss.cs (1)
134if (!string.IsNullOrEmpty(nextSiblingText))
ServiceWorker\GenerateServiceWorkerAssetsManifest.cs (1)
63var version = !string.IsNullOrEmpty(Version) ? Version : ComputeVersion(entries);
StaticWebAssetsGeneratePackagePropsFile.cs (1)
27var buildTargetPath = string.IsNullOrEmpty(BuildTargetPath) ? BuildTargetPath : TaskEnvironment.GetAbsolutePath(BuildTargetPath).Value;
StaticWebAssetsGeneratePackManifest.cs (1)
75string manifestPath = string.IsNullOrEmpty(ManifestPath) ? ManifestPath : TaskEnvironment.GetAbsolutePath(ManifestPath);
UpdateExternallyDefinedStaticWebAssets.cs (1)
117!string.IsNullOrEmpty(asset.RelatedAsset) &&
UpdatePackageStaticWebAssets.cs (2)
115if (!string.IsNullOrEmpty(endpoint.AssetFile) && assetMapping.ContainsKey(endpoint.AssetFile)) 129if (!string.IsNullOrEmpty(endpoint.AssetFile) && assetMapping.TryGetValue(endpoint.AssetFile, out var info))
UpdateStaticWebAssetEndpoints.cs (3)
161(string.IsNullOrEmpty(value) || string.Equals(getValue(elements[i]), value, StringComparison.Ordinal))) 190(string.IsNullOrEmpty(value) || string.Equals(getValue(elements[i]), value, StringComparison.Ordinal))) 267(string.IsNullOrEmpty(value) || string.Equals(getValue(elements[i]), value, StringComparison.Ordinal)))
Microsoft.NET.Sdk.WorkloadManifestReader (22)
SdkDirectoryWorkloadManifestProvider.cs (3)
119foreach (var manifestId in File.ReadAllLines(knownManifestIdsFilePath).Where(l => !string.IsNullOrEmpty(l))) 209if (!string.IsNullOrEmpty(installState.WorkloadVersion)) 450if (!string.IsNullOrEmpty(manifestDir))
SdkDirectoryWorkloadManifestProvider.GlobalJsonReader.cs (1)
18if (string.IsNullOrEmpty(globalJsonPath))
SdkFeatureBand.cs (2)
18if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Contains("dev") || version.Prerelease.Contains("ci") || version.Prerelease.Contains("rtm")) 70public bool IsPrerelease => !string.IsNullOrEmpty(_featureBand.Prerelease);
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
112return !string.IsNullOrEmpty(targetFrameworkVersion) && Version.TryParse(targetFrameworkVersion.Substring(1), out var version) ? version : null;
src\sdk\src\Resolvers\Microsoft.DotNet.MSBuildSdkResolver\FXVersion.cs (9)
41if (string.IsNullOrEmpty(s1.Pre) || string.IsNullOrEmpty(s2.Pre)) 44return string.IsNullOrEmpty(s1.Pre) ? (string.IsNullOrEmpty(s2.Pre) ? 0 : 1) : -1; 139if (string.IsNullOrEmpty(id)) 161if (string.IsNullOrEmpty(ids)) 209if (string.IsNullOrEmpty(fxVersionString) || fxVersionString == null) 307=> (!string.IsNullOrEmpty(Pre), !string.IsNullOrEmpty(Build)) switch
WorkloadId.cs (1)
16if (string.IsNullOrEmpty(id))
WorkloadManifestReader.cs (1)
487if (!isAbstract && kind == WorkloadDefinitionKind.Dev && string.IsNullOrEmpty(description))
WorkloadResolver.cs (4)
32File.ReadAllLines(runtimeIdentifierChainPath).Where(l => !string.IsNullOrEmpty(l)).ToArray() : 46if (!string.IsNullOrEmpty(packRootEnvironmentVariable)) 388if (string.IsNullOrEmpty(workloadId)) 490if (string.IsNullOrEmpty(packId))
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (3)
44if (string.IsNullOrEmpty(home)) 54if (string.IsNullOrEmpty(home)) 60if (string.IsNullOrEmpty(home))
Microsoft.NET.StringTools (1)
SpanBasedStringBuilder.cs (1)
218if (!string.IsNullOrEmpty(value))
Microsoft.Private.Windows.Core (6)
src\winforms\src\Microsoft.Private.Windows.Polyfills\Exceptions\ArgumentExtensions.cs (1)
25if (string.IsNullOrEmpty(argument))
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\PathExtensions.cs (2)
34if (string.IsNullOrEmpty(path1)) 36if (string.IsNullOrEmpty(path2))
System\ArgumentValidation.cs (2)
37if (string.IsNullOrEmpty(argument)) 45if (string.IsNullOrEmpty(argument))
System\Private\Windows\Ole\DataObjectExtensions.cs (1)
26if (string.IsNullOrEmpty(path) || path.Contains('\0'))
Microsoft.SourceLink.AzureDevOpsServer.Git (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.AzureRepos.Git (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.Bitbucket.Git (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.Common (5)
GenerateSourceLinkFile.cs (3)
53var isMapped = !string.IsNullOrEmpty(mappedPath); 71if (string.IsNullOrEmpty(url)) 121if (string.IsNullOrEmpty(OutputFile) || !PathUtilities.IsPathFullyQualified(OutputFile))
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.Gitea (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.Gitee (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.GitHub (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.GitLab (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.SourceLink.GitWeb (7)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (5)
77if (!string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.SourceLinkUrl)) || 85if (string.IsNullOrEmpty(gitUrl)) 92if (string.IsNullOrEmpty(SourceRoot.GetMetadata(Names.SourceRoot.RevisionId))) 157NullableDebug.Assert(!string.IsNullOrEmpty(host)); 187var hasDefaultContentUri = string.IsNullOrEmpty(contentUrl);
src\sourcelink\src\Common\Utilities\NullableAttributes.cs (1)
97=> string.IsNullOrEmpty(str);
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
21=> string.IsNullOrEmpty(relativeUrl) ? baseUrl :
Microsoft.TemplateEngine.Abstractions (5)
TemplateParameterPrecedence.cs (5)
61!string.IsNullOrEmpty(IsRequiredCondition) || 69if (!(string.IsNullOrEmpty(IsRequiredCondition) ^ PrecedenceDefinition == PrecedenceDefinition.ConditionalyRequired 71!string.IsNullOrEmpty(IsEnabledCondition) ^ PrecedenceDefinition == PrecedenceDefinition.ConditionalyDisabled) 73!(!string.IsNullOrEmpty(IsRequiredCondition) && !string.IsNullOrEmpty(IsEnabledCondition) && PrecedenceDefinition == PrecedenceDefinition.ConditionalyDisabled))
Microsoft.TemplateEngine.Cli (35)
ChoiceTemplateParameter.cs (1)
191if (parsedValues.Count > 1 && parsedValues.Any(string.IsNullOrEmpty))
CliTemplateParameter.cs (1)
465if (!string.IsNullOrEmpty(precedenceValue))
Commands\AliasAssignmentCoordinator.cs (3)
17List<string> predefinedLongOverrides = parameters.SelectMany(p => p.LongNameOverrides).Where(n => !string.IsNullOrEmpty(n)).Select(n => $"--{n}").ToList(); 18List<string> predefinedShortOverrides = parameters.SelectMany(p => p.ShortNameOverrides).Where(n => !string.IsNullOrEmpty(n)).Select(n => $"-{n}").ToList(); 66if (!string.IsNullOrEmpty(shortNameOverride))
Commands\create\InstantiateCommand.Help.cs (1)
181if (!string.IsNullOrEmpty(preferredTemplate.ThirdPartyNotices))
HostSpecificDataLoader.cs (1)
64if (!string.IsNullOrEmpty(templateInfo.HostConfigPlace) && _engineEnvironment.TryGetMountPoint(templateInfo.MountPointUri, out mountPoint) && mountPoint != null)
NullOrEmptyIsLastStringComparer.cs (4)
15if (string.IsNullOrEmpty(x) && string.IsNullOrEmpty(y)) 20if (string.IsNullOrEmpty(y)) 25if (string.IsNullOrEmpty(x))
PostActionProcessors\ProcessStartPostActionProcessor.cs (1)
98if (!string.IsNullOrEmpty(outputBasePath) && fileSystem.DirectoryExists(outputBasePath))
TabularOutput\TabularOutput.cs (1)
110if (_columns.Any(x => !string.IsNullOrEmpty(x.Header)))
TabularOutput\TemplateGroupDisplay.cs (3)
93if (string.IsNullOrEmpty(language) && string.Equals(defaultLanguage, lang, StringComparison.OrdinalIgnoreCase)) 104if (!string.IsNullOrEmpty(defaultLanguageDisplay)) 143IEnumerable<IGrouping<string?, ITemplateInfo>> groupedTemplateList = templateList.GroupBy(x => x.GroupIdentity, x => !string.IsNullOrEmpty(x.GroupIdentity), StringComparer.OrdinalIgnoreCase);
TemplateGroup.cs (1)
188.GroupBy(x => x.GroupIdentity, x => !string.IsNullOrEmpty(x.GroupIdentity), StringComparer.OrdinalIgnoreCase)
TemplateInvoker.cs (6)
57string? packageName = string.IsNullOrEmpty(templatePackage?.Identifier) ? null : Sha256Hasher.HashWithNormalizedCasing(templatePackage.Identifier); 58string? packageVersion = string.IsNullOrEmpty(templatePackage?.Version) ? null : Sha256Hasher.HashWithNormalizedCasing(templatePackage.Version); 144if (string.IsNullOrEmpty(fallbackName) || string.Equals(fallbackName, "/", StringComparison.Ordinal)) 195string resultTemplateName = string.IsNullOrEmpty(instantiateResult.TemplateFullName) ? templateArgs.Template.Name : instantiateResult.TemplateFullName; 216if (!string.IsNullOrEmpty(templateArgs.Template.ThirdPartyNotices)) 297if (!string.IsNullOrEmpty(instantiateResult.ErrorMessage))
TemplatePackageCoordinator.cs (9)
493if (!string.IsNullOrEmpty(packageMetadata.Authors)) 504if (!string.IsNullOrEmpty(packageMetadata.Owners)) 518if (!string.IsNullOrEmpty(packageMetadata.LicenseExpression)) 527if (!string.IsNullOrEmpty(licenseUrl)) 535if (!string.IsNullOrEmpty(projectUrl)) 550if (!string.IsNullOrEmpty(authors)) 564if (!string.IsNullOrEmpty(nuGetSource)) 603if (!string.IsNullOrEmpty(metadataEntry)) 733var templateGroupsCount = templates.GroupBy(x => x.GroupIdentity, x => !string.IsNullOrEmpty(x.GroupIdentity), StringComparer.OrdinalIgnoreCase).Count();
TemplateResolution\CliFilters.cs (2)
21if (string.IsNullOrEmpty(name)) 46if (string.IsNullOrEmpty(name))
TemplateSearch\CliTemplateSearchCoordinator.cs (1)
141f => f.Name == packageIdentifier && (string.IsNullOrEmpty(version) || f.Version == version),
Microsoft.TemplateEngine.Core (15)
Expressions\Shared\SharedEvaluatorDefinition.cs (2)
30faulted = !string.IsNullOrEmpty(faultedMessage); 191if (!string.IsNullOrEmpty(faultedMessage))
Operations\BalancedNesting.cs (1)
69IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
Operations\Conditional.cs (1)
139IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
Operations\ExpandVariables.cs (1)
34IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
Operations\Include.cs (1)
53IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
Operations\InlineMarkupConditional.cs (1)
87IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
Operations\PhasedOperation.cs (1)
100IsInitialStateOn = string.IsNullOrEmpty(_definition.Id) || initialState;
Operations\Region.cs (1)
59IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
Operations\Replacement.cs (1)
49IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
Operations\SetFlag.cs (1)
68IsInitialStateOn = string.IsNullOrEmpty(id) || initialState;
TokenConfig.cs (3)
47byte[] pre = string.IsNullOrEmpty(After) ? [] : encoding.GetBytes(After); 48byte[] post = string.IsNullOrEmpty(Before) ? [] : encoding.GetBytes(Before); 49byte[] core = string.IsNullOrEmpty(Value) ? [] : encoding.GetBytes(Value);
Util\ProcessorState.cs (1)
99if (explicitOnConfigurationRequired && op.IsInitialStateOn && !string.IsNullOrEmpty(op.Id))
Microsoft.TemplateEngine.Edge (37)
Constraints\ConstraintsExtensions.cs (1)
37if (string.IsNullOrEmpty(strValue))
Installers\NuGet\NuGetManagedTemplatePackage.cs (9)
116set => UpdateOrRemoveValue(Details, ReservedKey, value, (entry) => !string.IsNullOrEmpty(entry)); 122set => UpdateOrRemoveValue(Details, AuthorKey, value, (entry) => !string.IsNullOrEmpty(entry)); 128set => UpdateOrRemoveValue(Details, OwnersKey, value, (entry) => !string.IsNullOrEmpty(entry)); 147set => UpdateOrRemoveValue(Details, NuGetSourceKey, value, (entry) => !string.IsNullOrEmpty(entry)); 153set => UpdateOrRemoveValue(Details, PackageVersionKey, value, (entry) => !string.IsNullOrEmpty(entry)); 172details.TryAdd(AuthorKey, Author ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry)); 173details.TryAdd(OwnersKey, Owners ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry)); 174details.TryAdd(ReservedKey, Reserved ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry)); 175details.TryAdd(NuGetSourceKey, NuGetSource ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry));
Installers\NuGet\NuGetVersionHelper.cs (2)
16string.IsNullOrEmpty(versionString) 39string.IsNullOrEmpty(versionString) ?
Mount\Archive\ZipFileMountPoint.cs (1)
73if (parentDir != null && !string.IsNullOrEmpty(entry.Name))
Settings\SettingsFilePaths.cs (1)
146if (string.IsNullOrEmpty(path))
Template\InputDataSetExtensions.cs (6)
37string.IsNullOrEmpty(p.ParameterDefinition.Precedence.IsEnabledCondition)).ToList()); 42string.IsNullOrEmpty(p.ParameterDefinition.Precedence.IsRequiredCondition)).ToList()); 52!string.IsNullOrEmpty(p.Precedence.IsRequiredCondition) || 53!string.IsNullOrEmpty(p.Precedence.IsEnabledCondition)); 92string.IsNullOrEmpty(inputParameterData.ParameterDefinition.Precedence.IsEnabledCondition) ^ !evaluatedInputParameterData.IsEnabledConditionResult.HasValue 94string.IsNullOrEmpty(inputParameterData.ParameterDefinition.Precedence.IsRequiredCondition) ^ !evaluatedInputParameterData.IsRequiredConditionResult.HasValue))
Template\InputDataState.cs (1)
40return value == null || (value is string str && string.IsNullOrEmpty(str))
Template\ParameterSetBuilder.cs (2)
221if (!string.IsNullOrEmpty(parameter.ParameterDefinition.Precedence.IsEnabledCondition)) 327if (!string.IsNullOrEmpty(parameter.ParameterDefinition.Precedence.IsRequiredCondition))
Template\TemplateCreator.cs (8)
108if (!string.IsNullOrEmpty(name)) 114if (string.IsNullOrEmpty(templateInfo.DefaultName)) 123if (string.IsNullOrEmpty(fallbackName)) 125if (!string.IsNullOrEmpty(templateInfo.DefaultName)) 142if (template.IsNameAgreementWithFolderPreferred && string.IsNullOrEmpty(outputPath)) 300if (!string.IsNullOrEmpty(paramFromTemplate.DefaultIfOptionWithoutValue)) 319if (string.IsNullOrEmpty(paramFromTemplate.Precedence.IsEnabledCondition)) 394!string.IsNullOrEmpty(v.ParameterDefinition.Precedence.IsRequiredCondition) &&
Template\WellKnownSearchFilters.cs (5)
16if (string.IsNullOrEmpty(name)) 63if (string.IsNullOrEmpty(context)) 109if (string.IsNullOrEmpty(language)) 129if (string.IsNullOrEmpty(baselineName)) 150if (string.IsNullOrEmpty(name))
ValidationUtils.cs (1)
105string templateName = string.IsNullOrEmpty(template.Name) ? "<no name>" : template.Name;
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (39)
ConfigModel\ConditionedConfigurationElement.cs (1)
49bool conditionResult = string.IsNullOrEmpty(Condition) ||
ConfigModel\ParameterSymbol.cs (3)
58else if (DataType == "bool" && string.IsNullOrEmpty(DefaultIfOptionWithoutValue)) 223if (!string.IsNullOrEmpty(isEnabledCondition)) 233if (!string.IsNullOrEmpty(isRequiredCondition))
ConfigModel\TemplateConfigModel.cs (1)
89if (!string.IsNullOrEmpty(baselineName))
GlobalRunSpec.cs (1)
150if (string.IsNullOrEmpty(condition)
LocalizationModelDeserializer.cs (4)
63if (string.IsNullOrEmpty(parameterParts.Key)) 104if (string.IsNullOrEmpty(choiceParts.Key)) 134if (string.IsNullOrEmpty(postActionParts.Key)) 171if (string.IsNullOrEmpty(instructionParts.Key))
Macros\CoalesceMacro.cs (1)
38else if (currentSourceValue is string str && string.IsNullOrEmpty(str))
Macros\EvaluateMacroConfig.cs (1)
22if (!string.IsNullOrEmpty(evaluator))
Macros\GuidMacroConfig.cs (4)
19if (!string.IsNullOrEmpty(format)) 23if (!string.IsNullOrEmpty(defaultFormat)) 33if (!string.IsNullOrEmpty(configuredFormat)) 38if (!string.IsNullOrEmpty(configuredDefaultFormat))
Macros\JoinMacro.cs (1)
46string result = string.Join(config.Separator, values.Where(v => !config.RemoveEmptyValues || !string.IsNullOrEmpty(v)));
Macros\RegexMacroConfig.cs (1)
45if (string.IsNullOrEmpty(regex))
Macros\RegexMatchMacroConfig.cs (1)
18if (string.IsNullOrEmpty(pattern))
Macros\SwitchMacro.cs (1)
22if (string.IsNullOrEmpty(condition))
Macros\SwitchMacroConfig.cs (1)
64if (!string.IsNullOrEmpty(condition))
OperationConfig\ConditionalConfig.cs (1)
24IEnumerable<IOperationProvider> operations = string.IsNullOrEmpty(commentStyle) || string.Equals(commentStyle, "custom", StringComparison.OrdinalIgnoreCase)
OperationConfig\ReplacementConfig.cs (2)
45if (!string.IsNullOrEmpty(before)) 50if (!string.IsNullOrEmpty(after))
Parameter.cs (2)
85public bool Equals(ITemplateParameter other) => !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(other.Name) && Name == other.Name;
ParameterConverter.cs (2)
33.Where(r => !string.IsNullOrEmpty(r)) 155string s when string.IsNullOrEmpty(s) => null,
PostAction.cs (2)
59if (string.IsNullOrEmpty(modelInstruction.Condition)) 62if (string.IsNullOrEmpty(chosenInstruction))
RunnableProjectConfig.cs (7)
301if (!string.IsNullOrEmpty(processedFileReplacement)) 334if (customGlobModel == null || string.IsNullOrEmpty(customGlobModel.FlagPrefix)) 384if (!string.IsNullOrEmpty(processedReplacement)) 422if (!string.IsNullOrEmpty(p.Id)) 424string? prefix = (customGlobModel == null || string.IsNullOrEmpty(customGlobModel.FlagPrefix)) ? defaultModel.FlagPrefix : customGlobModel.FlagPrefix; 454if (!string.IsNullOrEmpty(context.OnlyIfAfter)) 459if (!string.IsNullOrEmpty(context.OnlyIfBefore))
RunnableProjectGenerator.cs (1)
109return string.IsNullOrEmpty(evaluationError);
UnicodeCharacterUtilities.cs (1)
91if (string.IsNullOrEmpty(name))
Microsoft.TemplateEngine.Utils (18)
CacheParameter.cs (1)
23return !string.IsNullOrEmpty(DefaultIfOptionWithoutValue);
CacheTag.cs (1)
37return !string.IsNullOrEmpty(DefaultIfOptionWithoutValue);
FileSystemInfoExtensions.cs (1)
109if (string.IsNullOrEmpty(path))
InMemoryFileSystem.cs (7)
41if (string.IsNullOrEmpty(rel)) 106if (string.IsNullOrEmpty(rel)) 144if (string.IsNullOrEmpty(rel)) 182if (!string.IsNullOrEmpty(rel)) 262if (!string.IsNullOrEmpty(rel)) 344if (!string.IsNullOrEmpty(rel)) 719if (string.IsNullOrEmpty(parts[i]))
TemplateParameter.cs (2)
104public bool Equals(ITemplateParameter other) => !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(other.Name) && Name == other.Name;
VersionStringHelpers.cs (2)
10if (string.IsNullOrEmpty(versionString)) 62if (string.IsNullOrEmpty(version))
WellKnownSearchFilters.cs (4)
41if (string.IsNullOrEmpty(name)) 94if (string.IsNullOrEmpty(type)) 143if (string.IsNullOrEmpty(language)) 170if (string.IsNullOrEmpty(baselineName))
Microsoft.TemplateSearch.Common (4)
Providers\NuGetMetadataSearchProvider.cs (2)
94if (!string.IsNullOrEmpty(localOverridePath)) 108if (!string.IsNullOrEmpty(useLocalSearchFile))
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (2)
439public bool Equals(ITemplateParameter other) => !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(other.Name) && Name == other.Name;
Microsoft.TestPlatform.AdapterUtilities (2)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Microsoft.TestPlatform.Build (2)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Microsoft.TestPlatform.CommunicationUtilities (4)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Serialization\ExceptionConverter.cs (2)
130if (!string.IsNullOrEmpty(Message)) 141if (!string.IsNullOrEmpty(RemoteStackTrace))
Microsoft.TestPlatform.CoreUtilities (5)
Helpers\EnvironmentVariableHelper.cs (1)
19=> Environment.GetEnvironmentVariable(variable) is string value && !string.IsNullOrEmpty(value)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Output\OutputExtensions.cs (1)
103if (format == null || string.IsNullOrEmpty(format.Trim()))
ValidateArg.cs (1)
200if (string.IsNullOrEmpty(arg))
Microsoft.TestPlatform.CrossPlatEngine (2)
NullableHelpers.cs (1)
22=> string.IsNullOrEmpty(value);
TestEngine.cs (1)
565if (string.IsNullOrEmpty(runsettings))
Microsoft.TestPlatform.Extensions.BlameDataCollector (5)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
Microsoft.TestPlatform.Filter.Source (3)
FilterExpression.cs (2)
215if (!string.IsNullOrEmpty(trimmed)) 242if (string.IsNullOrEmpty(token))
TestCaseFilterExpression.cs (1)
48_validForMatch = string.IsNullOrEmpty(filterWrapper.ParseError);
Microsoft.TestPlatform.PlatformAbstractions (3)
common\Tracing\PlatformEqtTrace.cs (1)
216TPDebug.Assert(!string.IsNullOrEmpty(ProcessName), "!string.IsNullOrEmpty(ProcessName)");
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Microsoft.TestPlatform.Utilities (2)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
91If Not String.IsNullOrEmpty(file) AndAlso
Microsoft.VisualBasic.Forms (9)
Microsoft\VisualBasic\Devices\Audio.vb (1)
43If String.IsNullOrEmpty(location) Then
Microsoft\VisualBasic\Devices\Network.DownloadFile.vb (1)
355If String.IsNullOrEmpty(targetDirectory) Then
Microsoft\VisualBasic\Helpers\FileSystemUtils.vb (2)
26Debug.Assert(Not String.IsNullOrEmpty(fullPath) AndAlso IO.Path.IsPathRooted(fullPath), "Must be full path") 122If String.IsNullOrEmpty(path) Then
Microsoft\VisualBasic\Interaction.vb (1)
210If String.IsNullOrEmpty(Title) Then
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
99If String.IsNullOrEmpty(_hostName) Then 143If String.IsNullOrEmpty(CustomLocation) Then 253If String.IsNullOrEmpty(value) Then
Microsoft\VisualBasic\Logging\Log.vb (1)
196If Not String.IsNullOrEmpty(additionalInfo) Then
Microsoft.VisualStudio.TestPlatform.Client (1)
TestPlatform.cs (1)
216if (!string.IsNullOrEmpty(sourceDirectory) && _fileHelper.DirectoryExists(sourceDirectory))
Microsoft.VisualStudio.TestPlatform.Common (2)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (20)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
ObjectModel\TestResult.cs (2)
461TPDebug.Assert(!string.IsNullOrEmpty(resultFile), "'resultFile' is null or empty"); 530if (!string.IsNullOrEmpty(ResultType))
ObjectModel\TestRun.cs (1)
182if (string.IsNullOrEmpty(RunConfiguration.RunDeploymentRootDirectory))
ObjectModel\TestRunConfiguration.cs (2)
100TPDebug.Assert(!string.IsNullOrEmpty(value), "RunDeploymentRootDirectory.value should not be null or empty."); 136!string.IsNullOrEmpty(_runDeploymentRoot),
ObjectModel\UnitTestElement.cs (1)
26TPDebug.Assert(!string.IsNullOrEmpty(adapter), "adapter is null");
TrxLogger.cs (1)
526string testCaseName = !string.IsNullOrEmpty(testCase.DisplayName) ? testCase.DisplayName : testCase.FullyQualifiedName;
Utility\Converter.cs (2)
108string resultName = !string.IsNullOrEmpty(rockSteadyTestResult.DisplayName) ? rockSteadyTestResult.DisplayName! : testName; 622if (!string.IsNullOrEmpty(testCaseSource))
Utility\TrxFileHelper.cs (5)
268TPDebug.Assert(!string.IsNullOrEmpty(fileName), "FileHelper.IsReservedFileName: the argument is null or empty string!"); 269if (string.IsNullOrEmpty(fileName)) 345TPDebug.Assert(!string.IsNullOrEmpty(baseName), "basename is null"); 375TPDebug.Assert(!string.IsNullOrEmpty(baseName), "baseName is null"); 389TPDebug.Assert(!string.IsNullOrEmpty(path), "path is null");
XML\XmlPersistence.cs (4)
108if (!string.IsNullOrEmpty(_prefix)) 114if (!string.IsNullOrEmpty(_namespaceUri)) 536if (!string.IsNullOrEmpty(info.Location)) 844if (string.IsNullOrEmpty(_namespaceUri))
Microsoft.VisualStudio.TestPlatform.ObjectModel (20)
Nuget.Frameworks\FrameworkNameHelpers.cs (2)
19return String.Format(CultureInfo.InvariantCulture, "{0}{1}{2}{3}", identifierShortName, versionString, String.IsNullOrEmpty(profileShortName) ? string.Empty : "-", profileShortName); 46if (string.IsNullOrEmpty(versionString))
Nuget.Frameworks\FrameworkNameProvider.cs (2)
156if (string.IsNullOrEmpty(versionString)) 186if (string.IsNullOrEmpty(versionString))
Nuget.Frameworks\NuGetFramework.cs (7)
98get { return !string.IsNullOrEmpty(Platform); } 106get { return !string.IsNullOrEmpty(Profile); } 146if (!string.IsNullOrEmpty(framework.Profile)) 167_targetPlatformMoniker = string.IsNullOrEmpty(Platform) 215if (string.IsNullOrEmpty(shortFramework)) 260if (!string.IsNullOrEmpty(framework.Platform)) 282if (!string.IsNullOrEmpty(shortProfile))
Nuget.Frameworks\NuGetFrameworkFactory.cs (9)
75if (string.IsNullOrEmpty(targetFrameworkMoniker)) throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(targetFrameworkMoniker)); 115if (!string.IsNullOrEmpty(profile) && isNet5EraTfm) 124if (!string.IsNullOrEmpty(targetPlatformMoniker) && isNet5EraTfm) 185if (!string.IsNullOrEmpty(versionPart)) 202if (!string.IsNullOrEmpty(profilePart)) 208&& !string.IsNullOrEmpty(profile) 225if (!string.IsNullOrEmpty(versionPart)) 300if (!string.IsNullOrEmpty(profileShort)) 315if ((string.IsNullOrEmpty(platformVersionString) || mappings.TryGetPlatformVersion(platformVersionString!, out platformVersion)))
Microsoft.Web.Xdt.Extensions (2)
InsertOrAppendAttribute.cs (2)
55if (!string.IsNullOrEmpty(arg)) 114if (string.IsNullOrEmpty(att.Value))
Microsoft.Web.XmlTransform (15)
NamedTypeFactory.cs (1)
46if (!String.IsNullOrEmpty(typeName)) {
XmlElementContext.cs (3)
313if (argumentCaptures.Count == 1 && !String.IsNullOrEmpty(argumentCaptures[0].Value)) { 330if (!String.IsNullOrEmpty(typeName)) { 372!String.IsNullOrEmpty(failedContext.parentContext.ParentXPath) &&
XmlFileInfoDocument.cs (1)
332if (!String.IsNullOrEmpty(NamespaceURI)) {
XmlLocator.cs (3)
51if (!String.IsNullOrEmpty(CurrentElement.NamespaceURI) && String.IsNullOrEmpty(CurrentElement.Prefix)) { 245if (String.IsNullOrEmpty(predicate)) {
XmlTransformationLogger.cs (1)
227if (uri.IsFile && String.IsNullOrEmpty(uri.Host)) {
XmlTransforms.cs (6)
17if (!String.IsNullOrEmpty(argumentString)) { 445if (!string.IsNullOrEmpty(pathToNode)) 453if (!string.IsNullOrEmpty(val)) 574if (!string.IsNullOrEmpty(strTokenFormat)) 604if (paramDictionary.TryGetValue(XpathLocator, out attributeLocator) && !string.IsNullOrEmpty(attributeLocator)) 608if (!string.IsNullOrEmpty(xpathwithlocator))
Mono.Cecil (19)
Mono.Cecil.Cil\PortablePdb.cs (1)
378 if (string.IsNullOrEmpty (fileName)) {
Mono.Cecil\AssemblyNameReference.cs (1)
147 builder.Append (string.IsNullOrEmpty (culture) ? "neutral" : culture);
Mono.Cecil\AssemblyReader.cs (2)
1090 if (string.IsNullOrEmpty (scope)) 3775 marshaler.guid = !string.IsNullOrEmpty (guid_value) ? new Guid (guid_value) : Guid.Empty;
Mono.Cecil\AssemblyWriter.cs (3)
1005 if (string.IsNullOrEmpty (@string)) 1767 return !string.IsNullOrEmpty (parameter.Name) 2663 if (string.IsNullOrEmpty (path))
Mono.Cecil\ExportedType.cs (1)
205 var fullname = string.IsNullOrEmpty (@namespace)
Mono.Cecil\GenericParameter.cs (1)
108 if (!string.IsNullOrEmpty (base.Name))
Mono.Cecil\ModuleDefinition.cs (5)
1102 if (string.IsNullOrEmpty (file_name)) 1261 if (string.IsNullOrEmpty (name)) 1267 if (string.IsNullOrEmpty (fileName)) 1273 if (string.IsNullOrEmpty (fullName)) 1346 if (string.IsNullOrEmpty (self))
Mono.Cecil\TypeParser.cs (4)
239 if (string.IsNullOrEmpty (fullname)) 358 if (string.IsNullOrEmpty (type_info.assembly)) 396 if (string.IsNullOrEmpty (type_info.assembly)) 436 if (!string.IsNullOrEmpty (@namespace)) {
Mono.Cecil\TypeReference.cs (1)
311 return string.IsNullOrEmpty (self.Namespace)
Mono.Cecil.Mdb (1)
Mono.Cecil.Mdb\MdbWriter.cs (1)
161 if (!string.IsNullOrEmpty (variable.Name))
Mono.Cecil.Pdb (1)
Mono.Cecil.Pdb\NativePdbReader.cs (1)
258 if (string.IsNullOrEmpty (used_namespace))
Mono.Cecil.Rocks (1)
Mono.Cecil.Rocks\DocCommentId.cs (1)
226 if (!string.IsNullOrEmpty (type.Namespace)) {
MSBuild (35)
CommandLine\CommandLineParser.cs (1)
282if (string.IsNullOrEmpty(switchParameters))
CommandLine\CommandLineSwitches.cs (4)
393if (!string.IsNullOrEmpty(resourceId) && parameterizedSwitchResourceIds.Add(resourceId)) 410if (parameterlessSwitchResourceIds.Add(resourceId) && !string.IsNullOrEmpty(resourceId)) 466Debug.Assert(!string.IsNullOrEmpty(s_parameterlessSwitchesMap[i].resourceId), "All parameterless switches should be cross-checked against the help message strings"); 481Debug.Assert(!string.IsNullOrEmpty(s_parameterizedSwitchesMap[i].resourceId), "All parameterized switches should be cross-checked against the help message strings except from project switch");
PerformanceLogEventListener.cs (1)
57if (!string.IsNullOrEmpty(logDirectory) && Directory.CreateDirectory(logDirectory).Exists)
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
30return !string.IsNullOrEmpty(debugPath)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
27var file = Path.Combine(LogFileRoot, string.IsNullOrEmpty(id) ? "NoId" : id) + ".csv"; 97return string.IsNullOrEmpty(id)
src\msbuild\src\Shared\TaskParameter.cs (5)
630if (!string.IsNullOrEmpty(recursiveDirEscaped)) 639if (!string.IsNullOrEmpty(recursiveDir)) 800.Where(metadatum => string.IsNullOrEmpty(destinationItem.GetMetadata(metadatum.Key))); 818if (String.IsNullOrEmpty(value)) 825if (String.IsNullOrEmpty(originalItemSpec))
src\msbuild\src\Shared\TypeLoader.cs (2)
267if (string.IsNullOrEmpty(assemblyFilePath) || !File.Exists(assemblyFilePath)) 585if (!string.IsNullOrEmpty(typeName))
XMake.cs (19)
554if (!string.IsNullOrEmpty(envVar)) 1173if (!string.IsNullOrEmpty(timerOutputFilename)) 1818if (!string.IsNullOrEmpty(toolsVersion)) 1824if (!string.IsNullOrEmpty(memoryUseLimit)) 2752Assumed.True(!invokeBuild || !string.IsNullOrEmpty(projectFile), "We should have a project file if we're going to build."); 2890if (string.IsNullOrEmpty(terminalLoggerArg)) 2906if (!string.IsNullOrEmpty(terminalLoggerArg)) 2914else if (!string.IsNullOrEmpty(liveLoggerArg)) 3018return automatedEnvironmentVariables.Any(envVar => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable(envVar))); 3163=> parameters.Length > 0 && !string.IsNullOrEmpty(parameters[parameters.Length - 1]) 3667|| string.IsNullOrEmpty(projectFile) 3677if (string.IsNullOrEmpty(logicalCurrentDirectory) || !Path.IsPathRooted(logicalCurrentDirectory)) 3904if (!string.IsNullOrEmpty(result) && result[result.Length - 1] != ';') 4104if (!string.IsNullOrEmpty(verbosityValue)) 4125if (!string.IsNullOrEmpty(verbosityValue)) 4171if (!string.IsNullOrEmpty(logFileName) && !Path.IsPathRooted(logFileName)) 4182if (string.IsNullOrEmpty(logFileName)) 4186if (!string.IsNullOrEmpty(fileParameters) && !fileParameters.EndsWith(";", StringComparison.OrdinalIgnoreCase)) 4240if (!string.IsNullOrEmpty(parameter))
MSBuild.Coordinator (1)
CoordinatorServer.DefaultDebugOutput.cs (1)
32if (string.IsNullOrEmpty(_debugDumpDirectory))
MyFrontend (1)
Services\BasketServiceClient.cs (1)
15var result = !string.IsNullOrEmpty(response.BuyerId) ? MapToCustomerBasket(response) : null;
NuGet.Build.Tasks (33)
BuildTasksUtility.cs (3)
63if (!string.IsNullOrEmpty(propertyValue) 86if (!string.IsNullOrEmpty(propertyValue)) 96if (!string.IsNullOrEmpty(value)
Common\MSBuildTaskItem.cs (1)
63if (string.IsNullOrEmpty(val))
GetCentralPackageVersionsTask.cs (2)
49if (string.IsNullOrEmpty(packageId) || !seenIds.Add(packageId)) 61if (!string.IsNullOrEmpty(TargetFrameworks))
GetReferenceNearestTargetFrameworkTask.cs (2)
125if (string.IsNullOrEmpty(referencedProjectFrameworkString)) 240if (string.IsNullOrEmpty(targetFrameworkMoniker))
GetRestoreDotnetCliToolsTask.cs (1)
68if (string.IsNullOrEmpty(msbuildItem.ItemSpec))
GetRestoreFrameworkReferencesTask.cs (2)
46if (string.IsNullOrEmpty(frameworkReference) || !seenIds.Add(frameworkReference)) 57if (!string.IsNullOrEmpty(TargetFrameworks))
GetRestoreNuGetAuditSuppressionsTask.cs (2)
48if (string.IsNullOrEmpty(packageId) || !seenIds.Add(packageId)) 59if (!string.IsNullOrEmpty(TargetFrameworks))
GetRestorePackageDownloadsTask.cs (2)
52if (string.IsNullOrEmpty(packageId) || !seenIds.Add(packageId)) 58if (!string.IsNullOrEmpty(TargetFrameworks))
GetRestorePackageReferencesTask.cs (2)
46if (string.IsNullOrEmpty(packageId) || !seenIds.Add(packageId)) 59if (!string.IsNullOrEmpty(TargetFrameworks))
GetRestoreProjectReferencesTask.cs (2)
70if (string.IsNullOrEmpty(refOutput) 93if (!string.IsNullOrEmpty(TargetFrameworks))
GetRestorePrunedPackageReferencesTask.cs (2)
49if (string.IsNullOrEmpty(packageId) || !seenIds.Add(packageId)) 61if (!string.IsNullOrEmpty(TargetFrameworks))
GetRestoreSettingsTask.cs (7)
116if (!string.IsNullOrEmpty(debugRestoreTask) && debugRestoreTask.Equals(bool.TrueString, StringComparison.OrdinalIgnoreCase)) 143Debug.Assert(string.IsNullOrEmpty(RestoreRootConfigDirectory) || Path.IsPathFullyQualified(RestoreRootConfigDirectory)); 144Debug.Assert(string.IsNullOrEmpty(RestoreSolutionDirectory) || Path.IsPathFullyQualified(RestoreSolutionDirectory)); 153if (string.IsNullOrEmpty(RestoreRootConfigDirectory)) 167() => string.IsNullOrEmpty(RestorePackagesPath) ? null : UriUtility.GetAbsolutePathFromFile(ProjectUniqueName, RestorePackagesPath), 172() => string.IsNullOrEmpty(RestoreRepositoryPath) ? null : UriUtility.GetAbsolutePathFromFile(ProjectUniqueName, RestoreRepositoryPath), 222if (!string.IsNullOrEmpty(path))
GetRestoreSolutionProjectsTask.cs (1)
57if (string.IsNullOrEmpty(project.ItemSpec))
RestoreSettingsUtils.cs (2)
28if (!string.IsNullOrEmpty(solutionDirectory)) 47if (string.IsNullOrEmpty(restoreConfigFile))
RestoreTask.cs (1)
145if (!string.IsNullOrEmpty(debugRestoreTask) &&
StaticGraphRestoreTaskBase.cs (1)
351if (!string.IsNullOrEmpty(processFileName))
NuGet.Build.Tasks.Console (8)
ItemAdapter.cs (1)
25if (string.IsNullOrEmpty(value))
MSBuildStaticGraphRestore.cs (6)
239if (!string.IsNullOrEmpty(binaryLoggerParameters)) 304if (string.IsNullOrEmpty(versionRanges)) 553if (!string.IsNullOrEmpty(targetFrameworks)) 562if (string.IsNullOrEmpty(targetFramework)) 758var targetAlias = string.IsNullOrEmpty(projectInnerNode.Key) ? string.Empty : projectInnerNode.Key; 1176!string.IsNullOrEmpty(tfi.TargetAlias) ?
TargetFrameworkAdapter.cs (1)
35if (string.IsNullOrEmpty(value))
NuGet.Build.Tasks.Pack (20)
Common\MSBuildTaskItem.cs (1)
63if (string.IsNullOrEmpty(val))
GetProjectReferencesFromAssetsFileTask.cs (1)
37if (!string.IsNullOrEmpty(ProjectAssetsFileAbsolutePath) && File.Exists(ProjectAssetsFileAbsolutePath))
PackTask.cs (2)
130if (!string.IsNullOrEmpty(debugPackTask) && debugPackTask.Equals(bool.TrueString, StringComparison.OrdinalIgnoreCase)) 143if (string.IsNullOrEmpty(request.NuspecFile))
PackTaskLogic.cs (16)
76if (!string.IsNullOrEmpty(request.NuspecFile)) 175if (!string.IsNullOrEmpty(request.RepositoryUrl) || !string.IsNullOrEmpty(request.RepositoryType)) 249var hasLicenseExpression = !string.IsNullOrEmpty(request.PackageLicenseExpression); 250var hasLicenseFile = !string.IsNullOrEmpty(request.PackageLicenseFile); 253if (!string.IsNullOrEmpty(request.LicenseUrl)) 318if (string.IsNullOrEmpty(request.PackageLicenseExpressionVersion)) 520if (string.IsNullOrEmpty(finalOutputPath)) 556if (string.IsNullOrEmpty(targetFramework) || NuGetFramework.Parse(targetFramework).IsSpecificFramework == false) 626!string.IsNullOrEmpty(request.NuspecFile) 631packArgs.Path = !string.IsNullOrEmpty(request.NuspecFile) 712recursiveDir = string.IsNullOrEmpty(recursiveDir) ? packageFile.GetProperty("NuGetRecursiveDir") : recursiveDir; 713if (!string.IsNullOrEmpty(recursiveDir)) 722&& !string.IsNullOrEmpty(Path.GetExtension(fileName)) 732var buildAction = BuildAction.Parse(string.IsNullOrEmpty(buildActionString) ? "None" : buildActionString); 803if (string.IsNullOrEmpty(Path.GetExtension(fileName)) ||
NuGet.CommandLine.XPlat (53)
Commands\ConfigCommands\ConfigRunners.cs (3)
23if (string.IsNullOrEmpty(args.WorkingDirectory)) 84if (string.IsNullOrEmpty(configValue)) 153if (string.IsNullOrEmpty(directory))
Commands\Package\Download\PackageDownloadRunner.cs (1)
84string.IsNullOrEmpty(package.NuGetVersion?.ToNormalizedString()) ? Strings.PackageDownloadCommand_LatestVersion : package.NuGetVersion.ToNormalizedString()));
Commands\Package\PackageWithNuGetVersion.cs (1)
43if (string.IsNullOrEmpty(versionString))
Commands\Package\PackageWithVersionRange.cs (1)
42if (string.IsNullOrEmpty(versionString))
Commands\Package\Update\PackageUpdateCommandRunner.cs (2)
162.Where(log => log.Code >= NuGetLogCode.NU1901 && log.Code <= NuGetLogCode.NU1904 && !string.IsNullOrEmpty(log.LibraryId)) 691if (!string.IsNullOrEmpty(dependency.Name) && !dependency.AutoReferenced)
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (3)
113var noVersion = string.IsNullOrEmpty(versionValue); 114var packageVersion = !string.IsNullOrEmpty(versionValue) ? versionValue : null; 155if (string.IsNullOrEmpty(value))
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (3)
133sources.Where(ns => !string.IsNullOrEmpty(ns)) 243restorePreviewResult.Result.CompatibilityCheckResults.Count(r => string.IsNullOrEmpty(r.Graph.RuntimeIdentifier))) 338if (!string.IsNullOrEmpty(customPackagesPath))
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (5)
155var hasConfig = !string.IsNullOrEmpty(configValue); 216if (!string.IsNullOrEmpty(outputFormatOption) && 225if (!string.IsNullOrEmpty(outputVersionOption)) 235if (!string.IsNullOrEmpty(outputVersionOption) && !currentlySupportedReportVersions.Contains(outputVersionOption)) 258if (string.IsNullOrEmpty(configFile))
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (1)
70if (string.IsNullOrEmpty(value))
Commands\PackageSearch\PackageSearchArgs.cs (1)
43if (string.IsNullOrEmpty(number))
Commands\PackageSearch\Table.cs (1)
205if (string.IsNullOrEmpty(substring))
Commands\PushCommand.cs (1)
135if (!string.IsNullOrEmpty(timeoutValue) && !int.TryParse(timeoutValue, out timeoutSeconds))
Commands\Signing\SignCommand.cs (15)
192packagePaths.Any(packagePath => string.IsNullOrEmpty(packagePath))) 202if (string.IsNullOrEmpty(timestamper)) 210if (!string.IsNullOrEmpty(outputDirectory)) 223if (!string.IsNullOrEmpty(locationValue)) 241if (!string.IsNullOrEmpty(storeValue)) 258if (string.IsNullOrEmpty(path) && 259string.IsNullOrEmpty(fingerprint) && 260string.IsNullOrEmpty(subject)) 265else if (!string.IsNullOrEmpty(path) && 266(!string.IsNullOrEmpty(fingerprint) || 267!string.IsNullOrEmpty(subject) || 268!string.IsNullOrEmpty(location) || 269!string.IsNullOrEmpty(store))) 274else if (!string.IsNullOrEmpty(fingerprint) && !string.IsNullOrEmpty(subject))
Commands\Signing\VerifyCommand.cs (1)
94packagePaths.Any(packagePath => string.IsNullOrEmpty(packagePath)))
Commands\Why\DependencyGraphFinder.cs (2)
37bool useTargetAlias = assetsFile.PackageSpec.TargetFrameworks.All(tf => !string.IsNullOrEmpty(tf.TargetAlias)); 64string displayName = string.IsNullOrEmpty(target.RuntimeIdentifier)
Commands\Why\WhyCommandRunner.cs (5)
128if (string.IsNullOrEmpty(assetsFilePath) || !File.Exists(assetsFilePath)) 161if (string.IsNullOrEmpty(path)) 208if (string.IsNullOrEmpty(package)) 252if (!string.IsNullOrEmpty(projectPath)) 280if (string.IsNullOrEmpty(projectPath))
ListPackage\ListPackageJsonRenderer.cs (1)
121if (!string.IsNullOrEmpty(reportProblem.Project))
Utility\CommandLineUtility.cs (1)
54if (!string.IsNullOrEmpty(optionValue))
Utility\MSBuildAPIUtility.cs (2)
900if (string.IsNullOrEmpty(packageId)) 962bool isVersionOverride = !string.IsNullOrEmpty(p.GetMetadata("VersionOverride"));
Utility\XPlatUtility.cs (3)
66if (string.IsNullOrEmpty(configFile)) 129if (!string.IsNullOrEmpty(fileName) && File.Exists(fileName)) 146if (!string.IsNullOrEmpty(fileName) && File.Exists(fileName))
NuGet.Commands (176)
ClientCertificatesCommand\ClientCertArgsExtensions.cs (4)
48var isFilePathProvided = !string.IsNullOrEmpty(args.Path); 49var isPasswordProvided = !string.IsNullOrEmpty(args.Password); 56return !string.IsNullOrEmpty(args.PackageSource); 104var isFindValueProvided = !string.IsNullOrEmpty(args.FindValue);
ClientCertificatesCommand\ListClientCertRunner.cs (1)
57if (string.IsNullOrEmpty(fileCertItem.Password))
CommandRunners\LocalsCommandRunner.cs (2)
210if (!string.IsNullOrEmpty(httpCacheFolderPath)) 229if (!string.IsNullOrEmpty(tempFolderPath))
CommandRunners\PackCommandRunner.cs (11)
283if (!string.IsNullOrEmpty(_packArgs.Version)) 289if (!string.IsNullOrEmpty(_packArgs.Suffix) && !builder.HasSnapshotVersion) 450if (!string.IsNullOrEmpty(_packArgs.Version)) 466if (string.IsNullOrEmpty(_packArgs.BasePath)) 496if ((string.IsNullOrEmpty(_packArgs.MsBuildDirectory?.Value) 701string basePath = string.IsNullOrEmpty(_packArgs.BasePath) ? _packArgs.CurrentDirectory : _packArgs.BasePath; 725string basePath = string.IsNullOrEmpty(_packArgs.BasePath) ? _packArgs.CurrentDirectory : _packArgs.BasePath; 807if (!string.IsNullOrEmpty(message.Message)) 847if (string.IsNullOrEmpty(packArgs.Version)) 915if (string.IsNullOrEmpty(packArgs.OutputDirectory)) 921if (!string.IsNullOrEmpty(packArgs.BasePath))
CommandRunners\PushRunner.cs (2)
100if (!string.IsNullOrEmpty(symbolSource) && !noSymbols) 127if (!string.IsNullOrEmpty(symbolSource))
ListCommand\ListCommandRunner.cs (1)
173if (!string.IsNullOrEmpty(p.LicenseUrl?.OriginalString))
MSBuildProjectFactory.cs (4)
195Target = target.EndsWith(Path.DirectorySeparatorChar.ToString(CultureInfo.InvariantCulture), StringComparison.Ordinal) || string.IsNullOrEmpty(target) 244if (string.IsNullOrEmpty(sourcePath)) 249if (string.IsNullOrEmpty(projectDirectory)) 274if (!string.IsNullOrEmpty(relativePath) && PathUtility.IsDirectorySeparatorChar(relativePath[0]))
PackagesLockFileBuilder.cs (1)
39if (!string.IsNullOrEmpty(target.RuntimeIdentifier))
PackCommand\Logging\PackageSpecificWarningProperties.cs (1)
111!string.IsNullOrEmpty(message.LibraryId) &&
RestoreCommand\CompatibilityChecker.cs (2)
154if (_validateRuntimeAssets && !string.IsNullOrEmpty(graph.RuntimeIdentifier)) 211if (_validateRuntimeAssets && !string.IsNullOrEmpty(graph.RuntimeIdentifier))
RestoreCommand\CompatibilityIssue.cs (2)
130if (string.IsNullOrEmpty(RuntimeIdentifier)) 266if (string.IsNullOrEmpty(runtimeId))
RestoreCommand\ContentFiles\ContentFileUtils.cs (2)
185if (!string.IsNullOrEmpty(filesEntry.BuildAction)) 221&& !string.IsNullOrEmpty(Path.GetFileNameWithoutExtension(lockFileItem.Path));
RestoreCommand\DependencyGraphResolver.cs (2)
761if (runtimeGraph == null || string.IsNullOrEmpty(runtimeIdentifier) || !RemoteDependencyWalker.EvaluateRuntimeDependencies(ref libraryRange, runtimeIdentifier, runtimeGraph, ref runtimeDependencies)) 1431if (string.IsNullOrEmpty(frameworkRuntimeDefinition.RuntimeIdentifier) || !graphsByTargetAlias.TryGetValue(frameworkRuntimeDefinition.TargetAlias, out RestoreTargetGraph? restoreTargetGraphForTargetFramework))
RestoreCommand\Diagnostics\DiagnosticUtility.cs (1)
68if (string.IsNullOrEmpty(graph.RuntimeIdentifier))
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (2)
143IEnumerable<LibraryDependency> dependencies = !string.IsNullOrEmpty(targetAlias) 325.Select(e => string.IsNullOrEmpty(e.TargetAlias) ? e.FrameworkName.ToString() : e.TargetAlias)
RestoreCommand\LockFileBuilder.cs (6)
82if (!string.IsNullOrEmpty(localMatch.LocalLibrary.Path)) 448RestoreTargetGraph targetGraph = !string.IsNullOrEmpty(frameworkInfo.TargetAlias) ? 451&& string.IsNullOrEmpty(graph.RuntimeIdentifier)) : 454&& string.IsNullOrEmpty(graph.RuntimeIdentifier)); 480string framework = (isAliasedLockFile && !string.IsNullOrEmpty(frameworkInfo.TargetAlias)) ? frameworkInfo.TargetAlias : frameworkInfo.FrameworkName.ToString(); 499foreach (RestoreTargetGraph targetGraph in targetGraphs.Where(targetGraph => string.IsNullOrEmpty(targetGraph.RuntimeIdentifier)))
RestoreCommand\LockFileBuilderCache.cs (1)
113if (!string.IsNullOrEmpty(graph.RuntimeIdentifier))
RestoreCommand\Logging\RestoreCollectorLogger.cs (4)
143if (string.IsNullOrEmpty(message.ProjectPath)) 148if (string.IsNullOrEmpty(message.FilePath)) 173if (string.IsNullOrEmpty(message.FilePath)) 178if (string.IsNullOrEmpty(message.ProjectPath))
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (1)
46if (string.IsNullOrEmpty(targetGraph.RuntimeIdentifier))
RestoreCommand\Logging\WarningPropertiesCollection.cs (2)
101!string.IsNullOrEmpty(message.LibraryId)) 115bool legacy = ProjectFrameworks.Count == 1 && string.IsNullOrEmpty(ProjectFrameworks[0]);
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (1)
94if (string.IsNullOrEmpty(localPackageSourceInfo?.Package.ZipPath))
RestoreCommand\ProjectRestoreCommand.cs (3)
99tfmRidPair => !string.IsNullOrEmpty(tfmRidPair.RuntimeIdentifier)); 139runtimeIds.Where(rid => !string.IsNullOrEmpty(rid)), 437if (!string.IsNullOrEmpty(e.Message))
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
256if (!string.IsNullOrEmpty(restoreArgs.GlobalPackagesFolder))
RestoreCommand\RequestFactory\MSBuildItem.cs (1)
67if (string.IsNullOrEmpty(val))
RestoreCommand\RequestFactory\RestoreArgs.cs (2)
83if (string.IsNullOrEmpty(ConfigFile)) 108if (!string.IsNullOrEmpty(GlobalPackagesFolder))
RestoreCommand\RequestFactory\RestoreSpecException.cs (1)
43files = files.Where(path => !string.IsNullOrEmpty(path)).Distinct(StringComparer.Ordinal);
RestoreCommand\RestoreCommand.cs (9)
898if (!string.IsNullOrEmpty(errorCodes)) 903if (!string.IsNullOrEmpty(warningCodes)) 908if (!string.IsNullOrEmpty(suppressedWarningCodes)) 1020.Where(framework => !string.IsNullOrEmpty(framework.Platform) && (framework.PlatformVersion == FrameworkConstants.EmptyVersion)); 1054if (string.IsNullOrEmpty(alias)) 1644string.IsNullOrEmpty(target.TargetAlias) ? 1741if (string.IsNullOrEmpty(projectLockFilePath)) 2082if (string.IsNullOrEmpty(frameworkRuntimeDefinition.RuntimeIdentifier)) 2341if (string.IsNullOrEmpty(tfi.TargetAlias))
RestoreCommand\RestoreResult.cs (1)
310if (!toolCommit && _newPackagesLockFile != null && !string.IsNullOrEmpty(_newPackagesLockFilePath))
RestoreCommand\RestoreSummary.cs (1)
124if (!string.IsNullOrEmpty(restoreSummary.InputPath))
RestoreCommand\RestoreTargetGraph.cs (3)
84TargetGraphName = string.IsNullOrEmpty(TargetAlias) ? FrameworkRuntimePair.GetTargetGraphName(Framework, RuntimeIdentifier) : GetTargetGraphName(TargetAlias, RuntimeIdentifier); 96if (string.IsNullOrEmpty(targetAlias)) throw new ArgumentNullException(nameof(targetAlias)); 98if (string.IsNullOrEmpty(runtimeIdentifier))
RestoreCommand\SourceRepositoryDependencyProvider.cs (1)
65if (!string.IsNullOrEmpty(variableValue))
RestoreCommand\Utility\BuildAssetsUtils.cs (5)
118if (!string.IsNullOrEmpty(macroValue) 289if (!string.IsNullOrEmpty(destinationSubDirectory)) 335if (!string.IsNullOrEmpty(conditionValue)) 506if (!string.IsNullOrEmpty(target.RuntimeIdentifier)) 522if (string.IsNullOrEmpty(graph.RuntimeIdentifier) && ridlessTarget.TargetFramework == graph.Framework && ridlessTarget.TargetAlias == graph.TargetAlias)
RestoreCommand\Utility\LockFileUtils.cs (3)
184if (!string.IsNullOrEmpty(aliases)) 366if (string.IsNullOrEmpty(runtimeIdentifier)) 981Debug.Assert(!string.IsNullOrEmpty(fileName));
RestoreCommand\Utility\MSBuildRestoreUtility.cs (16)
87else if (!string.IsNullOrEmpty(projectUniqueName)) 223if (string.IsNullOrEmpty(result.Name)) 271!string.IsNullOrEmpty(tfi.TargetAlias) ? 312if (string.IsNullOrEmpty(pcRestoreMetadata.RepositoryPath) && !string.IsNullOrEmpty(solutionDir) && solutionDir != "*Undefined*") 353if (string.IsNullOrEmpty(outputPath)) 530var targetAlias = string.IsNullOrEmpty(frameworkString) ? string.Empty : frameworkString; 869if (string.IsNullOrEmpty(versionString)) 956if (!string.IsNullOrEmpty(rangeString)) 976if (!string.IsNullOrEmpty(tfmProperty)) 1004if (!string.IsNullOrEmpty(frameworksString)) 1037if (string.IsNullOrEmpty(versionString)) 1061if (!string.IsNullOrEmpty(val)) 1141if (string.IsNullOrEmpty(sdkAnalysisLevel)) 1156if (string.IsNullOrEmpty(usingMicrosoftNETSdk)) 1307if (!string.IsNullOrEmpty(typeString))
RestoreCommand\Utility\NoOpRestoreUtilities.cs (1)
81if (string.IsNullOrEmpty(projectCacheFilePath))
RestoreCommand\Utility\PackageSpecFactory.cs (5)
177!string.IsNullOrEmpty(tfi.TargetAlias) ? 228var targetAlias = string.IsNullOrEmpty(projectInnerNode.Key) ? string.Empty : projectInnerNode.Key; 488() => string.IsNullOrEmpty(startupDirectory) ? null : fallbackFoldersOverride?.Select(e => UriUtility.GetAbsolutePath(startupDirectory, e)).ToArray(), 722if (string.IsNullOrEmpty(versionRanges)) 862() => string.IsNullOrEmpty(startupDirectory) ? null : sourcesOverride?.Select(MSBuildRestoreUtility.FixSourcePath).Select(e => UriUtility.GetAbsolutePath(startupDirectory, e)).ToArray(),
RestoreCommand\Utility\SpecValidationUtility.cs (8)
56.Where(s => !string.IsNullOrEmpty(s)), 184if (!string.IsNullOrEmpty(spec.RestoreMetadata.ProjectJsonPath)) 196if (string.IsNullOrEmpty(spec.RestoreMetadata.OutputPath)) 303if (string.IsNullOrEmpty(spec.FilePath)) 314if (string.IsNullOrEmpty(spec.Name)) 325if (string.IsNullOrEmpty(spec.RestoreMetadata.ProjectUniqueName)) 336if (string.IsNullOrEmpty(spec.RestoreMetadata.ProjectName)) 364if (string.IsNullOrEmpty(spec.RestoreMetadata.ProjectPath))
RestoreCommand\Utility\ToolRestoreUtility.cs (1)
105if (string.IsNullOrEmpty(toolIdGroup.Key))
SignCommand\CertificateProvider.cs (4)
56if (!string.IsNullOrEmpty(options.CertificatePath)) 129if (!string.IsNullOrEmpty(options.CertificatePassword)) 191if (!string.IsNullOrEmpty(options.Fingerprint) && 213else if (!string.IsNullOrEmpty(options.SubjectName))
SignCommand\SignCommandRunner.cs (4)
58if (!string.IsNullOrEmpty(signArgs.Timestamper)) 64if (!string.IsNullOrEmpty(signArgs.OutputDirectory)) 121if (string.IsNullOrEmpty(outputDirectory)) 173if (!string.IsNullOrEmpty(timestamper))
SourcesCommands\SourceRunners.cs (12)
23if (string.IsNullOrEmpty(args.Name)) 78if (!string.IsNullOrEmpty(args.Username)) 89if (!newPackageSource.IsLocal && !string.IsNullOrEmpty(args.ProtocolVersion)) 125if (string.IsNullOrEmpty(args.Format)) 270if (!string.IsNullOrEmpty(args.Source) && !existingSource.Source.Equals(args.Source, StringComparison.OrdinalIgnoreCase)) 296if (!string.IsNullOrEmpty(args.Username)) 299if (hasExistingAuthTypes && string.IsNullOrEmpty(args.ValidAuthenticationTypes)) 314if (!existingSource.IsLocal && !string.IsNullOrEmpty(args.ProtocolVersion)) 331if (string.IsNullOrEmpty(configfile)) 396var isUsernameEmpty = string.IsNullOrEmpty(username); 397var isPasswordEmpty = string.IsNullOrEmpty(password); 398var isAuthTypesEmpty = string.IsNullOrEmpty(validAuthenticationTypes);
TrustedSignersCommand\TrustedSignerActionsProvider.cs (7)
46if (string.IsNullOrEmpty(name)) 88if (string.IsNullOrEmpty(name)) 167if (string.IsNullOrEmpty(name)) 172if (string.IsNullOrEmpty(fingerprint)) 222if (string.IsNullOrEmpty(name)) 269if (string.IsNullOrEmpty(serviceIndex)) 299if (!string.IsNullOrEmpty(fingerprint))
TrustedSignersCommand\TrustedSignersCommandRunner.cs (20)
55var isPackagePathProvided = !string.IsNullOrEmpty(trustedSignersArgs.PackagePath); 56var isServiceIndexProvided = !string.IsNullOrEmpty(trustedSignersArgs.ServiceIndex); 57var isFingerprintProvided = !string.IsNullOrEmpty(trustedSignersArgs.CertificateFingerprint); 58var isAlgorithmProvided = !string.IsNullOrEmpty(trustedSignersArgs.FingerprintAlgorithm); 167if (packageSource == null || string.IsNullOrEmpty(packageSource.Source)) 269var isNameProvided = !string.IsNullOrEmpty(args.Name); 270var isPackagePathProvided = !string.IsNullOrEmpty(args.PackagePath); 271var isServiceIndexProvided = !string.IsNullOrEmpty(args.ServiceIndex); 272var isFingerprintProvided = !string.IsNullOrEmpty(args.CertificateFingerprint); 273var isAlgorithmProvided = !string.IsNullOrEmpty(args.FingerprintAlgorithm); 291var isPackagePathProvided = !string.IsNullOrEmpty(args.PackagePath); 292var isServiceIndexProvided = !string.IsNullOrEmpty(args.ServiceIndex); 293var isFingerprintProvided = !string.IsNullOrEmpty(args.CertificateFingerprint); 294var isAlgorithmProvided = !string.IsNullOrEmpty(args.FingerprintAlgorithm); 312var isPackagePathProvided = !string.IsNullOrEmpty(args.PackagePath); 313var isServiceIndexProvided = !string.IsNullOrEmpty(args.ServiceIndex); 314var isFingerprintProvided = !string.IsNullOrEmpty(args.CertificateFingerprint); 315var isAlgorithmProvided = !string.IsNullOrEmpty(args.FingerprintAlgorithm); 331if (string.IsNullOrEmpty(name)) 339if (string.IsNullOrEmpty(algorithm))
Utility\CommandRunnerUtility.cs (4)
24if (string.IsNullOrEmpty(source)) 29if (!string.IsNullOrEmpty(source)) 34if (string.IsNullOrEmpty(source)) 44if (!string.IsNullOrEmpty(symbolSource))
Utility\MSBuildProjectFrameworkUtility.cs (9)
151if (!string.IsNullOrEmpty(currentFrameworkString)) 223if (!string.IsNullOrEmpty(platformMoniker)) 228if (string.IsNullOrEmpty(effectivePlatformVersion)) 233if (string.IsNullOrEmpty(effectivePlatformIdentifier)) 245if (!string.IsNullOrEmpty(platformMoniker)) 249if (!string.IsNullOrEmpty(effectivePlatformVersion)) 258if (!string.IsNullOrEmpty(currentFrameworkString)) 273if (!string.IsNullOrEmpty(windowsTargetPlatformMinVersion)) 297if (!string.IsNullOrEmpty(platformMinVersion))
Utility\PackageSourceProviderExtensions.cs (1)
36if (string.IsNullOrEmpty(source))
NuGet.Common (34)
ClientVersionUtility.cs (1)
45if (string.IsNullOrEmpty(version))
ConcurrencyUtilities.cs (4)
53if (string.IsNullOrEmpty(filePath)) 91if (string.IsNullOrEmpty(lockPath)) 146if (string.IsNullOrEmpty(filePath)) 181if (string.IsNullOrEmpty(lockPath))
CryptoHashProvider.cs (1)
41if (string.IsNullOrEmpty(hashAlgorithm))
Errors\RestoreLogMessage.cs (1)
37if (!string.IsNullOrEmpty(targetGraph))
Migrations\Migration1.cs (1)
104if (string.IsNullOrEmpty(xdgConfigHome))
Migrations\MigrationRunner.cs (1)
97return string.IsNullOrEmpty(XdgDataHome)
MsBuildStringUtility.cs (1)
29if (!string.IsNullOrEmpty(s))
PathUtil\NuGetEnvironment.cs (9)
60if (string.IsNullOrEmpty(nuGetScratch)) 103if (string.IsNullOrEmpty(machineWideBaseDir)) 165if (string.IsNullOrEmpty(programFilesPath)) 208if (!string.IsNullOrEmpty(programData)) 223if (!string.IsNullOrEmpty(commonApplicationDataOverride)) 249if (!string.IsNullOrEmpty(xdgDataHome)) 373if (!string.IsNullOrEmpty(programFiles)) 383if (!string.IsNullOrEmpty(programFiles)) 395if (!string.IsNullOrEmpty(localBin))
PathUtil\PathResolver.cs (1)
214basePath = string.IsNullOrEmpty(basePath) ? currentDirectoryPath : basePath;
PathUtil\PathUtility.cs (5)
148if (string.IsNullOrEmpty(path)) 198if (string.IsNullOrEmpty(path1)) 203if (string.IsNullOrEmpty(path2)) 250if (len1 + 1 == len2 && !string.IsNullOrEmpty(path1Segments[index]) && 272if (!string.IsNullOrEmpty(path2Segments[len2 - 1]))
PathUtil\ProjectJsonPathUtilities.cs (3)
33if (string.IsNullOrEmpty(projectName)) 55if (string.IsNullOrEmpty(projectName)) 68if (string.IsNullOrEmpty(projectName))
UriUtility.cs (6)
41if (Path.DirectorySeparatorChar == '/' && !string.IsNullOrEmpty(source) && source[0] == '/') 54if (!string.IsNullOrEmpty(value)) 74if (!string.IsNullOrEmpty(localOrUriPath) 94if (string.IsNullOrEmpty(sourceFile)) 113if (string.IsNullOrEmpty(rootDirectory) || string.IsNullOrEmpty(path))
NuGet.Configuration (85)
PackageSource\PackageSourceCredential.cs (2)
84public bool IsValid() => !string.IsNullOrEmpty(Username) && !string.IsNullOrEmpty(PasswordText);
PackageSource\PackageSourceProvider.cs (8)
483if (string.IsNullOrEmpty(rawCredentials)) 508if (string.IsNullOrEmpty(name)) 553if (string.IsNullOrEmpty(source)) 573if (string.IsNullOrEmpty(name)) 633if (string.IsNullOrEmpty(name)) 678if (string.IsNullOrEmpty(name)) 1127if (string.IsNullOrEmpty(source)) 1138if (string.IsNullOrEmpty(name))
Proxy\ProxyCache.cs (7)
96if (!string.IsNullOrEmpty(host)) 106if (!string.IsNullOrEmpty(userName) 107&& !string.IsNullOrEmpty(password)) 113if (!string.IsNullOrEmpty(noProxy)) 125if (!string.IsNullOrEmpty(host) 130if (!string.IsNullOrEmpty(uri.UserInfo)) 141if (!string.IsNullOrEmpty(noProxy))
Settings\Items\AddItem.cs (2)
52if (string.IsNullOrEmpty(key)) 144string.IsNullOrEmpty(value)) && Parent != null)
Settings\Items\CertificateItem.cs (2)
21if (string.IsNullOrEmpty(value)) 64if (string.IsNullOrEmpty(fingerprint))
Settings\Items\ClientCertItem.cs (2)
17if (string.IsNullOrEmpty(packageSource)) 74if (string.IsNullOrEmpty(value))
Settings\Items\CredentialsItem.cs (9)
31if (string.IsNullOrEmpty(value)) 46if (string.IsNullOrEmpty(password)) 73if (string.IsNullOrEmpty(value)) 98public override bool IsEmpty() => string.IsNullOrEmpty(Username) && string.IsNullOrEmpty(Password); 109if (string.IsNullOrEmpty(name)) 114if (string.IsNullOrEmpty(username)) 119if (string.IsNullOrEmpty(password)) 134if (!string.IsNullOrEmpty(validAuthenticationTypes))
Settings\Items\FileClientCertItem.cs (1)
44if (string.IsNullOrEmpty(filePath))
Settings\Items\OwnersItem.cs (1)
28if (string.IsNullOrEmpty(owners))
Settings\Items\PackagePatternItem.cs (1)
26if (string.IsNullOrEmpty(pattern))
Settings\Items\PackageSourceMappingSourceItem.cs (2)
38if (string.IsNullOrEmpty(value)) 55if (string.IsNullOrEmpty(name))
Settings\Items\RepositoryItem.cs (2)
40if (string.IsNullOrEmpty(serviceIndex)) 47if (!string.IsNullOrEmpty(owners))
Settings\Items\SourceItem.cs (3)
84if (!string.IsNullOrEmpty(protocolVersion)) 88if (!string.IsNullOrEmpty(allowInsecureConnections)) 92if (!string.IsNullOrEmpty(disableTLSCertificateValidation))
Settings\Items\TrustedSignerItem.cs (2)
22if (string.IsNullOrEmpty(value)) 33if (string.IsNullOrEmpty(name))
Settings\Items\UnknownItem.cs (1)
43if (string.IsNullOrEmpty(name))
Settings\NuGetConfiguration.cs (3)
74if (string.IsNullOrEmpty(sectionName)) 99if (string.IsNullOrEmpty(sectionName)) 122if (string.IsNullOrEmpty(sectionName))
Settings\SettingElement.cs (2)
143if (string.IsNullOrEmpty(attributeName)) 172if (string.IsNullOrEmpty(attributeName))
Settings\Settings.cs (13)
60if (string.IsNullOrEmpty(sectionName)) 94if (string.IsNullOrEmpty(sectionName)) 166if (string.IsNullOrEmpty(sectionName)) 378if (string.IsNullOrEmpty(configFileName)) 451if (root != null && string.IsNullOrEmpty(configFileName)) 524if (machineWideSettings != null && machineWideSettings.Settings is Settings mwSettings && string.IsNullOrEmpty(configFileName)) 650if (string.IsNullOrEmpty(root)) 693if (string.IsNullOrEmpty(value)) 745!string.IsNullOrEmpty(originDirectoryPath) && 746!string.IsNullOrEmpty(originFilePath)) 756if (string.IsNullOrEmpty(originDirectoryPath) || string.IsNullOrEmpty(originFilePath)) 764if (string.IsNullOrEmpty(path))
Settings\SettingsFile.cs (2)
91if (string.IsNullOrEmpty(directoryPath)) 96if (string.IsNullOrEmpty(fileName))
Settings\SettingText.cs (4)
18if (string.IsNullOrEmpty(value)) 30if (string.IsNullOrEmpty(value)) 57public override bool IsEmpty() => string.IsNullOrEmpty(Value); 76if (string.IsNullOrEmpty(value))
Utility\SettingsUtility.cs (16)
71if (!string.IsNullOrEmpty(path)) 82if (!string.IsNullOrEmpty(max) && int.TryParse(max, out var result)) 99if (!string.IsNullOrEmpty(validationMode) && Enum.TryParse(validationMode, ignoreCase: true, result: out SignatureValidationMode mode)) 116if (!string.IsNullOrEmpty(updatePackageLastAccessTimeStatus) && bool.TryParse(updatePackageLastAccessTimeStatus, result: out bool updatePackageLastAccessTime)) 131if (string.IsNullOrEmpty(section)) 136if (string.IsNullOrEmpty(key)) 167if (string.IsNullOrEmpty(section)) 172if (string.IsNullOrEmpty(key)) 179if (!string.IsNullOrEmpty(value)) 255if (string.IsNullOrEmpty(path)) 266if (!string.IsNullOrEmpty(path)) 297if (string.IsNullOrEmpty(envValue)) 350if (!string.IsNullOrEmpty(path)) 356if (!string.IsNullOrEmpty(path)) 376if (!string.IsNullOrEmpty(path)) 438if (!string.IsNullOrEmpty(revocationModeSetting) && Enum.TryParse(revocationModeSetting, ignoreCase: true, result: out RevocationMode revocationMode))
NuGet.DependencyResolver.Core (5)
LockFileCacheKey.cs (1)
79if (!string.IsNullOrEmpty(runtime))
Remote\RemoteDependencyWalker.cs (4)
87if (runtimeGraph != null && !string.IsNullOrEmpty(runtimeName)) 165if (runtimeGraph != null && !string.IsNullOrEmpty(runtimeName)) 474if (string.IsNullOrEmpty(nearRelease)) 479else if (string.IsNullOrEmpty(farRelease))
NuGet.Frameworks (21)
FrameworkNameHelpers.cs (2)
19return String.Format(CultureInfo.InvariantCulture, "{0}{1}{2}{3}", identifierShortName, versionString, String.IsNullOrEmpty(profileShortName) ? string.Empty : "-", profileShortName); 46if (string.IsNullOrEmpty(versionString))
FrameworkNameProvider.cs (2)
163if (string.IsNullOrEmpty(versionString)) 193if (string.IsNullOrEmpty(versionString))
FrameworkRuntimePair.cs (1)
70if (string.IsNullOrEmpty(runtimeIdentifier))
NuGetFramework.cs (7)
98get { return !string.IsNullOrEmpty(Platform); } 106get { return !string.IsNullOrEmpty(Profile); } 146if (!string.IsNullOrEmpty(framework.Profile)) 167_targetPlatformMoniker = string.IsNullOrEmpty(Platform) 215if (string.IsNullOrEmpty(shortFramework)) 260if (!string.IsNullOrEmpty(framework.Platform)) 282if (!string.IsNullOrEmpty(shortProfile))
NuGetFrameworkFactory.cs (9)
72if (string.IsNullOrEmpty(targetFrameworkMoniker)) throw new ArgumentException(Strings.ArgumentCannotBeNullOrEmpty, nameof(targetFrameworkMoniker)); 112if (!string.IsNullOrEmpty(profile) && isNet5EraTfm) 121if (!string.IsNullOrEmpty(targetPlatformMoniker) && isNet5EraTfm) 182if (!string.IsNullOrEmpty(versionPart)) 199if (!string.IsNullOrEmpty(profilePart)) 205&& !string.IsNullOrEmpty(profile) 222if (!string.IsNullOrEmpty(versionPart)) 297if (!string.IsNullOrEmpty(profileShort)) 312if ((string.IsNullOrEmpty(platformVersionString) || mappings.TryGetPlatformVersion(platformVersionString!, out platformVersion)))
NuGet.LibraryModel (8)
FrameworkDependencyFlagsUtils.cs (2)
59if (!string.IsNullOrEmpty(flags)) 63.Where(s => !string.IsNullOrEmpty(s))
LibraryDependencyTargetUtils.cs (1)
22if (string.IsNullOrEmpty(flag))
LibraryIncludeFlagUtils.cs (2)
107if (!string.IsNullOrEmpty(flags)) 111.Where(s => !string.IsNullOrEmpty(s))
LibraryRange.cs (1)
76if (!string.IsNullOrEmpty(contraintString))
LibraryType.cs (1)
100if (string.IsNullOrEmpty(Value))
PrunePackageReference.cs (1)
37if (string.IsNullOrEmpty(version))
NuGet.PackageManagement (51)
BuildIntegration\DependencyGraphRestoreUtility.cs (1)
281if (!string.IsNullOrEmpty(outputPath))
FileModifiers\FileTransformExtensions.cs (2)
18if (string.IsNullOrEmpty(installExtension)) 23if (string.IsNullOrEmpty(uninstallExtension))
IDE\PackageRestoreManager.cs (2)
68if (!string.IsNullOrEmpty(solutionDirectory)) 544if (!string.IsNullOrEmpty(exception.Message))
NuGetPackageManager.cs (5)
1323if (string.IsNullOrEmpty(ex.Message)) 2013if (string.IsNullOrEmpty(ex.Message)) 3580if (!string.IsNullOrEmpty(packageFolderPath)) 3589if (!string.IsNullOrEmpty(packagePath)) 3596!string.IsNullOrEmpty(readmeFilePath) &&
PackagePreFetcher.cs (1)
96if (!string.IsNullOrEmpty(installPath))
Projects\FolderNuGetProject.cs (9)
219if (!string.IsNullOrEmpty(downloadResourceResult.PackageSource)) 282var packageExists = !string.IsNullOrEmpty(nupkgPath); 283var manifestExists = !string.IsNullOrEmpty(nuspecPath); 305packageExists |= !string.IsNullOrEmpty(GetPackageDownloadMarkerFilePath(packageIdentity)); 342var exists = !string.IsNullOrEmpty(path); 367return !string.IsNullOrEmpty(GetInstalledPackageFilePath(packageIdentity)) && !string.IsNullOrEmpty(GetInstalledManifestFilePath(packageIdentity)); 544if (!string.IsNullOrEmpty(installFilePath)) 593if (!string.IsNullOrEmpty(runtimePackageDirectory))
Projects\MSBuildNuGetProject.cs (6)
385if (!string.IsNullOrEmpty(initPS1RelativePath)) 403if (!string.IsNullOrEmpty(installPS1RelativePath)) 455if (string.IsNullOrEmpty(packagePath)) 478if (!string.IsNullOrEmpty(uninstallPS1RelativePath)) 549.Where(path => !string.IsNullOrEmpty(path)); 655if (string.IsNullOrEmpty(ProjectSystem.ProjectFileFullPath))
Projects\ProjectJsonNuGetProject.cs (1)
63if (string.IsNullOrEmpty(_projectName))
SourceControl\SourceControlUtility.cs (1)
18return !string.IsNullOrEmpty(value) && bool.TryParse(value, out var disableSourceControlIntegration) && disableSourceControlIntegration;
Utility\FileSystemUtility.cs (15)
41if (string.IsNullOrEmpty(path)) 71if (string.IsNullOrEmpty(path) 72|| string.IsNullOrEmpty(Path.GetFileName(path))) 91if (string.IsNullOrEmpty(path)) 98if (!string.IsNullOrEmpty(folderPath)) 127if (string.IsNullOrEmpty(Path.GetFileName(fullPath))) 142if (string.IsNullOrEmpty(Path.GetFileName(fullPath))) 154if (string.IsNullOrEmpty(fullPath) 155|| string.IsNullOrEmpty(Path.GetFileName(fullPath))) 171if (string.IsNullOrEmpty(filter)) 225if (!string.IsNullOrEmpty(folderPath)) 321if (string.IsNullOrEmpty(path)) 352if (string.IsNullOrEmpty(path)) 395if (!string.IsNullOrEmpty(filePath)) 398for (var path = Path.GetDirectoryName(filePath); !string.IsNullOrEmpty(path); path = Path.GetDirectoryName(path))
Utility\JsonConfigUtility.cs (1)
60if (string.IsNullOrEmpty(version))
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
156paths = paths.Where(p => !string.IsNullOrEmpty(p));
Utility\PackagesFolderPathUtility.cs (3)
38if (string.IsNullOrEmpty(solutionDirectory)) 49if (!string.IsNullOrEmpty(path)) 53return Path.Combine(solutionDirectory, string.IsNullOrEmpty(path) ? DefaultRepositoryPath : path);
Utility\UriHelper.cs (1)
55if (string.IsNullOrEmpty(source))
Utility\XElementExtensions.cs (2)
21if (string.IsNullOrEmpty(namespaceName)) 35if (string.IsNullOrEmpty(namespaceName))
NuGet.Packaging (112)
ContentModel\ManagedCodeConventions.cs (1)
407if (!string.IsNullOrEmpty(runtimeIdentifier))
Core\FrameworkNameValidatorUtility.cs (1)
37if (string.IsNullOrEmpty(nuspecReader.GetLanguage()))
Core\NuspecCoreReaderBase.cs (1)
140.Where(e => !e.HasElements && !string.IsNullOrEmpty(e.Value))
Core\PackageDependency.cs (1)
65if (string.IsNullOrEmpty(id))
Core\PackageType.cs (1)
26if (string.IsNullOrEmpty(name))
FallbackPackagePathResolver.cs (1)
106if (string.IsNullOrEmpty(packageId))
Licenses\LicenseExpressionTokenizer.cs (1)
72if (!string.IsNullOrEmpty(processingToken))
NuspecReader.cs (11)
141var framework = string.IsNullOrEmpty(groupFramework) 178var items = group.Elements(XName.Get(Reference, ns)).Select(n => GetAttributeValue(n, File)!).Where(n => !string.IsNullOrEmpty(n)).ToArray(); 180var framework = string.IsNullOrEmpty(groupFramework) ? NuGetFramework.AnyFramework : NuGetFramework.Parse(groupFramework!, _frameworkProvider); 189.Elements(XName.Get(Reference, ns)).Select(n => GetAttributeValue(n, File)!).Where(n => !string.IsNullOrEmpty(n)).ToArray(); 227if (string.IsNullOrEmpty(group.Key)) 235if (!string.IsNullOrEmpty(fwString)) 253items.UnionWith(group.Select(item => GetAttributeValue(item, AssemblyName)!).Where(item => !string.IsNullOrEmpty(item))); 313if (string.IsNullOrEmpty(exclude)) 466if (string.IsNullOrEmpty(license)) 637if (string.IsNullOrEmpty(flags)) 673if (!string.IsNullOrEmpty(rangeNode))
PackageArchiveReader.cs (5)
161if (string.IsNullOrEmpty(path)) 184if (string.IsNullOrEmpty(nupkgFilePath)) 463if (string.IsNullOrEmpty(contentHash)) 470if (!string.IsNullOrEmpty(packageHash)) 517if (!string.IsNullOrEmpty(signVerifyEnvVariable))
PackageCreation\Authoring\FrameworkAssemblyReference.cs (1)
14if (string.IsNullOrEmpty(assemblyName))
PackageCreation\Authoring\Manifest.cs (1)
168if (rootNameSpace != null && !String.IsNullOrEmpty(rootNameSpace.NamespaceName))
PackageCreation\Authoring\ManifestFile.cs (4)
34_target = string.IsNullOrEmpty(value) ? value : PathUtility.GetPathWithDirectorySeparator(value!); 42if (String.IsNullOrEmpty(Source)) 51if (!String.IsNullOrEmpty(Target) && Target!.IndexOfAny(_invalidTargetChars) != -1) 56if (!String.IsNullOrEmpty(Exclude) && Exclude!.IndexOfAny(_invalidSourceCharacters) != -1)
PackageCreation\Authoring\ManifestMetadata.cs (5)
43Tags = string.IsNullOrEmpty(copy.Tags) ? null : copy.Tags!.Trim(); 75if (!String.IsNullOrEmpty(value) && !System.Version.TryParse(value, out version)) 301if (String.IsNullOrEmpty(Id)) 322if ((Authors == null || !Authors.Any(author => !String.IsNullOrEmpty(author))) && !PackageTypes.Contains(PackageType.SymbolsPackage)) 327if (String.IsNullOrEmpty(Description))
PackageCreation\Authoring\ManifestReader.cs (9)
253where includeAttribute != null && !string.IsNullOrEmpty(includeAttribute.Value) 324where assemblyNameAttribute != null && !string.IsNullOrEmpty(assemblyNameAttribute.Value) 326string.IsNullOrEmpty(element.GetOptionalAttributeValue("targetFramework")) ? 389where idElement != null && !string.IsNullOrEmpty(idElement.Value) 412if (srcElement == null || string.IsNullOrEmpty(srcElement.Value)) 440if (!string.IsNullOrEmpty(repositoryType?.Value)) 444if (!string.IsNullOrEmpty(repositoryUrl?.Value)) 452if (!string.IsNullOrEmpty(repository.Type) && !string.IsNullOrEmpty(repository.Url))
PackageCreation\Authoring\ManifestVersionUtility.cs (3)
29!string.IsNullOrEmpty(metadata.MinClientVersionString)) 45if (!string.IsNullOrEmpty(metadata.ReleaseNotes) || 46!string.IsNullOrEmpty(metadata.Copyright) ||
PackageCreation\Authoring\PackageBuilder.cs (12)
164if (string.IsNullOrEmpty(value) || string.Equals(value, bool.TrueString, StringComparison.OrdinalIgnoreCase)) 505where !string.IsNullOrEmpty(file.Path) && file.Path.StartsWith("lib", StringComparison.OrdinalIgnoreCase) 600if (!string.IsNullOrEmpty(ext) && 633if (!PackageTypes.Contains(PackageType.SymbolsPackage) && !string.IsNullOrEmpty(iconPath)) 636if (string.IsNullOrEmpty(ext) || ( 758if (!PackageTypes.Contains(PackageType.SymbolsPackage) && !string.IsNullOrEmpty(readmePath)) 763if (!string.IsNullOrEmpty(extension) && 820overrideVersion: !(string.IsNullOrEmpty(_versionOverride)) ? NuGetVersion.Parse(_versionOverride!) : null); 958if (!string.IsNullOrEmpty(fileExtension)) 980if (!string.IsNullOrEmpty(warningMessageString)) 1005if (!PathResolver.IsWildcardSearch(source) && !PathResolver.IsDirectoryPath(source) && !searchFiles.Any() && string.IsNullOrEmpty(exclude)) 1093if (string.IsNullOrEmpty(exclude))
PackageCreation\Authoring\PackageReferenceSet.cs (1)
58if (String.IsNullOrEmpty(reference))
PackageCreation\Extensions\FrameworksExtensions.cs (1)
24if (string.IsNullOrEmpty(frameworkName.Profile))
PackageCreation\Extensions\XElementExtensions.cs (1)
17if (String.IsNullOrEmpty(namespaceName))
PackageCreation\Utility\FrameworkNameUtility.cs (2)
68if (string.IsNullOrEmpty(targetFrameworkString)) 138if (string.IsNullOrEmpty(targetFrameworkString))
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (4)
292if (repository != null && !string.IsNullOrEmpty(repository.Type)) 297if (repository != null && !string.IsNullOrEmpty(repository.Url)) 302if (!string.IsNullOrEmpty(repository?.Branch)) 307if (!string.IsNullOrEmpty(repository?.Commit))
PackageExtraction\PackageHelper.cs (4)
54if (string.IsNullOrEmpty(packageFileName) 55|| string.IsNullOrEmpty(Path.GetFileName(packageFileName))) 104if (!string.IsNullOrEmpty(packageLanguage) 172if (!string.IsNullOrEmpty(packageDirectory))
PackageExtraction\PackagePathHelper.cs (1)
23if (string.IsNullOrEmpty(filter))
PackageExtraction\ZipArchiveExtensions.cs (1)
127if (string.IsNullOrEmpty(fileFullPath)) throw new ArgumentNullException(nameof(fileFullPath));
PackageExtractor.cs (3)
334if (!string.IsNullOrEmpty(filePath)) 790if (!string.IsNullOrEmpty(extractedNuspecFilePath)) 1164if (!string.IsNullOrEmpty(source))
PackageFolderReader.cs (1)
120if (!string.IsNullOrEmpty(folder))
PackagePathResolver.cs (2)
30if (string.IsNullOrEmpty(rootDirectory)) 92return string.IsNullOrEmpty(installedPackageFilePath) ? null : Path.GetDirectoryName(installedPackageFilePath);
PackagesConfig.cs (1)
30&& !string.IsNullOrEmpty(attribute.Value))
PackagesConfigReader.cs (2)
147|| String.IsNullOrEmpty(id)) 156|| String.IsNullOrEmpty(version))
PackagesConfigWriter.cs (4)
374if (!string.IsNullOrEmpty(frameworkShortName)) 432if (!string.IsNullOrEmpty(version)) 464if (string.IsNullOrEmpty(newValue)) 606if (!string.IsNullOrEmpty(_filePath))
Rules\IconUrlDeprecationWarning.cs (1)
26if (icon == null && !string.IsNullOrEmpty(iconUrl))
Rules\InvalidUndottedFrameworkRule.cs (6)
93if (!string.IsNullOrEmpty(groupFramework) && !FrameworkVersionHasDesiredDots(groupFramework!)) 122if (!string.IsNullOrEmpty(groupFramework) && !FrameworkVersionHasDesiredDots(groupFramework!)) 153if (!string.IsNullOrEmpty(group.Key)) 157if (!string.IsNullOrEmpty(fwString)) 168if (!string.IsNullOrEmpty(framework) && !FrameworkVersionHasDesiredDots(framework)) 230if (!exists || string.IsNullOrEmpty(frameworkString))
Signing\Authoring\SigningOptions.cs (2)
117if (string.IsNullOrEmpty(inputPackageFilePath)) 122if (string.IsNullOrEmpty(outputPackageFilePath))
Signing\Content\KeyPairFileReader.cs (2)
50while (!string.IsNullOrEmpty(line)) 91if (!string.IsNullOrEmpty(value))
Signing\Content\KeyPairFileWriter.cs (2)
60if (string.IsNullOrEmpty(key)) 65if (string.IsNullOrEmpty(value))
Signing\Content\SignatureContent.cs (2)
38if (string.IsNullOrEmpty(hashValue)) 127if (string.IsNullOrEmpty(hash))
Signing\DerEncoding\DerEncoder.cs (1)
448if (string.IsNullOrEmpty(oidValue))
Signing\DerEncoding\DerGeneralizedTime.cs (1)
25if (string.IsNullOrEmpty(decodedTime) || decodedTime.Length < minimumValidLength)
Signing\TrustStore\CertificateBundleX509ChainFactory.cs (1)
91if (string.IsNullOrEmpty(FilePath))
Signing\TrustStore\FallbackCertificateBundleX509ChainFactory.cs (1)
35if (string.IsNullOrEmpty(fileName))
Signing\Utility\AttributeUtility.cs (2)
324if (string.IsNullOrEmpty(oid)) 360if (string.IsNullOrEmpty(oid))
Signing\Utility\CertificateChainUtility.cs (1)
286.Where(x => !string.IsNullOrEmpty(x.StatusInformation?.Trim()))
Signing\Utility\CertificateUtility.cs (1)
451if (string.IsNullOrEmpty(certificateFingerprint))
Signing\Utility\RepositorySignatureInfoUtility.cs (1)
70if (!string.IsNullOrEmpty(fingerprint))
Signing\Verification\AllowListVerificationProvider.cs (2)
26_emptyListErrorMessage = string.IsNullOrEmpty(emptyListErrorMessage) ? Strings.DefaultError_EmptyAllowList : emptyListErrorMessage; 27_noMatchErrorMessage = string.IsNullOrEmpty(noMatchErrorMessage) ? Strings.DefaultError_NoMatchInAllowList : noMatchErrorMessage;
NuGet.ProjectModel (55)
DependencyGraphSpec.cs (1)
146if (string.IsNullOrEmpty(projectUniqueName))
JsonPackageSpecReader.Utf8JsonStreamReader.cs (15)
191if (string.IsNullOrEmpty(libraryName)) 232if (!string.IsNullOrEmpty(dependencyVersionValue)) 322if (string.IsNullOrEmpty(propertyName)) 431if (!string.IsNullOrEmpty(dependencyVersionValue)) 501if (string.IsNullOrEmpty(propertyName)) 508if (string.IsNullOrEmpty(version)) 529if (string.IsNullOrEmpty(propertyName)) 536if (string.IsNullOrEmpty(version)) 630if (string.IsNullOrEmpty(versionValue)) 641if (string.IsNullOrEmpty(singleVersionValue)) 673if (string.IsNullOrEmpty(frameworkName)) 728foreach (string import in imports.Where(element => !string.IsNullOrEmpty(element))) 873if (!string.IsNullOrEmpty(projectStyleString) 1022if (!string.IsNullOrEmpty(sdkAnalysisLevelString)) 1447if (!string.IsNullOrEmpty(secondaryFrameworkString))
LockFile\AssetsLogMessage.cs (1)
114if (!string.IsNullOrEmpty(targetGraph))
LockFile\BuildAction.cs (1)
77if (string.IsNullOrEmpty(Value))
LockFile\LockFile.cs (4)
37((string.IsNullOrEmpty(runtimeIdentifier) && string.IsNullOrEmpty(t.RuntimeIdentifier) || 45(string.IsNullOrEmpty(runtimeIdentifier) && string.IsNullOrEmpty(t.RuntimeIdentifier) ||
LockFile\LockFileExtensions.cs (1)
36return assetsFile.Targets.Where(target => message.TargetGraphs.Contains(target.TargetAlias + (string.IsNullOrEmpty(target.RuntimeIdentifier) ? "" : "/" + target.RuntimeIdentifier), StringComparer.OrdinalIgnoreCase));
LockFile\LockFileFormat.cs (1)
354logMessage.TargetGraphs.All(l => !string.IsNullOrEmpty(l)))
LockFile\LockFileTarget.cs (1)
26_name ??= TargetFramework + (string.IsNullOrEmpty(RuntimeIdentifier) ? "" : "/" + RuntimeIdentifier);
LockFile\Utf8JsonStreamLockFileConverter.cs (2)
217if (!string.IsNullOrEmpty(projectPath) && lockFile.LogMessages.Count > 0) 219foreach (AssetsLogMessage message in lockFile.LogMessages.Where(x => string.IsNullOrEmpty(x.ProjectPath)))
LockFile\Utf8JsonStreamLockFileTargetConverterV4.cs (1)
34Name = string.IsNullOrEmpty(runTimeFramework) ? targetFramework : $"{targetFramework}/{runTimeFramework}"
MacroStringsUtility.cs (4)
56if (!string.IsNullOrEmpty(originalString) && !string.IsNullOrEmpty(macroValue) && originalString.StartsWith(macroValue, stringComparison)) 65if (!string.IsNullOrEmpty(originalString) && !string.IsNullOrEmpty(macroName) && originalString.StartsWith(macroName, StringComparison.Ordinal))
PackageSpecUtility.cs (1)
20if (string.IsNullOrEmpty(snapshotValue))
PackageSpecWriter.cs (10)
182(!string.IsNullOrEmpty(msbuildMetadata.RestoreLockProperties.RestorePackagesWithLockFile) || 183!string.IsNullOrEmpty(msbuildMetadata.RestoreLockProperties.NuGetLockFilePath) || 231string frameworkHeader = useTargetFrameworkAsKey || string.IsNullOrEmpty(framework.TargetAlias) 327.Where(c => !string.IsNullOrEmpty(c))); 337.Where(c => !string.IsNullOrEmpty(c))); 347.Where(c => !string.IsNullOrEmpty(c))); 380|| !string.IsNullOrEmpty(dependency.Aliases) 433.Where(s => !string.IsNullOrEmpty(s))); 529string frameworkHeader = useTargetFrameworkAsKey || string.IsNullOrEmpty(framework.TargetAlias) 638if (!string.IsNullOrEmpty(value))
ProjectLockFile\PackagesLockFileFormat.cs (4)
229if (string.IsNullOrEmpty(frameworkString)) 259if (!string.IsNullOrEmpty(typeString) 267if (!string.IsNullOrEmpty(resolvedString)) 274if (!string.IsNullOrEmpty(requestedString))
ProjectLockFile\PackagesLockFileTarget.cs (3)
104if (!string.IsNullOrEmpty(alias)) 106if (!string.IsNullOrEmpty(runtime)) 114if (!string.IsNullOrEmpty(runtime))
ProjectLockFile\PackagesLockFileUtilities.cs (3)
41if (!string.IsNullOrEmpty(path)) 52if (!string.IsNullOrEmpty(projectName)) 107.Where(t => t.TargetFramework != null && string.IsNullOrEmpty(t.RuntimeIdentifier))
RestoreAuditProperties.cs (1)
39if (string.IsNullOrEmpty(EnableAudit)
StringExtensions.cs (1)
12if (string.IsNullOrEmpty(s))
NuGet.Protocol (156)
CIEnvironmentDetector.cs (7)
52if (!string.IsNullOrEmpty(environmentVariableReader.GetEnvironmentVariable("CODEBUILD_BUILD_ID"))) 58if (!string.IsNullOrEmpty(environmentVariableReader.GetEnvironmentVariable("BUILD_ID")) && 59!string.IsNullOrEmpty(environmentVariableReader.GetEnvironmentVariable("BUILD_URL"))) 65if (!string.IsNullOrEmpty(environmentVariableReader.GetEnvironmentVariable("BUILD_ID")) && 66!string.IsNullOrEmpty(environmentVariableReader.GetEnvironmentVariable("PROJECT_ID"))) 72if (!string.IsNullOrEmpty(environmentVariableReader.GetEnvironmentVariable("TEAMCITY_VERSION"))) 78if (!string.IsNullOrEmpty(environmentVariableReader.GetEnvironmentVariable("JB_SPACE_API_URL")))
Converters\NuGetFrameworkConverter.cs (1)
21if (!string.IsNullOrEmpty(value))
Converters\NuGetFrameworkStjConverter.cs (1)
31return string.IsNullOrEmpty(value) ? NuGetFramework.AnyFramework : NuGetFramework.Parse(value!);
Converters\PackageDependencyGroupStjConverter.cs (1)
47targetFramework = string.IsNullOrEmpty(fw) ? null : NuGetFramework.Parse(fw!);
Converters\VersionRangeConverter.cs (1)
33return !string.IsNullOrEmpty(value) ? VersionRange.Parse(value!) : null;
Converters\VersionRangeStjConverter.cs (1)
19if (string.IsNullOrEmpty(stringValue))
DependencyInfo\RegistrationUtility.cs (1)
25if (string.IsNullOrEmpty(stringToParse))
HttpSource\HttpSource.cs (1)
407if (!string.IsNullOrEmpty(acceptLanguage))
LegacyFeed\V2FeedPackageInfo.cs (2)
244if (string.IsNullOrEmpty(Dependencies)) 297if (!string.IsNullOrEmpty(dependencyId))
LegacyFeed\V2FeedParser.cs (4)
155if (string.IsNullOrEmpty(id)) 362if (!string.IsNullOrEmpty(minClientVersionString)) 473if (!string.IsNullOrEmpty(nextUri)) 510string.IsNullOrEmpty(nextUri) ? null : nextUri);
LocalPackageArchiveDownloader.cs (3)
95if (string.IsNullOrEmpty(packageFilePath)) 161if (string.IsNullOrEmpty(destinationFilePath)) 232if (string.IsNullOrEmpty(hashAlgorithm))
LocalRepositories\LocalAutoCompleteResource.cs (1)
71if (!string.IsNullOrEmpty(searchFilter))
LocalRepositories\LocalPackageSearchResource.cs (2)
60if (!string.IsNullOrEmpty(searchTerm)) 67if (!string.IsNullOrEmpty(filters.PackageType))
LocalRepositories\LocalV2FindPackageByIdResource.cs (4)
78if (string.IsNullOrEmpty(id)) 141if (string.IsNullOrEmpty(id)) 221if (string.IsNullOrEmpty(id)) 363if (string.IsNullOrEmpty(id))
LocalRepositories\LocalV3FindPackageByIdResource.cs (4)
114if (string.IsNullOrEmpty(id)) 175if (string.IsNullOrEmpty(id)) 267if (string.IsNullOrEmpty(id)) 405if (string.IsNullOrEmpty(id))
Model\LocalPackageSearchMetadata.cs (3)
82public string? Summary => !string.IsNullOrEmpty(_nuspec.GetSummary()) ? _nuspec.GetSummary() : Description; 93public string Title => !string.IsNullOrEmpty(_nuspec.GetTitle()) ? _nuspec.GetTitle()! : _nuspec.GetId(); 119if (!string.IsNullOrEmpty(uri))
Model\PackageSearchMetadata.cs (2)
169get { return !string.IsNullOrEmpty(_summaryValue) ? _summaryValue : Description; } 187get { return string.IsNullOrEmpty(_titleValue) ? PackageId : _titleValue!; }
Model\PackageSearchMetadataV2Feed.cs (2)
119get { return !string.IsNullOrEmpty(_summaryValue) ? _summaryValue : Description; } 129get { return !string.IsNullOrEmpty(_titleValue) ? _titleValue! : PackageId; }
NuGetTestMode.cs (1)
41if (String.IsNullOrEmpty(testMode))
PackagesFolder\NuGetv3LocalRepository.cs (1)
144if (string.IsNullOrEmpty(packageId))
Plugins\InboundRequestContext.cs (1)
72if (string.IsNullOrEmpty(requestId))
Plugins\JsonSerializationUtilities.cs (1)
59if (string.IsNullOrEmpty(json))
Plugins\Logging\AssemblyLogMessage.cs (2)
47if (!string.IsNullOrEmpty(_fileVersion)) 52if (!string.IsNullOrEmpty(_informationalVersion))
Plugins\Logging\PluginLogMessage.cs (1)
21if (string.IsNullOrEmpty(type))
Plugins\MessageConverter.cs (1)
114if (string.IsNullOrEmpty(requestId))
Plugins\Messages\CopyFilesInPackageRequest.cs (4)
72if (string.IsNullOrEmpty(packageSourceRepository)) 77if (string.IsNullOrEmpty(packageId)) 82if (string.IsNullOrEmpty(packageVersion)) 92if (string.IsNullOrEmpty(destinationFolderPath))
Plugins\Messages\CopyNupkgFileRequest.cs (4)
60if (string.IsNullOrEmpty(packageSourceRepository)) 65if (string.IsNullOrEmpty(packageId)) 70if (string.IsNullOrEmpty(packageVersion)) 75if (string.IsNullOrEmpty(destinationFilePath))
Plugins\Messages\Fault.cs (1)
29if (string.IsNullOrEmpty(message))
Plugins\Messages\GetCredentialsRequest.cs (1)
36if (string.IsNullOrEmpty(packageSourceRepository))
Plugins\Messages\GetFilesInPackageRequest.cs (3)
50if (string.IsNullOrEmpty(packageSourceRepository)) 55if (string.IsNullOrEmpty(packageId)) 60if (string.IsNullOrEmpty(packageVersion))
Plugins\Messages\GetPackageHashRequest.cs (4)
60if (string.IsNullOrEmpty(packageSourceRepository)) 65if (string.IsNullOrEmpty(packageId)) 70if (string.IsNullOrEmpty(packageVersion)) 75if (string.IsNullOrEmpty(hashAlgorithm))
Plugins\Messages\GetPackageHashResponse.cs (1)
48if (responseCode == MessageResponseCode.Success && string.IsNullOrEmpty(hash))
Plugins\Messages\GetPackageVersionsRequest.cs (2)
40if (string.IsNullOrEmpty(packageSourceRepository)) 45if (string.IsNullOrEmpty(packageId))
Plugins\Messages\GetServiceIndexRequest.cs (1)
27if (string.IsNullOrEmpty(packageSourceRepository))
Plugins\Messages\InitializeRequest.cs (2)
48if (string.IsNullOrEmpty(clientVersion)) 53if (string.IsNullOrEmpty(culture))
Plugins\Messages\LogRequest.cs (1)
50if (string.IsNullOrEmpty(message))
Plugins\Messages\Message.cs (1)
68if (string.IsNullOrEmpty(requestId))
Plugins\Messages\PrefetchPackageRequest.cs (3)
50if (string.IsNullOrEmpty(packageSourceRepository)) 55if (string.IsNullOrEmpty(packageId)) 60if (string.IsNullOrEmpty(packageVersion))
Plugins\Messages\SetCredentialsRequest.cs (1)
55if (string.IsNullOrEmpty(packageSourceRepository))
Plugins\MessageUtilities.cs (2)
32if (string.IsNullOrEmpty(requestId)) 59if (string.IsNullOrEmpty(requestId))
Plugins\Plugin.cs (1)
90if (string.IsNullOrEmpty(filePath))
Plugins\PluginCreationResult.cs (1)
91if (string.IsNullOrEmpty(message))
Plugins\PluginDiscoverer.cs (3)
42if (string.IsNullOrEmpty(_netCoreOrNetFXPluginPaths)) 94if (!string.IsNullOrEmpty(_netCoreOrNetFXPluginPaths)) 100else if (!string.IsNullOrEmpty(_nuGetPluginPaths))
Plugins\PluginDiscoveryUtility.cs (1)
56return !string.IsNullOrEmpty(nugetAssemblyPath) ?
Plugins\PluginFactory.cs (1)
134if (string.IsNullOrEmpty(pluginFile.Path))
Plugins\PluginFile.cs (1)
36if (string.IsNullOrEmpty(filePath))
Plugins\PluginManager.cs (3)
360if (plugin.Connection.ProtocolVersion?.Equals(Plugins.ProtocolConstants.Version100) == true && (string.IsNullOrEmpty(packageSourceRepository) || serviceIndex == null)) 394return !string.IsNullOrEmpty(pluginEnvVariable); 425if (string.IsNullOrEmpty(currentCultureName))
Plugins\PluginMulticlientUtilities.cs (1)
44if (string.IsNullOrEmpty(key))
Plugins\PluginPackageDownloader.cs (4)
101if (string.IsNullOrEmpty(packageSourceRepository)) 146if (string.IsNullOrEmpty(destinationFilePath)) 167return !string.IsNullOrEmpty(filePath); 187if (string.IsNullOrEmpty(hashAlgorithm))
Plugins\PluginPackageReader.cs (4)
61if (string.IsNullOrEmpty(packageSourceRepository)) 99if (string.IsNullOrEmpty(path)) 249if (string.IsNullOrEmpty(destination)) 918if (string.IsNullOrEmpty(nupkgFilePath))
ProviderComparer.cs (2)
40if (string.IsNullOrEmpty(providerA.Name)) 45if (string.IsNullOrEmpty(providerB.Name))
Providers\PackageUpdateResourceV2Provider.cs (1)
27if (!string.IsNullOrEmpty(sourceUri))
Providers\PackageUpdateResourceV3Provider.cs (1)
35if (!string.IsNullOrEmpty(sourceUri))
Providers\SymbolPackageUpdateResourceV3Provider.cs (1)
32if (!string.IsNullOrEmpty(sourceUri))
RemotePackageArchiveDownloader.cs (3)
161if (string.IsNullOrEmpty(destinationFilePath)) 227if (string.IsNullOrEmpty(hashAlgorithm)) 283if (string.IsNullOrEmpty(_destinationFilePath))
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (4)
115if (string.IsNullOrEmpty(id)) 175if (string.IsNullOrEmpty(id)) 257if (string.IsNullOrEmpty(id)) 387if (string.IsNullOrEmpty(id))
RemoteRepositories\PluginFindPackageByIdResource.cs (3)
176if (string.IsNullOrEmpty(id)) 243if (string.IsNullOrEmpty(id)) 338if (string.IsNullOrEmpty(id))
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (5)
101if (string.IsNullOrEmpty(id)) 161if (string.IsNullOrEmpty(id)) 241if (string.IsNullOrEmpty(id)) 386if (string.IsNullOrEmpty(id)) 519if (string.IsNullOrEmpty(nextUri))
RemoteRepositories\RemoteV3FindPackageByIdResource.cs (4)
92if (string.IsNullOrEmpty(id)) 152if (string.IsNullOrEmpty(id)) 231if (string.IsNullOrEmpty(id)) 376if (string.IsNullOrEmpty(id))
ResourceProvider.cs (1)
93if (!string.IsNullOrEmpty(s))
Resources\PackageSearchResourceV3.cs (1)
105bool packageTypeFilterRequested = !string.IsNullOrEmpty(filters.PackageType);
Resources\PackageUpdateResource.cs (11)
116if (!string.IsNullOrEmpty(symbolSource)) 175if (string.IsNullOrEmpty(apiKey) && !IsFileSource()) 232if (string.IsNullOrEmpty(apiKey) && !symbolSourceUri.IsFile) 287if (string.IsNullOrEmpty(apiKey) && !packageSourceUri.IsFile) 308if (packageWasPushed && !string.IsNullOrEmpty(symbolSource)) 323if (string.IsNullOrEmpty(apiKey) && !symbolSourceUri.IsFile) 392if (string.IsNullOrEmpty(source) || source.Equals(NuGetConstants.DefaultGalleryServerUrl, StringComparison.OrdinalIgnoreCase)) 649var hasApiKey = !string.IsNullOrEmpty(apiKey); 768var hasApiKey = !string.IsNullOrEmpty(apiKey); 853if (string.IsNullOrEmpty(baseUri.AbsolutePath.TrimStart('/')) && !noServiceEndpoint) 918if (string.IsNullOrEmpty(apiKey))
Resources\PluginResource.cs (1)
71if (!string.IsNullOrEmpty(result.Message))
Resources\RawSearchResourceV3.cs (1)
70if (!string.IsNullOrEmpty(filters.PackageType))
Resources\RegistrationResourceV3.cs (2)
52if (string.IsNullOrEmpty(packageId)) 68if (string.IsNullOrEmpty(id))
Resources\ReportAbuseResourceV3.cs (1)
16if (string.IsNullOrEmpty(uriTemplate) || !IsValidUriTemplate(uriTemplate))
Resources\ServiceIndexResourceV3.cs (2)
182if (string.IsNullOrEmpty(id) || !Uri.TryCreate(id, UriKind.Absolute, out Uri? uri)) 247if (string.IsNullOrEmpty(id) || !Uri.TryCreate(id, UriKind.Absolute, out uri))
UserAgent.cs (1)
41if (!string.IsNullOrEmpty(UserAgentString))
UserAgentStringBuilder.cs (5)
68else if (string.IsNullOrEmpty(clientInfo)) 75if (string.IsNullOrEmpty(metadataString)) 101if (!string.IsNullOrEmpty(_osInfo)) 107if (!string.IsNullOrEmpty(_ciInfo)) 114if (!string.IsNullOrEmpty(_vsInfo))
Utility\LocalFolderUtility.cs (2)
422if (!string.IsNullOrEmpty(id) && RuntimeEnvironmentHelper.IsWindows) 1301if (!string.IsNullOrEmpty(hashPath) && File.Exists(hashPath))
Utility\MetadataReferenceCache.cs (1)
51if (string.IsNullOrEmpty(s))
Utility\OfflineFeedAddContext.cs (2)
30if (string.IsNullOrEmpty(packagePath)) 37if (string.IsNullOrEmpty(source))
Utility\OfflineFeedUtility.cs (1)
30if (string.IsNullOrEmpty(offlineFeed))
NuGet.Versioning (13)
NuGetVersion.cs (1)
165if (string.IsNullOrEmpty(_originalString) || IsSemVer2)
NuGetVersionFactory.cs (4)
25if (string.IsNullOrEmpty(value)) 62if (!string.IsNullOrEmpty(versionString)) 321if (!string.IsNullOrEmpty(metadata)) 331if (!string.IsNullOrEmpty(releaseLabels))
SemanticVersion.cs (2)
225if (!string.IsNullOrEmpty(_releaseLabels[i])) 242get { return !string.IsNullOrEmpty(Metadata); }
SemanticVersionFactory.cs (1)
249if (!string.IsNullOrEmpty(releaseLabels))
VersionFormatter.cs (1)
40if (string.IsNullOrEmpty(format))
VersionRange.cs (1)
392if (!string.IsNullOrEmpty(fixedReleaseLabel))
VersionRangeFactory.cs (2)
117if (string.IsNullOrEmpty(trimmedValue)) 189if (!string.IsNullOrEmpty(parts[i]))
VersionRangeFormatter.cs (1)
34if (string.IsNullOrEmpty(format))
Pipelines.AppHost (3)
AppHost.cs (3)
60if (string.IsNullOrEmpty(storageAccountName)) 257if (string.IsNullOrEmpty(sourcePath)) 299if (!string.IsNullOrEmpty(directoryPath))
Pipelines.Library (2)
DistributedApplicationPipelineExtensions.cs (2)
128if (string.IsNullOrEmpty(siteName)) 133if (string.IsNullOrEmpty(siteName))
PresentationBuildTasks (90)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (2)
111if (String.IsNullOrEmpty(errorId)) 323if (!string.IsNullOrEmpty(Culture))
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (7)
586if (xmlProjectDoc == null || String.IsNullOrEmpty(sItemName)) 699if (xmlProjectDoc == null || String.IsNullOrEmpty(sItemName) || pItemList == null) 732if (!String.IsNullOrEmpty(embedInteropTypesMetadata)) 740if (!String.IsNullOrEmpty(aliases)) 770if (!string.IsNullOrEmpty(property.PropertyValue)) 878if (!string.IsNullOrEmpty(sdkReference.Version)) 885if (!string.IsNullOrEmpty(sdkReference.MinimumVersion))
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (11)
184if (String.IsNullOrEmpty(errorId)) 693if (String.IsNullOrEmpty(xamlFile)) 1142if (IsApplicationTarget && !String.IsNullOrEmpty(CompilerAnalyzer.RecompileApplicationFile.Path)) 1146if (!String.IsNullOrEmpty(codeFile)) 1151if (!String.IsNullOrEmpty(bamlFile)) 1163if (!String.IsNullOrEmpty(codeFile)) 1168if (!String.IsNullOrEmpty(bamlFile)) 1313if (!String.IsNullOrEmpty(_localXamlApplication)) 1464if (!String.IsNullOrEmpty(genLangFilePath) && outputCodeFileList != null) 1478if (!String.IsNullOrEmpty(bamlFile)) 1705if (!string.IsNullOrEmpty(UICulture))
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (2)
138if (String.IsNullOrEmpty(errorId)) 663if (!String.IsNullOrEmpty(_internalTypeHelperFile) && !compilerWrapper.HasInternals)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (5)
205if (string.IsNullOrEmpty(errorId)) 342if (!string.IsNullOrEmpty(logicalName)) 353filePath = !string.IsNullOrEmpty(linkAlias) ? linkAlias : filePath; 366if (string.IsNullOrEmpty(relPath)) 371if (string.IsNullOrEmpty(relPath))
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
106if (String.IsNullOrEmpty(errorId))
MS\Internal\MarkupCompiler\MarkupCompiler.cs (11)
613Guid hashGuid = !string.IsNullOrEmpty(ChecksumAlgorithm) && ChecksumAlgorithm.Equals("SHA256", StringComparison.OrdinalIgnoreCase) 2127if (String.IsNullOrEmpty(LanguageSourceExtension)) 2487if (!string.IsNullOrEmpty(baseClassFullName)) 2515Debug.Assert(!string.IsNullOrEmpty(baseName)); 2657string version = hasWildcard || String.IsNullOrEmpty(AssemblyVersion) 2661string token = String.IsNullOrEmpty(AssemblyPublicKeyToken) 2963if (IsLanguageVB && !string.IsNullOrEmpty(DefaultNamespace)) 3118if (String.IsNullOrEmpty(clrNS)) 3225if (!string.IsNullOrEmpty(_splashImage) && !HostInBrowser) 3338if (string.IsNullOrEmpty(relPath)) 3343if (!string.IsNullOrEmpty(relPath))
MS\Internal\MarkupCompiler\ParserExtension.cs (2)
188if (!string.IsNullOrEmpty(ns)) 756|| string.IsNullOrEmpty(((ClrNamespaceAssemblyPair)XamlTypeMapper.PITable[xamlPIMappingNode.XmlNamespace]).AssemblyName);
MS\Internal\MarkupCompiler\PathInternal.cs (2)
256if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) return 0;
MS\Internal\Shared\SourceFileInfo.cs (1)
43if (!string.IsNullOrEmpty(file.Path) && file.Path.ToUpperInvariant().EndsWith(XAML, StringComparison.Ordinal))
MS\Internal\Tasks\CompilerLocalReference.cs (4)
77if (!String.IsNullOrEmpty(FilePath)) 111if (!String.IsNullOrEmpty(cacheInfo)) 176Debug.Assert(!String.IsNullOrEmpty(_localCacheFile), "_localCacheFile must not be empty."); 238Debug.Assert(!String.IsNullOrEmpty(_localCacheFile), "_localCacheFile must not be empty.");
MS\Internal\Tasks\CompilerState.cs (2)
90Debug.Assert(!String.IsNullOrEmpty(_stateFilePath), "StateFilePath must not be empty."); 151Debug.Assert(!String.IsNullOrEmpty(_stateFilePath), "_stateFilePath must be not be empty.");
MS\Internal\Tasks\CompilerWrapper.cs (2)
300if (String.IsNullOrEmpty(strErrorCode)) 353if (String.IsNullOrEmpty(sourceFileInfo.OriginalFilePath))
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (3)
333bool isSrcEmpty = String.IsNullOrEmpty(textSource); 334bool istgtEmpty = String.IsNullOrEmpty(textTarget); 498if (String.IsNullOrEmpty(relContentFilePath))
MS\Internal\Tasks\TaskFileService.cs (4)
124if (string.IsNullOrEmpty(srcFile)) 215if (string.IsNullOrEmpty(srcFile)) 285if (string.IsNullOrEmpty(destinationFile)) 329if (string.IsNullOrEmpty(destinationFileBaseName))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Knowncolors.cs (1)
276if (!string.IsNullOrEmpty(colorString))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (3)
947if (!string.IsNullOrEmpty(parameterName)) 1451if(!String.IsNullOrEmpty(prefix)) 1515if (String.IsNullOrEmpty(attribNamespaceURI))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (1)
1229if (!String.IsNullOrEmpty(xamlClrEventNode.LocalAssemblyName))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
1364if (!String.IsNullOrEmpty(xamlClrEventNode.LocalAssemblyName))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (7)
2341if (String.IsNullOrEmpty(attribValue)) 2721if(!String.IsNullOrEmpty(prefix)) 2739if (String.IsNullOrEmpty(attribNamespaceURI)) 3457if (!String.IsNullOrEmpty(propertyName)) 3485if (!String.IsNullOrEmpty(propertyName)) 3492if (!String.IsNullOrEmpty(assembly)) 3892if (!string.IsNullOrEmpty(text))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (5)
3139if (String.IsNullOrEmpty(xmlNamespace)) 3159!String.IsNullOrEmpty(newXmlNamespace); 3281(!(String.IsNullOrEmpty(mapping.AssemblyName)) && !(String.IsNullOrEmpty(mapping.ClrNamespace))) ) 3302if (!String.IsNullOrEmpty(mapping.ClrNamespace))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (5)
110if (!String.IsNullOrEmpty(assemblyFullPath) && File.Exists(assemblyFullPath)) 311if (string.IsNullOrEmpty(xmlns) || string.IsNullOrEmpty(clrns) ) 385if (String.IsNullOrEmpty(oldXmlns) || String.IsNullOrEmpty(newXmlns))
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
345!string.IsNullOrEmpty(_nsDeclarations[thisDecl].Uri))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
542if (String.IsNullOrEmpty(fullPathToAssembly)) 550else if (!String.IsNullOrEmpty(assemblyName) && _cachedMetadataLoadContextAssemblies.TryGetValue(assemblyName, out assembly))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
121if (!string.IsNullOrEmpty(converterName))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (4)
821if (string.IsNullOrEmpty(mappedNamespace) || namespaceName == mappedNamespace) 958if (!string.IsNullOrEmpty(pair)) 1006if (!string.IsNullOrEmpty(prefix)) 1220if (string.IsNullOrEmpty(requiresValue))
PresentationCore (39)
MS\Internal\AppModel\CookieHandler.cs (1)
35if(!string.IsNullOrEmpty(cookies))
MS\Internal\AppModel\DefaultCredentialsZonePolicy.cs (1)
166if (string.IsNullOrEmpty(host))
MS\Internal\FontCache\FontCacheUtil.cs (3)
421if (string.IsNullOrEmpty(s) || s[0] == '#') 486if (!String.IsNullOrEmpty(fragment)) 679if (!string.IsNullOrEmpty(location))
MS\Internal\FontCache\FontSource.cs (1)
73Debug.Assert(_isInternalCompositeFont || String.IsNullOrEmpty(_fontUri.Fragment));
MS\Internal\FontCache\FontSourceCollection.cs (1)
142if (String.IsNullOrEmpty(resourceName))
MS\Internal\FontFace\CompositeFontInfo.cs (1)
47if (string.IsNullOrEmpty(familyMap.Target))
MS\Internal\FontFace\CompositeFontParser.cs (3)
122if (string.IsNullOrEmpty(s)) 541if (string.IsNullOrEmpty(familyName)) 838return string.IsNullOrEmpty(ns) || ns == CompositeFontNamespace;
MS\Internal\Shaping\TypefaceMap.cs (1)
605else if (!string.IsNullOrEmpty(targetFamilyName))
MS\Internal\TextFormatting\CultureMapper.cs (1)
55if (!string.IsNullOrEmpty(cultureName))
MS\Internal\WpfWebRequestHelper.cs (1)
94if (string.IsNullOrEmpty(httpRequest.UserAgent))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
138if (!String.IsNullOrEmpty(extensionWithDot))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (3)
99if (!String.IsNullOrEmpty(subFolder)) 116if (!String.IsNullOrEmpty(extension)) 149if (!String.IsNullOrEmpty(filePath))
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
348if (string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
392if (string.IsNullOrEmpty(result))
System\Windows\Input\Command\KeyGesture.cs (3)
158if (!String.IsNullOrEmpty(_displayString)) 245while (!String.IsNullOrEmpty(keyGestures)) 289if (!String.IsNullOrEmpty(keyDisplayString))
System\Windows\Input\Command\KeyGestureConverter.cs (1)
160if (!String.IsNullOrEmpty(keyGesture.DisplayString))
System\Windows\Media\FontFamilyValueSerializer.cs (1)
34if (string.IsNullOrEmpty(value))
System\Windows\Media\Fonts.cs (2)
88if (!string.IsNullOrEmpty(location) && Uri.TryCreate(location, UriKind.Absolute, out fontLocation)) 105if (string.IsNullOrEmpty(location))
System\Windows\Media\ImageSourceConverter.cs (1)
91if (((value is string) && (!string.IsNullOrEmpty((string)value))) || (value is Uri))
System\Windows\Media\ImageSourceValueSerializer.cs (1)
43if (!string.IsNullOrEmpty(value))
System\Windows\Media\Knowncolors.cs (1)
276if (!string.IsNullOrEmpty(colorString))
System\Windows\Navigation\BaseUriHelper.cs (9)
173if (string.IsNullOrEmpty(assemblyName)) 201if (!String.IsNullOrEmpty(assemblyVersion)) 289if (string.IsNullOrEmpty(assemblyVersion)) 300if (string.IsNullOrEmpty(assemblyKey)) 436if (uri != null && !string.IsNullOrEmpty(version)) 464bool assemblyKeyProvided = !string.IsNullOrEmpty(assemblyKey); 472if (!string.IsNullOrEmpty(assemblyName) && string.IsNullOrEmpty(assemblyVersion) && 610if (!string.IsNullOrEmpty(assemblyKey))
PresentationFramework (235)
Microsoft\Win32\CommonItemDialog.cs (4)
376if (!string.IsNullOrEmpty(DefaultDirectory)) 385if (!string.IsNullOrEmpty(InitialDirectory)) 391if (string.IsNullOrEmpty(DefaultDirectory)) 399if (!string.IsNullOrEmpty(RootDirectory))
Microsoft\Win32\FileDialog.cs (2)
314if (!string.IsNullOrEmpty(updatedFilter)) 640if (!string.IsNullOrEmpty(filter))
Microsoft\Win32\OpenFileDialog.cs (2)
69if (string.IsNullOrEmpty(filename)) 101if (string.IsNullOrEmpty(filename))
Microsoft\Win32\SaveFileDialog.cs (1)
70if (string.IsNullOrEmpty(filename))
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
411if (String.IsNullOrEmpty(id))
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
126if (!String.IsNullOrEmpty(processorString))
MS\Internal\AppModel\ResourceContainer.cs (1)
263if (!string.IsNullOrEmpty(assemblyName))
MS\Internal\AppModel\ShellProvider.cs (1)
964if (string.IsNullOrEmpty(path))
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
398if (string.IsNullOrEmpty(node.InnerText))
MS\Internal\Controls\WebBrowserEvent.cs (3)
58Uri source = String.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 197Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 225Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString);
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
24Debug.Assert(!(String.IsNullOrEmpty(displayMemberPath) && String.IsNullOrEmpty(stringFormat)));
MS\Internal\Data\LiveShapingItem.cs (2)
106if (!String.IsNullOrEmpty(path)) 148if (!String.IsNullOrEmpty(path))
MS\Internal\Data\LiveShapingList.cs (2)
409return String.IsNullOrEmpty(path) ? String.Empty : path; 477(dp == null && String.IsNullOrEmpty(infos[k].Path)))
MS\Internal\Data\PropertyPathWorker.cs (1)
440(String.IsNullOrEmpty(propertyName) ||
MS\Internal\Data\SortFieldComparer.cs (1)
116if (String.IsNullOrEmpty(sortFields[k].PropertyName))
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
347if (!String.IsNullOrEmpty(propertyName))
MS\Internal\Globalization\BamlTreeMap.cs (3)
501if (!string.IsNullOrEmpty(className)) 663if (!string.IsNullOrEmpty(attributes)) 687if (!string.IsNullOrEmpty(stringComment))
MS\Internal\Globalization\BamlTreeUpdater.cs (4)
474bool invalidResult = string.IsNullOrEmpty(className); 480invalidResult = string.IsNullOrEmpty(assemblyName); 500if (!string.IsNullOrEmpty(tagUid)) 659if (!string.IsNullOrEmpty(contentProperty))
MS\Internal\Ink\TextClipboardData.cs (3)
55return !string.IsNullOrEmpty(_text); 74if ( String.IsNullOrEmpty(text) ) 80if ( !String.IsNullOrEmpty(text) )
MS\Internal\Ink\XamlClipboardData.cs (1)
93if ( !String.IsNullOrEmpty(xml) )
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (1)
180if (string.IsNullOrEmpty(message))
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (1)
61if (string.IsNullOrEmpty(desc))
MS\Win32\UxThemeWrapper.cs (1)
284if (!String.IsNullOrEmpty(s))
System\Windows\Annotations\Annotation.cs (7)
89if (String.IsNullOrEmpty(annotationType.Name)) 93if (String.IsNullOrEmpty(annotationType.Namespace)) 125if (String.IsNullOrEmpty(annotationType.Name)) 129if (String.IsNullOrEmpty(annotationType.Namespace)) 185if (String.IsNullOrEmpty(writer.LookupPrefix(AnnotationXmlConstants.Namespaces.CoreSchemaNamespace))) 189if (String.IsNullOrEmpty(writer.LookupPrefix(AnnotationXmlConstants.Namespaces.BaseSchemaNamespace))) 608if (string.IsNullOrEmpty(value))
System\Windows\Annotations\AnnotationResource.cs (1)
112if (String.IsNullOrEmpty(writer.LookupPrefix(AnnotationXmlConstants.Namespaces.CoreSchemaNamespace)))
System\Windows\Annotations\LocatorPart.cs (2)
46if (String.IsNullOrEmpty(partType.Name)) 50if (String.IsNullOrEmpty(partType.Namespace))
System\Windows\Annotations\LocatorPartList.cs (1)
156if (String.IsNullOrEmpty(prefix))
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
564if (String.IsNullOrEmpty(nodeId)) 875if (!String.IsNullOrEmpty(xmlNamespace))
System\Windows\Application.cs (1)
2282if (!string.IsNullOrEmpty(soundFile))
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (5)
24if (uiCommand != null && !string.IsNullOrEmpty(uiCommand.Text)) 36if (string.IsNullOrEmpty(result)) 43if (!string.IsNullOrEmpty(commandName)) 59if (!string.IsNullOrEmpty(result)) 69if (uiCommand != null && !string.IsNullOrEmpty(uiCommand.Text))
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
224if (string.IsNullOrEmpty(name))
System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (1)
52if (!string.IsNullOrEmpty(owner.Name))
System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (4)
33if (string.IsNullOrEmpty(result)) 39if (string.IsNullOrEmpty(result)) 53if (string.IsNullOrEmpty(result)) 59if (string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (6)
20if (string.IsNullOrEmpty(result)) 26if (string.IsNullOrEmpty(result)) 40if (string.IsNullOrEmpty(result)) 46if (string.IsNullOrEmpty(result)) 57if (string.IsNullOrEmpty(result)) 63if (string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\GroupBoxAutomationPeer.cs (1)
32if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
522if (string.IsNullOrEmpty(name) && item != null) 529if(string.IsNullOrEmpty(name))
System\Windows\Automation\Peers\LabelAutomationPeer.cs (1)
32if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
143if (!string.IsNullOrEmpty(accessKey)) 320if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\TabItemAutomationPeer.cs (1)
35if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
70if (string.IsNullOrEmpty(result))
System\Windows\Controls\AccessText.cs (2)
679if (!string.IsNullOrEmpty(text)) 700if (!string.IsNullOrEmpty(key))
System\Windows\Controls\ContentPresenter.cs (3)
897template = (String.IsNullOrEmpty(format)) ? AccessTextContentTemplate : FormattingAccessTextContentTemplate; 901template = (String.IsNullOrEmpty(format)) ? StringContentTemplate : FormattingStringContentTemplate; 940return (String.IsNullOrEmpty(ContentStringFormat)) ? XmlNodeContentTemplate : FormattingXmlNodeContentTemplate;
System\Windows\Controls\Control.cs (1)
496if (!String.IsNullOrEmpty(plainText))
System\Windows\Controls\DataErrorValidationRule.cs (3)
54if (!String.IsNullOrEmpty(error)) 68if (!String.IsNullOrEmpty(name)) 98if (!String.IsNullOrEmpty(error))
System\Windows\Controls\DataGrid.cs (2)
5385if (!e.Handled && !String.IsNullOrEmpty(e.Text) && IsTextSearchEnabled) 7150if (!string.IsNullOrEmpty(sortPropertyName))
System\Windows\Controls\DataGridBoundColumn.cs (2)
31if (string.IsNullOrEmpty(sortMemberPath)) 34if (!string.IsNullOrEmpty(bindingSortMemberPath))
System\Windows\Controls\DataGridCell.cs (1)
272if (!string.IsNullOrEmpty(propertyName))
System\Windows\Controls\DataGridComboBoxColumn.cs (2)
56if (string.IsNullOrEmpty(sortMemberPath)) 59if (!string.IsNullOrEmpty(bindingSortMemberPath))
System\Windows\Controls\DataGridHelper.cs (1)
684if (!string.IsNullOrEmpty(binding.XPath))
System\Windows\Controls\DataGridTemplateColumn.cs (1)
40if (string.IsNullOrEmpty(templateColumn.SortMemberPath))
System\Windows\Controls\DatePicker.cs (4)
534if (string.IsNullOrEmpty(dp._textBox.Text)) 722if (!string.IsNullOrEmpty(this._defaultText)) 1186if (!string.IsNullOrEmpty(this._textBox.Text)) 1242if (string.IsNullOrEmpty(s))
System\Windows\Controls\ItemsControl.cs (4)
398if (!String.IsNullOrEmpty(displayMemberPath) || !String.IsNullOrEmpty(itemStringFormat)) 646if (string.IsNullOrEmpty(DisplayMemberPath)) 1645if (!String.IsNullOrEmpty(e.Text) && IsTextSearchEnabled &&
System\Windows\Controls\MenuItem.cs (1)
1124if (String.IsNullOrEmpty((string)value) && !menuItem.HasNonDefaultValue(InputGestureTextProperty)
System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
105if (!string.IsNullOrEmpty(this.Text)) 133if (this.Watermark != null && string.IsNullOrEmpty(this.Text))
System\Windows\Controls\Primitives\Selector.cs (6)
575if (string.IsNullOrEmpty(SelectedValuePath)) 580Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 581if (string.IsNullOrEmpty(path)) 2166if (String.IsNullOrEmpty(SelectedValuePath)) 2171Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 2173if (string.IsNullOrEmpty(path))
System\Windows\Controls\RadioButton.cs (4)
58if (!string.IsNullOrEmpty(currentlyRegisteredGroupName)) 62if (!string.IsNullOrEmpty(groupName)) 134if (!string.IsNullOrEmpty(groupName)) 173if (rb != null && rb != this && string.IsNullOrEmpty(rb.GroupName) && (rb.IsChecked == true))
System\Windows\Controls\TextSearch.cs (6)
293Debug.Assert(!String.IsNullOrEmpty(matchedText), "matchedText cannot be null or empty"); 294Debug.Assert(!String.IsNullOrEmpty(newText), "newText cannot be null or empty"); 388if (String.IsNullOrEmpty(newPrefix)) 402if (useXml || !String.IsNullOrEmpty(primaryTextPath)) 556if (String.IsNullOrEmpty(primaryTextPath)) 578if (!String.IsNullOrEmpty(primaryText))
System\Windows\Controls\VirtualizingStackPanel.cs (2)
11995if (!string.IsNullOrEmpty(trace)) 12507if (String.IsNullOrEmpty(filename) || filename == "default")
System\Windows\Controls\WebBrowser.cs (3)
168if (string.IsNullOrEmpty(text)) 255if (string.IsNullOrEmpty(scriptName)) 380return (string.IsNullOrEmpty(urlString) ? null : new Uri(urlString));
System\Windows\Data\BindingExpression.cs (3)
64if (String.IsNullOrEmpty(binding.XPath)) 403(binding.Path == null || String.IsNullOrEmpty(binding.Path.Path))) 1650string name = String.IsNullOrEmpty(stringFormat) ? converter.GetType().Name : "StringFormat";
System\Windows\Data\BindingExpressionBase.cs (2)
1702if (String.IsNullOrEmpty(groupName)) 2626if (!String.IsNullOrEmpty(stringFormat))
System\Windows\Data\BindingListCollectionView.cs (1)
2151get { return ((_blv != null) && !String.IsNullOrEmpty(_customFilter)); }
System\Windows\Data\MultiBinding.cs (1)
340if (Converter == null && String.IsNullOrEmpty(StringFormat))
System\Windows\Data\MultiBindingExpression.cs (2)
176Debug.Assert(ParentMultiBinding.Converter != null || !String.IsNullOrEmpty(EffectiveStringFormat), 182if (_converter == null && String.IsNullOrEmpty(EffectiveStringFormat) && TraceData.IsEnabled)
System\Windows\Data\ObjectDataProvider.cs (1)
400if (string.IsNullOrEmpty(MethodName))
System\Windows\Data\PropertyGroupDescription.cs (2)
193if (String.IsNullOrEmpty(PropertyName)) 247_propertyPath = !String.IsNullOrEmpty(propertyName) ? new PropertyPath(propertyName) : null;
System\Windows\Data\XmlDataProvider.cs (1)
766string xpath = (string.IsNullOrEmpty(XPath)) ? "/" : XPath;
System\Windows\Documents\FixedFindEngine.cs (4)
232if (!String.IsNullOrEmpty(token) && 393if (!string.IsNullOrEmpty(unicodeStr)) 405if (!String.IsNullOrEmpty(bidiLevelAsString)) 420String.IsNullOrEmpty(caretStops) &&
System\Windows\Documents\FixedSchema.cs (1)
83if ( !string.IsNullOrEmpty(schema.RootNamespaceUri) )
System\Windows\Documents\FixedSOMTextRun.cs (2)
92if (String.IsNullOrEmpty(glyphs.UnicodeString) || 150&& String.IsNullOrEmpty(glyphs.CaretStops)
System\Windows\Documents\Glyphs.cs (8)
207if (String.IsNullOrEmpty(caretStopsString)) 218if (!String.IsNullOrEmpty(glyphRunProperties.unicodeString)) 299if (String.IsNullOrEmpty(UnicodeString) && String.IsNullOrEmpty(Indices)) 513if (!String.IsNullOrEmpty(unicodeString)) 524if (!String.IsNullOrEmpty(glyphsProp)) 532if (!String.IsNullOrEmpty(glyphsProp)) 565if (String.IsNullOrEmpty(unicodeString))
System\windows\Documents\TextEditor.cs (3)
1197if (!string.IsNullOrEmpty(textData) && Char.IsLowSurrogate(textData, 0)) 1200if (string.IsNullOrEmpty(textAdjacent) || !Char.IsHighSurrogate(textAdjacent, textAdjacent.Length - 1)) 1207if (string.IsNullOrEmpty(textData))
System\Windows\Documents\TextRangeSerialization.cs (1)
1154if (image.Source != null && !string.IsNullOrEmpty(image.Source.ToString()))
System\Windows\Documents\TextStore.cs (2)
4660if (!string.IsNullOrEmpty(trace)) 4982if (String.IsNullOrEmpty(filename) || filename == "default")
System\Windows\Documents\WpfPayload.cs (1)
487if (string.IsNullOrEmpty(image.Source.ToString()))
System\Windows\Documents\XamlToRtfWriter.cs (2)
833if (documentNode.Type == DocumentNodeType.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri)) 882if (documentNode.Type == DocumentNodeType.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
System\Windows\Documents\ZoomPercentageConverter.cs (1)
148if ((culture != null) && !String.IsNullOrEmpty(zoomString))
System\Windows\FrameworkElementFactory.cs (1)
1169if (!String.IsNullOrEmpty(prefix) && !IsValueDefined(ContentPresenter.ContentProperty))
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
1194if (_settings.BaseUri != null && !String.IsNullOrEmpty(_settings.BaseUri.ToString())) 1213if (!String.IsNullOrEmpty(record.KeyString)) 2043if (String.IsNullOrEmpty(prefix))
System\Windows\Markup\BamlReader.cs (3)
822Name = string.IsNullOrEmpty(bamlRecord.Prefix) ? 2507if (!string.IsNullOrEmpty(extensionPrefix)) 2660if(String.IsNullOrEmpty(xmlns))
System\Windows\Markup\BamlWriter.cs (1)
859if (!String.IsNullOrEmpty(typeConverterName))
System\Windows\Markup\MarkupExtensionParser.cs (4)
136if (!String.IsNullOrEmpty(returnString) && returnString[0] == '{') 947if (!string.IsNullOrEmpty(parameterName)) 1451if(!String.IsNullOrEmpty(prefix)) 1515if (String.IsNullOrEmpty(attribNamespaceURI))
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
564if (string.IsNullOrEmpty(propertyPrefix))
System\Windows\Markup\XamlParseException.cs (1)
347if (!String.IsNullOrEmpty(xamlFile))
System\Windows\Markup\XamlReader.cs (7)
329String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 332String.IsNullOrEmpty(reader.BaseURI.ToString())) 488if (parserContext.BaseUri != null && !String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 887String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 890String.IsNullOrEmpty(reader.BaseURI.ToString())) 962if (parserContext.BaseUri != null && !String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 1069if (readerSettings.BaseUri == null || String.IsNullOrEmpty(readerSettings.BaseUri.ToString()))
System\Windows\Markup\XamlTypeMapper.cs (5)
3139if (String.IsNullOrEmpty(xmlNamespace)) 3159!String.IsNullOrEmpty(newXmlNamespace); 3281(!(String.IsNullOrEmpty(mapping.AssemblyName)) && !(String.IsNullOrEmpty(mapping.ClrNamespace))) ) 3302if (!String.IsNullOrEmpty(mapping.ClrNamespace))
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
164if (!string.IsNullOrEmpty(assembly)) 167if (!string.IsNullOrEmpty(assemblyPath)) 238if (!string.IsNullOrEmpty(assemblyPath))
System\Windows\Markup\XmlnsCache.cs (4)
350if (string.IsNullOrEmpty(xmlns) || string.IsNullOrEmpty(clrns) ) 385if (String.IsNullOrEmpty(oldXmlns) || String.IsNullOrEmpty(newXmlns))
System\Windows\Markup\XmlnsDictionary.cs (1)
345!string.IsNullOrEmpty(_nsDeclarations[thisDecl].Uri))
System\Windows\Navigation\JournalEntry.cs (2)
337if (!string.IsNullOrEmpty(assy)) 352if (!string.IsNullOrEmpty(displayName) && displayName[0] == '/')
System\Windows\Navigation\NavigationService.cs (10)
132if (!String.IsNullOrEmpty(target)) 339if (String.IsNullOrEmpty(elementId)) 2220handleContentLoadedEvent = !string.IsNullOrEmpty(fragment); 2418if (string.IsNullOrEmpty(fragment)) 2579if (!string.IsNullOrEmpty(fragment)) 3260if (string.IsNullOrEmpty(name)) 3267if (String.IsNullOrEmpty(name) && dependencyObject is Page) 3272if (!String.IsNullOrEmpty(name)) 3277if (!string.IsNullOrEmpty(fragment)) 3290&& !String.IsNullOrEmpty(navWin.Title))
System\Windows\PropertyPath.cs (2)
701if (String.IsNullOrEmpty(paramList[i].parenString)) 706else if (String.IsNullOrEmpty(paramList[i].valueString))
System\Windows\ResourceDictionary.cs (1)
134if (value == null || String.IsNullOrEmpty(value.OriginalString))
System\Windows\Setter.cs (1)
93if( String.IsNullOrEmpty(TargetName))
System\Windows\Shell\JumpList.cs (11)
468if (!string.IsNullOrEmpty(appId)) 532if (string.IsNullOrEmpty(jumpItem.CustomCategory)) 805if (string.IsNullOrEmpty(category)) 877if (string.IsNullOrEmpty(jumpTask.Title)) 879if (!allowSeparators || !string.IsNullOrEmpty(jumpTask.CustomCategory)) 890if (!string.IsNullOrEmpty(jumpTask.ApplicationPath)) 898if (!string.IsNullOrEmpty(jumpTask.WorkingDirectory)) 905if (!string.IsNullOrEmpty(jumpTask.Arguments)) 914if (!string.IsNullOrEmpty(jumpTask.IconResourcePath)) 934if (!string.IsNullOrEmpty(jumpTask.Description)) 945if (!string.IsNullOrEmpty(jumpTask.Title))
System\Windows\Standard\Debug.cs (2)
152IsFalse(string.IsNullOrEmpty(value)); 162if (string.IsNullOrEmpty(value))
System\Windows\Standard\ErrorCodes.cs (1)
394if (string.IsNullOrEmpty(message))
System\Windows\TemplateContent.cs (2)
1221if (String.IsNullOrEmpty(contentSource) && !isContentSourceSet) 1224if (!String.IsNullOrEmpty(contentSource) && !isContentPropertyDefined)
System\Windows\ThemeDictionaryExtension.cs (1)
66if (string.IsNullOrEmpty(AssemblyName))
System\Windows\VisualStateManager.cs (1)
495if (target == null && !string.IsNullOrEmpty(targetName))
PresentationUI (33)
MS\Internal\Documents\Application\AddressUtility.cs (1)
65if (!string.IsNullOrEmpty(address))
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
143control?.Text = String.IsNullOrEmpty(text) ?
MS\Internal\Documents\Application\PageTextBox.cs (3)
234if ((e != null) && (!String.IsNullOrEmpty(e.Text)) && (IsValidInputChar(e.Text[0]))) 255if ((e == null) || (e.DataObject == null) || (String.IsNullOrEmpty(e.FormatToApply))) 284if (String.IsNullOrEmpty(incomingString))
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (1)
114return ((!string.IsNullOrEmpty(contentType)) &&
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
88if (string.IsNullOrEmpty(message))
MS\Internal\Documents\Application\ZoomComboBox.cs (3)
354if ((e != null) && (!String.IsNullOrEmpty(e.Text))) 378if ((e == null) || (e.DataObject == null) || (String.IsNullOrEmpty(e.FormatToApply))) 407if (String.IsNullOrEmpty(incomingString))
MS\Internal\Documents\DialogBaseForm.cs (1)
147Invariant.Assert(!string.IsNullOrEmpty(uiLanguage), "No UILanguage was specified in stringtable.");
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
1830Name = String.IsNullOrEmpty(name) ? String.Empty : name, 1973if ((culture != null) && !String.IsNullOrEmpty(pageNumberString))
MS\Internal\Documents\RequestedSignatureDialog.cs (2)
88if (!String.IsNullOrEmpty(requestSignerName) && 89!String.IsNullOrEmpty(intentComboBoxText))
MS\Internal\Documents\RightsManagementManager.cs (1)
1374if (!string.IsNullOrEmpty(template))
MS\Internal\Documents\RightsManagementProvider.cs (1)
747if (string.IsNullOrEmpty(template))
MS\Internal\Documents\RMPermissions.cs (2)
63else if (!string.IsNullOrEmpty(referralName)) 179if (!string.IsNullOrEmpty(permission))
MS\Internal\Documents\RMPublishingDialog.cs (5)
68if (!string.IsNullOrEmpty(address)) 342if (!string.IsNullOrEmpty(path)) 454if (!string.IsNullOrEmpty(permissionsAddress)) 646if (string.IsNullOrEmpty(userNames)) 663if (!string.IsNullOrEmpty(trimmedName))
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
314if (!string.IsNullOrEmpty(name)) 319if (!string.IsNullOrEmpty(text))
MS\Internal\Documents\SignatureResourceHelper.cs (3)
111string.IsNullOrEmpty(signature.Location) ? none : signature.Location; 113string.IsNullOrEmpty(signature.Reason) ? none : signature.Reason; 192string location = (String.IsNullOrEmpty(signature.Location)) ?
MS\Internal\Documents\SigningDialog.cs (4)
180if (String.IsNullOrEmpty(_digitalSignatureRequest.Reason) && 181String.IsNullOrEmpty(_digitalSignatureRequest.Location)) 193_reasonComboBox.Text = String.IsNullOrEmpty(_digitalSignatureRequest.Reason) ? 195_locationTextBox.Text = String.IsNullOrEmpty(_digitalSignatureRequest.Location) ?
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
116if (versionInput?.Value is not null && !string.IsNullOrEmpty(versionInput.Value))
QuarantineTools.Tests (2)
ActiveIssueTests.cs (1)
289if (!string.IsNullOrEmpty(ns))
QuarantineScriptTests.cs (1)
233if (!string.IsNullOrEmpty(ns))
ReachFramework (13)
PrintConfig\PrintSchemaShim.cs (3)
121if (!string.IsNullOrEmpty(oemDriverPrefix)) 155if (!string.IsNullOrEmpty(psfPrefix) && !string.IsNullOrEmpty(oemDriverPrefix))
Serialization\Manager\ReachSerializationUtils.cs (3)
885if (!String.IsNullOrEmpty(id)) 902if (!String.IsNullOrEmpty(id) || uri != null) 950if (!String.IsNullOrEmpty(id))
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
908if (!String.IsNullOrEmpty(name))
Serialization\VisualSerializer.cs (5)
1689if (! String.IsNullOrEmpty(apName)) 1696if (! String.IsNullOrEmpty(apHelpText)) 2126if (!String.IsNullOrEmpty(characters)) 2143if (!String.IsNullOrEmpty(indices)) 2153if (!String.IsNullOrEmpty(caretStops))
Serialization\VisualTreeFlattener.cs (1)
493if (fe != null && !String.IsNullOrEmpty(fe.Name) &&
RepoTasks (9)
ResolveDotnetToolPackagePaths.cs (1)
95if (string.IsNullOrEmpty(version))
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
444if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 662if (!string.IsNullOrEmpty(targetDirectoryPath))
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (6)
62if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 103if (string.IsNullOrEmpty(sslCertDirString)) 368if (!string.IsNullOrEmpty(existingSslCertDir)) 653if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WSL_INTEROP"))) 807if (!string.IsNullOrEmpty(@override)) 833if (string.IsNullOrEmpty(nssDbOverride))
Roslyn.Diagnostics.Analyzers (21)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
100if (string.IsNullOrEmpty(parentPath)) 801return !string.IsNullOrEmpty(fileInfo.Name);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\roslyn\src\Dependencies\PooledObjects\PoolTracker.cs (1)
173var allocSite = !string.IsNullOrEmpty(group.Key.FilePath)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
233return !string.IsNullOrEmpty(value); 483if (string.IsNullOrEmpty(optionValue)) 498if (!string.IsNullOrEmpty(optionDefaultValue))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\LightweightOverloadResolution.cs (1)
204if (!string.IsNullOrEmpty(argumentName))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Roslyn.Diagnostics.CSharp.Analyzers (2)
NumberCommentsRefactoring.cs (1)
105if (string.IsNullOrEmpty(number))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
312if (!string.IsNullOrEmpty(triviaString) && SyntaxFacts.IsNewLine(triviaString[^1]))
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
915If Not containsGlobalKeyword AndAlso Not String.IsNullOrEmpty(rootNamespace) Then
rzc (30)
CommandLine\CommandLineApplication.cs (1)
189if (string.IsNullOrEmpty(longOptionName) &&
CommandLine\CommandOption.cs (3)
46if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
CompilerHost.cs (3)
102if (string.IsNullOrEmpty(workingDirectory)) 110if (string.IsNullOrEmpty(tempDirectory)) 118if (string.IsNullOrEmpty(tempDirectory))
DiscoverCommand.cs (4)
52if (string.IsNullOrEmpty(TagHelperManifest.Value())) 64if (string.IsNullOrEmpty(ProjectDirectory.Value())) 69if (string.IsNullOrEmpty(Version.Value())) 80if (string.IsNullOrEmpty(Configuration.Value()))
GenerateCommand.cs (3)
144if (string.IsNullOrEmpty(ProjectDirectory.Value())) 149if (string.IsNullOrEmpty(Version.Value())) 160if (string.IsNullOrEmpty(Configuration.Value()))
PipeName.cs (1)
22if (string.IsNullOrEmpty(toolDirectory))
RazorSourceGeneratorHost.cs (2)
64if (!string.IsNullOrEmpty(file.CssScope)) 124if (!string.IsNullOrEmpty(value))
ServerCommand.cs (4)
26if (!string.IsNullOrEmpty(pipeName)) 43if (string.IsNullOrEmpty(Pipe.Value())) 132if (string.IsNullOrEmpty(directoryPath)) 170if (string.IsNullOrEmpty(path))
ServerProtocol\ServerConnection.cs (5)
69if (!string.IsNullOrEmpty(workingDir)) 71if (!string.IsNullOrEmpty(tmp)) 76if (!string.IsNullOrEmpty(temp)) 99if (string.IsNullOrEmpty(pipeName)) 282if (!string.IsNullOrEmpty(expectedPath))
ShutdownCommand.cs (1)
24if (string.IsNullOrEmpty(Pipe.Value()))
src\sdk\src\Common\CliFolderPathCalculatorCore.cs (3)
44if (string.IsNullOrEmpty(home)) 54if (string.IsNullOrEmpty(home)) 60if (string.IsNullOrEmpty(home))
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
580sb.AppendLine("StringValue: " + (string.IsNullOrEmpty(_stringValue) ? "<empty>" : _stringValue.ToString())); 581sb.AppendLine("LongerStringValue: " + (string.IsNullOrEmpty(_longerStringValue) ? "<empty>" : _longerStringValue.ToString())); 1262if (string.IsNullOrEmpty(allowedIssuerName))
sdk-tasks (7)
CopyPreservingRelativeSymlinks.cs (1)
94if (!string.IsNullOrEmpty(destDir) && !Directory.Exists(destDir))
DotNetTool.cs (1)
40if (string.IsNullOrEmpty(ToolPath))
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (2)
42.Where(v => !string.IsNullOrEmpty(v)) 80if (!string.IsNullOrEmpty(v2))
ReplaceFileContents.cs (1)
86if (!string.IsNullOrEmpty(FileMustContainText) && !inputFileText.Contains(FileMustContainText))
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (2)
18if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Contains("dev") || version.Prerelease.Contains("ci") || version.Prerelease.Contains("rtm")) 70public bool IsPrerelease => !string.IsNullOrEmpty(_featureBand.Prerelease);
Security.TransportSecurity.IntegrationTests (5)
Tcp\ClientCredentialTypeTests.OSX.cs (5)
194if (String.IsNullOrEmpty(value)) 197if (String.IsNullOrEmpty(value)) 200if (String.IsNullOrEmpty(value)) 203if (String.IsNullOrEmpty(value)) 211str.Append(string.IsNullOrEmpty(value) ? "<x509>" : value);
SelectTests (10)
GraphAffectedProjects.cs (3)
166.Where(name => !string.IsNullOrEmpty(name)) 206if (!string.IsNullOrEmpty(name)) 388if (string.IsNullOrEmpty(target) || !nodesByProjectPath.ContainsKey(target))
Program.cs (6)
315if (!string.IsNullOrEmpty(directory)) 502if (!string.IsNullOrEmpty(trace.Item)) 597if (string.IsNullOrEmpty(jsonPath)) 635if (!string.IsNullOrEmpty(dir)) 710if (string.IsNullOrEmpty(commentPath)) 969if (!string.IsNullOrEmpty(dir))
SelectionTrace.cs (1)
26_verbose = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SELECTTESTS_TRACE"));
Shared (4)
Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
LogBuffering\SerializedLogRecordFactory.cs (1)
69if (string.IsNullOrEmpty(str))
Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Stress.AppHost (6)
CommandResources.cs (3)
408context.Input.Disabled = string.IsNullOrEmpty(category); 459context.Input.Disabled = string.IsNullOrEmpty(item); 476if (string.IsNullOrEmpty(context.Input.Value))
InteractionCommands.cs (3)
118if (!string.IsNullOrEmpty(input.Value) && input.Value.Length < 3) 322if (!string.IsNullOrEmpty(dependsOnInput.Value)) 687if (string.IsNullOrEmpty(context.Input.Value))
SuperFileCheck (1)
Program.cs (1)
43if (String.IsNullOrEmpty(superFileCheckPath))
System.CodeDom (24)
Microsoft\CSharp\CSharpCodeGenerator.cs (5)
2138if (!string.IsNullOrEmpty(arg.Name)) 2394if (!string.IsNullOrEmpty(e.Name)) 2445if (string.IsNullOrEmpty(nspace.Name)) 2540if (!string.IsNullOrEmpty(e.Name)) 2650if (string.IsNullOrEmpty(value))
Microsoft\VisualBasic\VBCodeGenerator.cs (6)
396if (!string.IsNullOrEmpty(arg.Name)) 430if (!string.IsNullOrEmpty(prefix)) 756if (string.IsNullOrEmpty(name)) 2318if (!string.IsNullOrEmpty(e.Name)) 2336if (!string.IsNullOrEmpty(e.Name)) 2374if (string.IsNullOrEmpty(value))
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (3)
90if (!string.IsNullOrEmpty(type.Namespace)) 124if (string.IsNullOrEmpty(typeName)) 318if (string.IsNullOrEmpty(_baseType))
src\runtime\src\libraries\Common\src\System\CSharpHelpers.cs (1)
145if (string.IsNullOrEmpty(value))
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (3)
71if (string.IsNullOrEmpty(fileExtension)) 83if (string.IsNullOrEmpty(fileName)) 133string.IsNullOrEmpty(TempDir) ? GetTempDirectory() : TempDir,
System\CodeDom\CodeGotoStatement.cs (1)
22if (string.IsNullOrEmpty(value))
System\CodeDom\Compiler\CodeGenerator.cs (1)
1010if (!string.IsNullOrEmpty(arg.Name))
System\CodeDom\Compiler\CodeValidator.cs (2)
142if (!string.IsNullOrEmpty(e.Name)) 178if (!string.IsNullOrEmpty(arg.Name))
System\CodeDom\Compiler\Executor.cs (2)
40if (string.IsNullOrEmpty(outputName)) 45if (string.IsNullOrEmpty(errorName))
System.Collections.Immutable (1)
Validation\Requires.cs (1)
99if (string.IsNullOrEmpty(message))
System.CommandLine (8)
Binding\ArgumentConverter.StringConverters.cs (3)
82if (string.IsNullOrEmpty(path)) 105if (string.IsNullOrEmpty(path)) 116if (string.IsNullOrEmpty(path))
Completions\CompletionAction.cs (1)
25int position = !string.IsNullOrEmpty(parsedValues) ? int.Parse(parsedValues) : rawInput?.Length ?? 0;
Help\HelpBuilder.cs (3)
458!string.IsNullOrEmpty(GetArgumentDefaultValue(context.Command, argument, true, context)) 480.Where(defaultValue => !string.IsNullOrEmpty(defaultValue))); 482return string.IsNullOrEmpty(argumentDefaultValues)
Help\HelpBuilder.Default.cs (1)
113if (!string.IsNullOrEmpty(joined))
System.CommandLine.StaticCompletions (2)
shells\FishShellProvider.cs (2)
377if (!string.IsNullOrEmpty(description)) 399if (string.IsNullOrEmpty(s)) return "''";
System.ComponentModel.Annotations (14)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (2)
198if (!string.IsNullOrEmpty(_lastMessage)) 238if (string.IsNullOrEmpty(Method))
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (2)
64if (string.IsNullOrEmpty(stringValue)) 106if (string.IsNullOrEmpty(Pattern))
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (5)
233bool resourceNameSet = !string.IsNullOrEmpty(_errorMessageResourceName); 234bool errorMessageSet = !string.IsNullOrEmpty(_errorMessage); 236bool defaultMessageSet = !string.IsNullOrEmpty(_defaultErrorMessage); 272Debug.Assert(!string.IsNullOrEmpty(_errorMessageResourceName)); 318if (result is not null && string.IsNullOrEmpty(result.ErrorMessage))
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
194if (string.IsNullOrEmpty(propertyName))
System\ComponentModel\DataAnnotations\ValidationContext.cs (4)
178if (string.IsNullOrEmpty(_displayName)) 181if (string.IsNullOrEmpty(_displayName)) 190if (string.IsNullOrEmpty(value)) 239if (string.IsNullOrEmpty(MemberName))
System.ComponentModel.Composition (12)
System\ComponentModel\Composition\ConstraintServices.cs (1)
29if (!string.IsNullOrEmpty(requiredTypeIdentity))
System\ComponentModel\Composition\ContractNameServices.cs (2)
61if (string.IsNullOrEmpty(typeIdentity)) 103if (!string.IsNullOrEmpty(type.Namespace))
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
85if (!string.IsNullOrEmpty(relativeSearchPath))
System\ComponentModel\Composition\Hosting\CompositionServices.cs (3)
101if (!string.IsNullOrEmpty(export.ContractName)) 147return string.IsNullOrEmpty(export.ContractName); 162if (!string.IsNullOrEmpty(import.ContractName))
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
778if (string.IsNullOrEmpty(contractName))
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
292if (string.IsNullOrEmpty(contractName))
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
309if (!string.IsNullOrEmpty(RequiredTypeIdentity))
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (1)
45if (!string.IsNullOrEmpty(genericContractName))
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
457if (!string.IsNullOrEmpty(exportTypeIdentity))
System.ComponentModel.TypeConverter (10)
System\ComponentModel\BindingList.cs (1)
472if (sender == null || e == null || string.IsNullOrEmpty(e.PropertyName))
System\ComponentModel\CultureInfoConverter.cs (1)
81if (string.IsNullOrEmpty(text) || string.Equals(text, defaultCultureString, StringComparison.Ordinal))
System\ComponentModel\MaskedTextProvider.cs (1)
2713if (string.IsNullOrEmpty(input)) // nothing to verify.
System\ComponentModel\NullableConverter.cs (1)
64else if (value is string && string.IsNullOrEmpty(value as string))
System\ComponentModel\PropertyDescriptor.cs (1)
386if (string.IsNullOrEmpty(typeName))
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
846if (!string.IsNullOrEmpty(sta.PropertyName)) 953if (string.IsNullOrEmpty(e.PropertyName) ||
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
520if (string.IsNullOrEmpty(typeName))
System\ComponentModel\TypeDescriptor.cs (1)
1294if (string.IsNullOrEmpty(name))
System\ComponentModel\UriTypeConverter.cs (1)
44if (string.IsNullOrEmpty(uriString))
System.Composition.Hosting (1)
System\Composition\Hosting\Util\Formatters.cs (1)
16return !string.IsNullOrEmpty(reply) ? reply : SR.Formatter_None;
System.Configuration.ConfigurationManager (152)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (3)
71if (string.IsNullOrEmpty(fileExtension)) 83if (string.IsNullOrEmpty(fileName)) 133string.IsNullOrEmpty(TempDir) ? GetTempDirectory() : TempDir,
System\Configuration\AppSettingsSection.cs (2)
81if (!string.IsNullOrEmpty((string)base[s_propFile])) 100sourceFileFullPath = string.IsNullOrEmpty(configFile)
System\Configuration\BaseConfigurationRecord.cs (12)
548if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 620if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 1554if (!string.IsNullOrEmpty(input.SectionXmlInfo.ConfigSource)) 1593if (!string.IsNullOrEmpty(providerName)) return ProtectedConfig.GetProviderFromName(providerName); 2133if (string.IsNullOrEmpty(parentConfigKey)) return tagName; 2135if (string.IsNullOrEmpty(tagName)) return parentConfigKey; 3023if (string.IsNullOrEmpty(name)) 3067if (string.IsNullOrEmpty(subPath)) 3194if (string.IsNullOrEmpty(configSource)) 3201if (string.IsNullOrEmpty(configSource) || Path.IsPathRooted(configSource)) 3369if (forceEvaluatation && !IsInitDelayed && !string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 3553if (string.IsNullOrEmpty(protectionProvider))
System\Configuration\CallbackValidatorAttribute.cs (1)
23if (!string.IsNullOrEmpty(_callbackMethodName))
System\Configuration\ClientConfigPaths.cs (17)
88if (!string.IsNullOrEmpty(externalConfigPath)) 108else if (!string.IsNullOrEmpty(ApplicationUri)) 140if (string.IsNullOrEmpty(namePrefix)) 142string applicationUriLower = !string.IsNullOrEmpty(ApplicationUri) 146string part2 = !string.IsNullOrEmpty(namePrefix) && !string.IsNullOrEmpty(hashSuffix) 274else if (!string.IsNullOrEmpty(exePath)) 286if (!string.IsNullOrEmpty(hash)) suffix = "_" + typeName + "_" + hash; 315(string.IsNullOrEmpty(_companyName) || string.IsNullOrEmpty(ProductName) || 316string.IsNullOrEmpty(ProductVersion))) 330if (string.IsNullOrEmpty(ProductName)) 343if (string.IsNullOrEmpty(ProductName) && (mainType != null)) ProductName = mainType.Name.Trim(); 349if (string.IsNullOrEmpty(_companyName)) 361if (string.IsNullOrEmpty(_companyName)) _companyName = ProductName; 366if (string.IsNullOrEmpty(ProductVersion)) ProductVersion = "1.0.0.0"; 376if (string.IsNullOrEmpty(validated)) return validated;
System\Configuration\ClientConfigurationHost.cs (12)
61if (_fileMap != null) return !string.IsNullOrEmpty(_fileMap.RoamingUserConfigFilename); 70if (_fileMap != null) return !string.IsNullOrEmpty(_fileMap.LocalUserConfigFilename); 144if ((fileMap != null) && !string.IsNullOrEmpty(_exePath)) 147if (string.IsNullOrEmpty(_exePath)) _exePath = null; 153if (!string.IsNullOrEmpty(fileMap.MachineConfigFilename)) 159if (!string.IsNullOrEmpty(exeFileMap.ExeConfigFilename)) 162if (!string.IsNullOrEmpty(exeFileMap.RoamingUserConfigFilename)) 165if (!string.IsNullOrEmpty(exeFileMap.LocalUserConfigFilename)) 443if (string.IsNullOrEmpty(fileMap.MachineConfigFilename)) 452if (string.IsNullOrEmpty(exeFileMap.ExeConfigFilename)) 456if (string.IsNullOrEmpty(exeFileMap.RoamingUserConfigFilename)) 460if (string.IsNullOrEmpty(exeFileMap.LocalUserConfigFilename))
System\Configuration\ConfigPathUtility.cs (7)
22if (string.IsNullOrEmpty(configPath)) 60Debug.Assert(string.IsNullOrEmpty(parentConfigPath) || IsValid(parentConfigPath), 62Debug.Assert(string.IsNullOrEmpty(childConfigPath) || IsValid(childConfigPath), 65if (string.IsNullOrEmpty(parentConfigPath)) 68if (string.IsNullOrEmpty(childConfigPath)) 86Debug.Assert(string.IsNullOrEmpty(configPath) || IsValid(configPath), 89if (string.IsNullOrEmpty(configPath))
System\Configuration\Configuration.cs (6)
57if (!string.IsNullOrEmpty(locationSubPath) && !implicitMachineConfigHost.SupportsLocation) 60if (string.IsNullOrEmpty(locationSubPath) != string.IsNullOrEmpty(locationConfigPath)) 68if (!string.IsNullOrEmpty(locationSubPath)) 206if (string.IsNullOrEmpty(filename)) throw ExceptionUtil.ParameterNullOrEmpty(nameof(filename)); 213filename = string.IsNullOrEmpty(filename) ? null : Path.GetFullPath(filename);
System\Configuration\ConfigurationCollectionAttribute.cs (3)
31if (string.IsNullOrEmpty(value)) value = null; 41if (string.IsNullOrEmpty(value)) value = null; 51if (string.IsNullOrEmpty(value)) value = null;
System\Configuration\ConfigurationElement.cs (6)
1206if (!string.IsNullOrEmpty(collectionProperties) && 1281if (string.IsNullOrEmpty(attributeList)) 1306if (!string.IsNullOrEmpty(attribToLockTrim)) 1647if (!string.IsNullOrEmpty(prop.Name) && 1682if (!(string.IsNullOrEmpty(prop.Name) || _lockedAllExceptElementsList.Contains(prop.Name)) && 1731if (string.IsNullOrEmpty(ce.Filename)) ce = new ConfigurationErrorsException(ce.Message, reader);
System\Configuration\ConfigurationElementCollection.cs (2)
107if (!string.IsNullOrEmpty(ElementName)) return "'" + ElementName + "'"; 1057if (!string.IsNullOrEmpty(ElementName))
System\Configuration\ConfigurationErrorsException.cs (1)
148if (!string.IsNullOrEmpty(file))
System\Configuration\ConfigurationException.cs (1)
72if (!string.IsNullOrEmpty(file))
System\Configuration\ConfigurationFileMap.cs (1)
27if (string.IsNullOrEmpty(machineConfigFilename))
System\Configuration\ConfigurationLockCollection.cs (2)
90if (ExceptionList && (_internalDictionary.Count == 0) && !string.IsNullOrEmpty(_seedList)) 292if (useSeedIfAvailable && !string.IsNullOrEmpty(_seedList))
System\Configuration\ConfigurationManager.cs (2)
150if (string.IsNullOrEmpty(sectionName)) return null; 162if (string.IsNullOrEmpty(sectionName)) return;
System\Configuration\ConfigurationProperty.cs (2)
230if (((options & ConfigurationPropertyOptions.IsDefaultCollection) != 0) && string.IsNullOrEmpty(name)) 261if (string.IsNullOrEmpty(name))
System\Configuration\ConfigurationSectionCollection.cs (1)
84if (string.IsNullOrEmpty(name))
System\Configuration\ConfigurationSectionGroup.cs (1)
38if (string.IsNullOrEmpty(typeName)) typeName = null;
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
88if (string.IsNullOrEmpty(name))
System\Configuration\HandlerBase.cs (1)
139if (string.IsNullOrEmpty(attribute.Value) && !allowEmpty)
System\Configuration\Internal\InternalConfigHost.cs (2)
224if (string.IsNullOrEmpty(streamName)) 236if (string.IsNullOrEmpty(streamName))
System\Configuration\LocalFileSettingsProvider.cs (7)
51if (string.IsNullOrEmpty(name)) 257if (!string.IsNullOrEmpty(prevConfig)) 286if (string.IsNullOrEmpty(prevConfigFile)) 362if (!string.IsNullOrEmpty(key)) 493if (!string.IsNullOrEmpty(prevConfig)) 523if (string.IsNullOrEmpty(xmlString)) 534if (string.IsNullOrEmpty(escapedString))
System\Configuration\MgmtConfigurationRecord.cs (28)
167Type type = string.IsNullOrEmpty(factoryRecord.FactoryTypeName) 449if (string.IsNullOrEmpty(xmlElement)) 537if (string.IsNullOrEmpty(oldConfigSource)) oldConfigSource = null; 539if (string.IsNullOrEmpty(newConfigSource)) newConfigSource = null; 545if (string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 595if (string.IsNullOrEmpty(xmlElement)) 676if (!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource)) 726if (!string.IsNullOrEmpty(rawXml)) 977if (string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 991if (!string.IsNullOrEmpty(streamInfo.SectionName)) 1338if (!string.IsNullOrEmpty(updatedXml)) 1394if (!string.IsNullOrEmpty(updatedXml)) hasChanged = true; 1431if (!string.IsNullOrEmpty(updatedXml)) 1453if (!string.IsNullOrEmpty(updatedXml)) 1558!string.IsNullOrEmpty(sectionXmlInfo.ConfigSource); 1581!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource); 1603!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource) 1621if (string.IsNullOrEmpty(updatedXml)) 1627if (!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource) || 1633if (string.IsNullOrEmpty(updatedXml)) 1653string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource)) 1750if (string.IsNullOrEmpty(factoryRecord.Filename)) 1784if (string.IsNullOrEmpty(configSource)) configSource = null; 1787if (string.IsNullOrEmpty(configSourceStreamName)) configSourceStreamName = null; 1812if (!string.IsNullOrEmpty(configSource)) 1989if (!string.IsNullOrEmpty(update?.UpdatedXml)) 2906if (string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource) || 2960if (!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource))
System\Configuration\Provider\ProviderBase.cs (1)
17public virtual string Description => string.IsNullOrEmpty(_description) ? Name : _description;
System\Configuration\RegexStringValidator.cs (1)
15if (string.IsNullOrEmpty(regex)) throw ExceptionUtil.ParameterNullOrEmpty(nameof(regex));
System\Configuration\SectionInformation.cs (4)
236string configSource = !string.IsNullOrEmpty(value) 364if (string.IsNullOrEmpty(value)) throw ExceptionUtil.PropertyNullOrEmpty(nameof(Type)); 613if (string.IsNullOrEmpty(protectionProvider)) protectionProvider = _configRecord.DefaultProviderName; 672else RawXml = string.IsNullOrEmpty(rawXml) ? null : rawXml;
System\Configuration\SectionUpdates.cs (1)
37Debug.Assert(string.IsNullOrEmpty(_name), "FindSectionUpdates assumes search is from root record");
System\Configuration\TypeUtil.cs (1)
52if (string.IsNullOrEmpty(typeString) || typeString.Contains(','))
System\Configuration\UpdateConfigHost.cs (2)
33Debug.Assert(!string.IsNullOrEmpty(oldStreamname)); 35if (string.IsNullOrEmpty(oldStreamname)) return;
System\Configuration\UrlPath.cs (4)
23if (string.IsNullOrEmpty(dir)) 26if (string.IsNullOrEmpty(subdir)) 68if (string.IsNullOrEmpty(path)) 71if (string.IsNullOrEmpty(subpath))
System\Configuration\XmlUtil.cs (2)
308if (!string.IsNullOrEmpty(Reader.Value)) newValue = Reader.Value; 770if (!string.IsNullOrEmpty(dtdValue))
System\Diagnostics\ListenerElementsCollection.cs (5)
181if (string.IsNullOrEmpty(className)) 186if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData)) 214if (Filter != null && !string.IsNullOrEmpty(Filter.TypeName)) 307if (string.IsNullOrEmpty(className)) 312if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData))
System\Diagnostics\SourceElementsCollection.cs (2)
76if (!string.IsNullOrEmpty(SwitchName) && !string.IsNullOrEmpty(SwitchValue))
System\Diagnostics\TraceConfiguration.cs (6)
51if (!string.IsNullOrEmpty(sourceElement.SwitchName)) 59if (!string.IsNullOrEmpty(sourceElement.SwitchValue)) 65else if (!string.IsNullOrEmpty(sourceElement.SwitchName)) 78if (!string.IsNullOrEmpty(sourceElement.SwitchValue)) 121if (string.IsNullOrEmpty(sourceTypeName)) 141if (!string.IsNullOrEmpty(typeName))
System\Diagnostics\TraceUtils.cs (2)
51if (string.IsNullOrEmpty(initializeData)) 78if (!string.IsNullOrEmpty(filePath))
System.Console (24)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
src\runtime\src\libraries\Common\src\System\Console\ConsoleUtils.cs (3)
46if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("FORCE_COLOR")) || 47!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION"))) 53if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NO_COLOR")))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (2)
37if (string.IsNullOrEmpty(userHomeDirectory)) 55if (!string.IsNullOrEmpty(userHomeDirectory))
System\ConsolePal.Unix.cs (5)
208if (!string.IsNullOrEmpty(titleFormat)) 252if (!string.IsNullOrEmpty(cursorAddressFormat)) 484Debug.Assert(!string.IsNullOrEmpty(TerminalFormatStrings.CursorPositionReport)); 808if (!string.IsNullOrEmpty(formatString)) 1127if (string.IsNullOrEmpty(value))
System\IO\StdInReader.cs (1)
227s_moveLeftString = !string.IsNullOrEmpty(moveLeft) ? moveLeft + " " + moveLeft : string.Empty;
System\TerminalFormatStrings.cs (3)
88IsRxvtTerm = !string.IsNullOrEmpty(db.Term) && db.Term.Contains("rxvt", StringComparison.OrdinalIgnoreCase); 232if (!string.IsNullOrEmpty(keyFormat)) 251if (!string.IsNullOrEmpty(keyFormat))
System\TermInfo.DatabaseFactory.cs (3)
43return !string.IsNullOrEmpty(term) ? ReadDatabase(term) : null; 105if (string.IsNullOrEmpty(term) || string.IsNullOrEmpty(directoryPath))
System.Data.Common (143)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
369if (!string.IsNullOrEmpty(quotePrefix)) 375if (!string.IsNullOrEmpty(quoteSuffix))
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
247if (string.IsNullOrEmpty(keyname)) 360if (string.IsNullOrEmpty(keyname)) 552if (string.IsNullOrEmpty(keyname))
src\runtime\src\libraries\Common\src\System\Data\Common\NameValuePair.cs (1)
17Debug.Assert(!string.IsNullOrEmpty(name), "empty keyname");
System\Data\Common\AdapterUtil.Common.cs (1)
320if (string.IsNullOrEmpty(tableName))
System\Data\Common\DataAdapter.cs (2)
271if (string.IsNullOrEmpty(srcTable)) 382if (string.IsNullOrEmpty(srcTable))
System\Data\Common\DataColumnMapping.cs (3)
86if (string.IsNullOrEmpty(dataSetColumn)) 99if (!string.IsNullOrEmpty(dataColumn.Expression)) 118if (string.IsNullOrEmpty(dataSetColumn))
System\Data\Common\DataColumnMappingCollection.cs (5)
271if (!string.IsNullOrEmpty(sourceColumn)) 287if (!string.IsNullOrEmpty(dataSetColumn)) 419if (string.IsNullOrEmpty(name)) 455if (string.IsNullOrEmpty(sourceColumn)) 484if (string.IsNullOrEmpty(sourceColumn))
System\Data\Common\DataTableMapping.cs (1)
135if (string.IsNullOrEmpty(dataSetTable))
System\Data\Common\DataTableMappingCollection.cs (4)
208if (!string.IsNullOrEmpty(sourceTable)) 224if (!string.IsNullOrEmpty(dataSetTable)) 354if (string.IsNullOrEmpty(name)) 391if (string.IsNullOrEmpty(sourceTable))
System\Data\Common\DBCommandBuilder.cs (7)
736if (!string.IsNullOrEmpty(quotePrefix) && baseTableName.Contains(quotePrefix, StringComparison.Ordinal)) 740if (!string.IsNullOrEmpty(quoteSuffix) && baseTableName.Contains(quoteSuffix, StringComparison.Ordinal)) 799Debug.Assert(!string.IsNullOrEmpty(_quotedBaseTableName), "no table name"); 820Debug.Assert(!string.IsNullOrEmpty(_quotedBaseTableName), "no table name"); 911Debug.Assert(!string.IsNullOrEmpty(_quotedBaseTableName), "no table name"); 1135Debug.Assert(!string.IsNullOrEmpty(sourceColumn), "empty source column"); 1381if (!string.IsNullOrEmpty(columnName))
System\Data\Common\DbDataAdapter.cs (8)
314if (DesignMode && ((null == command) || (null == command.Connection) || string.IsNullOrEmpty(command.CommandText))) 357if (string.IsNullOrEmpty(srcTable)) 512if (string.IsNullOrEmpty(srcTable)) 759if (!string.IsNullOrEmpty(columnName)) 792if (!string.IsNullOrEmpty(columnName)) 929if (string.IsNullOrEmpty(srcTable)) 1675if (string.IsNullOrEmpty(rowMsg)) 1772Debug.Assert(!string.IsNullOrEmpty(method), "missing method name");
System\Data\Common\ObjectStorage.cs (1)
371if (string.IsNullOrEmpty(typeName))
System\Data\Constraint.cs (3)
37if (string.IsNullOrEmpty(value) && (Table != null) && InCollection) 62get { return string.IsNullOrEmpty(_schemaName) ? ConstraintName : _schemaName; } 65if (!string.IsNullOrEmpty(value))
System\Data\DataColumn.cs (2)
148if (!string.IsNullOrEmpty(expr)) // its a performance hit to set Expression to the empty str when we know it will come out null 405Debug.Assert(!string.IsNullOrEmpty(_encodedColumnName));
System\Data\DataError.cs (1)
42if (string.IsNullOrEmpty(error))
System\Data\DataRelation.cs (1)
542if (string.IsNullOrEmpty(ChildTable.Namespace) && ((ChildTable.NestedParentsCount > 1) ||
System\Data\DataRow.cs (1)
97if (!string.IsNullOrEmpty(value))
System\Data\DataSet.cs (3)
761if (string.IsNullOrEmpty(value)) 811if (string.IsNullOrEmpty(value)) 1824if (!string.IsNullOrEmpty(attribValue))
System\Data\DataTable.cs (8)
1282_displayExpression = !string.IsNullOrEmpty(value) ? 6490if (string.IsNullOrEmpty(_tableName) && string.IsNullOrEmpty(CurrentTableFullName)) 6497if (!string.IsNullOrEmpty(_tableName)) 6499if (!string.IsNullOrEmpty(Namespace)) 6528if (!string.IsNullOrEmpty(_tableName)) 6564if (string.IsNullOrEmpty(TableName)) 6567if (!string.IsNullOrEmpty(currentTable.Namespace))
System\Data\DataViewManager.cs (1)
104if (string.IsNullOrEmpty(value))
System\Data\LinqDataView.cs (4)
112Debug.Assert(!(!string.IsNullOrEmpty(base.Sort) && base.SortComparison != null), 115if (!string.IsNullOrEmpty(base.Sort)) // use find for DV's sort string 148if (base.SortComparison == null && string.IsNullOrEmpty(base.Sort)) 188if (base.SortComparison == null && string.IsNullOrEmpty(base.Sort))
System\Data\ProviderBase\SchemaMapping.cs (5)
99if (!string.IsNullOrEmpty(sourceTableName)) 126if (!string.IsNullOrEmpty(sourceTableName)) 931if ((basetable != commonBaseTable) && (!string.IsNullOrEmpty(basetable))) 1104if (!commonFromMultiTable && !string.IsNullOrEmpty(commonBaseTable) && string.IsNullOrEmpty(_dataTable.TableName))
System\Data\RelationshipConverter.cs (2)
51if (string.IsNullOrEmpty(parentTable.Namespace) && string.IsNullOrEmpty(childTable.Namespace))
System\Data\SimpleType.cs (9)
106_enumeration = !string.IsNullOrEmpty(_enumeration) ? _enumeration + " " + facet.Value : facet.Value; 131string.IsNullOrEmpty(_name) && 135string.IsNullOrEmpty(_pattern) && 136string.IsNullOrEmpty(_maxExclusive) && 137string.IsNullOrEmpty(_maxInclusive) && 138string.IsNullOrEmpty(_minExclusive) && 139string.IsNullOrEmpty(_minInclusive) && 140string.IsNullOrEmpty(_enumeration) 232if (!string.IsNullOrEmpty(_name))
System\Data\XDRSchema.cs (8)
44if (string.IsNullOrEmpty(_schemaName)) 88if (string.IsNullOrEmpty(strType)) 136if (string.IsNullOrEmpty(value)) 139return !string.IsNullOrEmpty(type); 314if (nt == s_enumerationNameType && string.IsNullOrEmpty(dtValues)) 335if (string.IsNullOrEmpty(instanceName)) 403if (string.IsNullOrEmpty(strType)) 483if (!string.IsNullOrEmpty(strDefault))
System\Data\XmlDataLoader.cs (2)
389if (XMLSchema.GetBooleanAttribute(rowElement, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text)) 423if (XMLSchema.GetBooleanAttribute(e, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text))
System\Data\XMLDiffLoader.cs (1)
316if (!string.IsNullOrEmpty(value))
System\Data\xmlsaver.cs (25)
387if (!string.IsNullOrEmpty(targetNamespace)) 402if (!string.IsNullOrEmpty(targetNamespace)) 699if (((_ds != null) && (_ds.Namespace == top[i].Namespace)) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 703if (((_ds != null) && (_ds.Namespace.Length != 0)) && string.IsNullOrEmpty(top[i].Namespace)) 739if ((_ds != null && _ds.Namespace == top[i].Namespace) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 814if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 845if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 1097if (!string.IsNullOrEmpty(_filePath)) 1229if (!string.IsNullOrEmpty(NamespaceURI)) 1260if (!string.IsNullOrEmpty(name)) 1324if (string.IsNullOrEmpty(typeName)) 1395if (string.IsNullOrEmpty(tgNamespace)) 1406if (!string.IsNullOrEmpty(tgNamespace)) 1747while (string.IsNullOrEmpty(tgNamespace)) 1825if (string.IsNullOrEmpty(_typeName)) 1840if (string.IsNullOrEmpty(table.TypeName.Namespace)) 2044if (!string.IsNullOrEmpty(fields[k].Namespace)) 2112if (!string.IsNullOrEmpty(fields[k].Namespace)) 2196if (!string.IsNullOrEmpty(fields[k].Namespace)) 2241if (!string.IsNullOrEmpty(result)) 2253if (string.IsNullOrEmpty(result)) 2461if (string.IsNullOrEmpty(error)) 2788if (string.IsNullOrEmpty(error)) 2813if (_ds == null || string.IsNullOrEmpty(_ds.DataSetName)) 2872if (string.IsNullOrEmpty(_ds.DataSetName))
System\Data\XMLSchema.cs (28)
83if (string.IsNullOrEmpty(value)) 447if (string.IsNullOrEmpty(parentName)) 452if (string.IsNullOrEmpty(childName)) 457if (string.IsNullOrEmpty(value)) 462if (string.IsNullOrEmpty(value)) 668if (string.IsNullOrEmpty(_schemaName)) 674if (string.IsNullOrEmpty(ds._namespaceURI)) 1213if (string.IsNullOrEmpty(value)) 1232if (string.IsNullOrEmpty(value)) 1292if (string.IsNullOrEmpty(refer)) 1326if (string.IsNullOrEmpty(relName)) 1388if (string.IsNullOrEmpty(name)) 1937if (string.IsNullOrEmpty(_type)) 1940if (string.IsNullOrEmpty(_type)) 1964if (!string.IsNullOrEmpty(typeNode.QualifiedName.Name) && typeNode.QualifiedName.Namespace != Keywords.XSDNS) 2205if (string.IsNullOrEmpty(strType)) 2222if (!string.IsNullOrEmpty(node.QualifiedName.Name) && node.QualifiedName.Namespace != Keywords.XSDNS) 2268if ((string.IsNullOrEmpty(attrib.QualifiedName.Namespace) && string.IsNullOrEmpty(column._columnUri)) || // backward compatibility :SQL BU DT 310912 2371if (string.IsNullOrEmpty(strType)) 2387if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).Name) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS) 2421if (string.IsNullOrEmpty(XSDSchema.GetMsdataAttribute(elem, Keywords.MSD_DATATYPE))) 2454if ((string.IsNullOrEmpty(elem.QualifiedName.Namespace) && string.IsNullOrEmpty(column._columnUri)) || // backward compatibility :SQL BU DT 310912 2473if (!string.IsNullOrEmpty(column.Expression)) 2594if (!string.IsNullOrEmpty(value)) 2600if (!string.IsNullOrEmpty(value)) 2609if (!string.IsNullOrEmpty(dsName))
System\Xml\XmlDataDocument.cs (1)
462if (string.IsNullOrEmpty(docElemName))
System.Data.Odbc (39)
Common\System\Data\Common\DbConnectionOptions.cs (5)
82return string.IsNullOrEmpty(value); 86return string.IsNullOrEmpty(val); // MDAC 83097 90return ((_parsetable.ContainsKey(KEY.User_ID) && !string.IsNullOrEmpty(_parsetable[KEY.User_ID])) || (_parsetable.ContainsKey(SYNONYM.UID) && !string.IsNullOrEmpty(_parsetable[SYNONYM.UID]))); 276else if (string.IsNullOrEmpty(rootFolderPath))
Common\System\Data\Common\DBConnectionString.cs (6)
113if (!string.IsNullOrEmpty(restrictions)) 168if (!string.IsNullOrEmpty(restrictionValues[i])) 478if (!string.IsNullOrEmpty(keyname)) 481if (string.IsNullOrEmpty(realkeyname)) 537Debug.Assert(!string.IsNullOrEmpty(restrictionValues[i - 1]), "empty restriction"); 538Debug.Assert(!string.IsNullOrEmpty(restrictionValues[i]), "empty restriction");
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
369if (!string.IsNullOrEmpty(quotePrefix)) 375if (!string.IsNullOrEmpty(quoteSuffix))
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
247if (string.IsNullOrEmpty(keyname)) 360if (string.IsNullOrEmpty(keyname)) 552if (string.IsNullOrEmpty(keyname))
src\runtime\src\libraries\Common\src\System\Data\Common\NameValuePair.cs (1)
17Debug.Assert(!string.IsNullOrEmpty(name), "empty keyname");
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
120if (!string.IsNullOrEmpty(key.ConnectionString)) 173if (string.IsNullOrEmpty(key.ConnectionString))
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
254if (string.IsNullOrEmpty(candidateCollectionName))
System\Data\Odbc\OdbcCommandBuilder.cs (4)
121if (string.IsNullOrEmpty(command.CommandText)) 262if (string.IsNullOrEmpty(quotePrefix)) 281if (!string.IsNullOrEmpty(quotePrefix) && quotePrefix != " ") 317if (string.IsNullOrEmpty(quotePrefix))
System\Data\Odbc\OdbcConnectionFactory.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(connectionString), "empty connectionString");
System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
45if (!string.IsNullOrEmpty(connectionString))
System\Data\Odbc\OdbcDataReader.cs (10)
2093if (string.IsNullOrEmpty(metaInfos[i].baseTableName)) 2099if (string.IsNullOrEmpty(metaInfos[i].baseColumnName)) 2172if (!string.IsNullOrEmpty(qualifiedTableName.Table)) 2656if (string.IsNullOrEmpty(currentindexname)) 2673if (string.IsNullOrEmpty(columnname)) 2685if (!string.IsNullOrEmpty(tablename)) 2716if (string.IsNullOrEmpty(localcmdtext)) 2879if (!string.IsNullOrEmpty(name)) 2881bool useQuotes = !string.IsNullOrEmpty(quotePrefix) && !string.IsNullOrEmpty(quoteSuffix);
System\Data\Odbc\OdbcException.cs (1)
75return string.IsNullOrEmpty(source) ? "" : source; // base.Source;
System\Data\Odbc\OdbcMetaDataFactory.cs (1)
591if (!string.IsNullOrEmpty(stringValue))
System\Data\Odbc\OdbcUtils.cs (1)
518if ((_idx == _len) || string.IsNullOrEmpty(nextToken))
System.Data.OleDb (1)
System\Data\Common\NameValuePair.cs (1)
17Debug.Assert(!string.IsNullOrEmpty(name), "empty keyname");
System.Diagnostics.DiagnosticSource (12)
System\Diagnostics\Activity.cs (3)
469if (string.IsNullOrEmpty(operationName)) 700else if (string.IsNullOrEmpty(parentId)) 1363Debug.Assert(!string.IsNullOrEmpty(Parent.Id));
System\Diagnostics\DiagnosticSourceEventSource.cs (1)
418if (string.IsNullOrEmpty(str1))
System\Diagnostics\LegacyPropagator.cs (2)
32if (!string.IsNullOrEmpty(activity.TraceStateString)) 90if (string.IsNullOrEmpty(baggageString))
System\Diagnostics\Metrics\MetricsEventSource.cs (2)
353return _sessionId.Equals(SharedSessionId) && (string.IsNullOrEmpty(commandSessionId) || commandSessionId.Equals(SharedSessionId)); 570if (command.Arguments!.TryGetValue(ClientIdKey, out string? clientIdArg) && !string.IsNullOrEmpty(clientIdArg))
System\Diagnostics\PassThroughPropagator.cs (1)
29if (!string.IsNullOrEmpty(traceState))
System\Diagnostics\W3CPropagator.cs (3)
106if (string.IsNullOrEmpty(baggageString)) 157if (string.IsNullOrEmpty(traceState)) 256if (!string.IsNullOrEmpty(item.Value))
System.Diagnostics.EventLog (18)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
228if (!string.IsNullOrEmpty(version))
System\Diagnostics\EventLog.cs (9)
259if (string.IsNullOrEmpty(logName)) 263if (string.IsNullOrEmpty(source)) 367if (string.IsNullOrEmpty(logName)) 505if (string.IsNullOrEmpty(logName)) 534if (!string.IsNullOrEmpty(source)) 705if (!string.IsNullOrEmpty(assmLocation)) 786if (string.IsNullOrEmpty(sourceData.MessageResourceFile)) 791if (!string.IsNullOrEmpty(sourceData.ParameterResourceFile)) 794if (!string.IsNullOrEmpty(sourceData.CategoryResourceFile))
System\Diagnostics\EventLogInternal.cs (5)
227if (string.IsNullOrEmpty(logName) && !string.IsNullOrEmpty(sourceName)) 663if (string.IsNullOrEmpty(dllName)) 1060if (string.IsNullOrEmpty(logname)) 1096if (string.IsNullOrEmpty(sourceName))
System\Diagnostics\EventLogTraceListener.cs (1)
94else if (string.IsNullOrEmpty(format))
System\Diagnostics\Reader\NativeWrapper.cs (1)
1025if (string.IsNullOrEmpty(s))
System\Diagnostics\Reader\ProviderMetadata.cs (1)
121if (string.IsNullOrEmpty(helpLinkStr))
System.Diagnostics.PerformanceCounter (14)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
228if (!string.IsNullOrEmpty(version))
System\Diagnostics\PerformanceCounter.cs (7)
482if (string.IsNullOrEmpty(_instanceName)) 487if (!string.IsNullOrEmpty(_instanceName)) 508if (string.IsNullOrEmpty(_instanceName)) 513if (!string.IsNullOrEmpty(_instanceName)) 517if (string.IsNullOrEmpty(_instanceName) && InstanceLifetime == PerformanceCounterInstanceLifetime.Process) 551if (!string.IsNullOrEmpty(_instanceName)) 558if (string.IsNullOrEmpty(_instanceName))
System\Diagnostics\PerformanceCounterCategory.cs (2)
299if (string.IsNullOrEmpty(counterData[i].CounterName)) 355if (string.IsNullOrEmpty(counterData[i].CounterHelp))
System\Diagnostics\PerformanceCounterLib.cs (2)
467if (string.IsNullOrEmpty(categoryHelp)) 495Debug.Assert(!string.IsNullOrEmpty(counterData.CounterHelp), "CounterHelp should have been fixed up by the caller");
System\Diagnostics\SharedPerformanceCounter.cs (2)
742if (!string.IsNullOrEmpty(instanceName)) 1426if (string.IsNullOrEmpty(instanceName))
System.Diagnostics.Process (18)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (3)
224bool setCredentials = !string.IsNullOrEmpty(startInfo.UserName); 362bool setCredentials = !string.IsNullOrEmpty(startInfo.UserName); 437if (string.IsNullOrEmpty(resolvedFilename))
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
141Debug.Assert(!string.IsNullOrEmpty(path));
System\Diagnostics\Process.cs (3)
1063ProcessManager.GetProcessInfos(ref processInfos, processNameFilter: string.IsNullOrEmpty(processName) ? null : processName); 1079ProcessManager.GetProcessInfos(ref processInfos, string.IsNullOrEmpty(processName) ? null : processName, machineName, isRemoteMachine); 1613if (!string.IsNullOrEmpty(processName))
System\Diagnostics\Process.Linux.cs (1)
74if (!string.IsNullOrEmpty(pathToProgram))
System\Diagnostics\ProcessStartInfo.cs (3)
419else if (!string.IsNullOrEmpty(Arguments)) 448if (!string.IsNullOrEmpty(Arguments) && HasArgumentList) 488if (InheritedHandles is not null && (UseShellExecute || !string.IsNullOrEmpty(UserName)))
System\Diagnostics\ProcessUtils.cs (1)
45string directoryForException = string.IsNullOrEmpty(workingDirectory) ? Directory.GetCurrentDirectory() : workingDirectory;
System\Diagnostics\ProcessUtils.Unix.cs (6)
54Debug.Assert(!string.IsNullOrEmpty(startInfo.UserName)); 236if (string.IsNullOrEmpty(resolvedExe) && 237(ignoreArguments || (string.IsNullOrEmpty(psi.Arguments) && !psi.HasArgumentList))) 243if (!string.IsNullOrEmpty(resolvedExe)) 256if (!string.IsNullOrEmpty(psi.Arguments)) 271if (string.IsNullOrEmpty(resolvedPath))
System.Diagnostics.TextWriterTraceListener (4)
System\Diagnostics\DelimitedListTraceListener.cs (3)
55if (!string.IsNullOrEmpty(delimiter)) 211if (!string.IsNullOrEmpty(message)) 245if (!string.IsNullOrEmpty(message))
System\Diagnostics\XmlWriterTraceListener.cs (1)
330if (string.IsNullOrEmpty(str))
System.Diagnostics.TraceSource (1)
System\Diagnostics\DefaultTraceListener.cs (1)
155if (useLogFile && !string.IsNullOrEmpty(LogFileName))
System.DirectoryServices (4)
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
76if (!string.IsNullOrEmpty(Name))
System\DirectoryServices\DirectoryEntry.cs (1)
509if (string.IsNullOrEmpty(pathToUse))
System\DirectoryServices\DirectorySearcher.cs (1)
202if (string.IsNullOrEmpty(value))
System\DirectoryServices\PropertyValueCollection.cs (1)
36if (string.IsNullOrEmpty(tempPath))
System.DirectoryServices.AccountManagement (7)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
275(!string.IsNullOrEmpty(this.domainDnsName) && !string.Equals(this.DnsDomainName, dnsDomainName, StringComparison.OrdinalIgnoreCase)))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1808string path = $"LDAP://{(string.IsNullOrEmpty(this.UserSuppliedServerName) ? this.DnsHostName : this.UserSuppliedServerName)}/{this.ContextBasePartitionDN}";
System\DirectoryServices\AccountManagement\AD\ADStoreKey.cs (1)
36Debug.Assert(!string.IsNullOrEmpty(domainName));
System\DirectoryServices\AccountManagement\Context.cs (2)
418if ((contextType == ContextType.ApplicationDirectory) && ((string.IsNullOrEmpty(container)) || (string.IsNullOrEmpty(name))))
System\DirectoryServices\AccountManagement\SAM\SAMUtils.cs (1)
53if (string.IsNullOrEmpty(version))
System\DirectoryServices\AccountManagement\Utils.cs (1)
678nt4Name = (!string.IsNullOrEmpty(domainName) ? domainName + "\\" : "") + name;
System.DirectoryServices.Protocols (11)
System\DirectoryServices\Protocols\common\AsnWriterExtensions.cs (1)
19if (!string.IsNullOrEmpty(value))
System\DirectoryServices\Protocols\common\DirectoryControl.cs (1)
885if (!string.IsNullOrEmpty(key.MatchingRule))
System\DirectoryServices\Protocols\common\DirectoryException.cs (1)
74if (!string.IsNullOrEmpty(response?.ErrorMessage))
System\DirectoryServices\Protocols\Interop\LdapPal.Linux.cs (1)
221if (!string.IsNullOrEmpty(interactChallenge.defresult))
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (7)
79if (AuthType == AuthType.Anonymous && (_directoryCredential != null && (!string.IsNullOrEmpty(_directoryCredential.Password) || !string.IsNullOrEmpty(_directoryCredential.UserName)))) 996if (AuthType == AuthType.Anonymous && (newCredential != null && (!string.IsNullOrEmpty(newCredential.Password) || !string.IsNullOrEmpty(newCredential.UserName)))) 1045if (!string.IsNullOrEmpty(domainName)) 1122if (!string.IsNullOrEmpty(serverErrorMessage)) 1906if (!string.IsNullOrEmpty(serverErrorMessage))
System.Drawing.Common (5)
System\Drawing\Font.cs (2)
126public bool IsSystemFont => !string.IsNullOrEmpty(_systemFontName); 156string name = string.IsNullOrEmpty(OriginalFontName) ? Name : OriginalFontName;
System\Drawing\Icon.cs (1)
154if (string.IsNullOrEmpty(filePath))
System\Drawing\Image.cs (1)
396if (!string.IsNullOrEmpty(directoryPart) && !Directory.Exists(directoryPart))
System\Drawing\Printing\PrinterSettings.cs (1)
252if (string.IsNullOrEmpty(value))
System.Formats.Tar (37)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (3)
55if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) 224!string.IsNullOrEmpty(path) && IsDirectorySeparator(path[^1]);
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (2)
41if (string.IsNullOrEmpty(path)) 91return string.IsNullOrEmpty(path);
System\Formats\Tar\TarEntry.cs (4)
366Debug.Assert(!string.IsNullOrEmpty(destinationDirectoryPath)); 590Debug.Assert(!string.IsNullOrEmpty(linkTargetPath)); 596Debug.Assert(!string.IsNullOrEmpty(linkTargetPath)); 641if (!string.IsNullOrEmpty(directoryPath) && !Path.Exists(directoryPath))
System\Formats\Tar\TarEntry.Unix.cs (2)
38Debug.Assert(!string.IsNullOrEmpty(targetFilePath)); 39Debug.Assert(!string.IsNullOrEmpty(hardLinkFilePath));
System\Formats\Tar\TarFile.cs (6)
552Debug.Assert(!string.IsNullOrEmpty(sourceDirectoryName)); 553Debug.Assert(!string.IsNullOrEmpty(destinationFileName)); 674Debug.Assert(!string.IsNullOrEmpty(sourceFileName)); 675Debug.Assert(!string.IsNullOrEmpty(destinationDirectoryFullPath)); 723Debug.Assert(!string.IsNullOrEmpty(sourceDirectoryName)); 733Debug.Assert(!string.IsNullOrEmpty(destinationDirectoryPath));
System\Formats\Tar\TarHeader.cs (3)
194if (!string.IsNullOrEmpty(value) && GetUtf8TextLength(value) > maxUtf8ByteLength) 260if (!string.IsNullOrEmpty(_linkName)) 276if (!string.IsNullOrEmpty(value) && GetUtf8TextLength(value) > maxUtf8ByteLength)
System\Formats\Tar\TarHeader.Read.cs (1)
647if (!string.IsNullOrEmpty(_prefix))
System\Formats\Tar\TarHeader.Write.cs (4)
614Debug.Assert(!string.IsNullOrEmpty(_linkName) ^ (_typeFlag is not TarEntryType.SymbolicLink and not TarEntryType.HardLink)); 644if (!string.IsNullOrEmpty(_linkName)) 702if (!string.IsNullOrEmpty(_uName)) 720if (!string.IsNullOrEmpty(_gName))
System\Formats\Tar\TarHelpers.cs (2)
167if (!string.IsNullOrEmpty(value)) 187if (!string.IsNullOrEmpty(value))
System\Formats\Tar\TarWriter.cs (2)
394string? actualEntryName = string.IsNullOrEmpty(entryName) ? Path.GetFileName(fileName) : entryName; 411if (string.IsNullOrEmpty(linkName))
System\Formats\Tar\TarWriter.Unix.cs (1)
20Debug.Assert(!string.IsNullOrEmpty(fullPath));
System.IO.Compression (1)
System\IO\Compression\ZipHelper.cs (1)
194if (string.IsNullOrEmpty(text))
System.IO.FileSystem.AccessControl (14)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (3)
55if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) 224!string.IsNullOrEmpty(path) && IsDirectorySeparator(path[^1]);
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Windows.cs (2)
79if (string.IsNullOrEmpty(path)) 320if (string.IsNullOrEmpty(path))
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (9)
35string.IsNullOrEmpty(path) ? SR.IO_FileNotFound : SR.Format(SR.IO_FileNotFound_FileName, path), path); 39string.IsNullOrEmpty(path) ? SR.IO_PathNotFound_NoPathName : SR.Format(SR.IO_PathNotFound_Path, path), path); 46string.IsNullOrEmpty(path) ? SR.UnauthorizedAccess_IODenied_NoPathName : SR.Format(SR.UnauthorizedAccess_IODenied_Path, path)); 48if (string.IsNullOrEmpty(path)) 53string.IsNullOrEmpty(path) ? SR.IO_PathTooLong : SR.Format(SR.IO_PathTooLong_Path, path)); 56string.IsNullOrEmpty(path) ? SR.IO_SharingViolation_NoFileName : SR.Format(SR.IO_SharingViolation_File, path), 59if (string.IsNullOrEmpty(path)) 68if (!string.IsNullOrEmpty(path)) 72if (!string.IsNullOrEmpty(errorDetails))
System.IO.FileSystem.DriveInfo (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
System.IO.FileSystem.Watcher (17)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (3)
55if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) 224!string.IsNullOrEmpty(path) && IsDirectorySeparator(path[^1]);
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (2)
41if (string.IsNullOrEmpty(path)) 91return string.IsNullOrEmpty(path);
System\IO\FileSystemWatcher.cs (3)
459if (handler != null && MatchPattern(string.IsNullOrEmpty(name) ? _directory : name)) 693base.InsertItem(index, string.IsNullOrEmpty(item) || item == "*.*" ? "*" : item); 698base.SetItem(index, string.IsNullOrEmpty(item) || item == "*.*" ? "*" : item);
System\IO\FileSystemWatcher.Linux.cs (2)
158string message = !string.IsNullOrEmpty(maxValue) ? 276string message = !string.IsNullOrEmpty(maxValue) ?
System.IO.IsolatedStorage (7)
System\IO\IsolatedStorage\Helper.cs (5)
36if (string.IsNullOrEmpty(s_roamingUserRootDirectory)) 45if (string.IsNullOrEmpty(s_machineRootDirectory)) 52if (string.IsNullOrEmpty(s_userRootDirectory)) 128if (string.IsNullOrEmpty(location)) 130if (string.IsNullOrEmpty(location))
System\IO\IsolatedStorage\Helper.NonMobile.cs (2)
34if (string.IsNullOrEmpty(randomDirectory)) 46if (string.IsNullOrEmpty(randomDirectory))
System.IO.MemoryMappedFiles (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
System.IO.Packaging (15)
System\IO\Packaging\ContentType.cs (4)
216Debug.Assert(!string.IsNullOrEmpty(_type) || !string.IsNullOrEmpty(_subType)); 412if (string.IsNullOrEmpty(token)) 435if (string.IsNullOrEmpty(parameterValue))
System\IO\Packaging\InternalRelationshipCollection.cs (3)
339if (string.IsNullOrEmpty(targetAttributeValue)) 346if (string.IsNullOrEmpty(typeAttributeValue)) 352if (string.IsNullOrEmpty(idAttributeValue))
System\IO\Packaging\PackagingUtilities.cs (1)
38if (!string.IsNullOrEmpty(encoding))
System\IO\Packaging\PackUriHelper.cs (2)
353Debug.Assert(!string.IsNullOrEmpty(partUriString)); 736Debug.Assert(!string.IsNullOrEmpty(partUriString));
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (1)
90if (!string.IsNullOrEmpty(packageUri.Fragment))
System\IO\Packaging\XmlCompatibilityReader.cs (4)
760if (string.IsNullOrEmpty(mappedNamespace) || namespaceName == mappedNamespace) 894if (!string.IsNullOrEmpty(pair)) 942if (!string.IsNullOrEmpty(prefix)) 1151if (string.IsNullOrEmpty(requiresValue))
System.IO.Pipes (9)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (2)
28Debug.Assert(!string.IsNullOrEmpty(pipeName), "fullPipeName is null or empty"); 252Debug.Assert(!string.IsNullOrEmpty(path));
System.IO.Ports (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
System.Linq.Expressions (15)
System\Dynamic\Utils\ContractUtils.cs (5)
41Debug.Assert(!string.IsNullOrEmpty(paramName)); 67Debug.Assert(!string.IsNullOrEmpty(paramName)); 110Debug.Assert(!string.IsNullOrEmpty(arrayName)); 137Debug.Assert(!string.IsNullOrEmpty(offsetName)); 138Debug.Assert(!string.IsNullOrEmpty(countName));
System\Linq\Expressions\DebugViewWriter.cs (6)
99Debug.Assert(string.IsNullOrEmpty(le.Name)); 105Debug.Assert(string.IsNullOrEmpty(p.Name)); 111Debug.Assert(string.IsNullOrEmpty(target.Name)); 383if (string.IsNullOrEmpty(node.Name)) 1157if (string.IsNullOrEmpty(target.Name)) 1183if (string.IsNullOrEmpty(lambda.Name))
System\Linq\Expressions\ExpressionStringBuilder.cs (3)
284if (string.IsNullOrEmpty(name)) 734if (!string.IsNullOrEmpty(node.Variable?.Name)) 800if (!string.IsNullOrEmpty(target.Name))
System\Linq\Expressions\LabelTarget.cs (1)
37return string.IsNullOrEmpty(Name) ? "UnamedLabel" : Name;
System.Management (3)
System\Management\WMIGenerator.cs (3)
960if (!string.IsNullOrEmpty(Comment)) 1004if (!string.IsNullOrEmpty(Comment)) 3713if (!string.IsNullOrEmpty(Comment))
System.Net.Http (63)
System\Net\Http\FormUrlEncodedContent.cs (1)
55if (!string.IsNullOrEmpty(data))
System\Net\Http\Headers\AltSvcHeaderParser.cs (1)
30if (string.IsNullOrEmpty(value))
System\Net\Http\Headers\AuthenticationHeaderValue.cs (5)
56if (string.IsNullOrEmpty(_parameter)) 72if (string.IsNullOrEmpty(_parameter) && string.IsNullOrEmpty(other._parameter)) 88if (!string.IsNullOrEmpty(_parameter)) 122if (string.IsNullOrEmpty(input) || (startIndex >= input.Length) || HttpRuleParser.ContainsNewLineOrNull(input, startIndex))
System\Net\Http\Headers\BaseHeaderParser.cs (1)
39if (string.IsNullOrEmpty(value) || (index == value.Length))
System\Net\Http\Headers\ByteArrayHeaderParser.cs (1)
32if (string.IsNullOrEmpty(value) || (index == value.Length))
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
355if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (2)
213if (string.IsNullOrEmpty(input) || (startIndex >= input.Length)) 361if (string.IsNullOrEmpty(value))
System\Net\Http\Headers\ContentRangeHeaderValue.cs (1)
163if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\CookieHeaderParser.cs (1)
25if (string.IsNullOrEmpty(value) || HttpRuleParser.ContainsNewLineOrNull(value))
System\Net\Http\Headers\DateHeaderParser.cs (1)
32if (string.IsNullOrEmpty(value) || (index == value.Length))
System\Net\Http\Headers\EntityTagHeaderValue.cs (1)
91if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\HeaderDescriptor.cs (1)
63Debug.Assert(!string.IsNullOrEmpty(headerName));
System\Net\Http\Headers\HttpHeaderParser.cs (1)
35Debug.Assert(!string.IsNullOrEmpty(separator));
System\Net\Http\Headers\HttpHeaders.cs (1)
1178if (string.IsNullOrEmpty(name))
System\Net\Http\Headers\KnownHeader.cs (1)
17Debug.Assert(!string.IsNullOrEmpty(name));
System\Net\Http\Headers\MediaTypeHeaderValue.cs (3)
37if (string.IsNullOrEmpty(value)) 106if (!string.IsNullOrEmpty(charSet)) 183if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\NameValueHeaderValue.cs (8)
66if (!string.IsNullOrEmpty(_value)) 99if (string.IsNullOrEmpty(_value)) 101return string.IsNullOrEmpty(other._value); 137if (!string.IsNullOrEmpty(_value)) 157if (!string.IsNullOrEmpty(_value)) 215if (string.IsNullOrEmpty(input) || (startIndex >= input.Length)) 271if ((string.IsNullOrEmpty(input)) || (startIndex >= input.Length)) 355if (string.IsNullOrEmpty(value))
System\Net\Http\Headers\NameValueWithParametersHeaderValue.cs (1)
103if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\ProductHeaderValue.cs (4)
34if (!string.IsNullOrEmpty(version)) 53if (string.IsNullOrEmpty(_version)) 77if (!string.IsNullOrEmpty(_version)) 110if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\ProductInfoHeaderParser.cs (1)
28if (string.IsNullOrEmpty(value) || (index == value.Length))
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
121if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\RangeConditionHeaderValue.cs (1)
80if (string.IsNullOrEmpty(input) || (startIndex + 1 >= input.Length))
System\Net\Http\Headers\RangeHeaderValue.cs (1)
137if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\RangeItemHeaderValue.cs (2)
85if ((string.IsNullOrEmpty(input)) || (startIndex >= input.Length)) 135if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
83if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (1)
91if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\TransferCodingHeaderValue.cs (1)
68if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\UriHeaderParser.cs (1)
31if (string.IsNullOrEmpty(value) || (index == value.Length))
System\Net\Http\Headers\ViaHeaderValue.cs (5)
53if (!string.IsNullOrEmpty(protocolName)) 59if (!string.IsNullOrEmpty(comment)) 83if (!string.IsNullOrEmpty(_protocolName)) 93if (!string.IsNullOrEmpty(_comment)) 143if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\Headers\WarningHeaderValue.cs (1)
141if (string.IsNullOrEmpty(input) || (startIndex >= input.Length))
System\Net\Http\HttpClient.cs (1)
832string.IsNullOrEmpty(uri) ? null : new Uri(uri, UriKind.RelativeOrAbsolute);
System\Net\Http\HttpRequestMessage.cs (1)
198: this(method, string.IsNullOrEmpty(requestUri) ? null : new Uri(requestUri, UriKind.RelativeOrAbsolute))
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (2)
178string authString = !string.IsNullOrEmpty(credential.Domain) ? 192if (string.IsNullOrEmpty(parameter))
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (2)
243if (!string.IsNullOrEmpty(challenge)) 393if (string.IsNullOrEmpty(key) || parsedIndex >= challenge.Length)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1348if (!string.IsNullOrEmpty(nameValue.Value) &&
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
139if (string.IsNullOrEmpty(value))
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (1)
82return !string.IsNullOrEmpty(proxyConfig) ?
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (2)
124if (!string.IsNullOrEmpty(requestFragment)) 127if (string.IsNullOrEmpty(redirectFragment))
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
112string.IsNullOrEmpty(uri) ? null : new Uri(uri, UriKind.RelativeOrAbsolute);
System.Net.Http.WinHttpHandler (8)
System\Net\Http\WinHttpAuthHelper.cs (4)
269Debug.Assert(!string.IsNullOrEmpty(authType)); 327Debug.Assert(!string.IsNullOrEmpty(authType)); 359if (string.IsNullOrEmpty(userName)) 364if (!string.IsNullOrEmpty(domain))
System\Net\Http\WinHttpCookieContainerAdapter.cs (2)
75if (!string.IsNullOrEmpty(cookieHeader)) 95if (!string.IsNullOrEmpty(cookieValues))
System\Net\Http\WinHttpException.cs (1)
75Debug.Assert(!string.IsNullOrEmpty(nameOfCalledFunction));
System\Net\Http\WinHttpHandler.cs (1)
736if (!string.IsNullOrEmpty(cookieHeader))
System.Net.HttpListener (27)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (1)
773bool first = cookie == null || string.IsNullOrEmpty(cookie.Name);
src\runtime\src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (3)
59if (closeStatus == WebSocketCloseStatus.Empty && !string.IsNullOrEmpty(statusDescription)) 84if (!string.IsNullOrEmpty(statusDescription) && 97Debug.Assert(!string.IsNullOrEmpty(parameterName), "'parameterName' MUST NOT be NULL or string.Empty");
System\Net\HttpListenerRequest.cs (6)
59if (!string.IsNullOrEmpty(cookieString)) 123if (string.IsNullOrEmpty(Headers[HttpKnownHeaderNames.Connection]) || string.IsNullOrEmpty(Headers[HttpKnownHeaderNames.Upgrade])) 161if (string.IsNullOrEmpty(header)) 165if (string.IsNullOrEmpty(header)) 174_keepAlive = !string.IsNullOrEmpty(header);
System\Net\HttpListenerRequestUriBuilder.cs (5)
49Debug.Assert(!string.IsNullOrEmpty(rawUri), "Empty raw URL."); 50Debug.Assert(!string.IsNullOrEmpty(cookedUriScheme), "Empty cooked URL scheme."); 51Debug.Assert(!string.IsNullOrEmpty(cookedUriHost), "Empty cooked URL host."); 52Debug.Assert(!string.IsNullOrEmpty(cookedUriPath), "Empty cooked URL path."); 137Debug.Assert(!string.IsNullOrEmpty(_rawPath), "'rawPath' must have at least one character.");
System\Net\HttpListenerResponse.cs (7)
42if (string.IsNullOrEmpty(value)) 134if (string.IsNullOrEmpty(value)) 205if (string.IsNullOrEmpty(cookieString)) 220if (!string.IsNullOrEmpty(setCookie)) 223if (string.IsNullOrEmpty(setCookie2)) 229if (!string.IsNullOrEmpty(setCookie2)) 232if (string.IsNullOrEmpty(setCookie))
System\Net\Managed\HttpListenerContext.Managed.cs (1)
39if (string.IsNullOrEmpty(header))
System\Net\ServiceNameStore.cs (2)
137Debug.Assert(!string.IsNullOrEmpty(uriPrefix)); 166Debug.Assert(!string.IsNullOrEmpty(uriPrefix));
System\Net\WebSockets\HttpWebSocket.cs (2)
35if (string.IsNullOrEmpty(clientSecWebSocketProtocol)) 118if (string.IsNullOrEmpty(secWebSocketVersion))
System.Net.Mail (38)
System\Net\BufferBuilder.cs (1)
66if (string.IsNullOrEmpty(value))
System\Net\Mail\Attachment.cs (5)
127if (string.IsNullOrEmpty(mediaType)) 201if (string.IsNullOrEmpty(cid)) 216if (string.IsNullOrEmpty(value)) 310if (string.IsNullOrEmpty(contentType.Name)) 344if (!allowUnicode && !string.IsNullOrEmpty(_name) && !MimeBasePart.IsAscii(_name, false))
System\Net\Mail\MailAddress.cs (5)
126else if (string.IsNullOrEmpty(address)) 136if (!string.IsNullOrEmpty(displayName)) 169if (string.IsNullOrEmpty(displayName)) 272if (string.IsNullOrEmpty(DisplayName)) 311if (!string.IsNullOrEmpty(_displayName))
System\Net\Mail\MailAddressParser.cs (1)
69Debug.Assert(!string.IsNullOrEmpty(data));
System\Net\Mail\MailMessage.cs (4)
326if (!string.IsNullOrEmpty(_body)) 336if (!string.IsNullOrEmpty(_body)) 365if (!string.IsNullOrEmpty(_body)) 418else if (viewsPart.Parts.Count == 1 && string.IsNullOrEmpty(_body))
System\Net\Mail\MailPriority.cs (1)
382if (!string.IsNullOrEmpty(_subject))
System\Net\Mail\SmtpClient.cs (2)
96if (!string.IsNullOrEmpty(_host)) 699if (string.IsNullOrEmpty(_host))
System\Net\Mail\WhitespaceReader.cs (2)
34Debug.Assert(!string.IsNullOrEmpty(data), "data was null or empty"); 117Debug.Assert(!string.IsNullOrEmpty(data), "data was null or empty");
System\Net\Mime\ContentDisposition.cs (4)
97if (string.IsNullOrEmpty(value)) 263if (string.IsNullOrEmpty(_dispositionType)) 315if (string.IsNullOrEmpty(paramAttribute) || string.IsNullOrEmpty(paramValue))
System\Net\Mime\ContentType.cs (5)
60if (string.IsNullOrEmpty(value)) 76if (string.IsNullOrEmpty(value)) 227if (string.IsNullOrEmpty(_mediaType) || offset >= _type.Length || _type[offset++] != '/') 233if (string.IsNullOrEmpty(_subType)) 252if (string.IsNullOrEmpty(paramAttribute))
System\Net\Mime\MimeBasePart.cs (4)
50if (string.IsNullOrEmpty(value)) 95if (string.IsNullOrEmpty(value)) 124if (string.IsNullOrEmpty(value)) 140if (string.IsNullOrEmpty(value))
System\Net\Mime\SmtpDateTime.cs (3)
175Debug.Assert(!string.IsNullOrEmpty(offset), "violation of precondition: offset must not be null or empty"); 211Debug.Assert(!string.IsNullOrEmpty(value), "violation of precondition: offset must not be null or empty"); 231if (string.IsNullOrEmpty(data))
System\Net\TrackingValidationObjectDictionary.cs (1)
56if (!string.IsNullOrEmpty(value))
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (1)
63if (!string.IsNullOrEmpty(interfaceName) && interfaceName != token[9])
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
353if (string.IsNullOrEmpty(hostNameOrAddress)) 633if (string.IsNullOrEmpty(hostNameOrAddress))
System.Net.Primitives (8)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (1)
773bool first = cookie == null || string.IsNullOrEmpty(cookie.Name);
System\Net\Cookie.cs (4)
232if (string.IsNullOrEmpty(value) || !InternalSetName(value)) 240if (string.IsNullOrEmpty(value) 377if (string.IsNullOrEmpty(m_name) || 502if (string.IsNullOrEmpty(value))
System\Net\CookieContainer.cs (1)
608if (string.IsNullOrEmpty(cookie.Name))
System\Net\CredentialCache.cs (1)
356Debug.Assert(!string.IsNullOrEmpty(host));
System\Net\NetworkCredential.cs (1)
180if (string.IsNullOrEmpty(str))
System.Net.Quic (3)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (1)
31if (string.IsNullOrEmpty(hostName))
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
20if (string.IsNullOrEmpty(targetHost))
System\Net\Quic\Internal\MsQuicApi.cs (1)
99string path = !ShouldUseAppLocalMsQuic() && typeof(MsQuicApi).Assembly.Location is string assemblyLocation && !string.IsNullOrEmpty(assemblyLocation)
System.Net.Requests (8)
src\runtime\src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (1)
41if (string.IsNullOrEmpty(value))
System\Net\Authorization.cs (2)
22Message = string.IsNullOrEmpty(token) ? null : token; 23ConnectionGroupId = string.IsNullOrEmpty(connectionGroupId) ? null : connectionGroupId;
System\Net\FtpControlStream.cs (2)
521if (!string.IsNullOrEmpty(domain)) 1157return string.IsNullOrEmpty(parameter) ?
System\Net\HttpWebRequest.cs (1)
218if (!string.IsNullOrEmpty(value))
System\Net\HttpWebResponse.cs (2)
147if (string.IsNullOrEmpty(lastmodHeaderValue)) 174return string.IsNullOrEmpty(server) ? string.Empty : server;
System.Net.Security (21)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs (1)
65if (!string.IsNullOrEmpty(helpText))
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
385string.IsNullOrEmpty(sslAuthenticationOptions.TargetHost) || 464if (!string.IsNullOrEmpty(sslAuthenticationOptions.TargetHost) && !IPAddress.IsValid(sslAuthenticationOptions.TargetHost))
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (2)
190if (!string.IsNullOrEmpty(targetName)) 261if (_sslSessions == null || string.IsNullOrEmpty(name))
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\GssSafeHandles.cs (4)
18Debug.Assert(!string.IsNullOrEmpty(name), "Invalid user name passed to SafeGssNameHandle create"); 35Debug.Assert(!string.IsNullOrEmpty(name), "Invalid target name passed to SafeGssNameHandle create"); 104if (string.IsNullOrEmpty(username)) 114if (string.IsNullOrEmpty(password))
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
298if (!string.IsNullOrEmpty(requestFragment)) 301if (string.IsNullOrEmpty(redirectFragment))
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Unix.cs (1)
31if (string.IsNullOrEmpty(hostName))
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
20if (string.IsNullOrEmpty(targetHost))
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
203if (string.IsNullOrEmpty(_spn))
System\Net\Security\NegotiateAuthentication.cs (2)
280if (!string.IsNullOrEmpty(incomingBlob)) 473if (string.IsNullOrEmpty(clientSpn))
System\Net\Security\TlsSession.cs (4)
223return string.IsNullOrEmpty(_sessionTargetHost) ? null : _sessionTargetHost; 225return string.IsNullOrEmpty(_options.TargetHost) ? null : _options.TargetHost; 929if (!string.IsNullOrEmpty(parsed.Value.ServerName)) 1634if (!string.IsNullOrEmpty(frameInfo.TargetName))
System\Net\Security\TlsSession.OpenSsl.cs (1)
162if (!string.IsNullOrEmpty(parsed.Value.ServerName))
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (1)
4006private static SafeFileHandle? OpenFileHandle(string? name) => string.IsNullOrEmpty(name) ? null : File.OpenHandle(name, FileMode.Open, FileAccess.Read);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
278if (!string.IsNullOrEmpty(dirname) && !Directory.Exists(dirname))
System.Net.WebClient (9)
System\Net\WebClient.cs (9)
158if (string.IsNullOrEmpty(value)) 742if (!string.IsNullOrEmpty(accept)) 747if (!string.IsNullOrEmpty(connection)) 752if (!string.IsNullOrEmpty(contentType)) 757if (!string.IsNullOrEmpty(expect)) 762if (!string.IsNullOrEmpty(referrer)) 767if (!string.IsNullOrEmpty(userAgent)) 772if (!string.IsNullOrEmpty(host)) 809if (string.IsNullOrEmpty(uri.Query) && _requestParameters != null)
System.Net.WebHeaderCollection (4)
src\runtime\src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (1)
41if (string.IsNullOrEmpty(value))
System\Net\WebHeaderCollection.cs (3)
109if (string.IsNullOrEmpty(name)) 307if (string.IsNullOrEmpty(header)) 362if (string.IsNullOrEmpty(name))
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
307if (string.IsNullOrEmpty(userInfo))
System.Net.WebSockets (4)
src\runtime\src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (3)
59if (closeStatus == WebSocketCloseStatus.Empty && !string.IsNullOrEmpty(statusDescription)) 84if (!string.IsNullOrEmpty(statusDescription) && 97Debug.Assert(!string.IsNullOrEmpty(parameterName), "'parameterName' MUST NOT be NULL or string.Empty");
System\Net\WebSockets\ManagedWebSocket.cs (1)
1552if (string.IsNullOrEmpty(closeStatusDescription))
System.Net.WebSockets.Client (3)
src\runtime\src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (3)
59if (closeStatus == WebSocketCloseStatus.Empty && !string.IsNullOrEmpty(statusDescription)) 84if (!string.IsNullOrEmpty(statusDescription) && 97Debug.Assert(!string.IsNullOrEmpty(parameterName), "'parameterName' MUST NOT be NULL or string.Empty");
System.Private.CoreLib (136)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
141Debug.Assert(!string.IsNullOrEmpty(path));
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 144return !string.IsNullOrEmpty(path) ? 149return !string.IsNullOrEmpty(path) ? 154return !string.IsNullOrEmpty(path) ? 165if (!string.IsNullOrEmpty(path)) 187string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (3)
55if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) 224!string.IsNullOrEmpty(path) && IsDirectorySeparator(path[^1]);
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (2)
41if (string.IsNullOrEmpty(path)) 91return string.IsNullOrEmpty(path);
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
107if (!TryGetNextToken(out string name, out Token token) || token != Token.String || string.IsNullOrEmpty(name))
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (2)
80if (!string.IsNullOrEmpty(_paramName)) 106if (string.IsNullOrEmpty(argument))
src\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (2)
100if (!string.IsNullOrEmpty(_fileName)) 103if (!string.IsNullOrEmpty(_requestingAssemblyChain))
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
107if (!(string.IsNullOrEmpty(message)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (3)
365if (string.IsNullOrEmpty(formats[i])) 608if (string.IsNullOrEmpty(formats[i])) 805if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
1397if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (4)
78if (string.IsNullOrEmpty(home)) 167Debug.Assert(!string.IsNullOrEmpty(homeDir), $"Expected non-empty homeDir"); 168Debug.Assert(!string.IsNullOrEmpty(key), $"Expected non-empty key"); 169Debug.Assert(!string.IsNullOrEmpty(fallback), $"Expected non-empty fallback");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (2)
136if (!string.IsNullOrEmpty(message)) 156if (!string.IsNullOrEmpty(message))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.cs (6)
149if (this.saMonthGenitiveNames == null || this.saMonthGenitiveNames.Length == 0 || string.IsNullOrEmpty(this.saMonthGenitiveNames[0])) 151if (this.saAbbrevMonthGenitiveNames == null || this.saAbbrevMonthGenitiveNames.Length == 0 || string.IsNullOrEmpty(this.saAbbrevMonthGenitiveNames[0])) 153if (this.saLeapYearMonthNames == null || this.saLeapYearMonthNames.Length == 0 || string.IsNullOrEmpty(this.saLeapYearMonthNames[0])) 258this.saEraNames == null || this.saEraNames.Length == 0 || string.IsNullOrEmpty(this.saEraNames[0]); 270if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || string.IsNullOrEmpty(this.saAbbrevEraNames[0])) 311if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || string.IsNullOrEmpty(this.saAbbrevEraNames[0]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (12)
425if (string.IsNullOrEmpty(cultureName)) 665if (string.IsNullOrEmpty(cultureName) || cultureName.Equals(UndeterminedCultureName, StringComparison.OrdinalIgnoreCase)) 880if (!string.IsNullOrEmpty(localeName)) 946if (string.IsNullOrEmpty(localizedDisplayName) && IsNeutralCulture) 978if (string.IsNullOrEmpty(englishDisplayName)) 997if (string.IsNullOrEmpty(englishDisplayName)) 1040if (string.IsNullOrEmpty(nativeDisplayName)) 1061if (string.IsNullOrEmpty(nativeDisplayName)) 1900internal bool IsInvariantCulture => string.IsNullOrEmpty(Name); 1966if (string.IsNullOrEmpty(longTimeFormat)) 2277if (string.IsNullOrEmpty(nfi._positiveSign)) 2285if (string.IsNullOrEmpty(nfi._currencyDecimalSeparator))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
288if (string.IsNullOrEmpty(win32Str))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
501if (string.IsNullOrEmpty(parentName))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
924if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
2424if (string.IsNullOrEmpty(str))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
200if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (2)
51if (string.IsNullOrEmpty(value)) 54if (string.IsNullOrEmpty(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
21if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
1685if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1211if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (1)
58if (!string.IsNullOrEmpty(DirectoryPath))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (1)
66else if (string.IsNullOrEmpty(expression) || expression == "." || expression == "*.*")
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (1)
18if (string.IsNullOrEmpty(expression) || expression == "*" || expression == "*.*")
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
1125Debug.Assert(!string.IsNullOrEmpty(path)); 1335Debug.Assert(!string.IsNullOrEmpty(path));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (2)
55if (!string.IsNullOrEmpty(FileName)) 58if (!string.IsNullOrEmpty(_requestingAssemblyChain))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (2)
78if (!string.IsNullOrEmpty(FileName)) 81if (!string.IsNullOrEmpty(_requestingAssemblyChain))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (11)
95if (string.IsNullOrEmpty(path)) 489if (string.IsNullOrEmpty(path1)) 492if (string.IsNullOrEmpty(path2)) 500if (string.IsNullOrEmpty(path1)) 503if (string.IsNullOrEmpty(path2)) 506if (string.IsNullOrEmpty(path3)) 514if (string.IsNullOrEmpty(path1)) 517if (string.IsNullOrEmpty(path2)) 520if (string.IsNullOrEmpty(path3)) 523if (string.IsNullOrEmpty(path4)) 560if (string.IsNullOrEmpty(path))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (2)
56Debug.Assert(!string.IsNullOrEmpty(path)); 90string.IsNullOrEmpty(path) ? DefaultTempPath :
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (2)
37if (string.IsNullOrEmpty(userHomeDirectory)) 55if (!string.IsNullOrEmpty(userHomeDirectory))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
449if (string.IsNullOrEmpty(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (6)
1128if (string.IsNullOrEmpty(format)) 1246if (string.IsNullOrEmpty(format)) 1358if (string.IsNullOrEmpty(format)) 1478if (string.IsNullOrEmpty(format)) 1590if (string.IsNullOrEmpty(format)) 1712if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (1)
94if (string.IsNullOrEmpty(name))
src\runtime\src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
113_versionString = string.IsNullOrEmpty(_servicePack) ?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
321if (string.IsNullOrEmpty(requestorPath))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
250if (string.IsNullOrEmpty(this.Name))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
283if (i == nestings.Count - 1 && !string.IsNullOrEmpty(enclosingType.Namespace))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
103metaParameter = string.IsNullOrEmpty(parameter.Name) ? metaMethod.ReturnParameter : GetMetaParameter(metaMethod, parameter);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ContractHelper.cs (4)
90if (string.IsNullOrEmpty(displayMessage)) 100bool hasConditionText = !string.IsNullOrEmpty(conditionText); 136if (!string.IsNullOrEmpty(conditionText)) 146if (!string.IsNullOrEmpty(userMessage))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (1)
57if (!string.IsNullOrEmpty(message))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (1)
56if (!string.IsNullOrEmpty(message))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
53_fullName ??= string.IsNullOrEmpty(Profile) ?
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (1)
25Debug.Assert(!string.IsNullOrEmpty(values[0]));
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (3)
39if (null == startupHooksVariable && string.IsNullOrEmpty(diagnosticStartupHooks)) 44if (!string.IsNullOrEmpty(diagnosticStartupHooks)) 113if (string.IsNullOrEmpty(startupHookPart))
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (12)
204if (IsNullOrEmpty(str0)) 206if (IsNullOrEmpty(str1)) 213if (IsNullOrEmpty(str1)) 238if (IsNullOrEmpty(str0)) 243if (IsNullOrEmpty(str1)) 248if (IsNullOrEmpty(str2)) 271if (IsNullOrEmpty(str0)) 276if (IsNullOrEmpty(str1)) 281if (IsNullOrEmpty(str2)) 286if (IsNullOrEmpty(str3)) 455if (!IsNullOrEmpty(value)) 2459if (IsNullOrEmpty(separator))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.Unix.cs (1)
21if (!string.IsNullOrEmpty(name))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\NamedWaitHandleOptions.cs (1)
100Debug.Assert(!string.IsNullOrEmpty(name));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
82if (!string.IsNullOrEmpty(thread.Name))
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
652if (ex != null && !string.IsNullOrEmpty(ex.Message))
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (3)
533if (string.IsNullOrEmpty(formats[i])) 777if (string.IsNullOrEmpty(formats[i])) 976if (string.IsNullOrEmpty(format))
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (2)
149if (result && !string.IsNullOrEmpty(timeZoneDisplayName)) 279if (!string.IsNullOrEmpty(exemplarCityName))
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
623AdjustmentRule? r = !string.IsNullOrEmpty(futureTransitionsPosixFormat) ?
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (7)
189if (!string.IsNullOrEmpty(zoneTabFileLine) && zoneTabFileLine[0] != '#') 212if (!string.IsNullOrEmpty(timeZoneId)) 227if (!string.IsNullOrEmpty(result)) 358if (string.IsNullOrEmpty(id)) 362if (string.IsNullOrEmpty(id)) 442if (string.IsNullOrEmpty(tzVariable)) 509if (string.IsNullOrEmpty(tzDirectory))
System\Diagnostics\StackFrame.NativeAot.cs (1)
134if (string.IsNullOrEmpty(moduleFullFileName))
System\Runtime\InteropServices\Marshal.NativeAot.cs (1)
37if (string.IsNullOrEmpty(fieldName))
System.Private.CoreLib.Generators (9)
NativeRuntimeEventSourceGenerator.cs (7)
31if (string.IsNullOrEmpty(manifestText)) 64if (string.IsNullOrEmpty(inclusionText)) 74if (string.IsNullOrEmpty(trimmed) || trimmed.StartsWith("#")) 187if (!string.IsNullOrEmpty(keywords)) 245if (!string.IsNullOrEmpty(name)) 318if (!string.IsNullOrEmpty(templateValue) 337if (!string.IsNullOrEmpty(data.Attribute("count")?.Value))
ProductVersionInfoGenerator.cs (1)
23if (string.IsNullOrEmpty(productVersion))
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
System.Private.DataContractSerialization (58)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (3)
90if (!string.IsNullOrEmpty(type.Namespace)) 124if (string.IsNullOrEmpty(typeName)) 318if (string.IsNullOrEmpty(_baseType))
System\Runtime\Serialization\Attributes.cs (2)
106if (string.IsNullOrEmpty(Id)) 115if (string.IsNullOrEmpty(Ref))
System\Runtime\Serialization\ClassDataContract.cs (1)
858if (string.IsNullOrEmpty(memberAttribute.Name))
System\Runtime\Serialization\CollectionDataContract.cs (3)
458if (string.IsNullOrEmpty(collectionContractAttribute.ItemName)) 465if (string.IsNullOrEmpty(collectionContractAttribute.KeyName)) 473if (string.IsNullOrEmpty(collectionContractAttribute.ValueName))
System\Runtime\Serialization\DataContract.cs (2)
1291if (string.IsNullOrEmpty(name)) 1403if (string.IsNullOrEmpty(name))
System\Runtime\Serialization\EnumDataContract.cs (1)
239if (string.IsNullOrEmpty(memberAttribute.Value))
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
126_typeName = string.IsNullOrEmpty(traditionalDataContract.Namespace.Value) ? traditionalDataContract.Name.Value : string.Concat(traditionalDataContract.Name.Value, JsonGlobals.NameValueSeparatorString, XmlObjectSerializerWriteContextComplexJson.TruncateDefaultDataContractNamespace(traditionalDataContract.Namespace.Value));
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
166_typeName = string.IsNullOrEmpty(traditionalDataContract.Namespace.Value) ? traditionalDataContract.Name.Value : string.Concat(traditionalDataContract.Name.Value, JsonGlobals.NameValueSeparatorString, XmlObjectSerializerWriteContextComplexJson.TruncateDefaultDataContractNamespace(traditionalDataContract.Namespace.Value));
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (5)
35if (string.IsNullOrEmpty(qname)) 140if (!string.IsNullOrEmpty(originalDateTimeValue)) 149if (string.IsNullOrEmpty(dateTimeValue) || 264if (string.IsNullOrEmpty(value)) 297if (string.IsNullOrEmpty(value))
System\Runtime\Serialization\Json\XmlJsonWriter.cs (7)
509if (!string.IsNullOrEmpty(_attributeText) && _isWritingXmlnsAttributeDefaultNs) 708if (!string.IsNullOrEmpty(prefix)) 729if (!string.IsNullOrEmpty(ns)) 735else if (string.IsNullOrEmpty(prefix) && localName == JsonGlobals.xmlnsPrefix && ns == xmlnsNamespace) 835if (!string.IsNullOrEmpty(prefix)) 837if (string.IsNullOrEmpty(ns) || !TrySetWritingNameWithMapping(localName, ns)) 842if (!string.IsNullOrEmpty(ns))
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
161if (!string.IsNullOrEmpty(serverTypeNamespace)) 194if (!string.IsNullOrEmpty(serverTypeNamespace)) 225if (string.IsNullOrEmpty(qname))
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
64if (string.IsNullOrEmpty(dataContractNamespace)) 77if (!string.IsNullOrEmpty(dataContractNamespace))
System\Runtime\Serialization\ReflectionReader.cs (1)
289if (!string.IsNullOrEmpty(objectId) && typeIsValueType)
System\Runtime\Serialization\SchemaExporter.cs (4)
597if (string.IsNullOrEmpty(xmlName.Name)) 621if (string.IsNullOrEmpty(methodName)) 656if (string.IsNullOrEmpty(typeName)) 703if (string.IsNullOrEmpty(schema.Id))
System\Runtime\Serialization\SchemaHelper.cs (2)
45if (string.IsNullOrEmpty(ns1)) 46return string.IsNullOrEmpty(ns2);
System\Runtime\Serialization\SchemaImporter.cs (1)
503|| (string.IsNullOrEmpty(type.Name) && _dataContractSet.TryGetReferencedType(ImportActualType(type.Annotation, typeName, typeName), dataContract, out referencedType)))
System\Runtime\Serialization\XmlDataContract.cs (2)
171_topLevelElementName = string.IsNullOrEmpty(elementName) ? Name : dictionary.Add(DataContract.EncodeLocalName(elementName)); 173_topLevelElementNamespace = string.IsNullOrEmpty(elementNs) ? DictionaryGlobals.EmptyString : dictionary.Add(elementNs);
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
251if (string.IsNullOrEmpty(contractNs) || contractNs == XmlDictionaryString.GetString(ns))
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1072XmlAttribute attribute = string.IsNullOrEmpty(prefix) ?
System\Runtime\Serialization\XmlReaderDelegator.cs (3)
707if (string.IsNullOrEmpty(str)) 717if (string.IsNullOrEmpty(str)) 856if (string.IsNullOrEmpty(str))
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
147if (string.IsNullOrEmpty(prefix))
System\Xml\XmlBinaryWriter.cs (5)
148if (string.IsNullOrEmpty(prefix)) 185if (string.IsNullOrEmpty(prefix)) 310if (string.IsNullOrEmpty(prefix)) 332if (string.IsNullOrEmpty(prefix)) 1077if (string.IsNullOrEmpty(_captureText))
System\Xml\XmlUTF8TextReader.cs (1)
656if (string.IsNullOrEmpty(s))
System\Xml\XmlUTF8TextWriter.cs (5)
166if (!string.IsNullOrEmpty(prefix)) 177if (!string.IsNullOrEmpty(prefix)) 231if (!string.IsNullOrEmpty(prefix)) 243if (!string.IsNullOrEmpty(prefix)) 273if (!string.IsNullOrEmpty(prefix))
System.Private.StackTraceMetadata (1)
Internal\StackTraceMetadata\MethodNameFormatter.cs (1)
157if (!string.IsNullOrEmpty(name))
System.Private.TypeLoader (3)
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\MetadataTypeHashingAlgorithms.cs (2)
31Debug.Assert(string.IsNullOrEmpty(reader.GetString(namespaceDefinition.Name)), "Root namespace with a name?"); 52Debug.Assert(string.IsNullOrEmpty(reader.GetString(namespaceReference.Name)), "Root namespace with a name?");
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ThrowHelper.Common.cs (1)
84return string.IsNullOrEmpty(@namespace) ? name : @namespace + "." + name;
System.Private.Uri (8)
System\Uri.cs (3)
1288if (string.IsNullOrEmpty(name)) 1486!string.IsNullOrEmpty(schemeName) && 2588if (string.IsNullOrEmpty(portStr))
System\UriBuilder.cs (5)
71if (!string.IsNullOrEmpty(extraValue)) 173if (!string.IsNullOrEmpty(value) && value.AsSpan().ContainsAny(s_hostReservedChars)) 220_path = string.IsNullOrEmpty(value) 233if (!string.IsNullOrEmpty(value) && value[0] != '?') 249if (!string.IsNullOrEmpty(value) && value[0] != '#')
System.Private.Windows.Core (3)
System\ArgumentValidation.cs (2)
37if (string.IsNullOrEmpty(argument)) 45if (string.IsNullOrEmpty(argument))
System\Private\Windows\Ole\DataObjectExtensions.cs (1)
26if (string.IsNullOrEmpty(path) || path.Contains('\0'))
System.Private.Windows.Core.TestUtilities (2)
ThrowingTraceListener.cs (2)
13$"{(string.IsNullOrEmpty(message) ? "Assertion failed" : message)}{(string.IsNullOrEmpty(detailMessage)
System.Private.Xml (194)
src\runtime\src\libraries\Common\src\System\CSharpHelpers.cs (1)
145if (string.IsNullOrEmpty(value))
System\Xml\Cache\XPathDocumentBuilder.cs (1)
906if (!string.IsNullOrEmpty(text))
System\Xml\Core\HtmlEncodedRawTextWriter.cs (5)
97Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 288Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 356Debug.Assert(!string.IsNullOrEmpty(target) && text != null); 816Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 880Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\HtmlUtf8RawTextWriter.cs (5)
90Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 275Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 339Debug.Assert(!string.IsNullOrEmpty(target) && text != null); 788Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 850Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\QueryOutputWriter.cs (1)
165string.IsNullOrEmpty(prefix) ? localName : $"{prefix}:{localName}",
System\Xml\Core\QueryOutputWriterV1.cs (1)
148string.IsNullOrEmpty(prefix) ? localName : $"{prefix}:{localName}",
System\Xml\Core\XmlEncodedRawTextWriter.cs (4)
300if (!string.IsNullOrEmpty(prefix)) 337if (!string.IsNullOrEmpty(prefix)) 366if (!string.IsNullOrEmpty(prefix)) 1960Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (4)
184if (!string.IsNullOrEmpty(prefix)) 216if (!string.IsNullOrEmpty(prefix)) 248if (!string.IsNullOrEmpty(prefix)) 1919Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlTextReaderImpl.cs (5)
466if (string.IsNullOrEmpty(url)) 509if (context == null || string.IsNullOrEmpty(context.BaseURI)) 2588if (_ps.baseUri == null && !string.IsNullOrEmpty(_ps.baseUriStr)) 7905if (!string.IsNullOrEmpty(publicId)) 8003if (!string.IsNullOrEmpty(entity.BaseUriString))
System\Xml\Core\XmlTextReaderImplAsync.cs (3)
837if (_ps.baseUri == null && !string.IsNullOrEmpty(_ps.baseUriStr)) 5105if (!string.IsNullOrEmpty(publicId)) 5203if (!string.IsNullOrEmpty(entity.BaseUriString))
System\Xml\Core\XmlTextWriter.cs (10)
498if (!string.IsNullOrEmpty(prefix) && (LookupNamespace(prefix) == -1)) 533if (!string.IsNullOrEmpty(prefix)) 542if (!string.IsNullOrEmpty(ns) || !string.IsNullOrEmpty(prefix)) 613if (string.IsNullOrEmpty(localName)) 674if (!string.IsNullOrEmpty(prefix)) 682if (!string.IsNullOrEmpty(ns) || !string.IsNullOrEmpty(prefix)) 1061if (!string.IsNullOrEmpty(ns) && ns != _stack[_top].defaultNs) 1082else if (!string.IsNullOrEmpty(ns))
System\Xml\Core\XmlUtf8RawTextWriter.cs (4)
242if (!string.IsNullOrEmpty(prefix)) 277if (!string.IsNullOrEmpty(prefix)) 304if (!string.IsNullOrEmpty(prefix)) 1820Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (4)
158if (!string.IsNullOrEmpty(prefix)) 188if (!string.IsNullOrEmpty(prefix)) 218if (!string.IsNullOrEmpty(prefix)) 1787Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
1016if (string.IsNullOrEmpty(_parserContext.DocTypeName))
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
178if (string.IsNullOrEmpty(_parserContext.DocTypeName))
System\Xml\Core\XmlWellFormedWriter.cs (3)
601if (string.IsNullOrEmpty(localName)) 654if (string.IsNullOrEmpty(prefix)) 1284if (!string.IsNullOrEmpty(ns))
System\Xml\Core\XmlWellFormedWriterAsync.cs (3)
444if (string.IsNullOrEmpty(localName)) 515if (string.IsNullOrEmpty(prefix)) 1138if (!string.IsNullOrEmpty(ns))
System\Xml\Core\XmlWriter.cs (3)
229if (!string.IsNullOrEmpty(ns)) 553if (!string.IsNullOrEmpty(value)) 565if (!string.IsNullOrEmpty(value))
System\Xml\Core\XmlWriterAsync.cs (2)
215if (!string.IsNullOrEmpty(ns)) 548if (!string.IsNullOrEmpty(value))
System\Xml\Core\XsdValidatingReader.cs (1)
245if (!string.IsNullOrEmpty(prefix))
System\Xml\Dom\XmlDomTextWriter.cs (4)
30if (string.IsNullOrEmpty(ns) && !string.IsNullOrEmpty(prefix)) 40if (string.IsNullOrEmpty(ns) && !string.IsNullOrEmpty(prefix))
System\Xml\Dom\XmlEntityReference.cs (1)
210if (!string.IsNullOrEmpty(ent.SystemId))
System\Xml\Dom\XmlNodeReader.cs (3)
367if (!string.IsNullOrEmpty(strTemp)) 374if (!string.IsNullOrEmpty(strTemp)) 381if (!string.IsNullOrEmpty(strTemp))
System\Xml\Schema\DataTypeImplementation.cs (6)
1880if (string.IsNullOrEmpty(s)) 1911if (string.IsNullOrEmpty(s)) 1950if (string.IsNullOrEmpty(s)) 2705if (string.IsNullOrEmpty(s)) 3038if (string.IsNullOrEmpty(s)) 3736if (string.IsNullOrEmpty(s))
System\Xml\Schema\FacetChecker.cs (1)
1455if (string.IsNullOrEmpty(s))
System\Xml\Schema\Preprocessor.cs (3)
116else if (!string.IsNullOrEmpty(targetNamespace)) 635else if (!string.IsNullOrEmpty(targetNamespace)) 2076if (string.IsNullOrEmpty(name))
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
1733if (string.IsNullOrEmpty(name))
System\Xml\Schema\XmlSchema.cs (1)
175if (!string.IsNullOrEmpty(_targetNs))
System\Xml\Schema\XmlSchemaAny.cs (1)
41if (string.IsNullOrEmpty(_ns))
System\Xml\Schema\XmlSchemaCollection.cs (1)
98if (string.IsNullOrEmpty(uri))
System\Xml\Schema\XmlSchemaSet.cs (1)
209if (string.IsNullOrEmpty(schemaUri))
System\Xml\Schema\XmlSchemaValidator.cs (1)
1038if (string.IsNullOrEmpty(defaultPrefix))
System\Xml\Serialization\CodeIdentifier.cs (2)
257if (string.IsNullOrEmpty(identifier)) 282if (string.IsNullOrEmpty(identifier)) return identifier;
System\Xml\Serialization\Compilation.cs (6)
235if (!string.IsNullOrEmpty(type.Assembly.Location)) 240if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location)) 245if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(AppContext.BaseDirectory)) 250if (!string.IsNullOrEmpty(path))
System\Xml\Serialization\Compiler.cs (1)
87return string.IsNullOrEmpty(ns) ?
System\Xml\Serialization\Mappings.cs (4)
106if (string.IsNullOrEmpty(name)) return name; 113if (string.IsNullOrEmpty(name)) return name; 359get { return string.IsNullOrEmpty(_typeName); } 1389if (string.IsNullOrEmpty(_schema.Id)) throw new InvalidOperationException(SR.Format(SR.XmlSerializableNameMissing1, _type!.FullName));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
611Debug.Assert(!string.IsNullOrEmpty(memberName), "memberName must have a value"); 1724if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name))
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
484if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) 495if (string.IsNullOrEmpty(enumValue)) 1290return string.IsNullOrEmpty((string)o);
System\Xml\Serialization\SchemaObjectWriter.cs (5)
163if (string.IsNullOrEmpty(value)) 167if (!string.IsNullOrEmpty(ns)) 307if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && !string.IsNullOrEmpty(o.QualifiedName.Namespace)) 985if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && !string.IsNullOrEmpty(o.QualifiedName.Namespace)) 994if (!string.IsNullOrEmpty(o.Name))
System\Xml\Serialization\SoapReflectionImporter.cs (3)
125element.Name = string.IsNullOrEmpty(elementName) ? elementName : XmlConvert.EncodeLocalName(elementName); 207TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 208string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc!.Name : dataType;
System\Xml\Serialization\XmlAttributes.cs (1)
118if (string.IsNullOrEmpty(any.Name) && any.GetNamespaceSpecified() && any.Namespace == null)
System\Xml\Serialization\XmlReflectionImporter.cs (5)
222element.Name = string.IsNullOrEmpty(elementName) ? elementName : XmlConvert.EncodeLocalName(elementName); 447TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 715if (string.IsNullOrEmpty(typeName)) 956return string.IsNullOrEmpty(originalNs) || originalNs == contextNs; 2034if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
System\Xml\Serialization\XmlSchemaExporter.cs (3)
269schema.TargetNamespace = string.IsNullOrEmpty(targetNamespace) ? null : targetNamespace; 316if (string.IsNullOrEmpty(ns1)) 317return string.IsNullOrEmpty(ns2);
System\Xml\Serialization\XmlSchemaImporter.cs (12)
466if (mapping != null && !string.IsNullOrEmpty(type.Name)) 557string typeName = string.IsNullOrEmpty(type.Name) ? GenerateUniqueTypeName(identifier, typeNs) : GenerateUniqueTypeName(identifier); 560structMapping.TypeName = string.IsNullOrEmpty(type.Name) ? null : identifier; 1296arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(arrayMapping.TypeDesc!.Name)}" : type.Name; 1313arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.Name)}" : type.Name; 1325if (!string.IsNullOrEmpty(type.Name)) 1841if (!string.IsNullOrEmpty(dataType.Name)) 1896if (!string.IsNullOrEmpty(dataType.Name)) 1992if (string.IsNullOrEmpty(ns)) 1999return string.IsNullOrEmpty(element.QualifiedName.Namespace) ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified; 2019if (string.IsNullOrEmpty(ns)) 2026return string.IsNullOrEmpty(attribute.QualifiedName.Namespace) ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified;
System\Xml\Serialization\XmlSchemas.cs (4)
471if (!string.IsNullOrEmpty(type.Name)) 492if (string.IsNullOrEmpty(ns)) 515if (string.IsNullOrEmpty(e.Name)) 536if (string.IsNullOrEmpty(a.Name))
System\Xml\Serialization\XmlSerializationReader.cs (5)
1185if (string.IsNullOrEmpty(prefix)) 1415if (string.IsNullOrEmpty(value)) 3397if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 4064if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 4307if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
1633if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 1811bool isNameNullOrEmpty = string.IsNullOrEmpty(name); 2293if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 2591if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue;
System\Xml\Serialization\XmlSerializationWriter.cs (15)
485if (string.IsNullOrEmpty(ns)) return name; 559if (string.IsNullOrEmpty(defaultNS)) 570if (string.IsNullOrEmpty(prefix)) 579if (needEmptyDefaultNamespace && prefix == null && !string.IsNullOrEmpty(ns)) 588if (alias.Length == 0 && string.IsNullOrEmpty(aliasNs)) 590if (string.IsNullOrEmpty(aliasNs)) 658if (string.IsNullOrEmpty(name)) 672if (string.IsNullOrEmpty(name)) 686if (string.IsNullOrEmpty(name)) 1010if (string.IsNullOrEmpty(prefix)) 1209if (string.IsNullOrEmpty(value.Namespace)) 1498string? oldPrefix = string.IsNullOrEmpty(ns) ? null : Writer.LookupPrefix(ns); 2080if (string.IsNullOrEmpty(arg)) 2518if (string.IsNullOrEmpty(values[i])) 4566if (string.IsNullOrEmpty(enumValue))
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
211if (string.IsNullOrEmpty(values[i])) 2307if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) 2315if (string.IsNullOrEmpty(enumValue))
System\Xml\Serialization\XmlSerializerNamespaces.cs (3)
120if (_namespaces == null || _namespaces.Count == 0 || string.IsNullOrEmpty(ns)) 125if (!string.IsNullOrEmpty(nsPair.Key) && nsPair.Value.Namespace == ns) 138if (_namespaces == null || _namespaces.Count == 0 || string.IsNullOrEmpty(prefix))
System\Xml\XmlConvert.cs (9)
78if (string.IsNullOrEmpty(name)) 173if (string.IsNullOrEmpty(name)) 331if (string.IsNullOrEmpty(name)) 347if (string.IsNullOrEmpty(name)) 404if (string.IsNullOrEmpty(token)) 421if (string.IsNullOrEmpty(token)) 467if (string.IsNullOrEmpty(name)) 1308if (!string.IsNullOrEmpty(s)) 1396if (string.IsNullOrEmpty(data))
System\Xml\XmlQualifiedName.cs (1)
117return string.IsNullOrEmpty(ns) ? name : $"{ns}:{name}";
System\Xml\XmlResolver.cs (1)
55if (string.IsNullOrEmpty(relativeUri))
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
163if (!string.IsNullOrEmpty(paramNames[i]))
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
117if (!string.IsNullOrEmpty(s)) 118this.writer.WriteComment(!string.IsNullOrEmpty(name) ? $"{name}: {s}" : s);
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (1)
86Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (2)
161Debug.Assert(prefix != null && !string.IsNullOrEmpty(localName) && ns != null, "Invalid argument"); 1398Debug.Assert(prefix != null && !string.IsNullOrEmpty(ns));
System\Xml\Xsl\Xslt\XsltLoader.cs (3)
1822if (!string.IsNullOrEmpty(ordinal)) ReportNYI("xsl:number/@ordinal"); 2829if (!string.IsNullOrEmpty(elements)) 2839else if (string.IsNullOrEmpty(prefix))
System\Xml\Xsl\XsltOld\BuilderInfo.cs (1)
172if (string.IsNullOrEmpty(s))
System\Xml\Xsl\XsltOld\Compiler.cs (1)
434if (string.IsNullOrEmpty(tokens))
System\Xml\Xsl\XsltOld\InputScopeManager.cs (2)
80if (string.IsNullOrEmpty(prefix)) 96Debug.Assert(!string.IsNullOrEmpty(prefix));
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
684if (string.IsNullOrEmpty(formatString))
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (2)
72if (string.IsNullOrEmpty(prefix)) 118if (string.IsNullOrEmpty(prefix))
System.Private.Xml.Linq (8)
System\Xml\Linq\XContainer.cs (2)
735if (!string.IsNullOrEmpty(s)) 956else if (!string.IsNullOrEmpty(_textValue))
System\Xml\Linq\XDocument.cs (4)
498if (!string.IsNullOrEmpty(baseUri)) 600if (_declaration != null && !string.IsNullOrEmpty(_declaration.Encoding)) 633if (_declaration != null && !string.IsNullOrEmpty(_declaration.Encoding)) 777if (_declaration != null && !string.IsNullOrEmpty(_declaration.Encoding))
System\Xml\Linq\XElement.cs (1)
2053if (!string.IsNullOrEmpty(baseUri))
System\Xml\Linq\XNodeReader.cs (1)
1136if (!string.IsNullOrEmpty(qualifiedName))
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
129name = string.IsNullOrEmpty(alcName) ? $"DispatchProxyTypes.{alc.GetHashCode()}" : $"DispatchProxyTypes.{new AssemblyName { Name = alcName }}";
System.Reflection.Emit (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
283if (i == nestings.Count - 1 && !string.IsNullOrEmpty(enclosingType.Namespace))
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
537if (!string.IsNullOrEmpty(local.Name))
System\Reflection\Emit\PseudoCustomAttributesData.cs (2)
32if (string.IsNullOrEmpty(moduleName)) 98if (string.IsNullOrEmpty(moduleName))
System.Reflection.Metadata (2)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
107if (!TryGetNextToken(out string name, out Token token) || token != Token.String || string.IsNullOrEmpty(name))
System\Reflection\PortableExecutable\DebugDirectory\PdbChecksumDebugDirectoryData.cs (1)
23Debug.Assert(!string.IsNullOrEmpty(algorithmName));
System.Reflection.MetadataLoadContext (2)
System\Reflection\PathAssemblyResolver.cs (1)
38if (string.IsNullOrEmpty(path))
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
42if (string.IsNullOrEmpty(location))
System.Runtime.Caching (6)
System\Runtime\Caching\Dbg.cs (1)
31if (string.IsNullOrEmpty(message) & exceptionMessage != null)
System\Runtime\Caching\FileChangeNotificationSystem.cs (4)
40if (string.IsNullOrEmpty(s1) && string.IsNullOrEmpty(s2)) 44if (string.IsNullOrEmpty(s1) || string.IsNullOrEmpty(s2))
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
181if (string.IsNullOrEmpty(path))
System.Runtime.InteropServices.JavaScript (4)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.CoreCLR.cs (1)
49var clazz = string.IsNullOrEmpty(nameSpace)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (3)
354if (string.IsNullOrEmpty(assembly)) 356if (string.IsNullOrEmpty(className)) 358if (string.IsNullOrEmpty(methodName))
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
454if (string.IsNullOrEmpty(clrNamespace)) 747return (string.IsNullOrEmpty(clrNamespace) && _clrNamespaces.ContainsKey(typeName)); 1535if (string.IsNullOrEmpty(dataContractNamespace))
System.Security.Claims (8)
System\Security\Claims\Claim.cs (3)
258_valueType = string.IsNullOrEmpty(valueType) ? ClaimValueTypes.String : valueType; 259_issuer = string.IsNullOrEmpty(issuer) ? ClaimsIdentity.DefaultIssuer : issuer; 260_originalIssuer = string.IsNullOrEmpty(originalIssuer) ? _issuer : originalIssuer;
System\Security\Claims\ClaimsIdentity.cs (5)
156_authenticationType = (identity != null && string.IsNullOrEmpty(authenticationType)) ? identity.AuthenticationType : authenticationType; 157_nameClaimType = !string.IsNullOrEmpty(nameType) ? nameType : (claimsIdentity != null ? claimsIdentity._nameClaimType : DefaultNameClaimType); 158_roleClaimType = !string.IsNullOrEmpty(roleType) ? roleType : (claimsIdentity != null ? claimsIdentity._roleClaimType : DefaultRoleClaimType); 184if (identity != null && !string.IsNullOrEmpty(identity.Name)) 324get { return !string.IsNullOrEmpty(_authenticationType); }
System.Security.Cryptography (35)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
298if (!string.IsNullOrEmpty(requestFragment)) 301if (string.IsNullOrEmpty(redirectFragment))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.HashAlgorithm.cs (1)
17if (name is null || string.IsNullOrEmpty(name.Value.Name))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (1)
39if (string.IsNullOrEmpty(curve.Oid.FriendlyName))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (1)
55if (string.IsNullOrEmpty(curve.Oid.FriendlyName))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
44if (string.IsNullOrEmpty(bagIdValue))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (2)
256if (string.IsNullOrEmpty(cngKey.KeyName)) 302Debug.Assert(string.IsNullOrEmpty(cngKey.KeyName));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
715if (string.IsNullOrEmpty(argument))
System\Security\Cryptography\CryptoConfig.cs (1)
553if (string.IsNullOrEmpty(oidName) && !DefaultOidHT.TryGetValue(name, out oidName))
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (2)
450Debug.Assert(!string.IsNullOrEmpty(hashAlgorithm.Name)); 464Debug.Assert(!string.IsNullOrEmpty(hashAlgorithm.Name));
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
515if (string.IsNullOrEmpty(oid.Value))
System\Security\Cryptography\ECCng.ImportExport.cs (2)
50if (string.IsNullOrEmpty(curveName)) 103if (string.IsNullOrEmpty(curveName))
System\Security\Cryptography\ECCurve.cs (4)
80if (string.IsNullOrEmpty(value.Value) && string.IsNullOrEmpty(value.FriendlyName)) 193(string.IsNullOrEmpty(Oid.FriendlyName) && string.IsNullOrEmpty(Oid.Value)))
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (1)
58if (string.IsNullOrEmpty(curve.Oid.FriendlyName))
System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs (1)
141if (string.IsNullOrEmpty(curveName))
System\Security\Cryptography\ECDsaCng.Key.cs (1)
47if (string.IsNullOrEmpty(curve.Oid.FriendlyName))
System\Security\Cryptography\HMACCommon.cs (2)
30Debug.Assert(!string.IsNullOrEmpty(hashAlgorithmId)); 44Debug.Assert(!string.IsNullOrEmpty(hashAlgorithmId));
System\Security\Cryptography\IncrementalHash.cs (2)
30Debug.Assert(!string.IsNullOrEmpty(name.Name)); 40Debug.Assert(!string.IsNullOrEmpty(name.Name));
System\Security\Cryptography\Rfc2898DeriveBytes.cs (1)
249if (string.IsNullOrEmpty(hashAlgorithm.Name))
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
252if (string.IsNullOrEmpty(keyContainerInfo.KeyContainerName))
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
509if (string.IsNullOrEmpty(HashAlgorithm.Name) && 1021if (string.IsNullOrEmpty(HashAlgorithm.Name) &&
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (1)
81if (string.IsNullOrEmpty(curveOid))
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (4)
22if (string.IsNullOrEmpty(emailAddress)) 30if (string.IsNullOrEmpty(dnsName)) 62if (string.IsNullOrEmpty(registeredId)) 70if (string.IsNullOrEmpty(upn))
System.Security.Cryptography.Pkcs (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
44if (string.IsNullOrEmpty(bagIdValue))
System\Security\Cryptography\Xml\X509IssuerSerial.cs (2)
14Debug.Assert(!string.IsNullOrEmpty(issuerName)); 15Debug.Assert(!string.IsNullOrEmpty(serialNumber));
System.Security.Cryptography.Xml (39)
System\Security\Cryptography\Xml\CipherReference.cs (1)
59if (!string.IsNullOrEmpty(Uri))
System\Security\Cryptography\Xml\DataObject.cs (3)
117if (!string.IsNullOrEmpty(_id)) 119if (!string.IsNullOrEmpty(_mimeType)) 121if (!string.IsNullOrEmpty(_encoding))
System\Security\Cryptography\Xml\EncryptedData.cs (4)
91if (!string.IsNullOrEmpty(Id)) 93if (!string.IsNullOrEmpty(Type)) 95if (!string.IsNullOrEmpty(MimeType)) 97if (!string.IsNullOrEmpty(Encoding))
System\Security\Cryptography\Xml\EncryptedKey.cs (5)
162if (!string.IsNullOrEmpty(Id)) 164if (!string.IsNullOrEmpty(Type)) 166if (!string.IsNullOrEmpty(MimeType)) 168if (!string.IsNullOrEmpty(Encoding)) 170if (!string.IsNullOrEmpty(Recipient))
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
94if (!string.IsNullOrEmpty(_uri))
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
70if (!string.IsNullOrEmpty(_algorithm))
System\Security\Cryptography\Xml\KeyInfo.cs (1)
45if (!string.IsNullOrEmpty(_id))
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (2)
58if (!string.IsNullOrEmpty(_uri)) 60if (!string.IsNullOrEmpty(_type))
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (2)
155if (string.IsNullOrEmpty(issuerName)) 158if (string.IsNullOrEmpty(serialNumber))
System\Security\Cryptography\Xml\Reference.cs (3)
172if (!string.IsNullOrEmpty(_id)) 178if (!string.IsNullOrEmpty(_type)) 186if (string.IsNullOrEmpty(_digestMethod))
System\Security\Cryptography\Xml\Signature.cs (2)
96if (!string.IsNullOrEmpty(_id)) 111if (!string.IsNullOrEmpty(_signatureValueId))
System\Security\Cryptography\Xml\SignedInfo.cs (2)
168if (!string.IsNullOrEmpty(_id)) 176if (string.IsNullOrEmpty(_signatureMethod))
System\Security\Cryptography\Xml\SignedXml.cs (1)
816if (string.IsNullOrEmpty(reference.Uri) || (reference.Uri.Length > 0 && reference.Uri[0] != '#'))
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (2)
268if (string.IsNullOrEmpty(friendlyName)) 1068Debug.Assert(!string.IsNullOrEmpty(data), "!string.IsNullOrEmpty(data)");
System\Security\Cryptography\Xml\Transform.cs (2)
131if (!string.IsNullOrEmpty(Algorithm)) 196(string.IsNullOrEmpty(reference.Uri) || reference.Uri[0] != '#')))
System\Security\Cryptography\Xml\Utils.cs (3)
332if (string.IsNullOrEmpty(uri)) 615if (string.IsNullOrEmpty(issuerName)) 617if (string.IsNullOrEmpty(serialNumber))
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
101if (string.IsNullOrEmpty(uri) || uri[0] != '#') 124if (!string.IsNullOrEmpty(Algorithm))
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (1)
100if (!string.IsNullOrEmpty(Algorithm))
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
162if (!string.IsNullOrEmpty(_xpathexpr))
System.Security.Principal.Windows (4)
System\Security\Principal\NTAccount.cs (1)
48if (string.IsNullOrEmpty(domainName))
System\Security\Principal\WindowsIdentity.cs (2)
242Debug.Assert(!string.IsNullOrEmpty(packageName)); 1045if (!string.IsNullOrEmpty(Name))
System\Security\Principal\WindowsPrincipal.cs (1)
52if (string.IsNullOrEmpty(role))
System.ServiceModel.Federation (3)
System\ServiceModel\Federation\WSTrustChannel.cs (1)
371throw new SecurityTokenException(SR.Format(SR.TokenProviderUnableToGetToken, string.IsNullOrEmpty(Address) ? ToString() : Address));
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
461RequestContext = string.IsNullOrEmpty(WSTrustTokenParameters.RequestContext) ? Guid.NewGuid().ToString() : WSTrustTokenParameters.RequestContext;
System\ServiceModel\Federation\WSTrustUtilities.cs (1)
63if (!string.IsNullOrEmpty(response.RequestedProofToken.ComputedKeyAlgorithm) || response.Entropy != null)
System.ServiceModel.Http (7)
System\ServiceModel\Channels\HttpChannelFactory.cs (3)
669if (!string.IsNullOrEmpty(inputString)) 723if (!string.IsNullOrEmpty(requestProperty.QueryString)) 1202if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
166if (string.IsNullOrEmpty(statusDescription))
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
140if (string.IsNullOrEmpty(_contentType)) 362if (!string.IsNullOrEmpty(statusDescription))
System\ServiceModel\Channels\MessageContent.cs (1)
76if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0)
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
103if (!string.IsNullOrEmpty(relativeAddress))
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
176str.Append(string.IsNullOrEmpty(name) ? "<null>" : name);
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
134if (string.IsNullOrEmpty(matchPipeName))
System.ServiceModel.Primitives (88)
Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (2)
96if (string.IsNullOrEmpty(text)) 129if (string.IsNullOrEmpty(retval))
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
104if (!string.IsNullOrEmpty(innerException) && innerException.Length < remainingLength)
Internals\System\Runtime\Fx.cs (2)
674if (string.IsNullOrEmpty(limit)) 808if (string.IsNullOrEmpty(diagnosis))
Internals\System\Runtime\UrlUtility.cs (3)
146if (string.IsNullOrEmpty(str)) 493if (!string.IsNullOrEmpty(str)) 599keyPrefix = (!string.IsNullOrEmpty(key)) ? (key + "=") : string.Empty;
System\IdentityModel\Claims\X509CertificateClaimSet.cs (11)
184if (!string.IsNullOrEmpty(value)) 202if (!string.IsNullOrEmpty(value)) 209if (!string.IsNullOrEmpty(value)) 215if (!string.IsNullOrEmpty(value)) 221if (!string.IsNullOrEmpty(value)) 292if (!string.IsNullOrEmpty(value)) 576if (!string.IsNullOrEmpty(value)) 582if (!string.IsNullOrEmpty(value)) 588if (!string.IsNullOrEmpty(value)) 594if (!string.IsNullOrEmpty(value)) 600if (!string.IsNullOrEmpty(value))
System\IdentityModel\CryptoHelper.cs (2)
211if (string.IsNullOrEmpty(algorithm)) 269if (string.IsNullOrEmpty(algorithm))
System\IdentityModel\SecurityUtils.cs (5)
221if (String.IsNullOrEmpty(value)) 224if (String.IsNullOrEmpty(value)) 227if (String.IsNullOrEmpty(value)) 230if (String.IsNullOrEmpty(value)) 238str.Append(String.IsNullOrEmpty(value) ? "<x509>" : value);
System\IdentityModel\SignatureResourcePool.cs (1)
20if (string.IsNullOrEmpty(algorithm))
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (4)
112if (string.IsNullOrEmpty(id)) 119if (string.IsNullOrEmpty(id)) 125if (string.IsNullOrEmpty(id)) 131if (!string.IsNullOrEmpty(id))
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
30if (string.IsNullOrEmpty(networkCredential.UserName))
System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (1)
65if (string.IsNullOrEmpty(localId))
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
213if (!string.IsNullOrEmpty(strId))
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (6)
128if (string.IsNullOrEmpty(algorithm)) 190if (string.IsNullOrEmpty(algorithm)) 233if (string.IsNullOrEmpty(algorithm)) 302if (string.IsNullOrEmpty(algorithm)) 386if (string.IsNullOrEmpty(algorithm)) 396if (string.IsNullOrEmpty(algorithm))
System\IdentityModel\Tokens\X509IssuerSerialKeyIdentifierClause.cs (2)
19if (string.IsNullOrEmpty(issuerName)) 24if (string.IsNullOrEmpty(issuerSerialNumber))
System\ServiceModel\Channels\Binding.cs (3)
29if (string.IsNullOrEmpty(name)) 78if (string.IsNullOrEmpty(value)) 254if (string.IsNullOrEmpty(transport.Scheme))
System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
83return String.IsNullOrEmpty(_data);
System\ServiceModel\Channels\MessageFault.cs (1)
709&& string.IsNullOrEmpty(prefix) // attribute prefix
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
352using (ServiceModelActivity activity = string.IsNullOrEmpty(activityName) ? null : ServiceModelActivity.CreateBoundedActivity())
System\ServiceModel\Description\ContractDescription.cs (3)
32if (!string.IsNullOrEmpty(ns)) 77if (!string.IsNullOrEmpty(value)) 199if (string.IsNullOrEmpty(Name))
System\ServiceModel\Description\MessagePartDescription.cs (1)
30if (!string.IsNullOrEmpty(ns))
System\ServiceModel\Description\ServiceReflector.cs (6)
100return new XmlName(String.IsNullOrEmpty(name) ? logicalMethodName : name); 120if (String.IsNullOrEmpty(contractName.Namespace)) 175if (string.IsNullOrEmpty(name)) 308private bool IsEmpty { get { return string.IsNullOrEmpty(_encoded) && string.IsNullOrEmpty(_decoded); } } 342if (string.IsNullOrEmpty(EncodedName))
System\ServiceModel\Description\TypeLoader.cs (2)
365if (!string.IsNullOrEmpty(knownTypeAttribute.MethodName)) 1589if (string.IsNullOrEmpty(wrapperName))
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
333if (String.IsNullOrEmpty(((XmlAnyElementAttribute)attr).Name)) 1053XmlName memberName = string.IsNullOrEmpty(part.UniquePartName) ? null : new XmlName(part.UniquePartName, true /*isEncoded*/);
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
18if (string.IsNullOrEmpty(traceName))
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
284if (string.IsNullOrEmpty(Name))
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
470if (String.IsNullOrEmpty(endpointContractNames))
System\ServiceModel\FaultCode.cs (1)
42if (!string.IsNullOrEmpty(ns))
System\ServiceModel\FaultContractAttribute.cs (1)
61if (!string.IsNullOrEmpty(value))
System\ServiceModel\MessageContractAttribute.cs (1)
72if (!string.IsNullOrEmpty(value))
System\ServiceModel\Security\MessagePartSpecification.cs (1)
219if (String.IsNullOrEmpty(qname.Name))
System\ServiceModel\Security\SecurityUtils.cs (10)
774string.IsNullOrEmpty(credential.UserName) && 775string.IsNullOrEmpty(credential.Domain) && 776string.IsNullOrEmpty(credential.Password) 787if (!string.IsNullOrEmpty(s_currentUser)) 950if (!string.IsNullOrEmpty(username) && string.IsNullOrEmpty(domain)) 957if (!string.IsNullOrEmpty(partsWithSlashDelimiter[0]) && !string.IsNullOrEmpty(partsWithSlashDelimiter[1])) 964if (!string.IsNullOrEmpty(partsWithAtDelimiter[0]) && !string.IsNullOrEmpty(partsWithAtDelimiter[1]))
System\ServiceModel\Security\SecurityVersion.cs (1)
111if (headerIndex < 0 && String.IsNullOrEmpty(actor))
System\ServiceModel\Security\SendSecurityHeader.cs (1)
201_idPrefix = string.IsNullOrEmpty(value) || value == "_" ? null : value;
System\ServiceModel\Security\TransportSecurityProtocol.cs (1)
126if (String.IsNullOrEmpty(actor))
System\ServiceModel\Security\WSTrust.cs (1)
883if (!string.IsNullOrEmpty(strId))
System\ServiceModel\ServiceContractAttribute.cs (1)
62if (!string.IsNullOrEmpty(value))
System\ServiceModel\UriSchemeKeyedCollection.cs (3)
71if (!string.IsNullOrEmpty(uri.UserInfo)) 76if (!string.IsNullOrEmpty(uri.Query)) 81if (!string.IsNullOrEmpty(uri.Fragment))
System\ServiceModel\XmlUtil.cs (1)
39if (string.IsNullOrEmpty(booleanValue))
System.ServiceModel.Primitives.Tests (2)
ServiceModel\FaultExceptionTest.cs (2)
124Assert.False(string.IsNullOrEmpty(exception.Message)); 174Assert.False(string.IsNullOrEmpty(exception.Message));
System.ServiceModel.Syndication (34)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (13)
206if (!string.IsNullOrEmpty(category.Label) && !category.AttributeExtensions.ContainsKey(s_atom10Label)) 210if (!string.IsNullOrEmpty(category.Scheme) && !category.AttributeExtensions.ContainsKey(s_atom10Scheme)) 454if (!string.IsNullOrEmpty(link.RelationshipType) && !link.AttributeExtensions.ContainsKey(s_atom10Relative)) 458if (!string.IsNullOrEmpty(link.MediaType) && !link.AttributeExtensions.ContainsKey(s_atom10Type)) 462if (!string.IsNullOrEmpty(link.Title) && !link.AttributeExtensions.ContainsKey(s_atom10Title)) 525if (string.IsNullOrEmpty(type)) 616if (string.IsNullOrEmpty(type)) 622if (string.IsNullOrEmpty(src) && type != Atom10Constants.PlaintextType && type != Atom10Constants.HtmlType && type != Atom10Constants.XHtmlType) 627if (!string.IsNullOrEmpty(src)) 921if (!string.IsNullOrEmpty(lengthStr)) 1086if (!string.IsNullOrEmpty(feed.Language)) 1179if (!string.IsNullOrEmpty(p.Uri)) 1183if (!string.IsNullOrEmpty(p.Email))
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (4)
105if (string.IsNullOrEmpty(link)) 126if (!string.IsNullOrEmpty(categories.Language)) 298if (!string.IsNullOrEmpty(categories.Scheme)) 580if (!string.IsNullOrEmpty(Document.Language))
System\ServiceModel\Syndication\FeedUtils.cs (1)
75if (string.IsNullOrEmpty(newBase))
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (9)
371if (!string.IsNullOrEmpty(str)) 503link.Length = !string.IsNullOrEmpty(val) ? Convert.ToInt64(val, CultureInfo.InvariantCulture.NumberFormat) : 0; 586if (!string.IsNullOrEmpty(tmp)) 625if (!string.IsNullOrEmpty(baseUri)) 672if (!string.IsNullOrEmpty(str)) 795if (!string.IsNullOrEmpty(category.Scheme) && !category.AttributeExtensions.ContainsKey(s_rss20Domain)) 874if (!string.IsNullOrEmpty(Feed.Generator)) 989if (!string.IsNullOrEmpty(guid)) 1008if (item.Authors.Count == 1 && !string.IsNullOrEmpty(item.Authors[0].Email))
System\ServiceModel\Syndication\SyndicationContent.cs (1)
81if (string.IsNullOrEmpty(outerElementName))
System\ServiceModel\Syndication\SyndicationElementExtension.cs (1)
303if (typeMapping != null && !string.IsNullOrEmpty(typeMapping.ElementName))
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
238if (string.IsNullOrEmpty(extensionName))
System\ServiceModel\Syndication\XmlSyndicationContent.cs (4)
44_type = string.IsNullOrEmpty(_type) ? Atom10Constants.XmlMediaType : _type; 58_type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type; 66_type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type; 74_type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type;
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (1)
43var hostIdentity = new DnsEndpointIdentity(string.IsNullOrEmpty(address.Uri.Host) ? "localhost" : address.Uri.Host);
System.ServiceProcess.ServiceController (8)
System\ServiceProcess\ServiceBase.cs (2)
292!string.IsNullOrEmpty(serviceName) && 865if (string.IsNullOrEmpty(_serviceName))
System\ServiceProcess\ServiceController.cs (6)
155if (string.IsNullOrEmpty(_displayName)) 268if (string.IsNullOrEmpty(_name)) 516if (string.IsNullOrEmpty(_name)) 520string? userGivenName = string.IsNullOrEmpty(_eitherName) ? _displayName : _eitherName; 522if (string.IsNullOrEmpty(userGivenName)) 549else if (string.IsNullOrEmpty(_displayName))
System.Speech (137)
Internal\GrammarBuilding\GrammarBuilderDictation.cs (1)
75if (!string.IsNullOrEmpty(_category) && _category == "spelling")
Internal\Helpers.cs (1)
19if (string.IsNullOrEmpty(s))
Internal\ObjectToken\ObjectToken.cs (1)
168if (string.IsNullOrEmpty(name))
Internal\ObjectToken\ObjectTokenCategory.cs (1)
40if (!string.IsNullOrEmpty(tokenName) && !tokenName.StartsWith("HKEY_", StringComparison.Ordinal))
Internal\ObjectToken\RegistryDataKey.cs (5)
61if (string.IsNullOrEmpty(registryPath)) 85if (string.IsNullOrEmpty(registryPath)) 103if (string.IsNullOrEmpty(registryPath) || null == baseKey) 112if (string.IsNullOrEmpty(registryPath)) 345if (string.IsNullOrEmpty(valueName))
Internal\ObjectToken\SAPICategories.cs (13)
188if (((string.IsNullOrEmpty(vendor1) && string.IsNullOrEmpty(vendor2)) || (!string.IsNullOrEmpty(vendor1) && !string.IsNullOrEmpty(vendor2) && vendor1 == vendor2)) && 189((string.IsNullOrEmpty(productLine1) && string.IsNullOrEmpty(productLine2)) || (!string.IsNullOrEmpty(productLine1) && !string.IsNullOrEmpty(productLine2) && productLine1 == productLine2)) && 190((string.IsNullOrEmpty(language1) && string.IsNullOrEmpty(language2)) || (!string.IsNullOrEmpty(language1) && !string.IsNullOrEmpty(language2) && language1 == language2))) 264if (string.IsNullOrEmpty(s))
Internal\PhonemeConverter.cs (2)
49if (string.IsNullOrEmpty(phonemes)) 67if (string.IsNullOrEmpty(sPhone))
Internal\SapiAttributeParser.cs (2)
20if (!string.IsNullOrEmpty(langStringTrim)) 43if (!string.IsNullOrEmpty(formatString))
Internal\SapiInterop\SapiRecoInterop.cs (1)
492if (!string.IsNullOrEmpty(word.Pronunciation))
Internal\SrgsCompiler\AppDomainGrammarProxy.cs (1)
25if (!string.IsNullOrEmpty(onInitParameters))
Internal\SrgsCompiler\BackEnd.cs (6)
358if (!((string.IsNullOrEmpty(sRule) || (!string.IsNullOrEmpty(sRule) && !string.IsNullOrEmpty(sRuleFound) && sRuleFound == sRule)))) 710if (!string.IsNullOrEmpty(sBasePath)) 731System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(sToken)); 978return AddSingleWordTransition(!string.IsNullOrEmpty(sWord) ? sWord : null, flWeight, requiredConfidence);
Internal\SrgsCompiler\GrammarElement.cs (1)
319System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(sRuleId));
Internal\SrgsCompiler\PropertyTag.cs (3)
26if (string.IsNullOrEmpty(name) && (value == null || (sValue != null && string.IsNullOrEmpty((sValue).Trim())))) 38if (!string.IsNullOrEmpty(name))
Internal\SrgsCompiler\RuleRef.cs (3)
52if (!string.IsNullOrEmpty(initParameters)) 75if (!string.IsNullOrEmpty(semanticKey)) 143System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(sRuleId));
Internal\SrgsCompiler\SemanticTag.cs (1)
26if (string.IsNullOrEmpty(sTag))
Internal\SrgsCompiler\SRGSCompiler.cs (3)
117if (cg._codebehind.Count > 0 && !string.IsNullOrEmpty(srgsPath)) 160if (!string.IsNullOrEmpty(filename)) 178if (!string.IsNullOrEmpty(filename))
Internal\SrgsCompiler\SrgsElementCompilerFactory.cs (2)
218if (string.IsNullOrEmpty(sToken)) 320System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(sToken));
Internal\SrgsParser\SrgsDocumentParser.cs (1)
221System.Diagnostics.Debug.Assert((parent != null) && (!string.IsNullOrEmpty(sChars)));
Internal\SrgsParser\XmlParser.cs (20)
427if (string.IsNullOrEmpty(sNamespace)) 571if (string.IsNullOrEmpty(sBaseClass)) 607if (string.IsNullOrEmpty(id)) 627if (!string.IsNullOrEmpty(sInit)) 632if (!string.IsNullOrEmpty(sParse)) 637if (!string.IsNullOrEmpty(sError)) 642if (!string.IsNullOrEmpty(sRecognition)) 766if (!string.IsNullOrEmpty(sAlias) || !string.IsNullOrEmpty(sParams)) 942if (string.IsNullOrEmpty(sPronunciation)) 947if (string.IsNullOrEmpty(sPronunciation)) 961if (string.IsNullOrEmpty(sDisplay)) 966if (string.IsNullOrEmpty(sDisplay)) 1015if (string.IsNullOrEmpty(content)) 1037System.Diagnostics.Debug.Assert((parent != null) && (!string.IsNullOrEmpty(sChars))); 1047if (string.IsNullOrEmpty(content)) 1207if (string.IsNullOrEmpty(sRule)) 1225if (string.IsNullOrEmpty(sRule)) 1763if (!string.IsNullOrEmpty(repeat)) 1814if (!string.IsNullOrEmpty(dest))
Internal\StringBlob.cs (2)
55if (!string.IsNullOrEmpty(psz)) 83if (string.IsNullOrEmpty(psz) || _cWords == 0)
Internal\Synthesis\AudioBase.cs (1)
95if (!string.IsNullOrEmpty(audio._mimeType))
Internal\Synthesis\ConvertTextFrag.cs (1)
95if (!string.IsNullOrEmpty(format))
Internal\Synthesis\SSmlParser.cs (22)
180if (string.IsNullOrEmpty(sVersion)) 185if (string.IsNullOrEmpty(sCulture)) 535engine.ProcessEmphasis(!string.IsNullOrEmpty(sLevel), (EmphasisWord)ssmlAttributes._fragmentState.Emphasis); 583if (string.IsNullOrEmpty(sName)) 775if (string.IsNullOrEmpty(sPh)) 898if (string.IsNullOrEmpty(sPitch) && string.IsNullOrEmpty(sContour) && string.IsNullOrEmpty(sRange) && string.IsNullOrEmpty(sRate) && string.IsNullOrEmpty(sDuration) && string.IsNullOrEmpty(sVolume)) 967if (string.IsNullOrEmpty(sInterpretAs)) 1027if (string.IsNullOrEmpty(sAlias)) 1187if (string.IsNullOrEmpty(sCulture) && string.IsNullOrEmpty(sGender) && string.IsNullOrEmpty(sAge) && string.IsNullOrEmpty(sVariant) && string.IsNullOrEmpty(sName) && string.IsNullOrEmpty(xmlns)) 1257if (string.IsNullOrEmpty(sUri)) 1475if (!string.IsNullOrEmpty(dest)) 1686if (!string.IsNullOrEmpty(sNumber))
Internal\Synthesis\TextFragmentEngine.cs (1)
68if (!uri.IsAbsoluteUri && !string.IsNullOrEmpty(baseUri))
Internal\Synthesis\TextWriterEngine.cs (13)
30if (!string.IsNullOrEmpty(baseUri)) 36if (fNewCulture || !string.IsNullOrEmpty(_pexmlPrefix) || extraNamespace.Count > 0) 50if (!string.IsNullOrEmpty(_pexmlPrefix)) 108if (!string.IsNullOrEmpty(value)) 167if (!string.IsNullOrEmpty(range)) 171if (!string.IsNullOrEmpty(rate)) 175if (!string.IsNullOrEmpty(volume)) 179if (!string.IsNullOrEmpty(duration)) 183if (!string.IsNullOrEmpty(points)) 193if (!string.IsNullOrEmpty(format)) 197if (!string.IsNullOrEmpty(detail)) 211if (!string.IsNullOrEmpty(name)) 247if (!string.IsNullOrEmpty(type))
Internal\Synthesis\VoiceSynthesis.cs (2)
1099if (!string.IsNullOrEmpty(name)) 1359if (!string.IsNullOrEmpty(voiceInfo.AssemblyName) && (assembly = Assembly.Load(voiceInfo.AssemblyName)) != null)
Recognition\Grammar.cs (6)
479!string.IsNullOrEmpty(uri.Host) || !string.IsNullOrEmpty(uri.Authority) || 480!string.IsNullOrEmpty(uri.Query) || uri.PathAndQuery != "dictation") 852if (string.IsNullOrEmpty(initParameters)) 1061if (rootRule == null && string.IsNullOrEmpty(rulename)) 1066if (!string.IsNullOrEmpty(rulename))
Recognition\RecognizerBase.cs (3)
1447string? topicName = string.IsNullOrEmpty(uri.Fragment) ? null : uri.Fragment.Substring(1); 1974if (string.IsNullOrEmpty(ruleName)) 1985if (string.IsNullOrEmpty(ruleName))
Recognition\SrgsGrammar\SrgsDocument.cs (1)
318if (!string.IsNullOrEmpty(srgsGrammar.BaseURI))
Recognition\SrgsGrammar\SrgsElementFactory.cs (2)
45if (!string.IsNullOrEmpty(pronunciation)) 80if (!string.IsNullOrEmpty(display))
Recognition\SrgsGrammar\SrgsGrammar.cs (2)
571if (!string.IsNullOrEmpty(sFile)) 600if (!string.IsNullOrEmpty(sNamespace))
Recognition\SrgsGrammar\SrgsNameValueTag.cs (1)
85bool hasName = !string.IsNullOrEmpty(_name);
Recognition\SrgsGrammar\SrgsRuleRef.cs (1)
247if (string.IsNullOrEmpty(rule))
Recognition\SrgsGrammar\SrgsSemanticInterpretationTag.cs (1)
74if (!string.IsNullOrEmpty(script))
Recognition\SrgsGrammar\SrgsToken.cs (1)
41if (string.IsNullOrEmpty(text) || text.Contains('\"'))
Result\RecognizedPhrase.cs (2)
38if (!string.IsNullOrEmpty(_smlContent)) 1068if (string.IsNullOrEmpty(alternateNode.InnerText) && semanticsNode.Value != null)
Result\RecognizedWordUnit.cs (1)
29_text = string.IsNullOrEmpty(text) ? null : text;
SR.cs (1)
16if (string.IsNullOrEmpty(text))
Synthesis\PromptBuilder.cs (4)
96if (!string.IsNullOrEmpty(sPromptRate)) 136if (!string.IsNullOrEmpty(sVolumeLevel)) 292if (!string.IsNullOrEmpty(voice.Name)) 534if (!string.IsNullOrEmpty(sFormat))
Synthesis\TTSEngine\TTSEngineTypes.cs (1)
197if (!string.IsNullOrEmpty(textFrag))
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoder.cs (1)
578Debug.Assert(!string.IsNullOrEmpty(source));
System.Text.Json (4)
src\runtime\src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
10if (string.IsNullOrEmpty(name) || !char.IsUpper(name[0]))
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
765if (string.IsNullOrEmpty(reflectionInfo.Name))
System\Text\Json\ThrowHelper.Serialization.cs (2)
540if (string.IsNullOrEmpty(message)) 573if (string.IsNullOrEmpty(message))
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
10if (string.IsNullOrEmpty(name) || !char.IsUpper(name[0]))
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1849Debug.Assert(!string.IsNullOrEmpty(set), "Found a null/empty element in RegexCharClass prop table");
System\Text\RegularExpressions\RegexCompiler.cs (1)
837Debug.Assert(!string.IsNullOrEmpty(prefix));
System\Text\RegularExpressions\RegexNode.cs (2)
340Debug.Assert(!string.IsNullOrEmpty(node.Str), $"Expected non-null, non-empty string for {node.Kind}."); 1014Debug.Assert(!string.IsNullOrEmpty(Str));
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (2)
35string nodeDgmlView = $"{(string.IsNullOrEmpty(info) ? info : $"Previous: {info}&#13;")}{(string.IsNullOrEmpty(deriv) ? "()" : deriv)}";
System.Text.RegularExpressions.Generator (10)
RegexGenerator.Emitter.cs (5)
33if (!string.IsNullOrEmpty(text)) 1152Debug.Assert(!string.IsNullOrEmpty(substring)); 1159Debug.Assert(!string.IsNullOrEmpty(substring)); 1163Debug.Assert(!string.IsNullOrEmpty(regexTree.FindOptimizations.FixedDistanceLiteral.String)); 5630if (!string.IsNullOrEmpty(name) &&
RegexGenerator.Parser.cs (1)
160if ((regexOptionsWithPatternOptions & RegexOptions.IgnoreCase) != 0 && !string.IsNullOrEmpty(cultureName))
src\runtime\src\libraries\Common\src\Polyfills\ExceptionPolyfills.cs (1)
86if (string.IsNullOrEmpty(argument))
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1849Debug.Assert(!string.IsNullOrEmpty(set), "Found a null/empty element in RegexCharClass prop table");
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
340Debug.Assert(!string.IsNullOrEmpty(node.Str), $"Expected non-null, non-empty string for {node.Kind}."); 1014Debug.Assert(!string.IsNullOrEmpty(Str));
System.Threading.AccessControl (11)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (9)
35string.IsNullOrEmpty(path) ? SR.IO_FileNotFound : SR.Format(SR.IO_FileNotFound_FileName, path), path); 39string.IsNullOrEmpty(path) ? SR.IO_PathNotFound_NoPathName : SR.Format(SR.IO_PathNotFound_Path, path), path); 46string.IsNullOrEmpty(path) ? SR.UnauthorizedAccess_IODenied_NoPathName : SR.Format(SR.UnauthorizedAccess_IODenied_Path, path)); 48if (string.IsNullOrEmpty(path)) 53string.IsNullOrEmpty(path) ? SR.IO_PathTooLong : SR.Format(SR.IO_PathTooLong_Path, path)); 56string.IsNullOrEmpty(path) ? SR.IO_SharingViolation_NoFileName : SR.Format(SR.IO_SharingViolation_File, path), 59if (string.IsNullOrEmpty(path)) 68if (!string.IsNullOrEmpty(path)) 72if (!string.IsNullOrEmpty(errorDetails))
System\Threading\EventWaitHandleAcl.cs (1)
63if (!string.IsNullOrEmpty(name) && errorCode == Interop.Errors.ERROR_INVALID_HANDLE)
System\Threading\SemaphoreAcl.cs (1)
68if (!string.IsNullOrEmpty(name) && errorCode == Interop.Errors.ERROR_INVALID_HANDLE)
System.Transactions.Local (1)
System\Transactions\TransactionManager.cs (1)
229if (!((tm.NodeName == null && string.IsNullOrEmpty(nodeName)) ||
System.Web.HttpUtility (7)
System\Web\HttpUtility.cs (1)
68if (!string.IsNullOrEmpty(key))
System\Web\Util\HttpEncoder.cs (5)
35if (string.IsNullOrEmpty(value)) 108internal static string? HtmlDecode(string? value) => string.IsNullOrEmpty(value) ? value : WebUtility.HtmlDecode(value); 118internal static string? HtmlEncode(string? value) => string.IsNullOrEmpty(value) ? value : WebUtility.HtmlEncode(value); 525if (string.IsNullOrEmpty(value)) 548if (string.IsNullOrEmpty(value))
System\Web\Util\UriUtil.cs (1)
36if (!string.IsNullOrEmpty(authority))
System.Windows.Controls.Ribbon (74)
Microsoft\Windows\Automation\Peers\RibbonButtonAutomationPeer.cs (3)
47if (string.IsNullOrEmpty(accessKey)) 68if (String.IsNullOrEmpty(name)) 82if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonCheckBoxAutomationPeer.cs (3)
48if (string.IsNullOrEmpty(accessKey)) 70if (String.IsNullOrEmpty(name)) 84if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonContextualTabGroupAutomationPeer.cs (2)
37if (String.IsNullOrEmpty(name)) 52if (String.IsNullOrEmpty(name))
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
60if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (2)
48if (string.IsNullOrEmpty(accessKey)) 61if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (4)
72if (string.IsNullOrEmpty(accessKey)) 95if (String.IsNullOrEmpty(name)) 101if (String.IsNullOrEmpty(name) && owner.PartToggleButton != null) 119if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonMenuItemAutomationPeer.cs (2)
48if (string.IsNullOrEmpty(accessKey)) 69if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonRadioButtonAutomationPeer.cs (3)
47if (string.IsNullOrEmpty(accessKey)) 68if (String.IsNullOrEmpty(name)) 82if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonSeparatorAutomationPeer.cs (1)
48if (String.IsNullOrEmpty(name))
Microsoft\Windows\Automation\Peers\RibbonTextBoxAutomationPeer.cs (4)
51if (string.IsNullOrEmpty(accessKey)) 73if (String.IsNullOrEmpty(name)) 87if (String.IsNullOrEmpty(helpText)) 105if (String.IsNullOrEmpty(acceleratorKey))
Microsoft\Windows\Automation\Peers\RibbonToggleButtonAutomationPeer.cs (3)
47if (string.IsNullOrEmpty(accessKey)) 69if (String.IsNullOrEmpty(name)) 83if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonToolTipAutomationPeer.cs (1)
53if (String.IsNullOrEmpty(name))
Microsoft\Windows\Automation\Peers\RibbonTwoLineTextAutomationPeer.cs (1)
68if (String.IsNullOrEmpty(name))
Microsoft\Windows\Controls\KeyTipService.cs (8)
79bool isNewEmpty = string.IsNullOrEmpty(newKeyTip); 81if (isNewEmpty != string.IsNullOrEmpty(oldKeyTip)) 223return (string.IsNullOrEmpty(GetKeyTip(element)) && 525if (string.IsNullOrEmpty(_autoGenerationKeyTipPrefix)) 601if (!string.IsNullOrEmpty(keyTip) && 824if (string.IsNullOrEmpty(text)) 829if (string.IsNullOrEmpty(text)) 1477if (!string.IsNullOrEmpty(GetKeyTip(element)))
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1393if (!(string.IsNullOrEmpty(rw.Title as string)))
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1273if (!String.IsNullOrEmpty(e.Text) && IsTextSearchEnabled && NavigateInFirstGallery)
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
198get { return (_templateRoot != null) ? !string.IsNullOrEmpty(RibbonControlService.GetLabel(_templateRoot)) : false; }
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (1)
689bool isLabelVisible = !string.IsNullOrEmpty(RibbonControlService.GetLabel(d));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
1484if (string.IsNullOrEmpty(SelectedValuePath)) 1489Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 1490if (string.IsNullOrEmpty(path)) 2335if ((category.Header is string && !String.IsNullOrEmpty((string)category.Header)) ||
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1567if (!string.IsNullOrEmpty(KeyTipService.GetKeyTip(element))) 1580!string.IsNullOrEmpty(KeyTipService.GetKeyTip(controlGroupElement)))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (9)
60if (!string.IsNullOrEmpty(toolTipTitle) || 61!string.IsNullOrEmpty(toolTipDescription) || 63!string.IsNullOrEmpty(toolTipFooterTitle) || 64!string.IsNullOrEmpty(toolTipFooterDescription) || 273if (hTemplate == null || (hTemplate.ItemTemplate == null && string.IsNullOrEmpty(hTemplate.ItemStringFormat) && hTemplate.ItemTemplateSelector == null)) 281if (hTemplate == null || (string.IsNullOrEmpty(hTemplate.ItemStringFormat) && hTemplate.ItemTemplateSelector == null)) 289if (hTemplate == null || string.IsNullOrEmpty(hTemplate.ItemStringFormat)) 2682bool dropDownKeyTipSet = !string.IsNullOrEmpty(splitButton.KeyTip); 2733bool headerKeyTipSet = !(string.IsNullOrEmpty(splitButton.HeaderKeyTip));
Microsoft\Windows\Controls\Ribbon\RibbonKeyTipAndContentSyncHelper.cs (3)
38bool isKeyTipSet = !string.IsNullOrEmpty(keyTip); 98if (string.IsNullOrEmpty((string)baseValue)) 148if (!string.IsNullOrEmpty(keyTip) &&
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
756if (string.IsNullOrEmpty(groupName))
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
171(!string.IsNullOrEmpty(ribbonToolTip.Title) || 172!string.IsNullOrEmpty(ribbonToolTip.Description) || 249(!string.IsNullOrEmpty(ribbonToolTip.FooterTitle) || 250!string.IsNullOrEmpty(ribbonToolTip.FooterDescription) ||
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
388int wordCount = string.IsNullOrEmpty(Text) ? 0 : Text.Split().Length;
Microsoft\Windows\Controls\TextSearchInternal.cs (8)
391if (String.IsNullOrEmpty(newPrefix)) 435if ((!firstItem || fallbackFirstItemToo) && !string.IsNullOrEmpty(prefix)) 555if (String.IsNullOrEmpty(primaryTextPath)) 560if (String.IsNullOrEmpty(primaryTextPath) && doHierarchicalSearch) 569if (String.IsNullOrEmpty(primaryTextPath) && doHierarchicalSearch) 598if (!String.IsNullOrEmpty(primaryText)) 605if (!string.IsNullOrEmpty(primaryTextPath)) 780if (!string.IsNullOrEmpty(text))
System.Windows.Extensions (2)
System\Media\SoundPlayer.cs (2)
208if (string.IsNullOrEmpty(_soundLocation) && _stream == null) 389if (!string.IsNullOrEmpty(soundLocation))
System.Windows.Forms (341)
misc\MultitargetUtil.cs (1)
35return string.IsNullOrEmpty(assemblyQualifiedName) ? type.AssemblyQualifiedName : assemblyQualifiedName;
System\Resources\ResXDataNode.cs (9)
122if (!string.IsNullOrEmpty(_nodeInfo.TypeName)) 178return _fileRef ??= string.IsNullOrEmpty(FileRefTextEncoding) 330string? typeName = string.IsNullOrEmpty(dataNodeInfo.TypeName) 334if (!string.IsNullOrEmpty(mimeTypeName)) 340if (string.IsNullOrEmpty(typeName)) 401&& !string.IsNullOrEmpty(typeName) 520if (!string.IsNullOrEmpty(_typeName)) 542if (!string.IsNullOrEmpty(typeName)) 548if (string.IsNullOrEmpty(_nodeInfo.MimeType))
System\Resources\ResXFileRef.cs (1)
100if (string.IsNullOrEmpty(basePath))
System\Resources\ResXResourceReader.cs (3)
514if (string.IsNullOrEmpty(alias)) 536if (!string.IsNullOrEmpty(typeName)) 541if (!string.IsNullOrEmpty(alias))
System\Resources\ResXResourceReader.ReaderAliasResolver.cs (1)
27if (!string.IsNullOrEmpty(alias))
System\Resources\ResXResourceWriter.cs (10)
309if (fileRef is not null && !string.IsNullOrEmpty(BasePath)) 391if (!string.IsNullOrEmpty(type) && elementName == DataStr) 394if (string.IsNullOrEmpty(assemblyName)) 429if (!string.IsNullOrEmpty(alias) && !string.IsNullOrEmpty(type) && elementName == DataStr) 453if (!string.IsNullOrEmpty(value)) 461if (!string.IsNullOrEmpty(comment)) 479if (!string.IsNullOrEmpty(alias)) 484if (!string.IsNullOrEmpty(name)) 496if (!_cachedAliases.TryGetValue(assemblyName.FullName, out string? alias) || string.IsNullOrEmpty(alias))
System\Resources\ResXSerializationBinder.cs (1)
82if (!string.IsNullOrEmpty(assemblyQualifiedTypeName)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
637UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId => !string.IsNullOrEmpty(DefaultAction) ? (VARIANT)DefaultAction : VARIANT.Empty, 638UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId => !string.IsNullOrEmpty(Name) ? (VARIANT)Name : VARIANT.Empty, 645UIA_PROPERTY_ID.UIA_ValueValuePropertyId => !string.IsNullOrEmpty(Value) ? (VARIANT)Value : VARIANT.Empty, 694_ => !string.IsNullOrEmpty(DefaultAction),
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
351if (!string.IsNullOrEmpty(text)) 362if (!string.IsNullOrEmpty(text))
System\Windows\Forms\Application.cs (5)
204if (!string.IsNullOrEmpty(ns)) 562if (!string.IsNullOrEmpty(s_productName)) 585if (string.IsNullOrEmpty(s_productName) && GetAppFileVersionInfo().ProductName is { } productName) 591if (string.IsNullOrEmpty(s_productName) && GetAppMainType() is { } type) 595if (!string.IsNullOrEmpty(ns))
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
58=> !string.IsNullOrEmpty(_com2Enum.ToString(value));
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
52if (string.IsNullOrEmpty(text))
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
490if (!string.IsNullOrEmpty(converterTypeName) 529if (!string.IsNullOrEmpty(editorTypeName) 893else if (string.IsNullOrEmpty(errorText))
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
109public override string Name => string.IsNullOrEmpty(base.Name) ? _controlItem.Error : base.Name;
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.cs (6)
302if (_parentControl is not null && _parentControl.BindingContext is not null && value is not null && !string.IsNullOrEmpty(_dataMember)) 340private bool ShouldSerializeDataMember() => !string.IsNullOrEmpty(_dataMember); 486if (string.IsNullOrEmpty(outputError)) 776&& (string.IsNullOrEmpty(controlItem.Error) != string.IsNullOrEmpty(value)); 780_errorCount += string.IsNullOrEmpty(value) ? -1 : 1;
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
108return string.IsNullOrEmpty(name) ? SR.ErrorProviderDefaultAccessibleName : name;
System\Windows\Forms\Components\HelpProvider.cs (5)
123if (Control.MouseButtons != MouseButtons.None && !string.IsNullOrEmpty(helpString)) 133if (!string.IsNullOrEmpty(keyword)) 147if (!string.IsNullOrEmpty(helpString)) 177if (!string.IsNullOrEmpty(helpString)) 193if (!string.IsNullOrEmpty(keyword))
System\Windows\Forms\Components\ImageList\ImageList.ImageCollection.cs (2)
208if (string.IsNullOrEmpty(key)) 466if (string.IsNullOrEmpty(key))
System\Windows\Forms\Control.ControlCollection.cs (2)
240if (string.IsNullOrEmpty(key)) 362if (string.IsNullOrEmpty(key))
System\Windows\Forms\Control.cs (2)
1193private bool ShouldSerializeAccessibleName() => !string.IsNullOrEmpty(AccessibleName); 2863if (string.IsNullOrEmpty(name) && Site is not null)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
247&& !string.IsNullOrEmpty(parameter);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
221if (!string.IsNullOrEmpty(Text)) 689else if (!string.IsNullOrEmpty(Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
330if (string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
77if (!string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (1)
36if (!string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
221if (string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
1178if (!string.IsNullOrEmpty(candidate)) 1196if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 2327if (!string.IsNullOrEmpty(oldText) && string.IsNullOrEmpty(WindowText))
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (1)
303|| string.IsNullOrEmpty(comboBox.Text))
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
3791_toolTipControl.Activate(!string.IsNullOrEmpty(ToolTipPrivate)); 3806_toolTipControl.Activate(!string.IsNullOrEmpty(ToolTipPrivate)); 3843_toolTipControl.Activate(activate: !string.IsNullOrEmpty(ToolTipPrivate)); 3857bool activate = !string.IsNullOrEmpty(ToolTipPrivate); 3929_toolTipControl.Activate(!string.IsNullOrEmpty(ToolTipPrivate)); 3943_toolTipControl.Activate(activate: !string.IsNullOrEmpty(ToolTipPrivate));
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
635if (!string.IsNullOrEmpty(dataPropertyName)) 959dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(_props[i].DisplayName) ? _props[i].DisplayName : _props[i].Name;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
1543&& !string.IsNullOrEmpty(dataGridViewCols[i].DataPropertyName) 2675if (string.IsNullOrEmpty(EditingControl.AccessibleName)) 3285return string.IsNullOrEmpty(ToolTipPrivate) && ShowCellToolTips; 14566if (CurrentCell is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(CurrentCell?.ErrorText)))) 15202if (CurrentCell is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(CurrentCell.ErrorText)))) 30036if (!string.IsNullOrEmpty(toolTip))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
209return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 222string.IsNullOrEmpty(GetErrorText(rowIndex))) 296if (string.IsNullOrEmpty(formattedString)) 861if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
221!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (11)
313|| string.IsNullOrEmpty(DataGridView.Rows[i].Cells[j].Value?.ToString())) 343if (DataGridView is not null && DataGridView.ShowCellErrors && !string.IsNullOrEmpty(ErrorText)) 2376if (string.IsNullOrEmpty(toolTipText)) 2563if (string.IsNullOrEmpty(text)) 2710if (string.IsNullOrEmpty(toolTipText)) 2727if (!string.IsNullOrEmpty(editedFormattedValue)) 2739if (!string.IsNullOrEmpty(stringValue)) 2772if (!string.IsNullOrEmpty(toolTipText)) 2797Debug.Assert(!string.IsNullOrEmpty(errorText), "if we entered the cell error area then an error was painted, so we should have an error"); 3527if (!string.IsNullOrEmpty(errorText) && 3555if (!string.IsNullOrEmpty(errorText) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
192if (formattedValue is null || (formattedValueAsString is not null && string.IsNullOrEmpty(formattedValueAsString)))
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
610if (!string.IsNullOrEmpty(Format))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
498if (string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull) 514string.IsNullOrEmpty(GetErrorText(rowIndex))) 1542if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
307!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (3)
222!string.IsNullOrEmpty(defaultCellStyle.Format) || 641if (Site is not null && !string.IsNullOrEmpty(Site.Name)) 651if (string.IsNullOrEmpty(value))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (7)
512if (!string.IsNullOrEmpty(valStr)) 543if (!string.IsNullOrEmpty(valStr)) 572!string.IsNullOrEmpty(valStr)) 629if (!string.IsNullOrEmpty(valStr)) 659if (!string.IsNullOrEmpty(valStr)) 675if (!string.IsNullOrEmpty(valStr)) 903!string.IsNullOrEmpty(formattedValueStr))
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (23)
815return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 839string.IsNullOrEmpty(GetErrorText(rowIndex))) 953!string.IsNullOrEmpty(ValueMember) || !string.IsNullOrEmpty(DisplayMember)) 961else if (strValue is not null && string.IsNullOrEmpty(strValue) && DisplayType == typeof(string)) 998&& (!(value is string) || !string.IsNullOrEmpty(strValue))) 1057else if (!string.IsNullOrEmpty(DisplayMember)) 1066else if (!string.IsNullOrEmpty(ValueMember)) 1131else if (!string.IsNullOrEmpty(ValueMember)) 1141if (!valueSet && !string.IsNullOrEmpty(DisplayMember)) 1181MeasureTextSize(graphics, string.IsNullOrEmpty(formattedValue) ? " " : formattedValue, cellStyle.Font!, flags); 1343if (string.IsNullOrEmpty(displayMember)) 1374if (string.IsNullOrEmpty(valueMember)) 1444Debug.Assert(!string.IsNullOrEmpty(field)); 1535!string.IsNullOrEmpty(ValueMember) || !string.IsNullOrEmpty(DisplayMember)); 1547item = ItemFromComboBoxItems(rowIndex, string.IsNullOrEmpty(ValueMember) ? DisplayMember : ValueMember, value); 1578!string.IsNullOrEmpty(DisplayMember) || !string.IsNullOrEmpty(ValueMember)); 1590item = ItemFromComboBoxItems(RowIndex, string.IsNullOrEmpty(DisplayMember) ? ValueMember : DisplayMember, formattedValue); 2360if (!string.IsNullOrEmpty(errorText)) 2394!string.IsNullOrEmpty(DisplayMember) || !string.IsNullOrEmpty(ValueMember))
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
295string.IsNullOrEmpty(GetErrorText(rowIndex))) 754return string.IsNullOrEmpty(errorText)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
283!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (4)
482return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 495string.IsNullOrEmpty(GetErrorText(rowIndex))) 553if (string.IsNullOrEmpty(formattedString)) 1073if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1244if (string.IsNullOrEmpty(errorText) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (4)
249string.IsNullOrEmpty(GetErrorText(rowIndex))) 768if (!string.IsNullOrEmpty(formattedString)) 917if (!string.IsNullOrEmpty(errorText)) 1007if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (5)
219if (string.IsNullOrEmpty(editedFormattedValue)) 318return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 331string.IsNullOrEmpty(GetErrorText(rowIndex))) 405if (string.IsNullOrEmpty(formattedString)) 761if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (2)
305!string.IsNullOrEmpty(formattedValueStr) && 343else if (computeErrorIconBounds && !string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (1)
76if (string.IsNullOrEmpty(strValue))
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (3)
169if (!string.IsNullOrEmpty(val)) 209if (!string.IsNullOrEmpty(val)) 260if (!string.IsNullOrEmpty(val))
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
51return !string.IsNullOrEmpty(baseValue) ? baseValue : this.GetOwnerText();
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (2)
612if (string.IsNullOrEmpty(Text) 647if (string.IsNullOrEmpty(Text) || bounds.Width <= 0 || bounds.Height <= 0)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1060if (string.IsNullOrEmpty(Text))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
494if (string.IsNullOrEmpty(text)) 619if (string.IsNullOrEmpty(Text)) 637if (string.IsNullOrEmpty(text))
System\Windows\Forms\Controls\Labels\LinkLabel.Link.cs (1)
80if (Owner is not null && !string.IsNullOrEmpty(Owner.Text))
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (2)
65if (string.IsNullOrEmpty(key)) 260if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListControl\ListControl.cs (4)
317if (DataManager is not null && !string.IsNullOrEmpty(value)) 373if (string.IsNullOrEmpty(propertyName)) 432if (item is not null && !string.IsNullOrEmpty(field)) 733if (_dataManager is not null && (displayMemberChanged || dataSourceChanged) && !string.IsNullOrEmpty(_displayMember.BindingMember))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
490return !string.IsNullOrEmpty(Name);
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
54if (id is null && !string.IsNullOrEmpty(col.ImageKey))
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (2)
109if (string.IsNullOrEmpty(key)) 236if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
47if (string.IsNullOrEmpty(key)) 133if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListView.cs (5)
2942if (!string.IsNullOrEmpty(fileName)) 3097if (!string.IsNullOrEmpty(_backgroundImageFileName) || _bkImgFileNames is not null) 3100if (!string.IsNullOrEmpty(_backgroundImageFileName)) 5214if (string.IsNullOrEmpty(fileNameToDelete)) 6897if (lvi is not null && !string.IsNullOrEmpty(lvi.ToolTipText))
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (2)
106if (string.IsNullOrEmpty(key)) 338if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
161if (string.IsNullOrEmpty(key)) 396if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
479if (!string.IsNullOrEmpty(Name))
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
97!string.IsNullOrEmpty(_owningGroup.Subtitle)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
925if (!string.IsNullOrEmpty(ImageIndexer.Key)) 1039if (string.IsNullOrEmpty(_groupName)) 1268if (!string.IsNullOrEmpty(ImageIndexer.Key))
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (2)
91if (string.IsNullOrEmpty(key)) 270if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (5)
53if (!string.IsNullOrEmpty(item.ImageKey)) 82if (!string.IsNullOrEmpty(item.ImageKey)) 125if (item.ImageIndex == -1 && string.IsNullOrEmpty(item.ImageKey) && item.SubItems.Count <= 1) 135if (!string.IsNullOrEmpty(item.ImageKey)) 158if (!string.IsNullOrEmpty(item.ImageKey))
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
77if (!string.IsNullOrEmpty(name))
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (5)
319_pictureBoxState[NeedToLoadImageLocationState] = !string.IsNullOrEmpty(_imageLocation); 322if (string.IsNullOrEmpty(_imageLocation) && _imageInstallationType != ImageInstallationType.DirectlySpecified) 327if (WaitOnLoad && !_pictureBoxState[InInitializationState] && !string.IsNullOrEmpty(_imageLocation)) 459if (string.IsNullOrEmpty(_imageLocation)) 519if (string.IsNullOrEmpty(_imageLocation))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1741if (string.IsNullOrEmpty(tab.TabName))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1860if (string.IsNullOrEmpty(text))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (2)
36if (IsHandleCreated || !string.IsNullOrEmpty(value)) 59_dontShow = string.IsNullOrEmpty(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (1)
76if (string.IsNullOrEmpty(e.Message))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
791if (newHandler is null && !string.IsNullOrEmpty(handler)) 795else if (handler == newHandler && !string.IsNullOrEmpty(newHandler))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
160&& (EditTextBox.Focused || !string.IsNullOrEmpty(_selectedGridEntry.GetPropertyTextValue())); 442if ((string.IsNullOrEmpty(text) && string.IsNullOrEmpty(_originalTextValue)) 2686&& !(string.IsNullOrEmpty(_originalTextValue) && string.IsNullOrEmpty(currentTextValue));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (4)
274Debug.Assert(versionInfo is not null && !string.IsNullOrEmpty(versionInfo.ProductVersion), "Couldn't get the version info for the richedit dll"); 275if (versionInfo is not null && !string.IsNullOrEmpty(versionInfo.ProductVersion)) 3059if (!string.IsNullOrEmpty(result) && (result[^1] == '\0')) 3245if (!string.IsNullOrEmpty(linktext))
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1946if (string.IsNullOrEmpty(tipText)) 2175if (string.IsNullOrEmpty(value))
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (2)
54if (string.IsNullOrEmpty(key)) 189if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
155if (!string.IsNullOrEmpty(_toolTipText))
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (4)
643if (_flagState[s_isNullMask] == string.IsNullOrEmpty(value) && (_flagState[s_isNullMask] || value == _maskedTextProvider.Mask)) 654if (string.IsNullOrEmpty(value)) // Resetting the control, the native edit control will be in charge. 1160if (string.IsNullOrEmpty(value)) 2281if (string.IsNullOrEmpty(text))
System\Windows\Forms\Controls\TextBox\MaskedTextBox.MaskedTextBoxAccessibleObject.cs (1)
16get => !this.TryGetOwnerAs(out MaskedTextBox? owner) || string.IsNullOrEmpty(owner.Mask)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
1005!string.IsNullOrEmpty(PlaceholderText) &&
System\Windows\Forms\Controls\TextBox\TextBox.TextBoxAccessibleObject.cs (1)
22return string.IsNullOrEmpty(placeholderText) ? base.GetPropertyValue(propertyID) : (VARIANT)placeholderText;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1514if (string.IsNullOrEmpty(text)) 2084if (string.IsNullOrEmpty(WindowText))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2553if (!string.IsNullOrEmpty(text)) 2886if (string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled) 2950if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
197|| (hostedControl is Label label && string.IsNullOrEmpty(label.Text));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (8)
466&& !string.IsNullOrEmpty(parameter); 1965if (AutoToolTip && string.IsNullOrEmpty(_toolTipText)) 2245if (!Enabled && ParentInternal is not null && !string.IsNullOrEmpty(ToolTipText)) 2352if (string.IsNullOrEmpty(Text)) 2853if (ParentInternal is not null && !string.IsNullOrEmpty(ToolTipText)) 3293private bool ShouldSerializeToolTipText() => !string.IsNullOrEmpty(_toolTipText); 3340=> Image is not null && ImageIndexer.ActualIndex >= 0 && !string.IsNullOrEmpty(ImageIndexer.Key); 3515if (!string.IsNullOrEmpty(Text))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
130if (string.IsNullOrEmpty(baseName))
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
727if (string.IsNullOrEmpty(shortcutString)) 1091if (!string.IsNullOrEmpty(shortcutKeyDisplayString))
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (10)
33if (!string.IsNullOrEmpty(toolStrip.Name)) 55if (!string.IsNullOrEmpty(toolStrip.Name)) 108object? destinationPanel = !string.IsNullOrEmpty(toolStripSettings.ToolStripPanelName) ? toolStripSettings.ToolStripPanelName : null; 113if (!string.IsNullOrEmpty(toolStripSettings.Name)) 147if (string.IsNullOrEmpty(toolStripPanelName) && toolStripPanel.Parent is ToolStripContainer && !string.IsNullOrEmpty(toolStripPanel.Parent.Name)) 158if (!string.IsNullOrEmpty(settings.Name)) 186if (!string.IsNullOrEmpty(itemNames)) 198if (!string.IsNullOrEmpty(key) && itemLocationHash.TryGetValue(key, out ToolStrip? value)) 221if (!string.IsNullOrEmpty(item.Name))
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (3)
28if (!string.IsNullOrEmpty(parentPanel.Name)) 32else if (parentPanel.Parent is ToolStripContainer && !string.IsNullOrEmpty(parentPanel.Parent.Name)) 38Debug.Assert(!string.IsNullOrEmpty(ToolStripPanelName), "ToolStrip was parented to a panel, but we couldn't figure out its name.");
System\Windows\Forms\Controls\TreeView\TreeNode.cs (4)
1359if (!(string.IsNullOrEmpty(ImageIndexer.Key))) 1365if (!(string.IsNullOrEmpty(SelectedImageIndexer.Key))) 1371if (!(string.IsNullOrEmpty(StateImageIndexer.Key))) 1637if (!string.IsNullOrEmpty(StateImageKey))
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (2)
94if (string.IsNullOrEmpty(key)) 402if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
592if (string.IsNullOrEmpty(value) || value.Equals(SR.toStringNone)) 1064if (string.IsNullOrEmpty(value) || value.Equals(SR.toStringNone)) 2965if (ShowNodeToolTips && tn is not null && (!string.IsNullOrEmpty(tn.ToolTipText)))
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (2)
538if (!string.IsNullOrEmpty(Text) && 739if (_currentValueChanged || (!string.IsNullOrEmpty(Text) &&
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.cs (1)
81return string.IsNullOrEmpty(baseName) ? SR.DefaultUpDownButtonsAccessibleName : baseName;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
154return string.IsNullOrEmpty(hrefString) ? null : new Uri(hrefString);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
237return string.IsNullOrEmpty(hrefString) ? null : new(hrefString);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (3)
235if (!string.IsNullOrEmpty(hrefString)) 572if (string.IsNullOrEmpty(urlString)) 1261if (string.IsNullOrEmpty(urlString))
System\Windows\Forms\Controls\WebBrowser\WebBrowserUriTypeConverter.cs (1)
15if (uri is not null && !string.IsNullOrEmpty(uri.OriginalString) && !uri.IsAbsoluteUri)
System\Windows\Forms\DataBinding\Binding.cs (4)
477if (BindableComponent is not null && !string.IsNullOrEmpty(PropertyName)) 611if (!string.IsNullOrEmpty(errorText)) 1074private bool ShouldSerializeFormatString() => !string.IsNullOrEmpty(_formatString); 1132&& !string.IsNullOrEmpty(PropertyName)
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
151char ch = string.IsNullOrEmpty(Name) || char.IsLower(Name[0]) ? 'b' : 'B';
System\Windows\Forms\DataBinding\BindingSource.cs (5)
148if (string.IsNullOrEmpty(dataMember)) 712if (string.IsNullOrEmpty(_dataMember)) 896if (!string.IsNullOrEmpty(_dataMember)) 968if (string.IsNullOrEmpty(sortString)) 1550if (ds is ITypedList && !string.IsNullOrEmpty(_dataMember))
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (2)
191Debug.Assert(!string.IsNullOrEmpty(binding.PropertyName), "The caller should check for this."); 197&& !string.IsNullOrEmpty(current.PropertyName)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (3)
42if (dataSource is null || dataSource is Type || string.IsNullOrEmpty(dataMember)) 178if (!string.IsNullOrEmpty(dataMember)) 282if (string.IsNullOrEmpty(dataMember))
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
29if (_dataSource is not null && !string.IsNullOrEmpty(_propName)) 37if (_dataSource is not null && !string.IsNullOrEmpty(_propName))
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
200if (!string.IsNullOrEmpty(value)) 581if (string.IsNullOrEmpty(s))
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (2)
62if (!string.IsNullOrEmpty(InitialDirectory)) 200if (string.IsNullOrEmpty(filter))
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (4)
337if (!string.IsNullOrEmpty(_descriptionText)) 355if (!string.IsNullOrEmpty(_initialDirectory)) 368if (!string.IsNullOrEmpty(selectedPath)) 371if (parent is null || !string.IsNullOrEmpty(_initialDirectory) || !Directory.Exists(parent))
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
634return string.IsNullOrEmpty(str) || str[0] == '\0';
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
190string.IsNullOrEmpty(location) ? AppContext.BaseDirectory : location);
System\Windows\Forms\Form.cs (3)
2600if (string.IsNullOrEmpty(oldText) || string.IsNullOrEmpty(value)) 3584if (!string.IsNullOrEmpty(Text))
System\Windows\Forms\Help\Help.cs (2)
243if (!string.IsNullOrEmpty(partialUri)) 321if (string.IsNullOrEmpty(param) && (command == HelpNavigator.AssociateIndex || command == HelpNavigator.KeywordIndex))
System\Windows\Forms\ImageKeyConverter.cs (1)
166if (!string.IsNullOrEmpty(key))
System\Windows\Forms\Internal\Formatter.cs (1)
130if (value is IFormattable valueAsFormattable && !string.IsNullOrEmpty(formatString))
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
199if (!string.IsNullOrEmpty(c.Name)) 352if (string.IsNullOrEmpty(defaultNameValue))
System\Windows\Forms\NotifyIcon.cs (1)
549if (string.IsNullOrEmpty(tipText))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
49if (!string.IsNullOrEmpty(stringVal)) 483if (!string.IsNullOrEmpty(stringVal))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (2)
155if (!string.IsNullOrEmpty(name)) 184if (!string.IsNullOrEmpty(styleString))
System\Windows\Forms\PropertyStore.cs (1)
133if (string.IsNullOrEmpty(value))
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (2)
324if (string.IsNullOrEmpty(text)) 515bool hasText = !string.IsNullOrEmpty(context.Text);
System\Windows\Forms\Rendering\TextExtensions.cs (1)
284if (string.IsNullOrEmpty(text))
System\Windows\Forms\SendKeys\SendKeys.cs (2)
277if (string.IsNullOrEmpty(value)) 904if (string.IsNullOrEmpty(keys))
System\Windows\Forms\ToolTip\ToolTip.cs (5)
436string title = !string.IsNullOrEmpty(_toolTipTitle) ? _toolTipTitle : " "; 787if (_toolTipIcon > 0 || !string.IsNullOrEmpty(_toolTipTitle)) 790string title = !string.IsNullOrEmpty(_toolTipTitle) ? _toolTipTitle : " "; 855&& !string.IsNullOrEmpty(caption) 1223bool empty = info is null || string.IsNullOrEmpty(info.Caption);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
386if (!string.IsNullOrEmpty(textToDraw))
System.Windows.Forms.Design (96)
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
158if (string.IsNullOrEmpty(message))
System\ComponentModel\Design\CollectionEditor.cs (3)
147if (!string.IsNullOrEmpty(text)) 156if (!string.IsNullOrEmpty(text)) 163if (string.IsNullOrEmpty(text))
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
62if (_showSplit && !string.IsNullOrEmpty(Text) && TextRenderer.MeasureText(Text, Font).Width + PushButtonWidth > preferredSize.Width) 231if (!string.IsNullOrEmpty(Text))
System\ComponentModel\Design\ComponentDesigner.cs (3)
46if (defaultProperty.TryGetValue(_component, out string? currentValue) && string.IsNullOrEmpty(currentValue)) 492if (!string.IsNullOrEmpty(settingsKeyName)) 501if (string.IsNullOrEmpty(persistableComponent.SettingsKey))
System\ComponentModel\Design\DesignerActionList.cs (1)
96if (string.IsNullOrEmpty(displayName))
System\ComponentModel\Design\DesignerActionPanel.cs (2)
748if (string.IsNullOrEmpty(s)) 896if (!string.IsNullOrEmpty(focusId))
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
58if (!string.IsNullOrEmpty(_panelHeaderItem!.Subtitle))
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
78if (string.IsNullOrEmpty(_label.Text)) 298if (!string.IsNullOrEmpty(_label.Text))
System\ComponentModel\Design\DesignerHost.cs (1)
346if (string.IsNullOrEmpty(message))
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
303if (!string.IsNullOrEmpty(fallBackFontName))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
227if (string.IsNullOrEmpty(compName)) 413if (eventNames is not null && manager is not null && !string.IsNullOrEmpty(name)) 465if (!string.IsNullOrEmpty(name))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
292if (site is INestedSite nestedSite && !string.IsNullOrEmpty(nestedSite.FullName)) 297if (!string.IsNullOrEmpty(site?.Name))
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
2630if (names is not null && variableDecl.Type is not null && !string.IsNullOrEmpty(variableDecl.Type.BaseType)) 2695if (!string.IsNullOrEmpty(componentName)) 2745if (!string.IsNullOrEmpty(componentName)) 2792if (manager is not null && !string.IsNullOrEmpty(typeName))
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
58if (comp.Site is INestedSite nestedSite && !string.IsNullOrEmpty(nestedSite.FullName))
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
65if (!string.IsNullOrEmpty(termString))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
50if (string.IsNullOrEmpty(name))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
256if (string.IsNullOrEmpty(message))
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
102if (member.Type is not null && !string.IsNullOrEmpty(member.Type.BaseType))
System\ComponentModel\Design\SiteNestedContainer.cs (1)
32if (string.IsNullOrEmpty(_containerName))
System\Drawing\BitmapSelector.cs (1)
37=> string.IsNullOrEmpty(Suffix) ? filePath : Path.ChangeExtension(filePath, Suffix + Path.GetExtension(filePath));
System\Drawing\Design\ImageEditor.cs (1)
36if (string.IsNullOrEmpty(extensions[i]))
System\Drawing\Design\ToolboxItem.cs (2)
488else if (!string.IsNullOrEmpty(typeName)) 512if (a is null && !string.IsNullOrEmpty(assemblyName.CodeBase))
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
343if (!string.IsNullOrEmpty(generatedCodeNamespace)) 475else if (!string.IsNullOrEmpty(nameSpace))
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
273if (site is INestedSite nestedSite && !string.IsNullOrEmpty(nestedSite.FullName)) 277else if (!string.IsNullOrEmpty(site.Name))
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
198if (string.IsNullOrEmpty(name))
System\Windows\Forms\Design\ControlDesigner.cs (1)
428if (string.IsNullOrEmpty(message))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
151if (!string.IsNullOrEmpty(columnSiteName)) 246if (!string.IsNullOrEmpty(compName) && ValidateName(currentContainer, compName, newColumns[i])) 924if (string.IsNullOrEmpty(column?.DataPropertyName)) 1070if (string.IsNullOrEmpty(column.DataPropertyName))
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (3)
63return !string.IsNullOrEmpty(dataGridViewComboBoxColumn.DisplayMember); 69return !string.IsNullOrEmpty(dataGridViewComboBoxColumn.ValueMember); 74if (string.IsNullOrEmpty(dataMember))
System\Windows\Forms\Design\DataGridViewDesigner.cs (6)
246Debug.Assert(string.IsNullOrEmpty(dataGridView.DataMember), "in the designer we can't set DataSource and DataMember at the same time. Did you forget to set AutoGenerateColumns to false at a previous stage?"); 398if (string.IsNullOrEmpty(dataGridViewColumn.DataPropertyName)) 457if (string.IsNullOrEmpty(dataGridViewColumn.DataPropertyName)) 579if (!string.IsNullOrEmpty(col.DataPropertyName)) 658dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(backEndProps[i].DisplayName) ? backEndProps[i].DisplayName : backEndProps[i].Name; 702if (string.IsNullOrEmpty(message))
System\Windows\Forms\Design\DesignBinding.cs (1)
26if (string.IsNullOrEmpty(DataMember))
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
772string dataField = string.IsNullOrEmpty(dataMember) ? property.Name : dataMember + "." + property.Name; 890if (!string.IsNullOrEmpty(_selectedItem.DataMember) 1025if (_selectedItem is not null && string.IsNullOrEmpty(_selectedItem.DataMember)) 1347if (!string.IsNullOrEmpty(dataMember)) 1371if (site is not null && !string.IsNullOrEmpty(site.Name))
System\Windows\Forms\Design\DesignerUtils.cs (1)
620if (string.IsNullOrEmpty(name))
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
166if (string.IsNullOrEmpty(path))
System\Windows\Forms\Design\EditorServiceContext.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(newVerbText), "newVerbText cannot be null or empty");
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
341if (string.IsNullOrEmpty(name))
System\Windows\Forms\Design\FormatControl.cs (1)
134if (string.IsNullOrEmpty(formatString))
System\Windows\Forms\Design\FormatControl.CustomFormatType.cs (1)
28if (string.IsNullOrEmpty(formatString))
System\Windows\Forms\Design\FormatStringDialog.cs (1)
117if (!string.IsNullOrEmpty(formatString))
System\Windows\Forms\Design\ImageCollectionEditor.cs (2)
41if (!string.IsNullOrEmpty(text)) 54if (string.IsNullOrEmpty(text))
System\Windows\Forms\Design\InheritanceUI.cs (1)
88&& !string.IsNullOrEmpty(_toolTip.GetToolTip(c)))
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (2)
37if (!string.IsNullOrEmpty(text)) 45if (string.IsNullOrEmpty(text))
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (2)
56if (!string.IsNullOrEmpty(text)) 64if (string.IsNullOrEmpty(text))
System\Windows\Forms\Design\MaskDescriptor.cs (3)
69if (string.IsNullOrEmpty(maskDescriptor.Mask) || string.IsNullOrEmpty(maskDescriptor.Name) || string.IsNullOrEmpty(maskDescriptor.Sample))
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
422if (!string.IsNullOrEmpty(_maskedTextBox.Mask))
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (2)
250if (string.IsNullOrEmpty(maskedTextBox.Mask)) 262if (string.IsNullOrEmpty(maskedTextBox.Mask))
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
217if (string.IsNullOrEmpty(exceptionMessage))
System\Windows\Forms\Design\SelectionUIService.cs (1)
129if (string.IsNullOrEmpty(message))
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
469if (!string.IsNullOrEmpty(nameOfRandomItem) && char.IsUpper(nameOfRandomItem[0]))
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
778if (!string.IsNullOrEmpty(itemText))
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
542if (!string.IsNullOrEmpty(text)) 560if (textProperty is not null && !string.IsNullOrEmpty(text)) 1666if (!string.IsNullOrEmpty(nameOfRandomItem) && char.IsUpper(nameOfRandomItem[0]))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
162if (string.IsNullOrEmpty((string)ShadowProperties[SettingsKeyName]))
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
73if (!string.IsNullOrEmpty(imageName)) 276if (desc is not null && !string.IsNullOrEmpty(desc.PropertyName))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
860if (!string.IsNullOrEmpty(newText) || _addingDummyItem) 877if (textProperty is not null && !string.IsNullOrEmpty(newText))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
715if (string.IsNullOrEmpty(text)) 1084if (string.IsNullOrEmpty(text)) 1472if (string.IsNullOrEmpty(text))
System.Windows.Forms.Primitives (1)
System\Windows\Forms\FileDialogCustomPlace.cs (1)
61if (!string.IsNullOrEmpty(_path))
System.Xaml (62)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
434if (string.IsNullOrEmpty(assemblyPath)) 439if (!string.IsNullOrEmpty(assemblyPath))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
121if (!string.IsNullOrEmpty(converterName))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (4)
821if (string.IsNullOrEmpty(mappedNamespace) || namespaceName == mappedNamespace) 958if (!string.IsNullOrEmpty(pair)) 1006if (!string.IsNullOrEmpty(prefix)) 1220if (string.IsNullOrEmpty(requiresValue))
System\Windows\Markup\NameReferenceConverter.cs (1)
35if (string.IsNullOrEmpty(name))
System\Windows\Markup\Reference.cs (1)
33if (string.IsNullOrEmpty(Name))
System\Windows\Markup\StaticExtension.cs (2)
73if (string.IsNullOrEmpty(typeString)) 92if (string.IsNullOrEmpty(typeString))
System\Xaml\Context\XamlContext.cs (1)
151if (string.IsNullOrEmpty(propName.Prefix) && !propName.IsDotted)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
2241if (!string.IsNullOrEmpty(rootNamespace))
System\Xaml\InfosetObjects\XamlXmlReader.cs (3)
185if (!string.IsNullOrEmpty(myXmlReader.BaseURI)) 195if (!string.IsNullOrEmpty(myXmlReader.XmlLang)) 353string.IsNullOrEmpty(assemblyName))
System\Xaml\MS\Impl\XmlNsInfo.cs (8)
196if (string.IsNullOrEmpty(xmlns) || clrns is null) 342if (string.IsNullOrEmpty(newns) || string.IsNullOrEmpty(oldns)) 394if (string.IsNullOrEmpty(prefix) || string.IsNullOrEmpty(xmlns)) 547if (string.IsNullOrEmpty(prefix1)) 549if (!string.IsNullOrEmpty(prefix2)) 554else if (string.IsNullOrEmpty(prefix2))
System\Xaml\NameScope.cs (1)
89if (_nameMap is null || string.IsNullOrEmpty(name))
System\Xaml\Parser\GenericTypeNameParser.cs (3)
56if (string.IsNullOrEmpty(ns)) 89if (string.IsNullOrEmpty(error)) 119if (string.IsNullOrEmpty(error))
System\Xaml\Parser\MePullParser.cs (1)
84if (string.IsNullOrEmpty(_brokenRule))
System\Xaml\Parser\NodeStreamSorter.cs (1)
232if (!string.IsNullOrEmpty(_settings.XmlLang))
System\Xaml\Parser\XamlAttribute.cs (1)
130if (string.IsNullOrEmpty(Name.Prefix) && KS.Eq(Name.Name, KnownStrings.XmlNsPrefix))
System\Xaml\Parser\XamlPropertyName.cs (3)
26if (string.IsNullOrEmpty(longName)) 47if (string.IsNullOrEmpty(owner)) 58if (!string.IsNullOrEmpty(owner))
System\Xaml\Parser\XamlPullParser.cs (2)
599if (string.IsNullOrEmpty(trimmed)) 681if (string.IsNullOrEmpty(trimmed))
System\Xaml\Parser\XamlQualifiedName.cs (3)
19return string.IsNullOrEmpty(Prefix) ? 83if (string.IsNullOrEmpty(prefix) || !IsNameValid(prefix)) 96if (string.IsNullOrEmpty(name) || !IsNameValid_WithPlus(name))
System\Xaml\XamlMarkupExtensionWriter.cs (1)
277if (!string.IsNullOrEmpty(prefix))
System\Xaml\XamlObjectReader.cs (4)
1626if (context.IsPropertyReadVisible(p) && !string.IsNullOrEmpty(GetConstructorArgument(p))) 1634if (context.IsPropertyReadVisible(p) && !string.IsNullOrEmpty(GetConstructorArgument(p))) 1778if (!string.IsNullOrEmpty(Name) && 2112if (!string.IsNullOrEmpty(GetConstructorArgument(property)))
System\Xaml\XamlSchemaContext.cs (3)
175if (string.IsNullOrEmpty(assemblyName)) 603if (!string.IsNullOrEmpty(constructorArgumentName)) 1249if (string.IsNullOrEmpty(assemblyName))
System\Xaml\XamlServices.cs (1)
144if (string.IsNullOrEmpty(fileName))
System\Xaml\XamlType.cs (5)
707if (string.IsNullOrEmpty(propertyName)) 803if (string.IsNullOrEmpty(contentPropertyName)) 1366if (string.IsNullOrEmpty(methodName)) 1391if (string.IsNullOrEmpty(methodName)) 1456if (!string.IsNullOrEmpty(ns))
System\Xaml\XamlTypeName.cs (1)
209if (string.IsNullOrEmpty(Name))
System\Xaml\XamlXmlWriter.cs (8)
266if (string.IsNullOrEmpty(s)) 291if (string.IsNullOrEmpty(s)) 483if (!string.IsNullOrEmpty(prefix)) 634ReadOnlySpan<char> typeNamePrefixed = string.IsNullOrEmpty(prefix) ? typeName : $"{prefix}:{typeName}"; 882if (string.IsNullOrEmpty(prefix)) 1750if (XamlLanguage.String.CanAssignTo(property.Type) && !string.IsNullOrEmpty(value)) 2004if (!string.IsNullOrEmpty(XamlObjectReader.GetConstructorArgument(p))) 2012if (!string.IsNullOrEmpty(XamlObjectReader.GetConstructorArgument(p)))
testhost (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
testhost.arm64 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
testhost.x86 (3)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
TestProject.AppHost (1)
TestProgram.cs (1)
72string testPrefix = string.IsNullOrEmpty(testName) ? "" : $"{testName}-";
TestProject.IntegrationServiceA (1)
Program.cs (1)
8var resourcesToSkip = !string.IsNullOrEmpty(skipResourcesValue)
TypeScriptApiCompat (1)
TypeScriptApiCompatRunner.cs (1)
26if (!string.IsNullOrEmpty(reportDirectory))
UIAutomationClient (4)
MS\Internal\Automation\CacheHelper.cs (1)
146if (string.IsNullOrEmpty(treeDescription))
MS\Internal\Automation\Misc.cs (1)
675if (string.IsNullOrEmpty(s) || s.IndexOfAny(new char[2] { ' ', '&' }) < 0)
MS\Internal\Automation\ProxyManager.cs (2)
508if (!String.IsNullOrEmpty(baseClassName)) 523if (proxy == null && !String.IsNullOrEmpty(baseClassName))
UIAutomationClientSideProviders (50)
MS\Internal\AutomationProxies\Misc.cs (2)
1628if (string.IsNullOrEmpty(s) || s.IndexOfAny(new char[2] { ' ', '&' }) < 0) 1921if (string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
846if(pattern == InvokePattern.Pattern && !String.IsNullOrEmpty(_acc.DefaultAction)) 851else if(pattern == ValuePattern.Pattern && !String.IsNullOrEmpty(_acc.Value)) 895return string.IsNullOrEmpty(value) ? null : value; 900return string.IsNullOrEmpty(value) ? null : value; 917return string.IsNullOrEmpty(value) ? null : value;
MS\Internal\AutomationProxies\ProxyHwnd.cs (8)
135if (string.IsNullOrEmpty(accessKey)) 154return string.IsNullOrEmpty(sPersistentID) ? null : sPersistentID; 165if (!string.IsNullOrEmpty(name)) 182if (!string.IsNullOrEmpty(name)) 198if (String.IsNullOrEmpty(name)) 261if (string.IsNullOrEmpty(text)) 266if (string.IsNullOrEmpty(text)) 498if (!string.IsNullOrEmpty(labelText))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
341return string.IsNullOrEmpty(sRawName) ? null : Misc.AccessKey(sRawName); 612name = string.IsNullOrEmpty(name) ? null : name;
MS\Internal\AutomationProxies\WindowsButton.cs (3)
56_fControlHasLabel = string.IsNullOrEmpty(GetLocalizedName()); 63_fControlHasLabel = string.IsNullOrEmpty(GetLocalizedName()); 70_fControlHasLabel = string.IsNullOrEmpty(GetLocalizedName());
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
616if (!string.IsNullOrEmpty(text))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
28if (!string.IsNullOrEmpty(className)) 167if (string.IsNullOrEmpty(dlgName))
MS\Internal\AutomationProxies\WindowsEditBox.cs (2)
149hwnd != IntPtr.Zero && string.IsNullOrEmpty(accessKey); 202if (string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (1)
389if (string.IsNullOrEmpty(s))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
181return string.IsNullOrEmpty(helpText) ? null : helpText; 191if (string.IsNullOrEmpty(text))
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
90if (!string.IsNullOrEmpty(key))
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
1300if (string.IsNullOrEmpty(menuRawText)) 1340if (!string.IsNullOrEmpty(accelerator)) 1377if (!string.IsNullOrEmpty(acceleratorKey)) 1536return string.IsNullOrEmpty(text) ? null : SubMenuAccessKey(text); 2726if (string.IsNullOrEmpty(menuRawText)) 2764if (!string.IsNullOrEmpty(accelerator))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
143if (string.IsNullOrEmpty(name)) 520if (string.IsNullOrEmpty(text)) 572if (!string.IsNullOrEmpty(text))
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
245return string.IsNullOrEmpty(text) ? "" : text; 717if (string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\WindowsTab.cs (6)
358if (string.IsNullOrEmpty(sTitle)) 705if (!string.IsNullOrEmpty(WindowsTabItem.GetName(hwnd, i, true))) 908_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 955return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 980if (!string.IsNullOrEmpty(name)) 1328if (!string.IsNullOrEmpty(sName))
MS\Internal\AutomationProxies\WindowsToolbar.cs (3)
258if (string.IsNullOrEmpty(name)) 264return string.IsNullOrEmpty(name) ? null : name; 608if (!string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
48if (!string.IsNullOrEmpty(text))
UnitTests.Common (2)
TestTypes.cs (2)
624sb.AppendLine("StringValue: " + (string.IsNullOrEmpty(_stringValue) ? "<empty>" : _stringValue.ToString())); 625sb.AppendLine("LongerStringValue: " + (string.IsNullOrEmpty(_longerStringValue) ? "<empty>" : _longerStringValue.ToString()));
vbc (1)
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
67if (string.IsNullOrEmpty(directoryName))
VBCSCompiler (3)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (2)
119if (string.IsNullOrEmpty(request.WorkingDirectory)) 128if (string.IsNullOrEmpty(request.TempDirectory))
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
67if (string.IsNullOrEmpty(directoryName))
vstest.console (5)
NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
vstest.console.arm64 (5)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (3)
37if (!string.IsNullOrEmpty(debugEnabled) && !debugEnabled.Equals("0", StringComparison.Ordinal)) 128if (!string.IsNullOrEmpty(debugEnabled) && debugEnabled.Equals("1", StringComparison.Ordinal)) 156if (!string.IsNullOrEmpty(nativeDebugEnabled) && nativeDebugEnabled.Equals("1", StringComparison.Ordinal)
src\vstest\src\vstest.console\NullableHelpers.cs (2)
19/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 22=> string.IsNullOrEmpty(value);
WindowsFormsIntegration (7)
System\Windows\Integration\ElementHost.cs (2)
527if (string.IsNullOrEmpty(text)) 531if (!string.IsNullOrEmpty(text))
System\Windows\Integration\PropertyMap.cs (2)
80if (string.IsNullOrEmpty(propertyName)) 248if (string.IsNullOrEmpty(propertyName))
System\Windows\Integration\PropertyMappingExceptionEventArgs.cs (1)
26if (string.IsNullOrEmpty(propertyName))
System\Windows\Integration\WindowsFormsHost.cs (2)
994if (string.IsNullOrEmpty(text)) 998if (!string.IsNullOrEmpty(text))