12119 references to Empty
aspire (193)
Acquisition\IdentityResolver.cs (4)
334: string.Empty; 347return (string.Empty, string.Empty); 353return (informational, string.Empty);
Acquisition\IInstallSidecarReader.cs (1)
72/// directory could be resolved; empty (<see cref="string.Empty"/>) when the
Acquisition\InstallationDiscovery.cs (2)
100Path = canonicalPath ?? processPath ?? string.Empty, 206: new InstallSidecarReadResult.NotFound(string.Empty);
Acquisition\InstallationInfo.cs (1)
160Path = GetStringOr("path", string.Empty),
Acquisition\InstallSidecarReader.cs (3)
48return new InstallSidecarReadResult.NotFound(string.Empty); 78var effectiveRawSource = fields.Source ?? string.Empty; 133reason = string.Empty;
Acquisition\PeerInstallProbe.cs (5)
239static () => new PeerProcessOutput(string.Empty, string.Empty, StderrTruncated: false), 271var suffix = alsoTriedVersion ? " (and --version fallback)" : string.Empty; 406return string.Empty; 447return new CappedOutput(string.Empty, Truncated: false);
Agents\AspireSkills\AspireSkillsInstaller.cs (3)
459? tagNameElement.GetString() ?? string.Empty 460: string.Empty; 784string.Empty,
Agents\Copilot\CopilotAppInstallationDetector.cs (1)
184includeProgramsDirectory ? "Programs" : string.Empty,
Certificates\CertificateGeneration\CertificateManager.cs (2)
696keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 700key.ImportFromEncryptedPem(pem, string.Empty);
Commands\AgentMcpCommand.cs (1)
309var toolName = request.Params?.Name ?? string.Empty;
Commands\AppHostLauncher.cs (2)
1151displayLine = string.Empty; 1187displayLine = string.Empty;
Commands\DcpWorkloadCleanupService.cs (3)
70return new DcpWorkloadCleanupResult(CliExitCodes.FailedToDotnetRunAppHost, string.Empty, ex.Message, DcpFound: true); 81public static DcpWorkloadCleanupResult NotFound() => new(CliExitCodes.FailedToDotnetRunAppHost, string.Empty, string.Empty, DcpFound: false);
Commands\GroupedHelpWriter.cs (4)
135var description = cmd.Description ?? string.Empty; 148visibleOptions.Select(static opt => (FormatOptionLabel(opt), opt.Description ?? string.Empty)), 195var description = cmd.Description ?? string.Empty; 280return string.Empty;
Commands\InstallationInfoOutput.cs (1)
211Path = Environment.ProcessPath ?? string.Empty,
Commands\LogsCommand.cs (8)
268ResourceName = entry.ResourcePrefix ?? string.Empty, 270Content = entry.Content ?? entry.RawContent ?? string.Empty, 444var displayName = entry.ResourcePrefix ?? string.Empty; 445var content = entry.Content ?? entry.RawContent ?? string.Empty; 447var timestampPrefix = timestamps && entry.Timestamp.HasValue ? FormatTimestamp(entry.Timestamp.Value) + " " : string.Empty; 468var dimTimestamp = timestampPrefix.Length > 0 ? $"[dim]{timestampPrefix.EscapeMarkup()}[/]" : string.Empty; 486var content = entry.RawContent ?? entry.Content ?? string.Empty; 487var prefix = entry.ResourcePrefix ?? string.Empty;
Commands\PipelineCommandBase.cs (9)
1096var header = statusText ?? string.Empty; 1097var label = input.Label ?? string.Empty; 1361return string.Empty; 1371return string.Empty; 1412public string Id { get; set; } = string.Empty; 1413public string Title { get; set; } = string.Empty; 1420public string CompletionText { get; set; } = string.Empty; 1427public string Id { get; set; } = string.Empty; 1428public string StatusText { get; set; } = string.Empty;
Commands\ResourceCommand.cs (5)
34DefaultValueFactory = _ => string.Empty 41DefaultValueFactory = _ => string.Empty 250return (group.Key, description ?? string.Empty); 777GetVisibleCliOptions(commandResult).Select(static option => (GroupedHelpWriter.FormatOptionLabel(option, includeValueName: true), option.Description ?? string.Empty)), 893? string.Empty
Commands\RunCommand.cs (1)
1068ctrlCGrid.AddRow(new Text(string.Empty), new Markup(RunCommandStrings.PressCtrlCToStopAppHost) { Overflow = Overflow.Ellipsis });
Commands\Sdk\SdkExportCommand.cs (5)
282packageName = string.Empty; 283packageVersion = string.Empty; 284errorMessage = string.Empty; 332normalizedVersion = string.Empty; 342var suffix = suffixIndex >= 0 ? version[suffixIndex..] : string.Empty;
Commands\SettingsSchemaBuilder.cs (1)
120var description = prop.GetCustomAttribute<DescriptionAttribute>()?.Description ?? string.Empty;
Commands\TelemetryCommandHelpers.cs (2)
264var token = apiKey ?? string.Empty; 299var apiBaseUrl = DashboardUrls.NormalizeDashboardRequestUrl(dashboardInfo.ApiBaseUrl, stripLoginPath: false) ?? string.Empty;
Configuration\ConfigurationService.cs (1)
201FlattenJsonObject(settings, config, string.Empty);
Configuration\PackageEntry.cs (4)
207writer.WriteStringValue(string.Empty); 215writer.WriteStringValue(value.Version ?? string.Empty); 221writer.WriteString("path", value.Path ?? string.Empty); 228writer.WriteString("path", value.Path ?? string.Empty);
Diagnostics\StartupErrorWriter.cs (1)
55var prefix = emoji is not null ? ConsoleHelpers.FormatEmojiPrefix(emoji.Value, _errorConsole) : string.Empty;
Documentation\ApiDocs\ApiDocsIndexService.cs (1)
809.OrderBy(containerId => preferredTopLevelScopes.Contains(GetTopLevelScopeId(containerId) ?? string.Empty) ? 0 : 1)
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (2)
103name = string.Empty; 104href = string.Empty;
Documentation\Docs\DocsIndexService.cs (1)
331var queryAsPhrase = queryTokens.Length > 1 ? string.Join(' ', queryTokens) : string.Empty;
DotNet\DotNetCliRunner.cs (15)
527: environment.GetEnvironmentVariable("PATH") ?? string.Empty; 849var diagnosticStdout = options.SuppressLogging ? string.Empty : stdout; 850var diagnosticStderr = options.SuppressLogging ? string.Empty : stderr; 905var noBuildSwitch = noBuild ? "--no-build" : string.Empty; 906var noRestoreSwitch = noRestore && !noBuild ? "--no-restore" : string.Empty; // --no-build implies --no-restore 907var noProfileSwitch = options.NoLaunchProfile ? "--no-launch-profile" : string.Empty; 914var nonInteractiveSwitch = watch ? "--non-interactive" : string.Empty; 916var verboseSwitch = watch && options.Debug ? "--verbose" : string.Empty; 923true => ["run", noBuildSwitch, noRestoreSwitch, noProfileSwitch, .. launchProfileSwitch, noBuild ? string.Empty : suppressCliRunHookProperty, "--file", projectFile.FullName] 1276var noRestoreSwitch = noRestore ? "--no-restore" : string.Empty; 1405return string.Empty; 1410return string.Empty; 1461string nugetConfigHash = string.Empty; 1534string stdout = string.Empty; 1535string stderr = string.Empty;
DotNet\DotNetRestoreConfiguration.cs (1)
95=> properties.GetProperty(name).GetString() ?? string.Empty;
Git\GitWorktree.cs (5)
263gitDirectory = string.Empty; 296resolvedPath = string.Empty; 315contents = string.Empty; 320contents = string.Empty; 336resolvedPath = string.Empty;
HostEnvironment.cs (1)
21.Select(e => (Name: e.Key?.ToString() ?? string.Empty, Value: e.Value?.ToString()));
Interaction\ConsoleInteractionService.cs (1)
146var emojiPrefix = emoji is { } e ? ConsoleHelpers.FormatEmojiPrefix(e, MessageConsole) : string.Empty;
Interaction\PromptBinding.cs (1)
116new(null, string.Empty, static _ => (false, default), defaultValue, hasExplicitDefault: true);
Layout\LayoutConfiguration.cs (1)
188return File.Exists(path) ? (path, string.Empty) : null;
Mcp\Tools\IDashboardInfoProvider.cs (1)
98return (apiToken ?? string.Empty, apiBaseUrl, dashboardBaseUrl);
Mcp\Tools\ListConsoleLogsTool.cs (3)
105(e.Content ?? string.Empty, e.RawContent ?? string.Empty, e.ResourcePrefix ?? string.Empty),
Mcp\Tools\McpToolHelpers.cs (6)
71var apiBaseUrl = DashboardUrls.NormalizeDashboardRequestUrl(dashboardInfo.ApiBaseUrl, stripLoginPath: false) ?? string.Empty; 101removeDashboardLoginToken: false) ?? string.Empty; 204Fragment = string.Empty, 205UserName = string.Empty, 206Password = string.Empty 238return string.Empty;
Npm\SigstoreNpmProvenanceChecker.cs (2)
525owner = string.Empty; 526repo = string.Empty;
NuGet\NuGetPackageAssetResolver.cs (2)
144var libraryName = library.Name ?? string.Empty; 145var libraryVersion = library.Version?.ToString() ?? string.Empty;
Packaging\PackagingService.cs (2)
747id = string.Empty; 748version = string.Empty;
Profiling\ProfileCaptureService.cs (6)
159[KnownConfigNames.ProfilingSessionId] = string.Empty, 160[KnownConfigNames.Legacy.StartupOperationId] = string.Empty, 161[KnownOtelConfigNames.ExporterOtlpEndpoint] = string.Empty, 162[KnownOtelConfigNames.ExporterOtlpProtocol] = string.Empty, 163[KnownOtelConfigNames.ExporterOtlpHeaders] = string.Empty, 164[KnownOtelConfigNames.BspScheduleDelay] = string.Empty
Projects\DotNetAppHostProject.cs (7)
575return tail.Contains('$') || tail.Contains('@') ? string.Empty : tail; 863fileName = string.Empty; 909fullPath = string.Empty; 1096var anchorFileName = anchorArg is null ? string.Empty : StripQuotes(anchorArg).Trim(); 1100anchorFileName = string.Empty; 1119: string.Empty; 2663? (Path: repoPath, InvocationArgs: string.Empty)
Projects\DotNetBasedAppHostServerProject.cs (2)
121return string.Empty; 596startInfo.Environment[BundleDiscovery.TerminalHostInvocationArgsEnvVar] = string.Empty;
Projects\FallbackProjectParser.cs (3)
147var usesAppHostSdk = DotNetAppHostProject.ContainsAspireAppHostSdk(root.Attribute("Sdk")?.Value ?? string.Empty) 152&& DotNetAppHostProject.ContainsAspireAppHostSdk(e.Attribute("Sdk")?.Value ?? string.Empty))); 304Version = version ?? string.Empty
Projects\IntegrationClosureBuilder.cs (2)
74projectFile.AddProperty("RestoreAdditionalProjectSources", sourceList ?? string.Empty); 155new XElement("RestoreConfigFile", string.Empty));
Projects\PrebuiltAppHostServer.cs (1)
344output.AppendError($" packages: {string.Join(", ", preview)}{(packageRefs.Count > 5 ? $", … (+{packageRefs.Count - 5} more)" : string.Empty)}");
Projects\ProjectLocator.cs (1)
661var messageSuffix = validationResult.Message is { Length: > 0 } message ? $": {message}" : string.Empty;
Projects\ProjectUpdater.cs (5)
836&& ContainsAspireAppHostSdk(element.Attribute("Sdk")?.Value ?? string.Empty)) 838&& ((element.Name.LocalName == "Import" && ContainsAspireAppHostSdk(element.Attribute("Sdk")?.Value ?? string.Empty)) 1139.Where(node => ContainsAspireAppHostSdk(node.Attributes?["Sdk"]?.Value ?? string.Empty) 1421? restoreTargets.GetString() ?? string.Empty 1422: string.Empty;
Projects\RepositoryToolUpdater.cs (1)
120: manifest.IsNpm && reference.Version.StartsWith('~') ? "~" : string.Empty;
Projects\TypeScriptAppHostToolchainResolver.cs (1)
353reason = string.Empty;
src\Shared\AssemblyVersionHelper.cs (2)
18return assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty; 26return assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? string.Empty;
src\Shared\BackchannelConstants.cs (1)
583appHostId = string.Empty;
src\Shared\ConsoleLogs\LogParser.cs (1)
55return updatedText ?? string.Empty;
src\Shared\ConsoleLogs\SharedAIHelpers.cs (9)
217var spanId = span.SpanId ?? string.Empty; 218var traceId = span.TraceId ?? string.Empty; 235["traceId"] = link.TraceId ?? string.Empty, 236["spanId"] = link.SpanId ?? string.Empty 352var traceId = span.TraceId ?? string.Empty; 613return string.Empty; 620?? string.Empty; 729var message = GetLogMessage(logEntry.LogRecord) ?? string.Empty; 768return string.Empty;
src\Shared\DashboardUrls.cs (1)
290var pathQuery = queryIndex >= 0 ? pathWithoutFragment[(queryIndex + 1)..] : string.Empty;
src\Shared\FormatHelpers.cs (1)
115return string.Empty;
src\Shared\Json\JsonFlattener.cs (1)
19FlattenJsonObjectRecursive(source, string.Empty, result);
src\Shared\PackageUpdateHelpers.cs (3)
22public string Id { get; set; } = string.Empty; 23public string Version { get; set; } = string.Empty; 24public string Source { get; set; } = string.Empty;
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
src\Shared\Telemetry\InternalMicrosoftDetector.cs (3)
622var userDnsDomain = outputLines.FirstOrDefault() ?? string.Empty; 623var userName = outputLines.Skip(1).FirstOrDefault() ?? string.Empty; 1633: [string.Empty];
src\Shared\Telemetry\MachineInformationProviderBase.cs (1)
81return BitConverter.ToString(hashInput).Replace("-", string.Empty).ToLowerInvariant();
src\Shared\Telemetry\WindowsMachineInformationProvider.cs (3)
68value = string.Empty; 76value = existingValue ?? string.Empty; 81value = string.Empty;
src\Shared\UserSecrets\UserSecretsPathHelper.cs (1)
48return string.Empty;
Templating\DotNetTemplateFactory.cs (1)
111var pathVariable = environment.GetEnvironmentVariable("PATH") ?? string.Empty;
Utils\ConsoleActivityLogger.cs (1)
501: string.Empty;
Utils\DotNetToolDetection.cs (2)
192toolPath = string.Empty; 220toolPath = string.Empty;
Utils\EnvironmentChecker\EnvironmentCheckResult.cs (3)
57public string Category { get; init; } = string.Empty; 63public string Name { get; init; } = string.Empty; 76public string Message { get; init; } = string.Empty;
Utils\FileSystemHelper.cs (1)
24return string.Empty;
Utils\FirstTimeUseNoticeSentinel.cs (1)
45File.WriteAllText(_sentinelFilePath, string.Empty);
Utils\Markdown\MarkdownToSpectreConverter.cs (2)
51return string.Empty; 54return HtmlTagRegex().Replace(text.ToString(), string.Empty);
Utils\Markdown\MarkdownToSpectreConverter.Markup.cs (4)
199var value = i < row.Count ? row[i] : string.Empty; 221var markup = col < markupValues[rowIndex].Count ? markupValues[rowIndex][col] : string.Empty; 524_ => (string.Empty, string.Empty)
Utils\Markdown\MarkdownToSpectreConverter.Renderable.cs (1)
197: string.Empty;
Utils\MarkupHelpers.cs (1)
88return string.Empty;
Utils\PackageSourceRedactor.cs (4)
64UserName = hasUserInfo ? "***" : string.Empty, 65Password = string.Empty, 66Query = string.Empty, 67Fragment = string.Empty
aspire-tray (1)
Program.cs (1)
92Environment.ProcessPath ?? string.Empty,
Aspire.Acquisition.Tests (8)
Scripts\Common\RealGitHubPRFixture.cs (5)
33public string CommitSHA { get; private set; } = string.Empty; 53CommitSHA = string.Empty; 208public string Output => string.Empty; 225public string HeadRefOid { get; set; } = string.Empty; 246public string Name { get; set; } = string.Empty;
Scripts\PRScriptPowerShellTests.cs (1)
555return string.Empty;
Scripts\PRScriptShellTests.cs (1)
620return string.Empty;
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
Aspire.Azure.Data.Tables.Tests (2)
DataTablesPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Azure.Messaging.EventHubs (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Azure.Messaging.EventHubs.Tests (11)
MessagingEventHubsPublicApiTests.cs (10)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty; 85var connectionName = isNull ? null! : string.Empty; 113var name = isNull ? null! : string.Empty; 141var connectionName = isNull ? null! : string.Empty; 169var name = isNull ? null! : string.Empty; 197var connectionName = isNull ? null! : string.Empty; 225var name = isNull ? null! : string.Empty; 253var connectionName = isNull ? null! : string.Empty; 281var name = isNull ? null! : string.Empty;
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (1)
148public override string ClientRequestId { get; set; } = string.Empty;
Aspire.Azure.Messaging.ServiceBus (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Azure.Messaging.ServiceBus.Tests (2)
MessagingServiceBusPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Azure.Messaging.WebPubSub (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Azure.Messaging.WebPubSub.Tests (3)
MessagingWebPubSubPublicApiTests.cs (3)
29var connectionName = isNull ? null! : string.Empty; 58var connectionName = isNull ? null! : string.Empty; 76var serviceKey = isNull ? null! : string.Empty;
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
AzureNpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (1)
30var connectionName = isNull ? null! : string.Empty;
Aspire.Azure.Npgsql.Tests (2)
NpgsqlPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Azure.Search.Documents.Tests (2)
SearchDocumentsPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Azure.Security.KeyVault.Tests (7)
AspireKeyVaultExtensionsTests.cs (3)
284var name = isNull ? null! : string.Empty; 302var name = isNull ? null! : string.Empty; 320var name = isNull ? null! : string.Empty;
MockTransport.cs (1)
148public override string ClientRequestId { get; set; } = string.Empty;
SecurityKeyVaultPublicApiTests.cs (3)
30var connectionName = isNull ? null! : string.Empty; 58var name = isNull ? null! : string.Empty; 86var connectionName = isNull ? null! : string.Empty;
Aspire.Azure.Storage.Blobs.Tests (2)
StorageBlobsPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Azure.Storage.Files.DataLake.Tests (4)
AzureDataLakePublicApiTests.cs (4)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty; 85var connectionName = isNull ? null! : string.Empty; 113var name = isNull ? null! : string.Empty;
Aspire.Azure.Storage.Queues (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Azure.Storage.Queues.Tests (4)
StorageQueuesPublicApiTests.cs (4)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty; 87var connectionName = isNull ? null! : string.Empty; 119var name = isNull ? null! : string.Empty;
Aspire.Cli.EndToEnd.Tests (21)
ChannelUpdateWorkflowTests.cs (1)
374reason = string.Empty;
CompletionTests.cs (2)
60Assert.Equal(string.Empty, await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "completion.stderr"))); 61Assert.Equal(string.Empty, await File.ReadAllTextAsync(Path.Combine(workspace.WorkspaceRoot.FullName, "suggestions.stderr")));
CSharpInitTests.cs (1)
49var languageArg = configuredLanguage ? string.Empty : " --language typescript";
Helpers\CliE2EAutomatorHelpers.cs (2)
287? string.Empty 1170var argsFragment = mcpArgs is not null ? $" {mcpArgs}" : string.Empty;
Helpers\CliE2ETestHelpers.cs (2)
92commitSha = string.Empty; 99commitSha = Environment.GetEnvironmentVariable("GITHUB_PR_HEAD_SHA") ?? string.Empty;
Helpers\CliInstallStrategyTests.cs (1)
973Assert.Equal(string.Empty, commitSha);
Helpers\KubernetesDeployTestHelpers.cs (1)
102var imageArgument = nodeImage is null ? string.Empty : $" --image={nodeImage}";
Helpers\TypeScriptAppHostToolchainTestHelpers.cs (1)
190File.WriteAllText(yarnLockPath, string.Empty);
JavaScriptPublishTests.cs (1)
218""" : string.Empty;
McpDocsE2ETests.cs (2)
304return string.Empty; 310.FirstOrDefault() ?? string.Empty;
tests\Shared\CliPackageDiscovery.cs (1)
98return string.Empty;
TypeScriptPolyglotApphostDirectoryTests.cs (1)
37var channelArgument = localChannel is not null ? " --channel local" : string.Empty;
TypeScriptPolyglotTests.cs (5)
44var channelArgument = localChannel is not null ? " --channel local" : string.Empty; 171var channelArgument = localChannel is not null ? " --channel local" : string.Empty; 257var channelArgument = localChannel is not null ? " --channel local" : string.Empty; 331var channelArgument = localChannel is not null ? " --channel local" : string.Empty; 407var channelArgument = localChannel is not null ? " --channel local" : string.Empty;
Aspire.Cli.Tests (447)
Acquisition\IdentityResolverTests.cs (2)
89environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = string.Empty }); 116Assert.Equal(string.Empty, resolver.ResolveCommit().Value);
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (4)
44using var _ = new EnvVarOverride("PATH", pathDir + Path.PathSeparator + (Environment.GetEnvironmentVariable("PATH") ?? string.Empty)); 336using var _ = new EnvVarOverride("PATH", binDir + Path.PathSeparator + (Environment.GetEnvironmentVariable("PATH") ?? string.Empty)); 578using var _ = new EnvVarOverride("PATH", pathDir + Path.PathSeparator + (Environment.GetEnvironmentVariable("PATH") ?? string.Empty)); 856binDir + Path.PathSeparator + (Environment.GetEnvironmentVariable("PATH") ?? string.Empty));
Acquisition\InstallSidecarReaderTests.cs (3)
59var empty = Assert.IsType<InstallSidecarReadResult.NotFound>(reader.TryRead(string.Empty)); 60Assert.Equal(string.Empty, empty.SidecarPath); 63Assert.Equal(string.Empty, nullResult.SidecarPath);
Acquisition\InstallSourceDetectorTests.cs (1)
266File.WriteAllText(processPath, string.Empty);
Acquisition\PeerInstallProbeTests.cs (7)
239using var fakePeer = FakePeerScript.Build(outputHelper, stdout: "{}", stderr: string.Empty, exitCode: 7); 254doctorStdout: string.Empty, 277doctorStdout: string.Empty, 279versionStdout: string.Empty, 299versionStdout: string.Empty, 471return Build(outputHelper, stdout, stderr: string.Empty, exitCode); 781return string.Empty;
Agents\AspireSkillsInstallerTests.cs (2)
2099string.Empty); 2136string.Empty);
Agents\CopilotAppInstallationDetectorTests.cs (1)
20string.Empty,
Agents\PlaywrightCliInstallerTests.cs (2)
1233public string? PackResult { get; set; } = string.Empty; 1251if (PackResult == string.Empty)
Backchannel\AuxiliaryBackchannelMonitorTests.cs (2)
529Assert.False(AuxiliaryBackchannelMonitor.IsAppHostInScopeOfDirectory(string.Empty, Path.GetTempPath())); 820? (true, string.Empty)
Backchannel\OrphanedAppHostCollectorTests.cs (1)
370File.WriteAllText(path, string.Empty);
BundleServiceComputeDefaultExtractDirTests.cs (7)
37File.WriteAllText(binaryPath, string.Empty); 60File.WriteAllText(binaryPath, string.Empty); 80File.WriteAllText(binaryPath, string.Empty); 106File.WriteAllText(cellarBinary, string.Empty); 145File.WriteAllText(binaryPath, string.Empty); 165File.WriteAllText(binaryPath, string.Empty); 177var result = BundleService.ComputeDefaultExtractDir(string.Empty);
Certificates\UnixCertificateManagerTests.cs (2)
197[CertificateConfiguration.NssDbPathsConfigPath] = string.Empty 257[CertificateConfiguration.NssDbPathsConfigPath] = string.Empty
CliBootstrapTests.cs (1)
495File.WriteAllText(binaryPath, string.Empty);
CliExecutionContextTests.cs (1)
110File.WriteAllText(Path.Combine(hivesDir.FullName, ".DS_Store"), string.Empty);
Commands\AddCommandTests.cs (83)
58var rawJson = string.Empty; 89var rawJson = string.Empty; 123var rawJson = string.Empty; 213var rawJson = string.Empty; 270var rawJson = string.Empty; 326var rawJson = string.Empty; 391var rawJson = string.Empty; 399File.WriteAllText(appHostFile.FullName, string.Empty); 464var rawJson = string.Empty; 472File.WriteAllText(appHostFile.FullName, string.Empty); 545var rawJson = string.Empty; 553File.WriteAllText(appHostFile.FullName, string.Empty); 644var rawJson = string.Empty; 652File.WriteAllText(appHostFile.FullName, string.Empty); 729var rawJson = string.Empty; 739File.WriteAllText(appHostFile.FullName, string.Empty); 792var rawJson = string.Empty; 800File.WriteAllText(appHostFile.FullName, string.Empty); 865var rawJson = string.Empty; 873File.WriteAllText(appHostFile.FullName, string.Empty); 935var rawJson = string.Empty; 983var rawJson = string.Empty; 1358var selectedPackageVersion = string.Empty; 1436var selectedPackageVersion = string.Empty; 1462File.WriteAllText(appHostFile.FullName, string.Empty); 1512var selectedPackageVersion = string.Empty; 1600var selectedPackageName = string.Empty; 1601var selectedPackageVersion = string.Empty; 1667var selectedPackageVersion = string.Empty; 1740var selectedPackageVersion = string.Empty; 2649File.WriteAllText(appHostFile.FullName, isTypeScript ? string.Empty : "<Project />"); 2666var addedPackageId = string.Empty; 2667var addedPackageVersion = string.Empty; 2753var addedPackageId = string.Empty; 2754var addedPackageVersion = string.Empty; 2758File.WriteAllText(appHostFile.FullName, string.Empty); 2814var selectedPackageId = string.Empty; 2876var selectedPackageVersion = string.Empty; 2943File.WriteAllText(Path.Combine(packagesDir.FullName, $"Aspire.Hosting.{cliVersion}.nupkg"), string.Empty); 2944File.WriteAllText(Path.Combine(packagesDir.FullName, $"Aspire.Hosting.Redis.{cliVersion}.nupkg"), string.Empty); 3048File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{cliVersion}.nupkg"), string.Empty); 3049File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.Redis.{cliVersion}.nupkg"), string.Empty); 3086File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{cliVersion}.nupkg"), string.Empty); 3087File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.Redis.{cliVersion}.nupkg"), string.Empty); 3089File.WriteAllText(Path.Combine(prPackagesDir.FullName, $"Aspire.Hosting.{staleVersion}.nupkg"), string.Empty); 3090File.WriteAllText(Path.Combine(prPackagesDir.FullName, $"Aspire.Hosting.Redis.{staleVersion}.nupkg"), string.Empty); 3119File.WriteAllText(Path.Combine(identityPackagesDir.FullName, $"Aspire.Hosting.{cliVersion}.nupkg"), string.Empty); 3120File.WriteAllText(Path.Combine(identityPackagesDir.FullName, $"Aspire.Hosting.Redis.{cliVersion}.nupkg"), string.Empty); 3122var selectedPackageVersion = string.Empty; 3198var selectedPackageVersion = string.Empty; 3253var addedPackageId = string.Empty; 3257File.WriteAllText(appHostFile.FullName, string.Empty); 3296Assert.Equal(string.Empty, addedPackageId); 3316File.WriteAllText(appHostFile.FullName, string.Empty); 3350var sourceArgument = includeSource ? $" --source {sourceOverride}" : string.Empty; 3371File.WriteAllText(appHostFile.FullName, string.Empty); 3375string.Empty); 3415File.WriteAllText(appHostFile.FullName, string.Empty); 3423string.Empty); 3476var addedPackageId = string.Empty; 3480File.WriteAllText(appHostFile.FullName, string.Empty); 3526var rawJson = string.Empty; 3534File.WriteAllText(appHostFile.FullName, string.Empty); 3582File.WriteAllText(appHostFile.FullName, string.Empty); 3630File.WriteAllText(appHostFile.FullName, string.Empty); 3678File.WriteAllText(appHostFile.FullName, string.Empty); 3721var addedPackageId = string.Empty; 3730File.WriteAllText(appHostFile.FullName, string.Empty); 3781File.WriteAllText(appHostFile.FullName, string.Empty); 3829var rawJson = string.Empty; 3839File.WriteAllText(appHostFile.FullName, string.Empty); 3956var addedPackage = string.Empty; 4110var addedPackage = string.Empty; 4160var addedPackage = string.Empty; 4219var displayedSubtleMessage = string.Empty; 4220var addedPackage = string.Empty; 4476var addedPackageName = string.Empty; 4477var addedPackageVersion = string.Empty; 4642var displayedSubtleMessage = string.Empty; 4643var addedPackageName = string.Empty; 4644var addedPackageVersion = string.Empty; 4731var displayedSubtleMessage = string.Empty; 4816var addedPackage = string.Empty;
Commands\AgentInitCommandTests.cs (1)
420var selection = selectByName ? $" --skills {skill.Name}" : string.Empty;
Commands\AgentMcpCommandTests.cs (1)
2003return string.Empty;
Commands\AppHostLauncherTests.cs (2)
1630public string FileName => string.Empty; 1703public string FileName => string.Empty;
Commands\CompletionsCommandTests.cs (9)
37Assert.Equal(string.Empty, error.ToString()); 137Assert.Equal(string.Empty, error.ToString()); 157Assert.Equal(string.Empty, error.ToString()); 195Assert.Equal(string.Empty, error.ToString()); 214Assert.Equal(string.Empty, error.ToString()); 232Assert.Equal(string.Empty, output.ToString()); 304Assert.Equal(string.Empty, error.ToString()); 351Assert.Equal(string.Empty, output.ToString()); 378Assert.Equal(string.Empty, error.ToString());
Commands\CompletionScriptTests.cs (2)
175Assert.Equal(string.Empty, output); 331Assert.Equal(string.Empty, await stderr);
Commands\ConfigCommandTests.cs (1)
1205return string.Empty;
Commands\DoctorCommandTests.cs (1)
1088value = string.Empty;
Commands\ExtensionInternalCommandTests.cs (3)
78var allOutput = string.Join(string.Empty, capturedOutput.Logs); 125var allOutput = string.Join(string.Empty, capturedOutput.Logs); 155var allOutput = string.Join(string.Empty, capturedOutput.Logs);
Commands\InitCommandTests.cs (2)
613File.WriteAllText(Path.Combine(scaffoldDirectory.FullName, context.Language.AppHostFileName!), string.Empty); 2348File.WriteAllText(Path.Combine(context.TargetDirectory.FullName, appHostFileName), string.Empty);
Commands\LsCommandTests.cs (8)
118var jsonOutput = string.Join(string.Empty, textWriter.Logs); 158var jsonOutput = string.Join(string.Empty, textWriter.Logs); 199var jsonOutput = string.Join(string.Empty, textWriter.Logs); 241var stdoutText = string.Join(string.Empty, textWriter.Logs); 273var stdoutText = string.Join(string.Empty, textWriter.Logs); 331Assert.Equal(string.Empty, errorWriter.ToString()); 357Assert.Equal(string.Empty, errorWriter.ToString()); 409Assert.Equal(string.Empty, errorWriter.ToString());
Commands\NewCommandChannelResolutionTests.cs (1)
681File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{version}.nupkg"), string.Empty);
Commands\NewCommandTemplateConfigPersistenceTests.cs (2)
518File.WriteAllText(processPath, string.Empty); 521File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{s_prVersion}.nupkg"), string.Empty);
Commands\NewCommandTests.cs (8)
817var capturedProjectNameDefault = string.Empty; 818var capturedOutputPathDefault = string.Empty; 867var scaffoldedLanguageId = string.Empty; 1258File.WriteAllText(Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1303File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 1351File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 2120File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty); 2237File.WriteAllText(Path.Combine(sourceOverride, "Aspire.ProjectTemplates.9.2.0.nupkg"), string.Empty);
Commands\ParseResultHelperTests.cs (2)
377Assert.Equal(string.Empty, ParseResultHelper.GetLoggableArguments(_command.Parse([]))); 381Assert.Equal(string.Empty, ParseResultHelper.GetLoggableArguments(_command.Parse([_command.Name])));
Commands\PsCommandTests.cs (11)
167var jsonOutput = string.Join(string.Empty, textWriter.Logs); 219var jsonOutput = string.Join(string.Empty, textWriter.Logs); 257var jsonOutput = string.Join(string.Empty, textWriter.Logs); 303var jsonOutput = string.Join(string.Empty, textWriter.Logs); 345var jsonOutput = string.Join(string.Empty, textWriter.Logs); 392var normalizedOutput = output.Replace(Environment.NewLine, string.Empty, StringComparison.Ordinal); 425var normalizedOutput = output.Replace(Environment.NewLine, string.Empty, StringComparison.Ordinal); 488var json = string.Join(string.Empty, textWriter.Logs); 742var jsonOutput = string.Join(string.Empty, textWriter.Logs); 789var jsonOutput = string.Join(string.Empty, textWriter.Logs); 828var jsonOutput = string.Join(string.Empty, textWriter.Logs);
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1174return Task.FromResult(binding?.DefaultValue ?? string.Empty);
Commands\RootCommandTests.cs (1)
176Assert.Equal(string.Empty, errorOutput);
Commands\RunCommandTests.cs (1)
1633var expectedAppHostArguments = new[] { "true", "false", string.Empty, "--detach", "--option-shaped" };
Commands\SetupCommandTests.cs (1)
56var result = SetupCommand.GetDefaultInstallPath(string.Empty);
Commands\StartCommandTests.cs (1)
227var expectedAppHostArguments = new[] { "true", "false", string.Empty, "--detach", "--option-shaped" };
Commands\StopCommandTests.cs (2)
759var volumesOption = deleteVolumes ? " --volumes" : string.Empty; 1030var volumesOption = deleteVolumes ? " --volumes" : string.Empty;
Commands\TypeScriptAppHostToolingCheckTests.cs (3)
147Assert.Contains("Yarn Classic is not supported", result.Details ?? string.Empty); 148Assert.Contains("yarn@1.22.22", result.Details ?? string.Empty); 170Assert.Contains("yarn.lock", result.Details ?? string.Empty);
Commands\UpdateCommandTests.cs (14)
662return Task.FromResult(string.Empty); 741return Task.FromResult(string.Empty); 818return Task.FromResult(string.Empty); 1255return Task.FromResult(string.Empty); 1290return Task.FromResult(string.Empty); 1349return Task.FromResult(string.Empty); 2028var updatedWithChannel = string.Empty; 2636var updatedWithChannel = string.Empty; 2701File.WriteAllText(appHostFile.FullName, string.Empty); 2707var updatedWithChannel = string.Empty; 2983return (exitCode, context?.Channel.Name ?? string.Empty, promptInvoked); 3541File.WriteAllText(processPath, string.Empty); 3542File.WriteAllText(storeExecutablePath, string.Empty); 3553File.WriteAllText(processPath, string.Empty);
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (1)
1277? string.Empty
DotNet\DotNetCliRunnerTests.cs (17)
77var sources = hasConfiguredSources ? "https://custom.example/v3/index.json" : string.Empty; 137var sources = hasConfiguredSources ? "https://custom.example/v3/index.json" : string.Empty; 251var childTargets = customChildTargets ? Path.Combine(childDirectory.FullName, "Custom;NuGet.targets") : string.Empty; 721File.WriteAllText(cliPath, string.Empty); 722File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 734File.WriteAllText(cliPath, string.Empty); 735File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 750File.WriteAllText(dotnetPath, string.Empty); 761File.WriteAllText(cliPath, string.Empty); 762File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 774File.WriteAllText(cliPath, string.Empty); 775File.WriteAllText(Path.Combine(cliDirectory.FullName, "aspire.dll"), string.Empty); 778File.WriteAllText(Path.Combine(cliDirectory.FullName, "dcp", OperatingSystem.IsWindows() ? "dcp.exe" : "dcp"), string.Empty); 779File.WriteAllText(Path.Combine(cliDirectory.FullName, "managed", OperatingSystem.IsWindows() ? "aspire-managed.exe" : "aspire-managed"), string.Empty); 2444$"Failed to get items and properties from project. Exit code was: 1. See debug logs for more details. Stderr: {(suppressLogging ? string.Empty : stderr + Environment.NewLine)}, Stdout: {(suppressLogging ? string.Empty : stdout + Environment.NewLine)}", 2922await File.WriteAllTextAsync(packagePath, string.Empty);
HeldFileLeaseTests.cs (4)
85File.WriteAllText(readyPath, string.Empty); 102File.WriteAllText(releasePath, string.Empty); 144File.WriteAllText(readyPath, string.Empty); 163File.WriteAllText(releasePath, string.Empty);
Interaction\ConsoleInteractionServiceTests.cs (1)
571await interactionService.ShowStatusAsync(string.Empty, () => Task.FromResult(0)).DefaultTimeout();
Layout\LayoutConfigurationTests.cs (3)
47Assert.Equal(supportsDirectLaunch ? string.Empty : "terminalhost", launch.Value.InvocationArgs); 95File.WriteAllText(dashboardPath, string.Empty); 100File.WriteAllText(managedPath, string.Empty);
Mcp\E2E\McpDocsE2ETests.cs (2)
273return string.Empty; 279.FirstOrDefault() ?? string.Empty;
Mcp\ListConsoleLogsToolTests.cs (1)
533return match.Success ? match.Groups[1].Value : string.Empty;
Mcp\ListResourcesToolTests.cs (3)
769[KnownProperties.Resource.Source] = JsonValue.Create(string.Empty), 780[KnownProperties.Resource.Source] = JsonValue.Create(string.Empty), 791[KnownProperties.Resource.Source] = JsonValue.Create(string.Empty),
Mcp\McpToolHelpersTests.cs (1)
187Assert.Equal(string.Empty, result);
Mcp\SelectAppHostToolTests.cs (1)
201=> result.Content?.OfType<TextContentBlock>().FirstOrDefault()?.Text ?? string.Empty;
Npm\NpmRunnerTests.cs (1)
169var existingPath = Environment.GetEnvironmentVariable("PATH") ?? string.Empty;
NuGet\NuGetClientTests.cs (3)
41: string.Empty; 44: string.Empty; 1705? string.Empty
Packaging\PackageChannelTests.cs (40)
148string.Empty); 176CreatePackageWithTags(channelPackagesDirectory, packageId, "99.0.0", string.Empty); 229File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 233File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 276File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 279File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 317File.WriteAllText(Path.Combine(channelPackagesDirectory.FullName, "Aspire.ProjectTemplates.13.4.0-preview.1.nupkg"), string.Empty); 321File.WriteAllText(Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.13.5.0-preview.2.nupkg"), string.Empty); 356File.WriteAllText(Path.Combine(nestedDirectory.FullName, "Aspire.ProjectTemplates.13.5.0-preview.2.nupkg"), string.Empty); 383File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Redis.{pinnedVersion}.nupkg"), string.Empty); 384File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.PostgreSQL.{pinnedVersion}.nupkg"), string.Empty); 385File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"CommunityToolkit.Aspire.Hosting.NodeJS.{pinnedVersion}.nupkg"), string.Empty); 388File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.SqlServer.13.3.0.nupkg"), string.Empty); 391File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 398File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.AppHost.{pinnedVersion}.nupkg"), string.Empty); 399File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Sdk.{pinnedVersion}.nupkg"), string.Empty); 400File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Orchestration.linux-arm64.{pinnedVersion}.nupkg"), string.Empty); 401File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Testing.{pinnedVersion}.nupkg"), string.Empty); 402File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Msi.{pinnedVersion}.nupkg"), string.Empty); 403File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Integration.Analyzers.{pinnedVersion}.nupkg"), string.Empty); 406File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.Dapr.{pinnedVersion}.nupkg"), string.Empty); 407File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.GitHub.Models.{pinnedVersion}.nupkg"), string.Empty); 408File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.Hosting.NodeJs.{pinnedVersion}.nupkg"), string.Empty); 691File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.4.0.nupkg"), string.Empty); 692File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.5.0-preview.1.nupkg"), string.Empty); 693File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.PostgreSQL.13.4.0-preview.1.nupkg"), string.Empty); 710File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.4.0.nupkg"), string.Empty); 711File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.5.0-preview.1.nupkg"), string.Empty); 712File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.PostgreSQL.13.4.0.nupkg"), string.Empty); 729File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.5.0.nupkg"), string.Empty); 730File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Redis.13.6.0-preview.1.nupkg"), string.Empty); 731File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Azure.Kubernetes.13.6.0-pr.19404.gf51e8e1d.nupkg"), string.Empty); 760File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Dapr.13.4.0.nupkg"), string.Empty); 761File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Sql.13.4.0.nupkg"), string.Empty); 780File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Dapr.13.4.0.nupkg"), string.Empty); 781File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.Hosting.Sql.13.4.0.nupkg"), string.Empty); 797CreatePackageWithTags(packagesDirectory, "Aspire.Hosting.Redis", "13.6.0-dev", string.Empty); 798CreatePackageWithTags(packagesDirectory, "Aspire.Hosting.Redis", "99.0.0", string.Empty); 828CreatePackageWithTags(packagesDirectory, "Aspire.Hosting.Redis", "13.6.0-dev", string.Empty); 829CreatePackageWithTags(packagesDirectory, "Aspire.Hosting.Redis", "99.0.0", string.Empty);
Packaging\PackagingServiceTests.cs (35)
1492File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{localVersion}.nupkg"), string.Empty); 1493File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{localVersion}.nupkg"), string.Empty); 1516File.WriteAllText(processPath, string.Empty); 1519File.WriteAllText(Path.Combine(packagesDirectory.FullName, $"Aspire.ProjectTemplates.{prVersion}.nupkg"), string.Empty); 1558File.WriteAllText(Path.Combine(defaultPackagesDirectory.FullName, $"Aspire.ProjectTemplates.{defaultHiveVersion}.nupkg"), string.Empty); 1563File.WriteAllText(processPath, string.Empty); 1566File.WriteAllText(Path.Combine(dogfoodPackagesDirectory.FullName, $"Aspire.ProjectTemplates.{dogfoodHiveVersion}.nupkg"), string.Empty); 1599File.WriteAllText(processPath, string.Empty); 1602File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.not-a-semver.nupkg"), string.Empty); 1635File.WriteAllText(processPath, string.Empty); 1665File.WriteAllText(processPath, string.Empty); 1721File.WriteAllText(processPath, string.Empty); 1757File.WriteAllText(processPath, string.Empty); 1780File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{localVersion}.nupkg"), string.Empty); 1972File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 2005File.WriteAllText(Path.Combine(runPackagesDir.FullName, $"Aspire.ProjectTemplates.{pinnedVersion}.nupkg"), string.Empty); 2040File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.{localVersion}.nupkg"), string.Empty); 2042File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.Redis.{localVersion}.nupkg"), string.Empty); 2043File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.Hosting.JavaScript.{localVersion}.nupkg"), string.Empty); 2045File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.ProjectTemplates.{localVersion}.nupkg"), string.Empty); 2046File.WriteAllText(Path.Combine(localPackagesDir.FullName, $"Aspire.AppHost.Sdk.{localVersion}.nupkg"), string.Empty); 2077File.WriteAllText(Path.Combine(localPackagesDir.FullName, "Aspire.Hosting.13.4.0-pr.16820.g1a99aa46.nupkg"), string.Empty); 2169File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, $"Aspire.ProjectTemplates.{overrideVersion}.nupkg"), string.Empty); 2170File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, $"Aspire.Hosting.{overrideVersion}.nupkg"), string.Empty); 2197File.WriteAllText(Path.Combine(staleHiveDir.FullName, "Aspire.Hosting.13.4.0.nupkg"), string.Empty); 2201File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, $"Aspire.Hosting.{overrideVersion}.nupkg"), string.Empty); 2227File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.Hosting.13.4.1.nupkg"), string.Empty); 2228File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.Hosting.13.4.2.nupkg"), string.Empty); 2230File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.ProjectTemplates.13.4.2.nupkg"), string.Empty); 2255File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.Hosting.13.4.1.nupkg"), string.Empty); 2257File.WriteAllText(Path.Combine(nestedDir.FullName, "Aspire.Hosting.13.4.2.nupkg"), string.Empty); 2259File.WriteAllText(Path.Combine(nestedDir.FullName, "Aspire.ProjectTemplates.13.4.2.nupkg"), string.Empty); 2260File.WriteAllText(Path.Combine(packagesOverrideDir.FullName, "Aspire.ProjectTemplates.13.4.2.nupkg"), string.Empty); 2317Assert.Equal(string.Empty, id); 2318Assert.Equal(string.Empty, version);
Processes\ProcessTreeGracefulShutdownServiceTests.cs (8)
100File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(dcpDirectory.FullName), string.Empty); 137File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(dcpDirectory.FullName), string.Empty); 162File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(mutableDcpDirectory.FullName), string.Empty); 167File.WriteAllText(leasedDcpPath, string.Empty); 225File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(dcpDirectory.FullName), string.Empty); 281File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(dcpDirectory.FullName), string.Empty); 320File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(dcpDirectory.FullName), string.Empty); 359File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(dcpDirectory.FullName), string.Empty);
ProfileCaptureOptionsTests.cs (2)
120File.WriteAllText(expectedDashboardPath, string.Empty); 141File.WriteAllText(expectedDashboardPath, string.Empty);
ProfileCaptureServiceTests.cs (18)
72Assert.Equal(string.Empty, environmentVariables[KnownConfigNames.ProfilingSessionId]); 73Assert.Equal(string.Empty, environmentVariables[KnownConfigNames.Legacy.StartupOperationId]); 74Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint]); 75Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol]); 76Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpHeaders]); 77Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.BspScheduleDelay]); 118File.WriteAllText(managedPath, string.Empty); 123string.Empty); 154string.Empty); 157File.WriteAllText(dashboardPath, string.Empty); 514Assert.Equal(string.Empty, environmentVariables[KnownConfigNames.ProfilingSessionId]); 515Assert.Equal(string.Empty, environmentVariables[KnownConfigNames.Legacy.StartupOperationId]); 516Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpEndpoint]); 517Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpProtocol]); 518Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.ExporterOtlpHeaders]); 519Assert.Equal(string.Empty, environmentVariables[KnownOtelConfigNames.BspScheduleDelay]); 529File.WriteAllText(dashboardPath, string.Empty); 739File.WriteAllText(path, string.Empty);
Projects\AppHostConfigurationProjectorTests.cs (1)
81OnGetConfiguration = _ => string.Empty
Projects\AppHostServerSessionTests.cs (1)
524File.WriteAllText(integrationCachePathBlockedByFile, string.Empty);
Projects\DotNetAppHostProjectTests.cs (9)
494Assert.Equal(supportsDirectLaunch ? string.Empty : "terminalhost", env[BundleDiscovery.TerminalHostInvocationArgsEnvVar]); 879Assert.Equal(supportsDirectLaunch ? string.Empty : "terminalhost", env[BundleDiscovery.TerminalHostInvocationArgsEnvVar]); 933Assert.Equal(string.Empty, env[BundleDiscovery.TerminalHostInvocationArgsEnvVar]); 1685File.WriteAllText(targetPath, string.Empty); 2305Assert.Equal(supportsDirectLaunch ? string.Empty : "terminalhost", env[BundleDiscovery.TerminalHostInvocationArgsEnvVar]); 2364Assert.Equal(supportsDirectLaunch ? string.Empty : "terminalhost", env[BundleDiscovery.TerminalHostInvocationArgsEnvVar]); 2995var useCliBundleProperty = useCliBundle ? "#:property AspireUseCliBundle=true" : string.Empty; 3026File.WriteAllText(targetPath, string.Empty); 3035File.WriteAllText(commandPath, string.Empty);
Projects\ExtensionGuestLauncherTests.cs (1)
181File.WriteAllText(executable, string.Empty);
Projects\GuestAppHostProjectTests.cs (1)
638["Aspire.Hosting.Redis"] = string.Empty
Projects\GuestRuntimeTests.cs (4)
853EnvironmentVariables = new Dictionary<string, string> { ["PATH"] = string.Empty } 886EnvironmentVariables = new Dictionary<string, string> { ["PATH"] = string.Empty } 1668File.WriteAllText(executable, string.Empty); 1682public string LastCommand { get; private set; } = string.Empty;
Projects\PrebuiltAppHostServerTests.cs (12)
441Assert.Equal(string.Empty, doc.Descendants(ns + "RestoreConfigFile").FirstOrDefault()?.Value); 876Assert.Equal(string.Empty, restoreSources.Value); 3090string.Empty, 4920string.Empty); 5014? string.Empty 5096? string.Empty 5144File.WriteAllText(dashboardPath, string.Empty); 5170File.WriteAllText(Assert.IsType<string>(layout.GetDashboardPath()), string.Empty); 5196File.WriteAllText(dashboardPath, string.Empty); 5221File.WriteAllText(dashboardPath, string.Empty); 5228Assert.Equal(string.Empty, startInfo.Environment[BundleDiscovery.TerminalHostInvocationArgsEnvVar]); 5255File.WriteAllText(Assert.IsType<string>(layout.GetDashboardPath()), string.Empty);
Projects\ProjectUpdaterNuGetConfigurationTests.cs (7)
723: string.Empty; 726: string.Empty; 737: string.Empty; 814: string.Empty; 817: string.Empty; 1039: string.Empty; 1476: string.Empty;
Projects\TypeScriptAppHostToolchainResolverTests.cs (3)
163File.WriteAllText(Path.Combine(parentDirectory.FullName, "yarn.lock"), string.Empty); 179File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), string.Empty); 215File.WriteAllText(Path.Combine(workspace.WorkspaceRoot.FullName, "yarn.lock"), string.Empty);
Scaffolding\ScaffoldingServiceTests.cs (1)
253File.WriteAllText(Path.Combine(rootDirectory.FullName, "apphost.mts"), string.Empty);
Telemetry\InternalMicrosoftDetectorTests.cs (14)
630await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 631await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 668await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 669await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 702await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 703await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 851await File.WriteAllTextAsync(appSsoPath, string.Empty); 907startInfo.Arguments = $"/d /c type \"{outputPath}\"{(useStderr ? " 1>&2" : string.Empty)}"; 958await File.WriteAllTextAsync(appSsoPath, string.Empty); 1095await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd"), string.Empty); 1096await File.WriteAllTextAsync(Path.Combine(workspace.Path, "dsregcmd.EXE"), string.Empty); 1126await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty); 1157await File.WriteAllTextAsync(Path.Combine(workspace.Path, executable), string.Empty); 1940_requestPaths.Add(request.RequestUri?.AbsolutePath ?? string.Empty);
Templating\JavaAppHostTemplateTests.cs (1)
52.Select(element => element.GetString() ?? string.Empty)
Templating\TemplateNuGetConfigServiceTests.cs (13)
456string.Empty); 653File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 654File.WriteAllText(Path.Combine(prPackagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0-dev.nupkg"), string.Empty); 727File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 728File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0.nupkg"), string.Empty); 770string.Empty); 806File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0-dev.nupkg"), string.Empty); 807File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.99.0.0.nupkg"), string.Empty); 842File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.99.0.0.nupkg"), string.Empty); 883File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.6.0-dev.nupkg"), string.Empty); 884File.WriteAllText(Path.Combine(packagesDirectory.FullName, "Aspire.ProjectTemplates.13.7.0-dev.nupkg"), string.Empty); 984File.WriteAllText(Path.Combine(packagesDir.FullName, "Aspire.ProjectTemplates.13.5.0.nupkg"), string.Empty); 1041await File.WriteAllTextAsync(templatePackagePath, string.Empty);
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (2)
14public string UserName { get; set; } = string.Empty; 15public string UserDomainName { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
TestServices\NullDiskCache.cs (1)
30=> string.Empty;
TestServices\TestConfigurationService.cs (1)
62public string SettingsFilePath { get; set; } = string.Empty;
TestServices\TestDotNetCliRunner.cs (1)
172KeyValuePair.Create<string, JsonNode?>(name, JsonValue.Create(string.Empty))));
TestServices\TestExtensionBackchannel.cs (2)
231: Task.FromResult(defaultValue ?? string.Empty); 239: Task.FromResult(string.Empty);
TestServices\TestExtensionInteractionService.cs (1)
73return Task.FromResult(binding?.DefaultValue ?? string.Empty);
TestServices\TestInteractionService.cs (2)
158ValidationFailures.Add(validationResult.Message ?? string.Empty); 166return Task.FromResult(binding?.DefaultValue ?? string.Empty);
Utils\AspireRepositoryDetectorTests.cs (3)
41File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty); 67File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty); 88File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty);
Utils\CliPathHelperTests.cs (8)
292File.WriteAllText(target, string.Empty); 367File.WriteAllText(realPath, string.Empty); 383File.WriteAllText(realPath, string.Empty); 422File.WriteAllText(binaryPath, string.Empty); 436File.WriteAllText(staleFile, string.Empty); 438File.WriteAllText(freshFile, string.Empty); 465File.WriteAllText(matching, string.Empty); 467File.WriteAllText(unrelated, string.Empty);
Utils\CliUpdateNotificationServiceTests.cs (2)
424File.WriteAllText(processPath, string.Empty); 425File.WriteAllText(storeExecutablePath, string.Empty);
Utils\DcpConnectionHealthCheckTests.cs (1)
318File.WriteAllText(BundleDiscovery.GetDcpExecutablePath(dcpDirectory.FullName), string.Empty);
Utils\DeprecatedWorkloadCheckTests.cs (2)
22return Task.FromResult(new ProcessTextOutput(new ProcessExitStatus(1, canceled: false), string.Empty, string.Empty, processId: 0));
Utils\DotNetToolDetectionTests.cs (3)
43File.WriteAllText(processPath, string.Empty); 44File.WriteAllText(storeExecutablePath, string.Empty); 83File.WriteAllText(processPath, string.Empty);
Utils\FileSystemHelperTests.cs (2)
132FileSystemHelper.CopyDirectory(string.Empty, destDir)); 144FileSystemHelper.CopyDirectory(sourceDir.FullName, string.Empty));
Utils\FirstTimeUseNoticeSentinelTests.cs (1)
32File.WriteAllText(sentinelFilePath, string.Empty);
Utils\MarkupHelpersTests.cs (4)
103Assert.Equal(string.Empty, MarkupHelpers.SafeFileLink(supportsLinks: true, string.Empty)); 104Assert.Equal(string.Empty, MarkupHelpers.SafeFileLink(supportsLinks: false, string.Empty));
Utils\PathNormalizerTests.cs (2)
33Assert.Equal(string.Empty, PathNormalizer.ResolveSymlinks(string.Empty));
Utils\TerminalLinkAssert.cs (1)
13output = Regex.Replace(output, @"\x1b\[[0-9;]*m", string.Empty);
Aspire.Components.Common.TestUtilities (1)
ConformanceTests.cs (1)
58protected virtual string ValidJsonConfig { get; } = string.Empty;
Aspire.Confluent.Kafka (2)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (2)
192var minMessage = minName != null ? $": {minName}" : string.Empty; 193var maxMessage = maxName != null ? $": {maxName}" : string.Empty;
Aspire.Confluent.Kafka.Tests (4)
ConfluentKafkaPublicApiTests.cs (4)
58var connectionName = isNull ? null! : string.Empty; 126var name = isNull ? null! : string.Empty; 194var connectionName = isNull ? null! : string.Empty; 262var name = isNull ? null! : string.Empty;
Aspire.Dashboard (103)
Components\Controls\AspireMenuItem.razor.cs (1)
25{ "title", !string.IsNullOrEmpty(Item.Tooltip) ? Item.Tooltip : Item.Text ?? string.Empty }
Components\Controls\Chart\MetricTable.razor.cs (3)
24private string _unitColumnHeader = string.Empty; 111SecondaryAction = string.Empty, 327return value is null ? string.Empty : value.Value.ToString("F3", CultureInfo.CurrentCulture);
Components\Controls\GridValue.razor.cs (3)
170Value = ValueToVisualize ?? Value ?? string.Empty, 188_componentParameters["Value"] = Value ?? string.Empty; 189_componentParameters["HighlightText"] = HighlightText ?? string.Empty;
Components\Controls\TerminalTitle.razor.cs (2)
31public string FallbackTitle { get; set; } = string.Empty; 119GetCopyAttributes(State?.WorkingDirectory ?? string.Empty, nameof(Resources.TerminalStrings.TerminalCopyWorkingDirectory));
Components\Controls\TerminalView.razor.cs (1)
550public string Title { get; init; } = string.Empty;
Components\Dialogs\ExemplarsDialog.razor.cs (1)
66return string.Empty;
Components\Dialogs\FilterDialog.razor.cs (1)
336var value = _formModel.Value ?? string.Empty;
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
295return vm.ToolDefinition.Name ?? string.Empty;
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
202text ??= string.Empty;
Components\Dialogs\ManageDataDialog.razor.cs (1)
384return string.Empty;
Components\Dialogs\SettingsDialog.razor.cs (1)
98SecondaryAction = string.Empty,
Components\Interactions\InteractionsProvider.cs (1)
651return string.Empty;
Components\Layout\MainLayout.razor.cs (3)
131await SessionStorage.SetAsync(BrowserStorageKeys.SelectedDashboardRunId, string.Empty); 318await SessionStorage.SetAsync(BrowserStorageKeys.SelectedDashboardRunId, runId ?? string.Empty); 344var persistedRunId = RunSelection.SelectedRun is { IsCurrent: false } actualSelectedRun ? actualSelectedRun.RunId : string.Empty;
Components\Pages\ConsoleLogs.razor.cs (1)
176private string _logFilter = string.Empty;
Components\Pages\Error.razor.cs (1)
41new ComponentTelemetryProperty(TelemetryPropertyKeys.ErrorRequestId, new AspireTelemetryProperty(RequestId ?? string.Empty)),
Components\Pages\Metrics.razor.cs (1)
368new ComponentTelemetryProperty(TelemetryPropertyKeys.MetricsSelectedView, new AspireTelemetryProperty(PageViewModel.SelectedViewKind?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting))
Components\Pages\Resources.razor.cs (8)
357PageViewModel.ResourceStatesToVisibility.AddOrUpdate(resource.State ?? string.Empty, stateVisible(resource.State ?? string.Empty), (_, _) => stateVisible(resource.State ?? string.Empty)); 358PageViewModel.ResourceHealthStatusesToVisibility.AddOrUpdate(resource.HealthStatus?.Humanize() ?? string.Empty, healthStatusVisible(resource.HealthStatus?.Humanize() ?? string.Empty), (_, _) => healthStatusVisible(resource.HealthStatus?.Humanize() ?? string.Empty)); 1000&& IsKeyValueTrue(resource.State ?? string.Empty, ResourceStatesToVisibility) 1001&& IsKeyValueTrue(resource.HealthStatus?.Humanize() ?? string.Empty, ResourceHealthStatusesToVisibility)
Components\Pages\StructuredLogs.razor.cs (2)
54private string _filter = string.Empty; 618new ComponentTelemetryProperty(TelemetryPropertyKeys.StructuredLogsSelectedLogLevel, new AspireTelemetryProperty(PageViewModel.SelectedLogLevel.Id?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting)),
Components\Pages\TerminalWindow.razor.cs (2)
31private string _title = string.Empty; 96_title = terminalId ?? resourceName ?? string.Empty;
Components\Pages\TraceDetail.razor.cs (2)
403return string.Empty; 767public string Filter { get; set; } = string.Empty;
Components\Pages\Traces.razor.cs (2)
51private string _filter = string.Empty; 265return string.Empty;
DashboardWebApplication.cs (2)
696new PostConfigureDashboardOptions(builder.Configuration).PostConfigure(name: string.Empty, dashboardOptions); 697var result = new ValidateDashboardOptions().Validate(name: string.Empty, dashboardOptions);
Extensions\FluentUIExtensions.cs (3)
17{ "data-text", text ?? string.Empty }, 18{ "data-precopy", precopy ?? string.Empty }, 19{ "data-postcopy", postcopy ?? string.Empty },
Model\ConnectionStringParser.cs (1)
553return (token, string.Empty);
Model\EnvHelpers.cs (1)
26var value = envVar.Value ?? string.Empty;
Model\GenAI\GenAIItemPartViewModel.cs (15)
61? genericPart.AdditionalProperties?.Select(p => new GenAIPartPropertyViewModel { Name = p.Key, Value = p.Value.ToString() ?? string.Empty }).ToList() 70return new TextVisualizerViewModel(textPart.Content ?? string.Empty, indentText: true, fallbackFormat: DashboardUIHelpers.MarkdownFormat); 76null => string.Empty, 77JsonObject obj when obj.Count == 0 => string.Empty, 78JsonArray arr when arr.Count == 0 => string.Empty, 91: toolCallResponsePart.Response?.ToJsonString(s_jsonSerializerOptions) ?? string.Empty; 97return new TextVisualizerViewModel(blobPart.Content ?? string.Empty, indentText: true); 101return new TextVisualizerViewModel(uriPart.Uri ?? string.Empty, indentText: true); 105return new TextVisualizerViewModel(filePart.FileId ?? string.Empty, indentText: true); 109return new TextVisualizerViewModel(reasoningPart.Content ?? string.Empty, indentText: true, fallbackFormat: DashboardUIHelpers.MarkdownFormat); 115null => string.Empty, 116JsonObject obj when obj.Count == 0 => string.Empty, 117JsonArray arr when arr.Count == 0 => string.Empty, 127: serverToolCallResponsePart.ServerToolCallResponse?.ToJsonString(s_jsonSerializerOptions) ?? string.Empty; 133var content = additionalProperties.Count > 0 ? ToJsonObject(additionalProperties).ToJsonString(s_jsonSerializerOptions) : string.Empty;
Model\GenAI\GenAIMessageParsingHelper.cs (1)
139return (role ?? string.Empty, parts ?? [], partsTruncated);
Model\Interaction\InputViewModel.cs (3)
113set => Input.Value = value ?? string.Empty; 127set => Input.Value = value?.ToString(CultureInfo.InvariantCulture) ?? string.Empty; 147: string.Empty;
Model\Markdown\MarkdownHelpers.cs (2)
36link.Url = string.Empty; 48link.Url = string.Empty;
Model\Markdown\MarkdownProcessor.cs (1)
50return string.Empty;
Model\ResourceViewModel.cs (1)
485public static readonly UrlDisplayPropertiesViewModel Empty = new(string.Empty, 0);
Model\StructuredLogsViewModel.cs (1)
18private string _filterText = string.Empty;
Model\TelemetryExportService.cs (1)
138.Select(e => e.RawContent is not null ? AnsiParser.StripControlSequences(e.RawContent) : string.Empty)
Model\TracesViewModel.cs (1)
17private string _filterText = string.Empty;
Otlp\Model\OtlpHelpers.cs (4)
152return string.Empty; 178return string.Empty; 190AnyValue.ValueOneofCase.None => string.Empty, 547var name = scope?.Name ?? string.Empty;
Otlp\Model\OtlpLogEntryData.cs (2)
48: string.Empty; 52ParentId = parentId ?? string.Empty;
Otlp\Model\OtlpScope.cs (1)
13public static readonly OtlpScope Empty = new OtlpScope(name: UnknownScopeName, version: string.Empty, attributes: []);
Otlp\Model\OtlpTrace.cs (1)
139FullName = string.Empty;
Otlp\Model\OtlpUnits.cs (1)
144"1" => string.Empty,
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (2)
561var where = predicates.Count == 0 ? string.Empty : $" WHERE {string.Join(" AND ", predicates)}"; 760var where = string.Empty;
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (1)
882var where = string.Empty;
Otlp\Storage\SqliteTelemetryRepository.Resources.cs (1)
54{(resourceKey.InstanceId is null ? string.Empty : "AND resources.instance_id = @InstanceId COLLATE NOCASE")};
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (1)
571var resourceWhere = string.Empty;
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
1218var where = string.Empty;
ServiceClient\DashboardRunStore.cs (1)
149File.WriteAllText(Path.Combine(CurrentWorkingDirectory, _applicationMarkerFileName), string.Empty);
src\Shared\AssemblyVersionHelper.cs (2)
18return assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty; 26return assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? string.Empty;
src\Shared\ConsoleLogs\LogParser.cs (1)
55return updatedText ?? string.Empty;
src\Shared\DashboardUrls.cs (1)
290var pathQuery = queryIndex >= 0 ? pathWithoutFragment[(queryIndex + 1)..] : string.Empty;
src\Shared\FormatHelpers.cs (1)
115return string.Empty;
src\Shared\Telemetry\InternalMicrosoftDetector.cs (3)
622var userDnsDomain = outputLines.FirstOrDefault() ?? string.Empty; 623var userName = outputLines.Skip(1).FirstOrDefault() ?? string.Empty; 1633: [string.Empty];
src\Shared\Telemetry\MachineInformationProviderBase.cs (1)
81return BitConverter.ToString(hashInput).Replace("-", string.Empty).ToLowerInvariant();
src\Shared\Telemetry\WindowsMachineInformationProvider.cs (3)
68value = string.Empty; 76value = existingValue ?? string.Empty; 81value = string.Empty;
Telemetry\DashboardTelemetryService.cs (1)
144[TelemetryPropertyKeys.ExceptionRuntimeVersion] = VersionHelpers.RuntimeVersion?.ToString() ?? string.Empty
Terminal\TerminalViewSessionRegistry.cs (2)
71_endpointQuery = QueryHelpers.ParseQuery(separator < 0 ? string.Empty : endpointPathAndQuery[separator..]); 117var query = QueryHelpers.ParseQuery(separator < 0 ? string.Empty : endpointPathAndQuery[separator..]);
Aspire.Dashboard.Components.Tests (97)
Controls\LogViewerTests.cs (2)
109var style = prefixElement.GetAttribute("style") ?? string.Empty; 522return string.Empty;
Controls\PlotlyChartTests.cs (3)
38Description = string.Empty, 39Parent = new OtlpScope("meter", string.Empty, []), 129Parent = new OtlpScope("Parent-Name-<b>Bold</b>", string.Empty, []),
Controls\ResourceDetailsTests.cs (6)
736confirmationMessage: string.Empty, 739iconName: string.Empty, 782confirmationMessage: string.Empty, 785iconName: string.Empty, 828confirmationMessage: string.Empty, 831iconName: string.Empty,
Controls\TextVisualizerDialogTests.cs (14)
46var content = dialog.Instance.Content with { MarkdownDescription = string.Empty }; 93await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawJson, string.Empty, false), new DialogParameters()); 121await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), new DialogParameters()); 142var content = new TextVisualizerDialogViewModel(rawXml, string.Empty, false); 204await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), new DialogParameters()); 221await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, false), new DialogParameters()); 238await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, false), new DialogParameters()); 253await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), new DialogParameters()); 272await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), new DialogParameters()); 295await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), new DialogParameters()); 318await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), new DialogParameters()); 338await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), new DialogParameters()); 350await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: false, FixedFormat: DashboardUIHelpers.PropertiesFormat), new DialogParameters()); 370await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: false, FixedFormat: DashboardUIHelpers.JsonFormat, InitialFormat: DashboardUIHelpers.SqlFormat), new DialogParameters());
Dialogs\InteractionMessageBoxDialogTests.cs (1)
63PrimaryAction = string.Empty,
Dialogs\InteractionsInputDialogTests.cs (12)
53Message = string.Empty, 115Message = string.Empty, 181Message = string.Empty, 236Message = string.Empty, 253Assert.Equal(string.Empty, cut.Find("fluent-field").TextContent.Trim()); 303Placeholder = string.Empty 308Message = string.Empty, 371Message = string.Empty, 634Assert.Equal(string.Empty, viewModel.Inputs[0].Value); 658Message = string.Empty, 719Message = string.Empty, 747Message = string.Empty,
Dialogs\InteractionsTerminalDialogTests.cs (3)
82var viewModel = new InteractionsTerminalDialogViewModel { TerminalId = "terminal", Message = string.Empty }; 109var viewModel = new InteractionsTerminalDialogViewModel { TerminalId = "terminal", Message = string.Empty }; 118.AddChildContent(string.Empty));
Interactions\InteractionsProviderTests.Terminal.cs (1)
44PrimaryButtonText = buttonText ?? string.Empty,
Layout\MainLayoutResourceTerminalsTests.cs (2)
64new("current", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, null, false, "TestApp", string.Empty, true), 65new("historical", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, DateTimeOffset.UnixEpoch, true, "TestApp", string.Empty, false)
Layout\MainLayoutTerminalTests.cs (2)
97new("current", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, null, false, "TestApp", string.Empty, true), 98new("historical", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, DateTimeOffset.UnixEpoch, true, "TestApp", string.Empty, false)
Layout\MainLayoutTests.cs (36)
324DatabasePath: string.Empty, 335DatabasePath: string.Empty, 372DatabasePath: string.Empty, 381DatabasePath: string.Empty, 390DatabasePath: string.Empty, 442DatabasePath: string.Empty, 476DatabasePath: string.Empty, 487DatabasePath: string.Empty, 658Assert.Equal(string.Empty, storedRunId); 683DatabasePath: string.Empty, 692DatabasePath: string.Empty, 727Assert.Equal(string.Empty, storedRunId); 745DatabasePath: string.Empty, 754DatabasePath: string.Empty, 792var currentRun = new DashboardRunDescriptor("current", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, null, false, "TestApp", string.Empty, IsCurrent: true); 793var pinnedRunB = new DashboardRunDescriptor("pinned-b", DashboardRunStore.SchemaVersion, startedAtUtc, null, true, "TestApp", string.Empty, IsCurrent: false) { IsPinned = true }; 794var pinnedRunA = new DashboardRunDescriptor("pinned-a", DashboardRunStore.SchemaVersion, startedAtUtc, null, true, "TestApp", string.Empty, IsCurrent: false) { IsPinned = true }; 795var olderPinnedRun = new DashboardRunDescriptor("pinned-older", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(-1), null, true, "TestApp", string.Empty, IsCurrent: false) { IsPinned = true }; 796var unpinnedRun = new DashboardRunDescriptor("unpinned", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(1), null, true, "TestApp", string.Empty, IsCurrent: false); 797var incompatibleRun = new DashboardRunDescriptor("incompatible", DashboardRunStore.SchemaVersion - 1, startedAtUtc.AddDays(2), null, true, "TestApp", string.Empty, IsCurrent: false) { IsSelectable = false }; 798var unavailableRun = new DashboardRunDescriptor("unavailable", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(3), null, true, "TestApp", string.Empty, IsCurrent: false) { IsSelectable = false }; 799var prunedRun = new DashboardRunDescriptor("pruned", DashboardRunStore.SchemaVersion, startedAtUtc.AddDays(4), null, true, "TestApp", string.Empty, IsCurrent: false) { IsPruned = true }; 828DatabasePath: string.Empty, 832new DashboardRunDescriptor("unpinned-b", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 12, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false), 833new DashboardRunDescriptor("pinned-b", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 11, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false), 834new DashboardRunDescriptor("unpinned-a", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 9, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false), 835new DashboardRunDescriptor("pinned-a", DashboardRunStore.SchemaVersion, new(2025, 1, 2, 10, 0, 0, TimeSpan.Zero), null, true, "TestApp", string.Empty, IsCurrent: false) 923DatabasePath: string.Empty, 967DatabasePath: string.Empty, 978DatabasePath: string.Empty, 1021DatabasePath: string.Empty, 1030DatabasePath: string.Empty, 1062Assert.Equal(string.Empty, storedRunId); 1080DatabasePath: string.Empty, 1091DatabasePath: string.Empty, 1114Assert.Equal(string.Empty, storedRunId);
Layout\TerminalDockTests.cs (2)
84Assert.Equal(string.Empty, cut.Find(".terminal-dock-filler").TextContent); 89Assert.Equal(string.Empty, cut.Find(".terminal-dock-filler").TextContent);
Pages\ConsoleLogsTests.cs (3)
793commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]); 866iconName: string.Empty, 902commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (3)
224iconName: string.Empty, 966Assert.Equal(string.Empty, kvp.Key); 1487var collapsedResourceNamesKeyUsed = string.Empty;
Shared\FluentUISetupHelpers.cs (1)
278DatabasePath: databasePath ?? string.Empty,
Shared\TerminalSetupHelpers.cs (1)
60context.JSInterop.Setup<string>("Blazor._internal.PageTitle.getAndRemoveExistingTitle", _ => true).SetResult(string.Empty);
Shared\TerminalsSetupHelpers.cs (1)
30context.JSInterop.Setup<string>("Blazor._internal.PageTitle.getAndRemoveExistingTitle", _ => true).SetResult(string.Empty);
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
222EventName = eventName ?? string.Empty
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (2)
14public string UserName { get; set; } = string.Empty; 15public string UserDomainName { get; set; } = string.Empty;
Aspire.Dashboard.Playwright.Tests (9)
Integration\Playwright\AccessibilityTests.cs (1)
502? string.Empty
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (3)
107State = resource.State ?? string.Empty, 108StateStyle = resource.StateStyle ?? string.Empty 126EndpointName = url.EndpointName ?? string.Empty,
Integration\Playwright\TerminalTests.cs (1)
233await Assertions.Expect(button).ToHaveAttributeAsync("disabled", string.Empty);
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
222EventName = eventName ?? string.Empty
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (2)
14public string UserName { get; set; } = string.Empty; 15public string UserDomainName { get; set; } = string.Empty;
Aspire.Dashboard.Tests (66)
Integration\OtlpGrpcServiceTests.cs (1)
268Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync().DefaultTimeout());
Integration\OtlpHttpServiceTests.cs (2)
135Assert.Equal(string.Empty, await responseMessage.Content.ReadAsStringAsync().DefaultTimeout()); 201requestMessage.Headers.TryAddWithoutValidation(OtlpApiKeyAuthenticationHandler.ApiKeyHeaderName, string.Empty);
Integration\StartupTests.cs (1)
212data["Dashboard:Otlp:AllowedCertificates:0"] = string.Empty;
Integration\TelemetryApiTests.cs (1)
145Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync().DefaultTimeout());
LoggingHelpersTests.cs (11)
41line => Assert.Equal(string.Empty, line), 46line => Assert.Equal(string.Empty, line)); 74line => Assert.Equal(string.Empty, line), 78line => Assert.Equal(string.Empty, line)); 98line => Assert.Equal(string.Empty, line), 101line => Assert.Equal(string.Empty, line)); 124line => Assert.Equal(string.Empty, line), 127line => Assert.Equal(string.Empty, line)); 188line => Assert.Equal(string.Empty, line), 191line => Assert.Equal(string.Empty, line)); 219return message.Replace("\r", string.Empty).Split('\n');
Middleware\ValidateTokenMiddlewareTests.cs (3)
21using var host = await SetUpHostAsync(FrontendAuthMode.Unsecured, string.Empty).DefaultTimeout(); 29using var host = await SetUpHostAsync(FrontendAuthMode.Unsecured, string.Empty).DefaultTimeout(); 74using var host = await SetUpHostAsync(FrontendAuthMode.Unsecured, string.Empty).DefaultTimeout();
Model\DashboardClientTests.cs (2)
1514confirmationMessage: string.Empty, 1517iconName: string.Empty,
Model\DashboardCommandExecutorTests.cs (1)
315iconName: string.Empty,
Model\DashboardDataSourceTests.cs (8)
403File.WriteAllText(Path.Combine(abandonedDirectory, "dashboard.db"), string.Empty); 429File.WriteAllText(abandonedLockPath, string.Empty); 430File.WriteAllText(activeLockPath, string.Empty); 431File.WriteAllText(unrelatedLockPath, string.Empty); 462File.WriteAllText(initializingLockPath, string.Empty); 507File.WriteAllText(Path.Combine(otherDirectory, "dashboard.db"), string.Empty); 956File.WriteAllText(abandonedLockPath, string.Empty); 957File.WriteAllText(activeLockPath, string.Empty);
Model\GenAIVisualizerDialogViewModelTests.cs (6)
270message: string.Empty, 403KeyValuePair.Create(GenAIHelpers.GenAIEventContent, string.Empty), 1775message: string.Empty, 1788message: string.Empty, 1958message: string.Empty, 2046message: string.Empty,
Model\InputViewModelTests.cs (3)
25Assert.Equal(string.Empty, viewModel.Value); 26Assert.Equal(string.Empty, input.Value); 480Value = string.Empty,
Model\ResourceMenuBuilderTests.cs (4)
338iconName: string.Empty, 348iconName: string.Empty, 386iconName: string.Empty, 474iconName: string.Empty,
Model\ResourceSourceViewModelTests.cs (1)
187SourceProperty: string.Empty),
Model\ResourceUrlHelpersTests.cs (4)
247new("Zero-Https", new("https://localhost:8079"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 0)), 248new("Zero-Http", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 0)), 249new("Positive", new("http://localhost:8082"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 1)), 250new("Negative", new("http://localhost:8083"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, -1))
Model\ResourceViewModelTests.cs (1)
46new EnvironmentVariable { Name = string.Empty, Value = "Value!" }
Model\Serialization\OtlpJsonProtobufConverterTests.cs (1)
15var result = OtlpJsonToProtobufConverter.HexToByteString(string.Empty);
Model\SqliteResourceRepositoryTests.cs (2)
395Exception = string.Empty, 475Assert.Equal(string.Empty, item.Value);
Shared\TerminalTestHost.cs (1)
102(viewId is null ? string.Empty : $"&viewId={viewId}")
Shared\TestDashboardDataSource.cs (1)
47[new("current", DashboardRunStore.SchemaVersion, DateTimeOffset.UnixEpoch, null, false, "TestApp", databasePath ?? string.Empty, IsCurrent: true)])
Telemetry\DashboardTelemetryServiceTests.cs (3)
223new(TelemetryPropertyKeys.ExceptionRuntimeVersion, VersionHelpers.RuntimeVersion?.ToString() ?? string.Empty), 295new(TelemetryPropertyKeys.ExceptionRuntimeVersion, VersionHelpers.RuntimeVersion?.ToString() ?? string.Empty), 317new(TelemetryPropertyKeys.ExceptionRuntimeVersion, VersionHelpers.RuntimeVersion?.ToString() ?? string.Empty),
Telemetry\TelemetryErrorRecorderTests.cs (1)
161new(TelemetryPropertyKeys.ExceptionRuntimeVersion, VersionHelpers.RuntimeVersion?.ToString() ?? string.Empty),
TelemetryRepositoryTests\LogTests.cs (1)
168KeyValuePair.Create("gen_ai.system", string.Empty),
TelemetryRepositoryTests\TraceTests.cs (3)
279CreateSpan(traceId: "other", spanId: "8", startTime: s_testTime.AddMinutes(7), endTime: s_testTime.AddMinutes(8), attributes: [KeyValuePair.Create("http.request.method", string.Empty)]) 1593Resource = CreateResource(name: "resource", instanceId: string.Empty), 1609Assert.Contains(resources, resource => resource.ResourceKey == new ResourceKey("resource", InstanceId: string.Empty));
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
222EventName = eventName ?? string.Empty
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (2)
14public string UserName { get; set; } = string.Empty; 15public string UserDomainName { get; set; } = string.Empty;
Aspire.Deployment.EndToEnd.Tests (3)
AzureConnectorNamespaceDeploymentTests.cs (1)
172return string.Empty;
AzureSandboxesDeploymentTests.cs (1)
488: string.Empty;
tests\Shared\CliPackageDiscovery.cs (1)
98return string.Empty;
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\TestOutputWrapper.cs (1)
12public string Output => testOutputHelper?.Output ?? string.Empty;
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
Aspire.Hosting (100)
ApplicationModel\AspireTerminalKey.cs (3)
353var control = (Modifiers & Hex1bModifiers.Control) != 0 ? "Ctrl+" : string.Empty; 354var alt = (Modifiers & Hex1bModifiers.Alt) != 0 ? "Alt+" : string.Empty; 355var shift = (Modifiers & Hex1bModifiers.Shift) != 0 ? "Shift+" : string.Empty;
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
32if (Path.GetDirectoryName(value) != string.Empty)
ApplicationModel\ExecutableLaunchConfiguration.cs (1)
126public string LaunchProfile { get; set; } = string.Empty;
ApplicationModel\ExecutableLaunchRecipe.cs (1)
445var workingDirectory = executableAnnotation?.WorkingDirectory ?? Path.GetDirectoryName(projectMetadata.ProjectPath) ?? string.Empty;
ApplicationModel\ParameterResource.cs (1)
68public string Value => GetValueAsync(default).AsTask().GetAwaiter().GetResult() ?? string.Empty;
ApplicationModel\ReferenceExpression.cs (2)
37public static readonly ReferenceExpression Empty = Create(string.Empty, [], [], []); 76Format = string.Empty;
ApplicationModel\ResourceExtensions.cs (3)
947var tagSuffix = string.IsNullOrEmpty(buildAnnotation.ImageTag) ? string.Empty : $":{buildAnnotation.ImageTag}"; 954var registryPrefix = string.IsNullOrEmpty(imageAnnotation.Registry) ? string.Empty : $"{imageAnnotation.Registry}/"; 958var tagSuffix = string.IsNullOrEmpty(imageAnnotation.Tag) ? string.Empty : $":{imageAnnotation.Tag}";
ApplicationModel\ResourceLoggerService.cs (1)
856var content = entry.Content ?? string.Empty;
ApplicationModel\TerminalAutomation.cs (1)
141return string.Empty;
ApplicationModel\TerminalHostResource.cs (1)
28: base(name, UnresolvedCommand, string.Empty)
Ats\ExecutionConfigurationExports.cs (3)
113Subject = string.Empty, 114KeyPathExpression = string.Empty, 115PfxPathExpression = string.Empty,
Ats\InteractionExports.cs (2)
502public string Value { get; set; } = string.Empty; 507public string Label { get; set; } = string.Empty;
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
859public static WaitTargetResolutionResult Success(WaitResourceTarget target) => new(target, ResourceNotFound: false, string.Empty);
Dashboard\DashboardEventHandlers.cs (4)
569var separator = sessionDcpInstanceIdPrefix.EndsWith('-') ? string.Empty : "-"; 908public string Timestamp { get; set; } = string.Empty; 912public string Category { get; set; } = string.Empty; 913public string Message { get; set; } = string.Empty;
Dashboard\DashboardService.cs (3)
444Message = message ?? string.Empty, 448response.ErrorMessage = message ?? string.Empty; 817ActivatedTerminalId = activatedTerminalId ?? string.Empty
Dashboard\DashboardServiceData.cs (3)
273inputDtos.Add(new InputDto(input.Name, input.Value ?? string.Empty, input.InputType, files)); 327if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType == InputType.File)
Dashboard\proto\Partials.cs (4)
109Source = volume.Source ?? string.Empty, 119var resourceCommand = new ResourceCommand { Name = command.Name, DisplayName = command.DisplayName, DisplayDescription = command.DisplayDescription ?? string.Empty, Parameter = ResourceSnapshot.ConvertToValue(command.Parameter), ConfirmationMessage = command.ConfirmationMessage ?? string.Empty, IconName = command.IconName ?? string.Empty, IconVariant = MapIconVariant(command.IconVariant), IsHighlighted = command.IsHighlighted, State = MapCommandState(command.State) };
Dcp\ContainerNetworkEndpointProvisioner.cs (2)
203ServerServiceNamespace = string.Empty, 205ClientServiceNamespace = string.Empty
Dcp\DcpDependencyCheck.cs (3)
97if (output == string.Empty) 145|| dcpVersionString == string.Empty 155dcpVersionString = VersionRegex().Replace(dcpVersionString, string.Empty);
Dcp\DcpKubernetesClient.cs (2)
77Request = new HttpRequestMessageWrapper(request, string.Empty), 407return string.Empty;
Dcp\DcpLogParser.cs (3)
41message = string.Empty; 43category = string.Empty; 199string.IsNullOrWhiteSpace(textPart) ? string.Empty : textPart,
Dcp\JsonPatch.cs (1)
20AddOperations(current, changed, string.Empty, operations);
Dcp\Model\Container.cs (1)
612c.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\ContainerExec.cs (1)
138containerExec.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\ContainerNetwork.cs (1)
92c.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\ContainerTunnel.cs (1)
284tp.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\ContainerVolume.cs (1)
79containerVolume.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\Endpoint.cs (1)
49e.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\Executable.cs (1)
300exe.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\ExecutableReplicaSet.cs (1)
108ers.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\Service.cs (1)
84s.Metadata.NamespaceProperty = string.Empty;
Dcp\Process\ProcessOutputCapture.cs (1)
75return string.Empty;
Dcp\Process\ProcessUtil.cs (2)
45WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty, 46Arguments = processSpec.Arguments ?? string.Empty,
Dcp\ResourceLogSource.cs (1)
231return string.Empty;
DeveloperCertificateService.cs (2)
351password ?? string.Empty, 366tempKey.ImportFromEncryptedPem(pemKey, string.Empty);
ExecutableResourceBuilderExtensions.cs (1)
210WorkingDirectory = string.Empty
ExternalServiceBuilderExtensions.cs (3)
243var pathKey = path is not null ? $"_{path}" : string.Empty; 342: new UriBuilder(uri) { UserName = string.Empty, Password = string.Empty }.Uri.ToString();
InteractionService.cs (2)
299options.Title ?? string.Empty, message, options, new Interaction.ProgressInteractionInfo(), 329options.Title ?? string.Empty, message, options, new Interaction.TerminalInteractionInfo(terminal.Id),
Lifecycle\TerminalHostEventingSubscriber.cs (1)
110_dcpOptions.Value.TerminalHostInvocationArgs ?? string.Empty);
Lifecycle\TerminalHostFailureDiagnosticService.cs (1)
121: string.Empty;
Pipelines\Internal\FileDeploymentStateManager.cs (1)
612private static bool IsScalarSectionData(JsonObject value) => value.ContainsKey(string.Empty);
Pipelines\Internal\JsonFlattener.cs (1)
22FlattenJsonObjectRecursive(source, string.Empty, result);
Pipelines\PipelineActivityReporter.cs (1)
227task.CompletionMessage = completionMessage ?? string.Empty;
Pipelines\ReportingStep.cs (1)
60public string CompletionText { get; internal set; } = string.Empty;
Pipelines\ReportingTask.cs (1)
47public string CompletionMessage { get; internal set; } = string.Empty;
Publishing\ContainerImageArchiveRewriter.cs (2)
775repository = string.Empty; 776tag = string.Empty;
Publishing\ContainerRuntimeBase.cs (3)
458var result = string.Empty; 476var result = string.Empty; 502return !string.IsNullOrEmpty(stage) ? $" --target \"{stage}\"" : string.Empty;
Publishing\ManifestPublishingContext.cs (1)
891Writer.WriteString("connectionString", resolvedValue ?? string.Empty);
Publishing\ResourceContainerImageManager.cs (1)
267public string LocalImageName { get; set; } = string.Empty;
ResourceBuilderExtensions.cs (6)
249return builder.WithAnnotation(new EnvironmentAnnotation(name, value ?? string.Empty)); 5870public string Mode { get; init; } = string.Empty; 5873public string ScriptPath { get; init; } = string.Empty; 5876public string RuntimeExecutable { get; init; } = string.Empty; 5879public string WorkingDirectory { get; init; } = string.Empty; 5882public string LaunchMethod { get; init; } = string.Empty;
src\Shared\AssemblyVersionHelper.cs (2)
18return assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty; 26return assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? string.Empty;
src\Shared\BackchannelConstants.cs (1)
583appHostId = string.Empty;
src\Shared\Json\JsonFlattener.cs (1)
19FlattenJsonObjectRecursive(source, string.Empty, result);
src\Shared\PackageUpdateHelpers.cs (3)
22public string Id { get; set; } = string.Empty; 23public string Version { get; set; } = string.Empty; 24public string Source { get; set; } = string.Empty;
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
src\Shared\TerminalHost\TerminalHostPaths.cs (3)
153replicaId = string.Empty; 160replicaId = string.Empty; 168replicaId = string.Empty;
src\Shared\UserSecrets\UserSecretsPathHelper.cs (1)
48return string.Empty;
UserSecrets\NoopUserSecretsManager.cs (1)
23public string FilePath => string.Empty;
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
68private static string TrimAssemblyExtension(string fullPath) => fullPath.Replace(".dll", string.Empty);
Aspire.Hosting.Azure (23)
AzureProvisioningController.cs (5)
367context.Input.Value = options.TenantResourceSuffix ?? string.Empty; 916? suffixInput.Value ?? string.Empty : null); 2091keyVaultResourceId = string.Empty; 2814var suffix = options.TenantResourceSuffix ?? string.Empty; 4344public static AzureOperationState None { get; } = new(string.Empty, false, []);
AzurePublishingContext.cs (1)
238Value = string.Empty
Provisioning\BicepUtilities.cs (2)
59.TenantResourceSuffix ?? string.Empty; 63parameterValue = executionContext.Services.GetRequiredService<IOptions<AzureProvisionerOptions>>().Value.TenantResourceSuffix ?? string.Empty;
Provisioning\Internal\DefaultArmClientProvider.cs (3)
343data.Properties.ProvisioningState?.ToString() ?? string.Empty, 499providerNamespace = string.Empty; 500providerResourceType = string.Empty;
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (1)
142_options.TenantResourceSuffix = result.Data[TenantResourceSuffixName].Value ?? string.Empty;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
423var subscriptionId = context.AllInputs[SubscriptionIdName].Value ?? string.Empty; 462var subscriptionId = context.AllInputs[SubscriptionIdName].Value ?? string.Empty; 463var resourceGroupName = context.AllInputs[ResourceGroupName].Value ?? string.Empty; 514_options.TenantResourceSuffix = suffixInput.Value ?? string.Empty;
Provisioning\Provisioners\BicepProvisioner.cs (3)
578: string.Empty; 1274return details.Count == 0 ? string.Empty : $" ({string.Join("; ", details)})"; 1513return fallbackLocation ?? string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessOutputCapture.cs (1)
75return string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
45WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty, 46Arguments = processSpec.Arguments ?? string.Empty,
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppExtensions.cs (2)
299var userPrincipalId = new ProvisioningParameter(AzureBicepResource.KnownParameters.UserPrincipalId, typeof(string)) { Value = new BicepValue<string>(string.Empty) }; 803var userPrincipalId = new ProvisioningParameter(AzureBicepResource.KnownParameters.UserPrincipalId, typeof(string)) { Value = new BicepValue<string>(string.Empty) };
BaseContainerAppContext.cs (1)
353new BinaryExpression(BicepFunction.ToLower(ResolveValue(conditionVal).Compile()).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression((expr.MatchValue ?? string.Empty).ToLowerInvariant())),
ContainerAppExtensions.cs (2)
77new StringLiteralExpression(string.Empty)), 86new StringLiteralExpression(string.Empty)),
Aspire.Hosting.Azure.AppService (3)
AzureAppServiceEnvironmentExtensions.cs (1)
98var userPrincipalId = new ProvisioningParameter(AzureBicepResource.KnownParameters.UserPrincipalId, typeof(string)) { Value = new BicepValue<string>(string.Empty) };
AzureAppServiceEnvironmentResource.cs (1)
346var normalized = key.Replace("-", string.Empty, StringComparison.Ordinal);
AzureAppServiceWebsiteContext.cs (1)
292new BinaryExpression(BicepFunction.ToLower(ResolveValue(conditionVal).Compile()).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression((expr.MatchValue ?? string.Empty).ToLowerInvariant())),
Aspire.Hosting.Azure.ConnectorNamespace (3)
AzureConnectorNamespaceConnectionAccessPolicyResource.cs (2)
67objectId: string.Empty, 68tenantId: string.Empty,
AzureConnectorNamespaceExtensions.cs (1)
656new StringLiteralExpression(string.Empty));
Aspire.Hosting.Azure.CosmosDB (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Hosting.Azure.EntraId (2)
EntraIdApplicationResource.cs (2)
158Value = string.Empty 161new BinaryExpression(new IdentifierExpression(tenantResourceSuffix.BicepIdentifier), BinaryBicepOperator.Equal, new StringLiteralExpression(string.Empty)),
Aspire.Hosting.Azure.EntraId.Tests (4)
EntraIdResourceBuilderTests.cs (3)
131Assert.Throws<ArgumentException>(() => appBuilder.AddExistingEntraApplication("entra-api", tenantId: string.Empty, clientId: ClientId)); 133Assert.Throws<ArgumentException>(() => appBuilder.AddExistingEntraApplication("entra-api", tenantId: TenantId, clientId: string.Empty)); 1095appBuilder.AddEntraIdApplication(string.Empty));
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Azure.Functions (8)
AzureFunctionsProjectResourceExtensions.cs (8)
367var commandLineArgs = CommandLineArgsParser.Parse(launchProfile.LaunchProfile.CommandLineArgs ?? string.Empty); 813public string Mode { get; set; } = string.Empty; 816public string ProjectPath { get; set; } = string.Empty; 825public string Mode { get; set; } = string.Empty; 828public string AppDirectory { get; set; } = string.Empty; 831public string Command { get; set; } = string.Empty; 834public string Language { get; set; } = string.Empty; 837public string WorkerRuntime { get; set; } = string.Empty;
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
104string.Empty);
Aspire.Hosting.Azure.Kubernetes.Tests (9)
AzureKubernetesInfrastructureTests.cs (8)
348new AzureKubernetesEnvironmentResource.AzCommandResult(0, "apiVersion: v1", string.Empty)); 489string.Empty)); 574string.Empty)); 936string.Empty, 937string.Empty)); 1006string.Empty, 1007string.Empty)); 1076string.Empty));
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Azure.Kusto.Tests (2)
KustoFunctionalTests.cs (1)
277return (record.Category ?? string.Empty).StartsWith("Aspire.Hosting.Tests.Resources", StringComparison.OrdinalIgnoreCase);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Azure.Provisioning.Generators (10)
AspireProvisioningProxyGenerator.cs (10)
501(IsSharedProxyType(type) ? coreTypePrefix : string.Empty) + 1104failureReason = string.Empty; 1580parameterSignature: string.Empty); 1644parameterSignature: string.Empty); 1774parameterSignature: string.Empty); 1916AppendUnionAttribute(source, mappedParameter.Type, string.Empty); 2051value = string.Empty; 2464proxyName + (isNullable ? "?" : string.Empty), 2474mappedType = new MappedType(collectionProxyName + (isNullable ? "?" : string.Empty), MappedTypeKind.Collection, isNullable: isNullable); 2482ProvisionableResourceProxyTypeName + (isNullable ? "?" : string.Empty),
Aspire.Hosting.Azure.Sandboxes (10)
AzureSandboxContainerDeployment.cs (7)
284var diskImageId = string.Empty; 285var sandboxId = string.Empty; 1177return new ResolvedValue(string.Empty, new HashSet<string>(StringComparer.OrdinalIgnoreCase)); 1183context.CancellationToken).ConfigureAwait(false) ?? string.Empty; 1209.ConfigureAwait(false) ?? string.Empty; 1212return new ResolvedValue(value.ToString() ?? string.Empty, new HashSet<string>(StringComparer.OrdinalIgnoreCase)); 1260? new ResolvedValue(string.Empty, new HashSet<string>(StringComparer.OrdinalIgnoreCase))
Internal\Adc\AzureDevComputeClient.cs (3)
464: string.Empty; 473return Task.FromResult(string.Empty); 489var query = queryStart >= 0 ? path[(queryStart + 1)..] : string.Empty;
Aspire.Hosting.Azure.Tests (90)
AzureBicepProvisionerTests.cs (1)
367var suffix = operation is DistributedApplicationOperation.Publish ? "-1792018800" : string.Empty;
AzureConnectorNamespaceTests.cs (3)
118() => worker.WithReference(connection, string.Empty)); 625ObjectId = string.Empty, 633TenantId = string.Empty,
AzureDeployerTests.cs (1)
1853public override string ClientRequestId { get; set; } = string.Empty;
AzureEnvironmentResourceExtensionsTests.cs (1)
5423public override string ClientRequestId { get; set; } = string.Empty;
AzureFunctionsTests.cs (1)
1157File.WriteAllText(Path.Combine(appDirectory, "src", "index.ts"), string.Empty);
AzureKeyVaultTests.cs (1)
435Assert.Contains("localhost:8443", await connectionString.GetValueAsync(default) ?? string.Empty);
BicepUtilitiesTests.cs (2)
72azureState.Data["TenantResourceSuffix"] = string.Empty; 76Assert.Equal(string.Empty, parameters["tenantResourceSuffix"]!["value"]!.GetValue<string>());
DefaultAzurePrincipalProviderTests.cs (2)
90var token = CreateTestToken(Guid.NewGuid(), upn: string.Empty, idtyp: "app"); 102var token = CreateTestToken(Guid.NewGuid(), upn: string.Empty, idtyp: "APP");
ProvisioningContextProviderTests.cs (5)
49Assert.Equal(selectedSuffix ?? string.Empty, options.Value.TenantResourceSuffix); 52Assert.Equal(selectedSuffix ?? string.Empty, saved.Data["TenantResourceSuffix"]!.GetValue<string>()); 205updated = await provider.ApplyProvisioningOptionsAsync(new(null, null, null, null, string.Empty)); 206Assert.Equal(string.Empty, updated.TenantResourceSuffix); 207Assert.Equal(string.Empty, (await provider.GetProvisioningOptionsAsync()).TenantResourceSuffix);
PublicApiTests\AppConfigurationPublicApiTests.cs (2)
28var name = isNull ? null! : string.Empty; 43var name = isNull ? null! : string.Empty;
PublicApiTests\ApplicationInsightsPublicApiTests.cs (2)
39var name = isNull ? null! : string.Empty; 60var name = isNull ? null! : string.Empty;
PublicApiTests\CognitiveServicesPublicApiTests.cs (4)
18var name = isNull ? null! : string.Empty; 36var modelName = isNull ? null! : string.Empty; 54var modelVersion = isNull ? null! : string.Empty; 82var name = isNull ? null! : string.Empty;
PublicApiTests\CosmosDBPublicApiTests.cs (15)
18var name = isNull ? null! : string.Empty; 38var name = isNull ? null! : string.Empty; 59var containerName = isNull ? null! : string.Empty; 79var containerName = isNull ? null! : string.Empty; 100var partitionKeyPath = isNull ? null! : string.Empty; 152IEnumerable<string> partitionKeyPaths = [isNull ? null! : string.Empty]; 196var name = isNull ? null! : string.Empty; 215var databaseName = isNull ? null! : string.Empty; 254var name = isNull ? null! : string.Empty; 295var name = isNull ? null! : string.Empty; 385var databaseName = isNull ? null! : string.Empty; 414var name = isNull ? null! : string.Empty; 445var name = isNull ? null! : string.Empty; 465var partitionKeyPath = isNull ? null! : string.Empty; 507string[] partitionKeyPaths = [isNull ? null! : string.Empty];
PublicApiTests\EventHubsPublicApiTests.cs (10)
19var name = isNull ? null! : string.Empty; 39var consumerGroupName = isNull ? null! : string.Empty; 68var name = isNull ? null! : string.Empty; 86var hubName = isNull ? null! : string.Empty; 139var name = isNull ? null! : string.Empty; 170var name = isNull ? null! : string.Empty; 199var name = isNull ? null! : string.Empty; 253var name = isNull ? null! : string.Empty; 345var path = isNull ? null! : string.Empty; 385var name = isNull ? null! : string.Empty;
PublicApiTests\FunctionsPublicApiTests.cs (7)
70var name = isNull ? null! : string.Empty; 139var name = isNull ? null! : string.Empty; 155var appDirectory = isNull ? null! : string.Empty; 207var name = isNull ? null! : string.Empty; 222var name = isNull ? null! : string.Empty; 235var action = () => new AzureFunctionsAppResource("funcapp", string.Empty, "functions", AzureFunctionsLanguage.TypeScript); 246var appDirectory = isNull ? null! : string.Empty;
PublicApiTests\KeyVaultPublicApiTests.cs (2)
15var name = isNull ? null! : string.Empty; 56var name = isNull ? null! : string.Empty;
PublicApiTests\OperationalInsightsPublicApiTests.cs (2)
15var name = isNull ? null! : string.Empty; 56var name = isNull ? null! : string.Empty;
PublicApiTests\PostgreSQLPublicApiTests.cs (5)
60var name = isNull ? null! : string.Empty; 89var name = isNull ? null! : string.Empty; 154var name = isNull ? null! : string.Empty; 172var databaseName = isNull ? null! : string.Empty; 201var name = isNull ? null! : string.Empty;
PublicApiTests\RedisPublicApiTests.cs (2)
18var name = isNull ? null! : string.Empty; 89var name = isNull ? null! : string.Empty;
PublicApiTests\SearchPublicApiTests.cs (2)
28var name = isNull ? null! : string.Empty; 43var name = isNull ? null! : string.Empty;
PublicApiTests\ServiceBusPublicApiTests.cs (6)
41var name = isNull ? null! : string.Empty; 72var name = isNull ? null! : string.Empty; 101var name = isNull ? null! : string.Empty; 155var name = isNull ? null! : string.Empty; 210var name = isNull ? null! : string.Empty; 277var path = isNull ? null! : string.Empty;
PublicApiTests\SignalRPublicApiTests.cs (2)
50var name = isNull ? null! : string.Empty; 82var name = isNull ? null! : string.Empty;
PublicApiTests\SqlPublicApiTests.cs (4)
16var name = isNull ? null! : string.Empty; 34var databaseName = isNull ? null! : string.Empty; 106var name = isNull ? null! : string.Empty; 135var name = isNull ? null! : string.Empty;
PublicApiTests\WebPubSubPublicApiTests.cs (5)
30var name = isNull ? null! : string.Empty; 59var name = isNull ? null! : string.Empty; 99var userEventPattern = isNull ? null! : string.Empty; 132var name = isNull ? null! : string.Empty; 160var name = isNull ? null! : string.Empty;
RemoteTestOutputHelper.cs (1)
12public string Output => string.Empty;
tests\Shared\TestInteractionService.cs (1)
108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Blazor (3)
BlazorGatewayExtensions.cs (1)
139new(CustomResourceKnownProperties.Source, string.Empty)
src\Shared\BrowserLaunchConfiguration.cs (2)
14public string Url { get; set; } = string.Empty; 17public string WebRoot { get; set; } = string.Empty;
Aspire.Hosting.Blazor.Tests (3)
AddBlazorGatewayTests.cs (1)
48Assert.Equal(string.Empty, source.Value);
BlazorHostedExtensionsTests.cs (1)
584var logger = new TestLogger(string.Empty, sink, enabled: true);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Browsers (11)
BrowserLogsArtifacts.cs (1)
71var suffix = attempt == 0 ? string.Empty : $"-{attempt}";
BrowserLogsCdpProtocol.cs (1)
824JsonTokenType.String => new BrowserLogsCdpProtocolStringValue(reader.GetString() ?? string.Empty),
BrowserLogsConfigurationManager.cs (1)
467var browser = inputs[BrowserInputName].Value ?? string.Empty;
BrowserLogsEventLogger.cs (5)
62: string.Empty; 92var text = entry.Text ?? string.Empty; 281: string.Empty; 320return remoteObject.Description ?? string.Empty; 375return string.Empty;
IBrowserHost.cs (2)
160s_pathComparer.GetHashCode(ExecutablePath ?? string.Empty), 161s_pathComparer.GetHashCode(UserDataRootPath ?? string.Empty));
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
Aspire.Hosting.Browsers.Tests (19)
BrowserHostTests.cs (1)
22await File.WriteAllTextAsync(browserExecutable, string.Empty);
BrowserLogsBuilderExtensionsTests.cs (1)
1021await File.WriteAllTextAsync(tempBrowserPath, string.Empty);
BrowserLogsRunningSessionTests.cs (1)
23File.WriteAllText(browserExecutable, string.Empty);
BrowserLogsSessionManagerTests.cs (4)
64File.WriteAllText(browserExecutable, string.Empty); 104File.WriteAllText(browserExecutable, string.Empty); 139File.WriteAllText(browserExecutable, string.Empty); 173File.WriteAllText(browserExecutable, string.Empty);
src\Aspire.Hosting.Browsers\BrowserLogsArtifacts.cs (1)
71var suffix = attempt == 0 ? string.Empty : $"-{attempt}";
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (1)
824JsonTokenType.String => new BrowserLogsCdpProtocolStringValue(reader.GetString() ?? string.Empty),
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
467var browser = inputs[BrowserInputName].Value ?? string.Empty;
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (5)
62: string.Empty; 92var text = entry.Text ?? string.Empty; 281: string.Empty; 320return remoteObject.Description ?? string.Empty; 375return string.Empty;
src\Aspire.Hosting.Browsers\IBrowserHost.cs (2)
160s_pathComparer.GetHashCode(ExecutablePath ?? string.Empty), 161s_pathComparer.GetHashCode(UserDataRootPath ?? string.Empty));
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
tests\Shared\TestInteractionService.cs (1)
108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
1259var rest = description.Length > 1 ? description[1..] : string.Empty;
Aspire.Hosting.CodeGeneration.Go.Tests (5)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
15public string Name { get; set; } = string.Empty; 72public string Name { get; set; } = string.Empty; 128public string Name { get; set; } = string.Empty; 165public string Id { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Java (4)
AtsJavaCodeGenerator.cs (4)
106.Replace("package ", string.Empty, StringComparison.Ordinal) 107.Replace(";", string.Empty, StringComparison.Ordinal) 117var packageLine = string.Empty; 1934var callbackInitializer = isOptional ? $"{callbackName} == null ? null : " : string.Empty;
Aspire.Hosting.CodeGeneration.Java.Tests (5)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
15public string Name { get; set; } = string.Empty; 72public string Name { get; set; } = string.Empty; 128public string Name { get; set; } = string.Empty; 165public string Id { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Python (8)
AtsPythonCodeGenerator.cs (8)
300return string.Empty; 307var tupleSuffix = callbackParameters.Count == 1 ? "," : string.Empty; 320var groups = capabilities.GroupBy(c => c.SourceLocation ?? string.Empty); 1390sb.AppendLine(CultureInfo.InvariantCulture, $") -> {returnType}:{(isResourceBuilder ? " # type: ignore" : string.Empty)}"); 1723sb.AppendLine(CultureInfo.InvariantCulture, $") -> {returnType}:{(returnsChildBuilder ? " # type: ignore" : string.Empty)}"); 2596var declaringNamespace = separatorIndex >= 0 ? capabilityId[..separatorIndex] : string.Empty; 2598return declaringNamespace.Replace(".", string.Empty, StringComparison.Ordinal) 2702var flagGuard = hasFlag && !hasBooleanParameter ? $" and _{optionName} is not False" : string.Empty;
Aspire.Hosting.CodeGeneration.Python.Tests (5)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
15public string Name { get; set; } = string.Empty; 72public string Name { get; set; } = string.Empty; 128public string Name { get; set; } = string.Empty; 165public string Id { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Rust.Tests (5)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
15public string Name { get; set; } = string.Empty; 72public string Name { get; set; } = string.Empty; 128public string Name { get; set; } = string.Empty; 165public string Id { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.TypeScript (19)
AtsTypeScriptCodeGenerator.cs (9)
243lines.Add(string.Empty); 599WriteDocumentationComment(string.Empty, GetHandleDocumentation(typeId), description); 632WriteDocumentationComment(string.Empty, enumType.Documentation, $"Enum type for {enumType.Name}"); 674WriteDocumentationComment(string.Empty, dto.Documentation, dto.Description ?? $"DTO interface for {dto.Name}"); 824WriteDocumentationComment(string.Empty, GetHandleDocumentation(builder.TypeId)); 953WriteDocumentationComment(string.Empty, GetHandleDocumentation(model.TypeId)); 1015WriteDocumentationComment(string.Empty, GetHandleDocumentation(builder.TypeId)); 1713WriteCapabilityDocComment(string.Empty, capability); 2134WriteDocumentationComment(string.Empty, GetHandleDocumentation(model.TypeId), $"Type class for {className}.");
TypeScriptApiModel.cs (2)
211private readonly string _content = string.Empty; 280$"{parameter.Name}{(parameter.IsOptional ? "?" : string.Empty)}: {parameter.DeclaredType}"));
TypeScriptApiProjector.cs (8)
846lines.Add(string.Empty); 1164DeprecationMessage = capability.IsObsolete ? capability.ObsoleteMessage ?? string.Empty : null, 1226DeprecationMessage = (getter ?? setter) is { IsObsolete: true } obsolete ? obsolete.ObsoleteMessage ?? string.Empty : null, 1523return separatorIndex > 0 ? atsId[..separatorIndex] : string.Empty; 1547return method.DeclaringType?.Assembly.GetName().Name ?? string.Empty; 1552return property.DeclaringType?.Assembly.GetName().Name ?? string.Empty; 2494promiseInterfaceName = string.Empty; 2495promiseImplementationClassName = string.Empty;
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
AtsTypeScriptCodeGeneratorTests.cs (3)
1610Regex.Replace(Regex.Replace(typeScript, @"/\*.*?\*/", string.Empty, RegexOptions.Singleline), @"//[^\n]*", string.Empty); 1619string.Empty);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
TestTypes\TestTypes.cs (4)
15public string Name { get; set; } = string.Empty; 72public string Name { get; set; } = string.Empty; 128public string Name { get; set; } = string.Empty; 165public string Id { get; set; } = string.Empty;
Aspire.Hosting.Containers.Tests (4)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
WithDockerfileTests.cs (3)
603.WithDockerfile(string.Empty); 616builder.AddDockerfile("mycontainer", string.Empty) 617.WithDockerfile(string.Empty);
Aspire.Hosting.DevTunnels (2)
DevTunnelCliClient.cs (1)
497logger?.LogTrace("Getting access details for {PortInfo}dev tunnel '{TunnelId}'.", portNumber.HasValue ? $"port '{portNumber}' on " : string.Empty, tunnelId);
DevTunnelOptions.cs (1)
78null => string.Empty,
Aspire.Hosting.DevTunnels.Tests (2)
tests\Shared\TestInteractionService.cs (1)
108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Docker (15)
DockerComposeServiceResource.cs (1)
225env[kv.Key] = value?.ToString() ?? string.Empty;
DockerComposeServiceResourceExtensions.cs (1)
76return (await resource.ProcessValueAsync(expr.ValueProviders[0]).ConfigureAwait(false)).ToString() ?? string.Empty;
EnvFile.cs (7)
46currentComment = trimmed.Length > 1 ? trimmed[1..].Trim() : string.Empty; 130key = string.Empty; 131value = string.Empty; 139value = eqIndex < trimmed.Length - 1 ? trimmed[(eqIndex + 1)..] : string.Empty; 167lineEnding = string.Empty; 218lines.Add(string.Empty); 263lines.Add(string.Empty);
Resources\ComposeNodes\Service.cs (1)
505Environment[key] = value ?? string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessOutputCapture.cs (1)
75return string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
45WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty, 46Arguments = processSpec.Arguments ?? string.Empty,
src\Shared\DashboardImage.cs (1)
64majorMinor = string.Empty;
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
Aspire.Hosting.Docker.Tests (2)
EnvFileTests.cs (1)
348File.WriteAllText(envFilePath, string.Empty);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Dotnet (1)
DotnetProjectRunPropertiesResolver.cs (1)
133var arguments = properties.GetProperty("RunArguments").GetString() ?? string.Empty;
Aspire.Hosting.Dotnet.Tests (6)
DotnetProjectBuildCoordinatorTests.cs (2)
1640var resolverBuildEnvironment = string.Empty; 3671File.WriteAllText(releaseBuild, string.Empty);
DotnetProjectPublicApiTests.cs (1)
27var name = isNull ? null! : string.Empty;
DotnetProjectResourceTests.cs (2)
654Assert.Equal(string.Empty, launchConfig.LaunchProfile); 1149File.WriteAllText(path, string.Empty);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
27return string.Empty; 491return migrationResource.Name + (isWindowsBundle ? ".exe" : string.Empty);
Aspire.Hosting.Foundry (8)
FoundryLocalService.cs (5)
551Path = string.Empty, 552Query = string.Empty, 553Fragment = string.Empty 624modelId = string.Empty; 683modelId = string.Empty;
HostedAgent\AzureHostedAgentResource.cs (2)
351resolvedEnvVars[key] = string.Empty; 357resolvedEnvVars[key] = await ResolveValueProviderAsync(provider, context, hostedAgent, target, key, cancellationToken).ConfigureAwait(false) ?? string.Empty;
Project\ProjectBuilderExtension.cs (1)
348var userPrincipalId = new ProvisioningParameter(AzureBicepResource.KnownParameters.UserPrincipalId, typeof(string)) { Value = new BicepValue<string>(string.Empty) };
Aspire.Hosting.Foundry.Tests (5)
Helpers\SequenceHttpMessageHandler.cs (1)
17request.Content is { } content ? await content.ReadAsStringAsync(cancellationToken) : string.Empty,
HostedAgentExtensionTests.cs (1)
165builder.Services.AddHttpClient(string.Empty)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
ToolboxTests.cs (2)
633var empty = builder.AddParameter("empty-endpoint", () => string.Empty); 783.WithAISearchTool("knowledge-base", search, string.Empty));
Aspire.Hosting.Garnet.Tests (3)
GarnetPublicApiTests.cs (3)
29var name = isNull ? null! : string.Empty; 69var source = isNull ? null! : string.Empty; 111var name = isNull ? null! : string.Empty;
Aspire.Hosting.Go (2)
GoLaunchConfiguration.cs (2)
18public string Program { get; set; } = string.Empty; 21public string WorkingDirectory { get; set; } = string.Empty;
Aspire.Hosting.Go.Tests (4)
GoPublicApiTests.cs (3)
21var name = isNull ? null! : string.Empty; 62var name = isNull ? null! : string.Empty; 78var appDirectory = isNull ? null! : string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Java (2)
JavaHostingExtensions.cs (1)
1726pkcs12Builder.SealWithMac(string.Empty, HashAlgorithmName.SHA256, iterationCount: 2048);
JavaLaunchConfiguration.cs (1)
49public string WorkingDirectory { get; set; } = string.Empty;
Aspire.Hosting.Java.Tests (7)
AddJavaAppPublishTests.cs (1)
64Assert.Equal(string.Empty, await process.StandardError.ReadToEndAsync());
AddJavaAppTests.cs (4)
225var emptyAction = () => app.WithMavenGoal(string.Empty); 284var emptyAction = () => app.WithGradleTask(string.Empty); 531var emptyAction = () => app.WithWrapperPath(string.Empty); 836Assert.Equal(string.Empty, await process.StandardError.ReadToEndAsync());
JavaPublicApiTests.cs (1)
15var name = isNull ? null! : string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.JavaScript (12)
DenoHostingExtensions.cs (2)
1015normalizedPath = string.Empty; 1039normalizedPath = string.Empty;
JavaScriptHostingExtensions.cs (4)
1974: string.Empty; 2891ScriptPath = string.Empty, 3281nodeVersion = string.Empty; 3343majorVersion = string.Empty;
JavaScriptLaunchConfiguration.cs (4)
24public string ScriptPath { get; set; } = string.Empty; 27public string RuntimeExecutable { get; set; } = string.Empty; 30public string WorkingDirectory { get; set; } = string.Empty; 33public string LaunchMethod { get; set; } = string.Empty;
src\Shared\BrowserLaunchConfiguration.cs (2)
14public string Url { get; set; } = string.Empty; 17public string WebRoot { get; set; } = string.Empty;
Aspire.Hosting.JavaScript.Tests (15)
AddJavaScriptAppTests.cs (2)
116File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), string.Empty); 176File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), string.Empty);
AddNodeAppTests.cs (1)
623Assert.Equal(string.Empty, launchConfig.ScriptPath);
BunAppFixture.cs (1)
128public string Output => string.Empty;
DenoAppFixture.cs (1)
177public string Output => string.Empty;
NodeAppFixture.cs (1)
115public string Output => string.Empty;
NodeJsPublicApiTests.cs (9)
18var name = isNull ? null! : string.Empty; 36var command = isNull ? null! : string.Empty; 79var name = isNull ? null! : string.Empty; 97var scriptPath = isNull ? null! : string.Empty; 126var name = isNull ? null! : string.Empty; 158var runScriptName = isNull ? null! : string.Empty; 197var entryPoint = isNull ? null! : string.Empty; 214var outputPath = isNull ? null! : string.Empty; 242var scriptName = isNull ? null! : string.Empty;
Aspire.Hosting.Kafka.Tests (4)
KafkaPublicApiTests.cs (4)
29var name = isNull ? null! : string.Empty; 92var source = isNull ? null! : string.Empty; 107var name = isNull ? null! : string.Empty; 122var name = isNull ? null! : string.Empty;
Aspire.Hosting.Keycloak.Tests (5)
KeycloakPublicApiTests.cs (5)
16var name = isNull ? null! : string.Empty; 59var name = isNull ? null! : string.Empty; 99var source = isNull ? null! : string.Empty; 128var import = isNull ? null! : string.Empty; 178File.WriteAllText(filePath, string.Empty);
Aspire.Hosting.Kubernetes (33)
Extensions\ResourceExtensions.cs (2)
88?? string.Empty; 120?? string.Empty;
KubernetesEnvironmentResource.cs (5)
668return (await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false)) ?? string.Empty; 702return (await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false)) ?? string.Empty; 799AddPathForHost(string.Empty, path); 1070storageClassName = string.Empty; 1212var routesByHost = gatewayResource.Routes.GroupBy(r => r.Host ?? string.Empty);
KubernetesPublishingContext.cs (5)
181resourceSection.TryAdd(captured.ValueKey, string.Empty); 279paramValues[valuesKey] = string.Empty; 297value = string.Empty; 332value = string.Empty; 342paramValues[valuesKey] = value ?? string.Empty;
KubernetesResource.cs (15)
506EnvironmentVariables[key] = new(configExpression, value.ToString() ?? string.Empty); 636return embedded ? inner?.ToString() ?? string.Empty : inner; 669var whenTrueStr = whenTrueResult.ToString() ?? string.Empty; 670var whenFalseStr = whenFalseResult.ToString() ?? string.Empty; 698var matchValue = System.Text.Json.JsonSerializer.Serialize((expr.MatchValue ?? string.Empty).ToLowerInvariant()); 801? string.Empty 816? string.Empty 841var formattedName = parameter.ValueExpression.Replace(HelmExtensions.StartDelimiter, string.Empty) 842.Replace(HelmExtensions.EndDelimiter, string.Empty) 843.Replace("{", string.Empty) 844.Replace("}", string.Empty) 894return new HelmValue(helmExpression, string.Empty) 1017return ValueString ?? Expression ?? string.Empty; 1030return ValueString ?? string.Empty; 1047_ => string.Empty
src\Aspire.Hosting\Dcp\Process\ProcessOutputCapture.cs (1)
75return string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
45WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty, 46Arguments = processSpec.Arguments ?? string.Empty,
src\Shared\DashboardImage.cs (1)
64majorMinor = string.Empty;
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
Yaml\IntOrStringConverter.cs (1)
69var val = obj.Value ?? string.Empty;
Aspire.Hosting.Kubernetes.Tests (9)
HelmVersionValidatorTests.cs (1)
81VersionOutput = string.Empty,
KubernetesDeployTests.cs (6)
635Assert.Throws<ArgumentException>(() => helm.WithNamespace(string.Empty)); 646Assert.Throws<ArgumentException>(() => helm.WithReleaseName(string.Empty)); 657Assert.Throws<ArgumentException>(() => helm.WithChartVersion(string.Empty)); 668Assert.Throws<ArgumentException>(() => helm.WithChartName(string.Empty)); 679Assert.Throws<ArgumentException>(() => helm.WithChartDescription(string.Empty)); 1478content = content.Replace("\"", string.Empty, StringComparison.Ordinal);
KubernetesPublisherTests.cs (1)
1838.WithStorageClass(string.Empty);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Maui (8)
MauiLaunchConfiguration.cs (4)
17public string ProjectPath { get; set; } = string.Empty; 20public string TargetFramework { get; set; } = string.Empty; 23public string Platform { get; set; } = string.Empty; 26public string TargetKind { get; set; } = string.Empty;
MauiPlatformHelper.cs (1)
173return platformTfm ?? string.Empty;
Utilities\ProjectFileReader.cs (3)
89var targetFrameworksValue = string.Empty; 93targetFrameworksValue = targetFrameworks.GetString() ?? string.Empty; 99targetFrameworksValue = targetFramework.GetString() ?? string.Empty;
Aspire.Hosting.Maui.Tests (7)
MauiPlatformExtensionsTests.cs (6)
1513public string Type { get; set; } = string.Empty; 1516public string Mode { get; set; } = string.Empty; 1519public string ProjectPath { get; set; } = string.Empty; 1522public string TargetFramework { get; set; } = string.Empty; 1525public string Platform { get; set; } = string.Empty; 1528public string TargetKind { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Milvus.Tests (9)
MilvusPublicApiTests.cs (9)
16var name = isNull ? null! : string.Empty; 44var name = isNull ? null! : string.Empty; 73var name = isNull ? null! : string.Empty; 124var source = isNull ? null! : string.Empty; 155string configurationFilePath = isNull ? null! : string.Empty; 186string configurationFilePath = isNull ? null! : string.Empty; 201var name = isNull ? null! : string.Empty; 220var databaseName = isNull ? null! : string.Empty; 250var name = isNull ? null! : string.Empty;
Aspire.Hosting.MongoDB.Tests (13)
MongoDBPublicApiTests.cs (11)
32var name = isNull ? null! : string.Empty; 62var name = isNull ? null! : string.Empty; 93var name = isNull ? null! : string.Empty; 158var source = isNull ? null! : string.Empty; 188var source = isNull ? null! : string.Empty; 218var source = isNull ? null! : string.Empty; 233var name = isNull ? null! : string.Empty; 251var databaseName = isNull ? null! : string.Empty; 280var name = isNull ? null! : string.Empty; 295var name = isNull ? null! : string.Empty; 397var keyFilePath = isNull ? null! : string.Empty;
MongoDBTestHelpers.cs (1)
19TlsConditionalReference().Replace(valueExpression, string.Empty);
ReplicaSet\AddMongoDBReplicaSetTests.cs (1)
148var name = isNull ? null! : string.Empty;
Aspire.Hosting.MySql.Tests (9)
MySqlPublicApiTests.cs (9)
29var name = isNull ? null! : string.Empty; 58var name = isNull ? null! : string.Empty; 123var source = isNull ? null! : string.Empty; 154var source = isNull ? null! : string.Empty; 185var source = isNull ? null! : string.Empty; 201var name = isNull ? null! : string.Empty; 223var databaseName = isNull ? null! : string.Empty; 257var name = isNull ? null! : string.Empty; 286var name = isNull ? null! : string.Empty;
Aspire.Hosting.Nats.Tests (5)
NatsPublicApiTests.cs (5)
33var name = isNull ? null! : string.Empty; 69var name = isNull ? null! : string.Empty; 137var source = isNull ? null! : string.Empty; 152var name = isNull ? null! : string.Empty; 173var name = isNull ? null! : string.Empty;
Aspire.Hosting.OpenAI (4)
OpenAIHealthCheck.cs (4)
104? indEl.GetString() ?? string.Empty 105: string.Empty; 108? descEl.GetString() ?? string.Empty 109: string.Empty;
Aspire.Hosting.Oracle.Tests (9)
OraclePublicApiTests.cs (9)
29var name = isNull ? null! : string.Empty; 58var name = isNull ? null! : string.Empty; 98var source = isNull ? null! : string.Empty; 129var source = isNull ? null! : string.Empty; 160var source = isNull ? null! : string.Empty; 189var source = isNull ? null! : string.Empty; 206var name = isNull ? null! : string.Empty; 226var databaseName = isNull ? null! : string.Empty; 255var name = isNull ? null! : string.Empty;
Aspire.Hosting.PostgreSQL.Tests (10)
PostgrePublicApiTests.cs (10)
17var name = isNull ? null! : string.Empty; 32var name = isNull ? null! : string.Empty; 60var name = isNull ? null! : string.Empty; 89var name = isNull ? null! : string.Empty; 175var source = isNull ? null! : string.Empty; 218var source = isNull ? null! : string.Empty; 237var source = isNull ? null! : string.Empty; 252var name = isNull ? null! : string.Empty; 273var databaseName = isNull ? null! : string.Empty; 305var name = isNull ? null! : string.Empty;
Aspire.Hosting.Python (6)
PythonAppLaunchConfiguration.cs (4)
14public string ProgramPath { get; set; } = string.Empty; 17public string Module { get; set; } = string.Empty; 20public string InterpreterPath { get; set; } = string.Empty; 23public string WorkingDirectory { get; set; } = string.Empty;
PythonAppResourceBuilderExtensions.cs (2)
951module = string.Empty; 967interpreterPath = string.Empty;
Aspire.Hosting.Python.Tests (12)
AddPythonAppTests.cs (3)
489resourceBuilder.WithVirtualEnvironment(string.Empty)); 1234resourceBuilder.WithEntrypoint(EntrypointType.Module, string.Empty)); 1527Assert.Equal(string.Empty, launchConfig.Module);
PythonPublicApiTests.cs (8)
17var name = isNull ? null! : string.Empty; 35var executablePath = isNull ? null! : string.Empty; 83var name = isNull ? null! : string.Empty; 127var scriptPath = isNull ? null! : string.Empty; 170string[] scriptArgs = ["arg", isNull ? null! : string.Empty, "arg2"]; 215var name = isNull ? null! : string.Empty; 263var scriptPath = isNull ? null! : string.Empty; 311string[] scriptArgs = ["arg", isNull ? null! : string.Empty, "arg2"];
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Qdrant.Tests (3)
QdrantPublicApiTests.cs (3)
29var name = isNull ? null! : string.Empty; 69var source = isNull ? null! : string.Empty; 111var name = isNull ? null! : string.Empty;
Aspire.Hosting.RabbitMQ.Tests (5)
RabbitMQFunctionalTests.cs (2)
88await channel.BasicPublishAsync(exchange: string.Empty, routingKey: queueName, body: body); 156exchange: string.Empty,
RabbitMQPublicApiTests.cs (3)
29var name = isNull ? null! : string.Empty; 69var source = isNull ? null! : string.Empty; 108var name = isNull ? null! : string.Empty;
Aspire.Hosting.Radius (9)
Publishing\RadCredentialRegisterStep.cs (1)
243return await parameter.Resource.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? string.Empty;
Publishing\RadiusDeploymentPipelineStep.cs (1)
678var value = await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? string.Empty;
Publishing\RadiusInfrastructureBuilder.cs (7)
451((IBicepValue)kv.Value.Protocol).LiteralValue is string literalProtocol ? literalProtocol : string.Empty), 3144? string.Empty 4222parts.Add(EnvPart.FromLiteral(resolved ?? string.Empty)); 4226parts.Add(EnvPart.FromLiteral(value.ToString() ?? string.Empty)); 4754return EnvPart.FromLiteral(string.Empty); 4807return string.Empty; 4880expression.GetValueAsync(CancellationToken.None).AsTask().GetAwaiter().GetResult() ?? string.Empty;
Aspire.Hosting.Radius.Tests (3)
Deployment\ControlPlaneVersionGateTests.cs (1)
163realHome: string.Empty,
Secrets\SecretStoreValidationTests.cs (1)
58? string.Empty
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
328var hostString = $"{(hostsVariableBuilder.Length > 0 ? "," : string.Empty)}{redisInstance.Name}:{redisInstance.Name}:{endpoint.TargetPort}:0";
Aspire.Hosting.Redis.Tests (7)
RedisPublicApiTests.cs (7)
29var name = isNull ? null! : string.Empty; 115var source = isNull ? null! : string.Empty; 154var path = isNull ? null! : string.Empty; 208var source = isNull ? null! : string.Empty; 224var name = isNull ? null! : string.Empty; 239var name = isNull ? null! : string.Empty; 254var name = isNull ? null! : string.Empty;
Aspire.Hosting.RemoteHost (15)
Ats\CapabilityDispatcher.cs (1)
901return TryGetUnionMemberClrTypes(capability, parameter.Name ?? string.Empty);
Ats\PolyglotCapabilityInvocationException.cs (4)
255return string.Empty; 261return string.Empty; 265return resourceName is null ? string.Empty : $" on resource '{resourceName}'"; 487? string.Empty
AtsCapabilityScanner.cs (5)
1356OwningAssemblyName = declaringType.Assembly.GetName().Name ?? declaringType.Assembly.FullName ?? string.Empty, 3631Name = param.Attribute("name")?.Value ?? string.Empty, 3632Description = FormatXmlDocumentationElement(param) ?? string.Empty 3774kind = string.Empty; 3775target = string.Empty;
AtsContextFilter.cs (4)
654assemblyName = method.DeclaringType?.Assembly.GetName().Name ?? string.Empty; 660assemblyName = property.DeclaringType?.Assembly.GetName().Name ?? string.Empty; 670assemblyName = string.Empty; 692assemblyName = string.Empty;
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
Aspire.Hosting.RemoteHost.Tests (12)
AssemblyLoaderTests.cs (6)
84File.WriteAllText(runtimeAssemblyPath, string.Empty); 86File.WriteAllText(resourceAssemblyPath, string.Empty); 129File.WriteAllText(packageAssemblyPath, string.Empty); 206File.WriteAllText(firstAssemblyPath, string.Empty); 207File.WriteAllText(secondAssemblyPath, string.Empty); 282File.WriteAllText(System.IO.Path.Combine(Path, fileName), string.Empty);
CapabilityDispatcherTests.cs (2)
2506TestUnionDto dto => dto.Label ?? string.Empty, 2721return string.Empty;
IntegrationLoadContextTests.cs (2)
77File.WriteAllText(nativeLibraryPath, string.Empty); 106File.WriteAllText(resourceAssemblyPath, string.Empty);
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\TestInteractionService.cs (1)
108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
Aspire.Hosting.Rust (10)
CargoMetadata.cs (6)
101? targetDirectoryElement.GetString() ?? string.Empty 102: string.Empty 123Name = element.TryGetProperty("name", out var nameElement) ? nameElement.GetString() ?? string.Empty : string.Empty, 124Id = element.TryGetProperty("id", out var idElement) ? idElement.GetString() ?? string.Empty : string.Empty,
CargoMetadataReader.cs (2)
126var diagnosticSuffix = diagnostic.Length > 0 ? $" {diagnostic}" : string.Empty; 153return string.Empty;
RustLaunchConfiguration.cs (2)
17public string WorkingDirectory { get; set; } = string.Empty; 36public string ExecutablePath { get; set; } = string.Empty;
Aspire.Hosting.Rust.Tests (5)
CargoMetadataTests.cs (2)
104["EMPTY"] = string.Empty 243var diagnostic = CargoMetadataReader.FormatStandardError(string.Empty, environment);
RustDockerfileShellTests.cs (2)
30Assert.Equal(string.Empty, result.StandardError); 142Assert.Equal(string.Empty, result.StandardError);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Sdk.Tests (10)
AppHostSdkTargetsTests.cs (10)
117projectXml = projectXml.Replace($"<AspireHostingSDKVersion>{AspireCliVersion}</AspireHostingSDKVersion>", string.Empty); 175projectXml = projectXml.Replace($"<AspireHostingSDKVersion>{AspireCliVersion}</AspireHostingSDKVersion>", string.Empty); 217sdkVersion is null ? string.Empty : $"<AspireHostingSDKVersion>{sdkVersion}</AspireHostingSDKVersion>"); 252: string.Empty; 930Assert.Equal(executableExists ? string.Empty : null, task.AspireTerminalHostInvocationArgs); 1465: string.Empty; 1556return properties.EnumerateObject().ToDictionary(property => property.Name, property => property.Value.GetString() ?? string.Empty); 2040: string.Empty; 2057: string.Empty; 2143var currentPath = Environment.GetEnvironmentVariable(pathEnvironmentVariable) ?? string.Empty;
Aspire.Hosting.SqlServer.Tests (6)
SqlServerPublicApiTests.cs (6)
29var name = isNull ? null! : string.Empty; 58var name = isNull ? null! : string.Empty; 98var source = isNull ? null! : string.Empty; 114var name = isNull ? null! : string.Empty; 136var databaseName = isNull ? null! : string.Empty; 169var name = isNull ? null! : string.Empty;
Aspire.Hosting.Tasks (2)
ResolveAspireCliBundle.cs (2)
276hasStandaloneTerminalHost ? string.Empty : "terminalhost"); 416? string.Empty
Aspire.Hosting.Testing (5)
DistributedApplicationFactory.cs (2)
189hostBuilderOptions.ApplicationName = entryPointAssembly.GetName().Name ?? string.Empty; 190applicationOptions.AssemblyName = entryPointAssembly.GetName().Name ?? string.Empty;
DistributedApplicationTestingBuilder.cs (3)
414[KnownAspNetCoreConfigNames.Urls] = string.Empty, 415[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = string.Empty, 416[KnownConfigNames.DashboardOtlpHttpEndpointUrl] = string.Empty,
Aspire.Hosting.Testing.Tests (20)
DashboardTestingBuilderTests.cs (3)
262Assert.Equal(string.Empty, builder.Configuration[AspNetCoreUrls]); 263Assert.Equal(string.Empty, builder.Configuration[DashboardOtlpGrpcEndpointUrl]); 264Assert.Equal(string.Empty, builder.Configuration[DashboardOtlpHttpEndpointUrl]);
DashboardUrlTests.cs (3)
255builder.Configuration["AppHost:BrowserToken"] = string.Empty; 267Assert.Equal(string.Empty, dashboardUri.Query); 357string.Empty,
TestingPublicApiTests.cs (13)
53string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 74string resourceName = isNull ? null! : string.Empty; 91string resourceName = isNull ? null! : string.Empty; 108string resourceName = isNull ? null! : string.Empty; 136string resourceName = isNull ? null! : string.Empty; 164string resourceName = isNull ? null! : string.Empty; 192string resourceName = isNull ? null! : string.Empty; 250string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 294string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 337string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 397string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 428string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 471string[] args = ["arg", isNull ? null! : string.Empty, "arg2"];
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
Aspire.Hosting.Tests (106)
AddParameterTests.cs (1)
148Assert.Equal(string.Empty, parameter.Resource.Value);
AppHostSmokeTests.cs (2)
35RemoteExecutor.Invoke(RunTest, locale, expectedLocaleError ?? string.Empty, expectedCulture ?? string.Empty, environmentVariableName, remoteInvokeOptions).Dispose();
AtsInteractionExportsTests.cs (1)
58Assert.Equal(string.Empty, interaction.Title);
Backchannel\BackchannelContractTests.cs (1)
415_ => value.ToString() ?? string.Empty
Dashboard\DashboardResourceTests.cs (3)
43File.WriteAllText($"{dashboardPath}.dll", string.Empty); 219[dashboardOtlpGrpcEndpointUrlKey] = string.Empty 930public string Message { get; set; } = string.Empty;
Dashboard\DashboardServiceTests.cs (1)
1432Assert.Equal(string.Empty, initial.Snapshot.ActivatedTerminalId);
Dashboard\TransportOptionsValidatorTests.cs (3)
129config[KnownAspNetCoreConfigNames.Urls] = string.Empty; 148config[resourceServiceEndpointUrlKey] = string.Empty; 169config[dashboardOtlpGrpcEndpointUrlKey] = string.Empty;
Dcp\ConfigureDefaultDcpOptionsTests.cs (2)
17["ASPIRE_TERMINAL_HOST_INVOCATION_ARGS"] = string.Empty, 22Assert.Equal(string.Empty, options.TerminalHostInvocationArgs);
Dcp\DcpCliArgsTests.cs (2)
117AddDcpPublisherPathConfigurationOverride(builder.Configuration, string.Empty, string.Empty);
Dcp\DcpExecutorTests.cs (8)
5109Assert.Equal(string.Empty, plc.LaunchProfile); 5242Assert.Equal(string.Empty, plc.LaunchProfile); 5272Assert.Equal(string.Empty, plc.LaunchProfile); // nothing selected 6176options.StartInfo.Environment["SSL_CERT_DIR"] = string.Empty; 11671public string ProjectPath { get; set; } = string.Empty; 11674public string TargetFramework { get; set; } = string.Empty; 11677public string Platform { get; set; } = string.Empty; 11680public string TargetKind { get; set; } = string.Empty;
Dcp\KubernetesServiceTests.cs (1)
482context.Response.WriteAsync(line + (appendNewline ? "\n" : string.Empty), context.RequestAborted)).DefaultTimeout();
Dcp\ProcessUtilTests.cs (1)
157["PATH"] = dotnetDirectory ?? string.Empty
Dcp\TestKubernetesService.cs (4)
84string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty) 307string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty)
DebugSupportExtensionsTests.cs (2)
128Assert.Equal(string.Empty, launchConfiguration.LaunchProfile); 517public string Package { get; set; } = string.Empty;
DistributedApplicationBuilderTests.cs (2)
967File.WriteAllText(appHostPath, string.Empty); 1016File.WriteAllText(appHostPath, string.Empty);
DistributedApplicationTests.cs (6)
1785var urls = string.Empty; 1862var sslVal = redis.Resource.TlsEnabled ? ",ssl=true" : string.Empty; 1883sslVal = redisNoPort.Resource.TlsEnabled ? ",ssl=true" : string.Empty; 1940var sslVal = redis.Resource.TlsEnabled ? ",ssl=true" : string.Empty; 1961sslVal = redisNoPort.Resource.TlsEnabled ? ",ssl=true" : string.Empty; 2371string.Empty,
ExecutionConfigurationGathererTests.cs (2)
608var password = string.Empty; 657var loaded = X509CertificateLoader.LoadPkcs12Collection(pkcs12Bytes, string.Empty, X509KeyStorageFlags.DefaultKeySet);
InteractionServiceTests.cs (5)
384inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 408inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 1301Assert.Equal(string.Empty, interaction.Title); 1481inputs: [new InputDto("File", string.Empty, InputType.File)]); 1504inputs: [new InputDto("File", string.Empty, InputType.File)]);
MSBuildTests.cs (2)
353Assert.Equal(string.Empty, document.RootElement.GetProperty("Properties").GetProperty("IsAspireHost").GetString()); 1133var currentPath = Environment.GetEnvironmentVariable("PATH") ?? string.Empty;
PathLookupHelperTests.cs (8)
18File.WriteAllText(executablePath, string.Empty); 33new Dictionary<string, string> { ["PATH"] = string.Empty })); 53File.WriteAllText(nonExecutablePath, string.Empty); 57File.WriteAllText(executablePath, string.Empty); 76File.WriteAllText(Path.Combine(binPath, "mycommand"), string.Empty); 96File.WriteAllText(Path.Combine(binPath, "mycommand.exe"), string.Empty); 218File.WriteAllText(nonExecutablePath, string.Empty); 222File.WriteAllText(executablePath, string.Empty);
Publishing\DeploymentStateManagerTests.cs (2)
691Assert.False(restartedSection.Data.ContainsKey(string.Empty)); 1348public string ContentRootPath { get; set; } = string.Empty;
Publishing\DockerContainerRuntimeTests.cs (1)
209var platformArgument = expectedPlatforms is null ? string.Empty : $" --platform \"{expectedPlatforms}\"";
Publishing\PipelineActivityReporterTests.cs (3)
38Assert.Equal(string.Empty, stepInternal.CompletionText); 125Assert.Equal(string.Empty, taskInternal.CompletionMessage); 424Assert.Equal(string.Empty, taskInternal.CompletionMessage);
ResourceExtensionsTests.cs (1)
335string.Empty,
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
StableConnectionStringBuilderTests.cs (1)
70Assert.Equal(string.Empty, builder["B"]);
Terminals\Hex1bAspireTerminalTests.cs (2)
244await File.WriteAllTextAsync(Path.Combine(directory.Path, "working-directory-marker"), string.Empty); 267overrideEnvironment ? "/usr/bin:/bin" : path, overrideEnvironment ? "value with spaces" : string.Empty],
Terminals\InteractionServiceTerminalTests.cs (1)
208Assert.Equal(string.Empty, interaction.Title);
Terminals\ResourceAspireTerminalTests.cs (1)
116await AsyncTestHelpers.AssertIsTrueRetryAsync(() => terminal.GetScreenText() == string.Empty, "The old automation screen was not invalidated.");
Terminals\TerminalLaunchOptionsTests.cs (2)
23Assert.Throws<ArgumentException>("value", () => new TerminalLaunchOptions { Title = "Shell", Executable = string.Empty }); 45Assert.Throws<ArgumentException>("value", () => options.Executable = string.Empty);
Terminals\TerminalServiceTests.cs (1)
271["ASPIRE_TERMINAL_SNAPSHOT_ADDED"] = string.Empty
tests\Shared\TestInteractionService.cs (1)
108var data = new InteractionData(type, title ?? string.Empty, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>())
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Utils\EnvironmentVariableNameEncoderTests.cs (1)
44Assert.Equal("", EnvironmentVariableNameEncoder.Encode(string.Empty));
Utils\PeriodicRestartAsyncEnumerableTests.cs (1)
220return Task.FromResult(ThrowAfterCancellationAsync(string.Empty, restartToken, enumeratorCts.Token, () => Interlocked.Increment(ref disposeCount)));
WithHttpCommandTests.cs (1)
330builder.Services.AddHttpClient(string.Empty)
WithProcessCommandTests.cs (4)
156var message = context.Arguments.GetString("message") ?? string.Empty; 217var message = context.Arguments.GetString("message") ?? string.Empty; 357return CreateProcessCommandSpec(arguments: [message ?? string.Empty]); 414return CreateProcessCommandSpec(arguments: ["--message", message ?? string.Empty]);
WithTerminalTests.cs (21)
431File.WriteAllText(host.Layout.ProducerUdsPath, string.Empty); 432File.WriteAllText(host.Layout.ConsumerUdsPath, string.Empty); 433File.WriteAllText(host.Layout.ControlUdsPath, string.Empty); 548File.WriteAllText(orphanProducerPath, string.Empty); 549File.WriteAllText(orphanConsumerPath, string.Empty); 550File.WriteAllText(orphanControlPath, string.Empty); 602File.WriteAllText(liveProducerPath, string.Empty); 651File.WriteAllText(producerPath, string.Empty); 686File.WriteAllText(producerPath, string.Empty); 687File.WriteAllText(sentinelPath, string.Empty); 717File.WriteAllText(producerPath, string.Empty); 743File.WriteAllText(producerPath, string.Empty); 780File.WriteAllText(expiredPath, string.Empty); 781File.WriteAllText(recentPath, string.Empty); 816File.WriteAllText(producerPath, string.Empty); 846File.WriteAllText(producerPath, string.Empty); 882File.WriteAllText(producerPath, string.Empty); 908File.WriteAllText(producerPath, string.Empty); 935File.WriteAllText(producerPath, string.Empty); 966File.WriteAllText(producerPath, string.Empty); 1363return argsList.Select(a => a?.ToString() ?? string.Empty).ToList();
Aspire.Hosting.TestUtilities (4)
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Utils\Grpc\TestServerCallContext.cs (1)
24_authContext = new AuthContext(string.Empty, new Dictionary<string, List<AuthProperty>>());
Utils\PersistentContainerTestHelpers.cs (1)
147: string.Empty;
Aspire.Hosting.Valkey.Tests (3)
ValkeyPublicApiTests.cs (3)
29var name = isNull ? null! : string.Empty; 69var source = isNull ? null! : string.Empty; 95var name = isNull ? null! : string.Empty;
Aspire.Hosting.Yarp (3)
ConfigurationBuilder\YarpCluster.cs (1)
347AffinityKeyName = config.AffinityKeyName ?? string.Empty,
ConfigurationBuilder\YarpRouteHeaderMatch.cs (1)
17public string Name { get; set; } = string.Empty;
ConfigurationBuilder\YarpRouteQueryParameterMatch.cs (1)
17public string Name { get; set; } = string.Empty;
Aspire.Hosting.Yarp.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Keycloak.Authentication.Tests (20)
KeycloakAuthenticationPublicApiTests.cs (20)
34var serviceName = isNull ? null! : string.Empty; 53var realm = isNull ? null! : string.Empty; 84var serviceName = isNull ? null! : string.Empty; 104var realm = isNull ? null! : string.Empty; 124var authenticationScheme = isNull ? null! : string.Empty; 155var serviceName = isNull ? null! : string.Empty; 175var realm = isNull ? null! : string.Empty; 212var serviceName = isNull ? null! : string.Empty; 237var realm = isNull ? null! : string.Empty; 262var authenticationScheme = isNull ? null! : string.Empty; 297var serviceName = isNull ? null! : string.Empty; 316var realm = isNull ? null! : string.Empty; 347var serviceName = isNull ? null! : string.Empty; 367var realm = isNull ? null! : string.Empty; 387var authenticationScheme = isNull ? null! : string.Empty; 418var serviceName = isNull ? null! : string.Empty; 438var realm = isNull ? null! : string.Empty; 475var serviceName = isNull ? null! : string.Empty; 500var realm = isNull ? null! : string.Empty; 525var authenticationScheme = isNull ? null! : string.Empty;
Aspire.Microsoft.Azure.Cosmos (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Microsoft.Azure.Cosmos.Tests (3)
AspireMicrosoftAzureCosmosExtensionsTests.cs (1)
42AddAzureCosmosClient_EnsuresConnectionStringIsCorrect("this=isnt;a=valid;cosmos=connectionstring", string.Empty));
MicrosoftAzureCosmosPublicApiTests.cs (2)
30var connectionName = isNull ? null! : string.Empty; 73var name = isNull ? null! : string.Empty;
Aspire.Microsoft.Data.SqlClient (1)
AspireSqlServerSqlClientExtensions.cs (1)
105ConnectionString = settings.ConnectionString ?? string.Empty
Aspire.Microsoft.Data.SqlClient.Tests (2)
MicrosoftDataSqlClientPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Microsoft.EntityFrameworkCore.Cosmos (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (3)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (1)
346AddAzureCosmosClient_EnsuresConnectionStringIsCorrect("this=isnt;a=valid;cosmos=connectionstring", string.Empty));
MicrosoftEntityFrameworkCoreCosmosPublicApiTests.cs (2)
31var connectionName = isNull ? null! : string.Empty; 49var databaseName = isNull ? null! : string.Empty;
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
MicrosoftEntityFrameworkCoreSqlServerPublicApiTests.cs (1)
30var connectionName = isNull ? null! : string.Empty;
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (4)
src\Shared\StableConnectionStringBuilder.cs (4)
145value = _segments[idx].Value ?? string.Empty; 163yield return new KeyValuePair<string, string>(seg.Key.Trim(), seg.Value ?? string.Empty); 208segments.Add(new ConnectionStringSegment(key, value ?? string.Empty)); 242sb.Append(segment.Value ?? string.Empty);
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (6)
AppConfiguratinPublicApiTests.cs (1)
30var connectionName = isNull ? null! : string.Empty;
AspireAppConfigurationExtensionsTest.cs (2)
132return new AccessToken(string.Empty, DateTimeOffset.MaxValue); 137return new ValueTask<AccessToken>(new AccessToken(string.Empty, DateTimeOffset.MaxValue));
ConformanceTests.cs (2)
113return new AccessToken(string.Empty, DateTimeOffset.MaxValue); 118return new ValueTask<AccessToken>(new AccessToken(string.Empty, DateTimeOffset.MaxValue));
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (1)
148public override string ClientRequestId { get; set; } = string.Empty;
Aspire.Milvus.Client.Tests (3)
ConformanceTests.cs (1)
71return string.Empty;
MilvusClientPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.MongoDB.Driver.Tests (2)
MongoDBDriverPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.MongoDB.EntityFrameworkCore.Tests (1)
MongoDBEntityFrameworkCorePublicApiTests.cs (1)
32var connectionName = isNull ? null! : string.Empty;
Aspire.MySqlConnector (2)
AspireMySqlConnectorExtensions.cs (2)
115builder.Services.AddMySqlDataSource(settings.ConnectionString ?? string.Empty, dataSourceBuilder => 122builder.Services.AddKeyedMySqlDataSource(serviceKey, settings.ConnectionString ?? string.Empty, dataSourceBuilder =>
Aspire.MySqlConnector.Tests (2)
MySqlConnectorPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.NATS.Net.Tests (2)
NatsClientPublicApiTests.cs (2)
60var connectionName = isNull ? null! : string.Empty; 128var name = isNull ? null! : string.Empty;
Aspire.Npgsql (1)
AspirePostgreSqlNpgsqlExtensions.cs (1)
108builder.Services.AddNpgsqlDataSource(settings.ConnectionString ?? string.Empty, dataSourceBuilder =>
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
NpgsqlEntityFrameworkCorePostgreSQLPublicApiTests.cs (1)
30var connectionName = isNull ? null! : string.Empty;
Aspire.Npgsql.Tests (2)
NpgsqlPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.OpenAI.Tests (5)
OpenAIPublicApiTests.cs (5)
32var connectionName = isNull ? null! : string.Empty; 79var serviceKey = isNull ? null! : string.Empty; 123var serviceKey = isNull ? null! : string.Empty; 151var connectionName = isNull ? null! : string.Empty; 179var name = isNull ? null! : string.Empty;
Aspire.Oracle.EntityFrameworkCore.Tests (1)
OracleEntityFrameworkCorePublicApiTests.cs (1)
30var connectionName = isNull ? null! : string.Empty;
Aspire.Playground.Tests (2)
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
AspireEFMySqlExtensions.cs (1)
107var connectionString = settings.ConnectionString ?? string.Empty;
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
PomeloEntityFrameworkCoreMySqlPublicApiTests.cs (1)
30var connectionName = isNull ? null! : string.Empty;
Aspire.Qdrant.Client.Tests (3)
ConformanceTests.cs (1)
75return string.Empty;
QdrantClientPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.RabbitMQ.Client.Tests (2)
RabbitMQClientPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Seq.Tests (1)
SeqPublicApiTests.cs (1)
29var connectionName = isNull ? null! : string.Empty;
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (2)
220var minMessage = minName != null ? $": {minName}" : string.Empty; 221var maxMessage = maxName != null ? $": {maxName}" : string.Empty;
Aspire.StackExchange.Redis.DistributedCaching.Tests (2)
StackExchangeRedisDistributedCachingPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.StackExchange.Redis.OutputCaching.Tests (2)
StackExchangeRedisOutputCachingPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.StackExchange.Redis.Tests (2)
StackExchangeRedisPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Templates.Tests (3)
TemplateAppFixture.cs (1)
29_dotnetNewArgs = dotnetNewArgs ?? string.Empty;
tests\Shared\TemplatesTesting\TestOutputWrapper.cs (1)
12public string Output => testOutputHelper?.Output ?? string.Empty;
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
Aspire.TerminalHost (4)
src\Shared\TerminalHost\TerminalHostPaths.cs (3)
153replicaId = string.Empty; 160replicaId = string.Empty; 168replicaId = string.Empty;
TerminalHostApp.cs (1)
451string payload = string.Empty;
Aspire.TestTools (6)
GitHubActionsApi.cs (2)
41HtmlUrl: job.TryGetProperty("html_url", out var htmlUrlElement) ? htmlUrlElement.GetString() ?? string.Empty : string.Empty,
GitHubCli.cs (3)
226content = string.Empty; 336try { stderr = await stderrTask.ConfigureAwait(false); } catch { stderr = string.Empty; } 376fixturePath = string.Empty;
TrxReader.cs (1)
170return unitTestResult.TestName ?? string.Empty;
Aspire.TestUtilities (1)
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
AzureFunctionsEndToEnd.ApiService (1)
Program.cs (1)
99public string Text { get; set; } = string.Empty;
BasketService (1)
BasketService.cs (1)
83exchange: string.Empty,
Binding.WS.FederationHttp.IntegrationTests (1)
WSFederationHttpBindingTests.cs (1)
38tokenTargetAddress = Endpoints.Https_SecModeTransWithMessCred_ClientCredTypeIssuedTokenSaml2 + endpointSuffix + (useSecureConversation ? "/sc" : string.Empty) + "/" + Enum.GetName(typeof(WSMessageEncoding), encoding);
cdac-build-tool (7)
DataDescriptorModel.cs (7)
104_baseline = string.Empty; 170if (_baseline != string.Empty && _baseline != baseline) 278private string _type = string.Empty; 285if (_type != string.Empty && _type != value) 308private string _type = string.Empty; 315if (_type != string.Empty && _type != value) 376private GlobalValue(ulong value) { NumericValue = value; StringValue = string.Empty;}
Client.ClientBase.IntegrationTests (2)
ClientBaseTestHelpers.cs (1)
28return string.Empty;
ClientBaseTests.4.0.0.cs (1)
799Assert.True(string.Empty == outofScopeResult, string.Format("Expect call out of the OperationContextScope does not have the custom header {0}", customHeaderName));
ConfigurationSchemaGenerator (5)
ConfigSchemaEmitter.cs (3)
479var text = string.Join(string.Empty, element.Nodes().Select(GetNodeText)); 509_ => string.Empty 543var innerText = string.Join(string.Empty, element.Nodes().Select(GetNodeText));
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (2)
103: type.ToDisplayString(s_identifierCompatibleFormat).Replace(".", string.Empty); 127string fullname = (@namespace is null ? string.Empty : @namespace + ".") + displayString.Replace(".", "+");
ConfigurationSchemaGenerator.Tests (2)
VariousTypes.cs (2)
38public string PropertyOfString { get; set; } = string.Empty; 112public string Value { get; set; } = string.Empty;
crossgen2 (2)
Crossgen2RootCommand.cs (1)
142new("--non-local-generics-module") { DefaultValueFactory = _ => string.Empty, Description = SR.NonLocalGenericsModule };
parent\parent\Common\CommandLineHelpers.cs (1)
336string prefix = input ? string.Empty : "out_"; // prefix output directories for clarity
csc (6)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (4)
385var eventName = ReadLengthPrefixedString(reader) ?? string.Empty; 390var key = ReadLengthPrefixedString(reader) ?? string.Empty; 391var value = ReadLengthPrefixedString(reader) ?? string.Empty; 429Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
536environmentVariables[key] = string.Empty; 725.Replace("=", string.Empty);
CSharpSyntaxGenerator (5)
AbstractFileWriter.cs (2)
205return string.Empty; 209return string.Empty;
src\roslyn\src\Compilers\CSharp\Portable\Syntax\SyntaxKindFacts.cs (1)
1899return string.Empty;
TestWriter.cs (2)
154var leadingTrivia = isGreen ? "null, " : string.Empty; 155var trailingTrivia = isGreen ? ", null" : string.Empty;
datacollector (2)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
datacollector.arm64 (2)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
dotnet-aot (47)
NativeEntryPoint.cs (5)
45string hostPath = PlatformStringMarshaller.ConvertToManaged(hostPathPtr) ?? string.Empty; 46string dotnetRoot = PlatformStringMarshaller.ConvertToManaged(dotnetRootPtr) ?? string.Empty; 47string sdkDir = PlatformStringMarshaller.ConvertToManaged(sdkDirPtr) ?? string.Empty; 48string hostfxrPath = PlatformStringMarshaller.ConvertToManaged(hostfxrPathPtr) ?? string.Empty; 54args[i] = PlatformStringMarshaller.ConvertToManaged(argv[i]) ?? string.Empty;
parent\dotnet\CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
48{ "commandName", commandResolverArguments is null ? string.Empty : Sha256Hasher.HashWithNormalizedCasing(commandResolverArguments.CommandName) },
parent\dotnet\Commands\Run\AotRunCommand.cs (2)
333fallbackReason = string.Empty; 424fallbackReason = string.Empty;
parent\dotnet\Commands\Run\CommonRunHelpers.cs (1)
74: baseArguments ?? string.Empty;
parent\dotnet\Commands\Run\RunProperties.cs (3)
37: this(command, arguments, workingDirectory, string.Empty, string.Empty, string.Empty)
parent\dotnet\Commands\Test\MTP\Logger.cs (1)
28=> _stringBuilder?.ToString() ?? string.Empty;
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
617string CurrentToken() => line.Substring(tokenStart, position - tokenStart).Replace("\"", string.Empty);
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
234optionRows.Add(new TwoColumnHelpRow($"--{option.Name}", option.Description ?? string.Empty));
parent\dotnet\Commands\Test\MTP\Terminal\AnsiCodes.cs (2)
131=> string.IsNullOrWhiteSpace(s) ? s ?? string.Empty : $"{CSI}{(int)color}{SetColor}{s}{SetDefaultColor}"; 134=> string.IsNullOrWhiteSpace(s) ? s ?? string.Empty : $"{CSI}{SetBold}{s}{SetDefaultColor}";
parent\dotnet\Commands\Test\MTP\Terminal\HumanReadableDurationFormatter.cs (2)
60=> $"{(hasParentValue ? " " : string.Empty)}{(hasParentValue ? value.ToString(CultureInfo.InvariantCulture).PadLeft(paddingWitdh, '0') : value.ToString(CultureInfo.InvariantCulture))}{suffix}"; 66return string.Empty;
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (3)
1115HandshakeFailure(assemblyPath: string.Empty, targetFramework: null, exitCode, outputData ?? string.Empty, errorData ?? string.Empty);
parent\dotnet\Commands\Test\MTP\Terminal\TestNodeResultsState.cs (3)
13private readonly TestDetailState _summaryDetail = new(id, stopwatch: null, text: string.Empty); 19private string _cachedFullTestsText = string.Empty; 23private string _cachedMoreTestsText = string.Empty;
parent\dotnet\Commands\Test\MTP\TestApplication.cs (6)
522: string.Empty; 758SetNegotiatedProtocolVersion(handshakeAccepted ? negotiatedVersion : string.Empty); 760handshakeAccepted ? negotiatedVersion : string.Empty, 833return string.Empty; 847string highestCommonVersionText = string.Empty; 1052return _liveStreamingEnabled ? string.Empty : string.Join(Environment.NewLine, _lines);
parent\dotnet\Commands\Test\MTP\TestApplicationHandler.cs (4)
231string.Empty, 234string.Empty, 286_ => string.Empty, 694_output.HandshakeFailure(_module.TargetPath ?? _module.ProjectFullPath ?? string.Empty, _module.TargetFramework, exitCode, outputData, errorData);
parent\dotnet\Commands\Test\MTP\TestResultsDirectoryResolver.cs (5)
196string firstRoot = Path.GetPathRoot(first) ?? string.Empty; 197string secondRoot = Path.GetPathRoot(second) ?? string.Empty; 200return string.Empty; 287return string.Empty; 300return string.IsNullOrEmpty(path) ? string.Empty : Path.GetFullPath(path, basePath);
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
157return versionInfo.Version + (versionInfo.IsInstalled ? string.Empty : ' ' + CliCommandStrings.WorkloadVersionNotInstalledShort);
parent\dotnet\Extensions\ParseResultExtensions.cs (1)
21.FirstOrDefault(subcommand => !string.IsNullOrEmpty(subcommand)) ?? string.Empty;
parent\dotnet\NugetPackageDownloader\NuGetPackagePathResolver.cs (1)
16return string.Empty;
parent\dotnet\Parser.cs (1)
330.Select(line => line.TrimStart().StartsWith('#') ? string.Empty : line)
parent\dotnet\SlnfFileHelper.cs (2)
71var slnfDirectory = Path.GetDirectoryName(Path.GetFullPath(slnfPath)) ?? string.Empty; 99var slnfDirectory = Path.GetDirectoryName(Path.GetFullPath(slnfPath)) ?? string.Empty;
SdkRootLocator.cs (1)
38return TrySelfLocateSdkDirectory() ?? string.Empty;
dotnet-dev-certs (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 701key.ImportFromEncryptedPem(pem, string.Empty);
dotnet-format (5)
Analyzers\CodeStyleInformationProvider.cs (1)
14private static readonly string s_executingPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? string.Empty;
Commands\FormatCommandCommon.cs (1)
199formatOptions = formatOptions with { ReportPath = string.Empty };
Formatters\DocumentFormatter.cs (2)
170: string.Empty; 191return string.Empty;
Formatters\FinalNewlineFormatter.cs (1)
54var removeNewlineChange = new TextChange(finalNewlineSpan, string.Empty);
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
26private static string s_references = string.Empty;
dotnet-razorpagegenerator (1)
Program.cs (1)
39var physicalPathPrefix = args.Length > 2 ? args[2] : string.Empty;
dotnet-svcutil-lib (1142)
CodeDomFixup\CodeDomVisitors\CodeNamespaceUniqueTypeFixer.cs (1)
20var uniqueName = namespaceScope.AddUnique(typeDeclaration.Name, string.Empty);
CodeSerializer.cs (1)
123string fileExtension = options.CodeProvider.FileExtension ?? string.Empty;
CommandLineParser.cs (2)
163argValue = (argValue == null || !IsArgumentValue(argValue)) ? string.Empty : argValue; 184if (argSwitch.SwitchType != SwitchType.Flag && argValue != string.Empty && IsArgumentValue(argValue))
CommandProcessorOptions.cs (4)
488var paramsFilePath = string.Empty; 489var fileRelPath = string.Empty; 500if (this.UpdateServiceReferenceFolder == string.Empty) 692var targetFrameworkMoniker = string.Empty;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeCompiler.cs (1)
407return String.Empty;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
106return string.Empty;
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerError.cs (3)
38_errorNumber = string.Empty; 39_errorText = string.Empty; 40_fileName = string.Empty;
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerParameters.cs (1)
27private string _coreAssemblyFileName = String.Empty;
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
185get { return _tempDir == null ? string.Empty : _tempDir; }
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
3825string s = String.Empty; 4263return String.Empty;
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (1)
3157string s = String.Empty;
FrameworkFork\Microsoft.CodeDom\System\CodeArgumentReferenceExpression.cs (1)
48return (_parameterName == null) ? string.Empty : _parameterName;
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgument.cs (1)
68return (_name == null) ? string.Empty : _name;
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclaration.cs (1)
88return (_name == null) ? string.Empty : _name;
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClause.cs (1)
70return (_localName == null) ? string.Empty : _localName;
FrameworkFork\Microsoft.CodeDom\System\CodeChecksumPragma.cs (1)
39return (_fileName == null) ? string.Empty : _fileName;
FrameworkFork\Microsoft.CodeDom\System\CodeComment.cs (1)
80return (_text == null) ? string.Empty : _text;
FrameworkFork\Microsoft.CodeDom\System\CodeDelegateCreateExpression.cs (1)
97return (_methodName == null) ? string.Empty : _methodName;
FrameworkFork\Microsoft.CodeDom\System\CodeEventReferenceExpression.cs (1)
64return (_eventName == null) ? string.Empty : _eventName;
FrameworkFork\Microsoft.CodeDom\System\CodeFieldReferenceExpression.cs (1)
76return (_fieldName == null) ? string.Empty : _fieldName;
FrameworkFork\Microsoft.CodeDom\System\CodeIfDirective.cs (1)
37return (_ifText == null) ? string.Empty : _ifText;
FrameworkFork\Microsoft.CodeDom\System\CodeLabeledStatement.cs (1)
57return (_label == null) ? string.Empty : _label;
FrameworkFork\Microsoft.CodeDom\System\CodeLinePragma.cs (1)
54return (_fileName == null) ? string.Empty : _fileName;
FrameworkFork\Microsoft.CodeDom\System\codemethodreferenceexpression.cs (1)
88return (_methodName == null) ? string.Empty : _methodName;
FrameworkFork\Microsoft.CodeDom\System\CodeNamespace.cs (1)
139return (_name == null) ? string.Empty : _name;
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImport.cs (1)
75return (_nameSpace == null) ? string.Empty : _nameSpace;
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpression.cs (1)
140return (_name == null) ? string.Empty : _name;
FrameworkFork\Microsoft.CodeDom\System\CodePropertyReferenceExpression.cs (1)
76return (_propertyName == null) ? string.Empty : _propertyName;
FrameworkFork\Microsoft.CodeDom\System\CodeRegionDirective.cs (1)
37return (_regionText == null) ? string.Empty : _regionText;
FrameworkFork\Microsoft.CodeDom\System\CodeSnippetCompileUnit.cs (1)
48return (_value == null) ? string.Empty : _value;
FrameworkFork\Microsoft.CodeDom\System\CodeSnippetExpression.cs (1)
56return (_value == null) ? string.Empty : _value;
FrameworkFork\Microsoft.CodeDom\System\CodeSnippetStatement.cs (1)
56return (_value == null) ? string.Empty : _value;
FrameworkFork\Microsoft.CodeDom\System\CodeSnippetTypeMember.cs (1)
57return (_text == null) ? string.Empty : _text;
FrameworkFork\Microsoft.CodeDom\System\CodeTypeMember.cs (1)
49return (_name == null) ? string.Empty : _name;
FrameworkFork\Microsoft.CodeDom\System\CodeTypeParameter.cs (1)
39return (_name == null) ? string.Empty : _name;
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (2)
52_baseType = string.Empty; 376return string.Empty;
FrameworkFork\Microsoft.CodeDom\System\CodeVariableDeclarationStatement.cs (1)
126return (_name == null) ? string.Empty : _name;
FrameworkFork\Microsoft.CodeDom\System\CodeVariableReferenceExpression.cs (1)
54return (_variableName == null) ? string.Empty : _variableName;
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (40)
81this.prefix = this.localname = this.namespaceUri = String.Empty; 252this.symtable[0] = String.Empty; 380AddInitNamespace(String.Empty, String.Empty); 538return String.Empty; 632return string.Empty; 683ns = String.Empty; 731ns = String.Empty; 1132return XmlConvert.ToBoolean(String.Empty); 1222return XmlConvert.ToDateTime(String.Empty, XmlDateTimeSerializationMode.RoundtripKind); 1317return XmlConvert.ToDouble(String.Empty); 1412return XmlConvert.ToSingle(String.Empty); 1507return XmlConvert.ToDecimal(String.Empty); 1602return XmlConvert.ToInt32(String.Empty); 1697return XmlConvert.ToInt64(String.Empty); 1740value = String.Empty; 1780value = String.Empty; 1955prefixStr = String.Empty; 1988throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 1996throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 2339return String.Empty; 2520name = new QName(string.Empty, _xmlns, _nsxmlns); 2563_attributes[0].Set(new QName(string.Empty, _xnt.Add("version"), string.Empty), ParseText()); 2568_attributes[1].Set(new QName(string.Empty, _xnt.Add("encoding"), string.Empty), ParseText()); 2579_attributes[_attrCount].Set(new QName(string.Empty, _xnt.Add("standalone"), string.Empty), (standalone == 1) ? "yes" : "no"); 2588QName xmlDeclQName = new QName(String.Empty, _xnt.Add("xml"), String.Empty); 2620PushNamespace(curDeclPrefix, string.Empty, false); 2645curDeclPrefix = string.Empty; 2650throw new XmlException(ResXml.Xml_PrefixForEmptyNs, String.Empty); 3148_attributes[_attrCount++].Set(new QName(string.Empty, _xnt.Add("SYSTEM"), string.Empty), ParseText()); 3153_attributes[_attrCount++].Set(new QName(string.Empty, _xnt.Add("PUBLIC"), string.Empty), ParseText()); 4048throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 4197throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty); 4395throw new XmlException(ResXml.XmlBin_InvalidQNameID, String.Empty);
FrameworkFork\Microsoft.Xml\Xml\BufferBuilder.cs (2)
319returnString = (_stringBuilder != null) ? _stringBuilder.ToString() : string.Empty; 376return (_stringBuilder != null) ? _stringBuilder.ToString(startIndex, len) : string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathDocumentBuilder.cs (29)
102idx = NewNode(out page, XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty); 112_idxParent = NewNode(out _pageParent, XPathNodeType.Root, string.Empty, string.Empty, string.Empty, baseUri); 139this.WriteStartElement(prefix, localName, ns, string.Empty); 294AddSibling(XPathNodeType.Attribute, localName, namespaceName, prefix, string.Empty); 332AddSibling(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, string.Empty); 341this.WriteProcessingInstruction(name, text, string.Empty); 352AddSibling(XPathNodeType.ProcessingInstruction, name, string.Empty, string.Empty, baseUri); 440AddSibling(XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty); 441_pageSibling[_idxSibling].SetValue(string.Empty); 631info = _infoTable.Create(prefix, string.Empty, string.Empty, string.Empty, 765AddSibling((XPathNodeType)textType, string.Empty, string.Empty, string.Empty, string.Empty); 922return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathDocumentNavigator.cs (2)
105string s = string.Empty; 231return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNode.cs (1)
403_value = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\CharEntityEncoderFallback.cs (1)
88private string _charEntity = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriter.cs (2)
154throw new XmlException(ResXml.Xml_NoMultipleRoots, string.Empty); 330throw new XmlException(ResXml.Xml_NoRoot, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\ValidatingReaderNodeData.cs (8)
175_localName = string.Empty; 176_prefix = string.Empty; 177_namespaceUri = string.Empty; 178_rawValue = string.Empty; 190_localName = string.Empty; 191_prefix = string.Empty; 192_namespaceUri = string.Empty; 224_rawValue = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlAutoDetectWriter.cs (1)
41_eventCache = new XmlEventCache(string.Empty, true);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReader.cs (2)
231Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty); 307Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
82Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty); 158Throw(ResXml.Xml_DtdIsProhibitedEx, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlCharCheckingWriter.cs (1)
246ws = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
312return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlParserContext.cs (24)
18private String _docTypeName = String.Empty; 19private String _pubId = String.Empty; 20private String _sysId = String.Empty; 21private String _internalSubset = String.Empty; 22private String _xmlLang = String.Empty; 24private String _baseURI = String.Empty; 28: this(nt, nsMgr, null, null, null, null, String.Empty, xmlLang, xmlSpace) 34: this(nt, nsMgr, null, null, null, null, String.Empty, xmlLang, xmlSpace, enc) 61throw new XmlException(ResXml.Xml_NotSameNametable, string.Empty); 72_docTypeName = (null == docTypeName ? String.Empty : docTypeName); 73_pubId = (null == pubId ? String.Empty : pubId); 74_sysId = (null == sysId ? String.Empty : sysId); 75_internalSubset = (null == internalSubset ? String.Empty : internalSubset); 76_baseURI = (null == baseURI ? String.Empty : baseURI); 77_xmlLang = (null == xmlLang ? String.Empty : xmlLang); 114_docTypeName = (null == value ? String.Empty : value); 126_pubId = (null == value ? String.Empty : value); 138_sysId = (null == value ? String.Empty : value); 150_baseURI = (null == value ? String.Empty : value); 162_internalSubset = (null == value ? String.Empty : value); 174_xmlLang = (null == value ? String.Empty : value); 206return (_internalSubset != string.Empty || _pubId != string.Empty || _sysId != string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (33)
188return string.Empty; 416return string.Empty; 435return XmlConvert.ToBoolean(string.Empty); 454return XmlConvert.ToDateTime(string.Empty, XmlDateTimeSerializationMode.RoundtripKind); 474return XmlConvert.ToDouble(string.Empty); 494return XmlConvert.ToSingle(string.Empty); 514return XmlConvert.ToDecimal(string.Empty); 534return XmlConvert.ToInt32(string.Empty); 554return XmlConvert.ToInt64(string.Empty); 574return string.Empty; 594return (returnType == typeof(string)) ? string.Empty : XmlUntypedConverter.Untyped.ChangeType(string.Empty, returnType, namespaceResolver); 782return string.Empty; 789return string.Empty; 797return string.Empty; 800string result = string.Empty; 885string result = string.Empty; 912string result = string.Empty; 945string result = string.Empty; 1227return string.Empty; 1232return string.Empty; 1332return string.Empty; 1337return string.Empty; 1605string value = string.Empty; 1679throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 1794return Create(input, (XmlReaderSettings)null, (string)string.Empty); 1800return Create(input, settings, string.Empty); 1820return settings.CreateReader(input, null, (string)string.Empty, inputContext); 1826return Create(input, (XmlReaderSettings)null, (string)string.Empty); 1832return Create(input, settings, string.Empty); 1852return settings.CreateReader(input, string.Empty, inputContext); 1927reader = new XmlSqlBinaryReader(input, bytes, byteCount, string.Empty, settings.CloseInput, settings); 1931reader = new XmlTextReaderImpl(input, bytes, byteCount, settings, null, string.Empty, inputContext, settings.CloseInput);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (10)
95return string.Empty; 107return string.Empty; 119return (returnType == typeof(string)) ? string.Empty : XmlUntypedConverter.Untyped.ChangeType(string.Empty, returnType, namespaceResolver); 200return string.Empty; 205return string.Empty; 287return string.Empty; 292return string.Empty; 348string value = string.Empty; 422throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (2)
467baseUriString = string.Empty; 501baseUriString = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (13)
107_tmpNode.Set(XmlNodeType.None, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty); 1261_nsManager.AddNamespace(string.Empty, reader.Value); 1262RemoveNamespace(string.Empty, _xmlns); 1312_nsAttributes[index].Set(XmlNodeType.Attribute, _xmlns, string.Empty, _xmlns, _xmlnsUri, ns); 1490Debug.Assert(_tmpNode.localName == string.Empty && _tmpNode.prefix == string.Empty && _tmpNode.name == string.Empty && _tmpNode.namespaceUri == string.Empty); 1492_tmpNode.value = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextEncoder.cs (1)
99return String.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (51)
190private string _url = string.Empty; 214private string _lastPrefix = string.Empty; 329nt.Add(string.Empty); 402nt.Add(string.Empty); 464internal XmlTextReaderImpl(Stream input) : this(string.Empty, input, new NameTable()) 467internal XmlTextReaderImpl(Stream input, XmlNameTable nt) : this(string.Empty, input, nt) 490internal XmlTextReaderImpl(TextReader input) : this(string.Empty, input, new NameTable()) 493internal XmlTextReaderImpl(TextReader input, XmlNameTable nt) : this(string.Empty, input, nt) 502_reportedBaseUri = (url != null) ? url : string.Empty; 539xmlFragment = string.Empty; 544InitStringInput(string.Empty, Encoding.Unicode, xmlFragment); 563InitStringInput((context == null) ? string.Empty : context.BaseURI, Encoding.Unicode, string.Concat("<?xml ", xmlFragment, "?>")); 662stream = (Stream)_laterInitParam.inputUriResolver.GetEntity(_laterInitParam.inputbaseUri, string.Empty, typeof(Stream)); 774Debug.Assert(baseUriStr == string.Empty, "BaseURI can come either from XmlParserContext or from the constructor argument, not from both"); 823InitStringInput(string.Empty, Encoding.Unicode, xmlFragment); 1061namespaceURI = (namespaceURI == null) ? string.Empty : _nameTable.Get(namespaceURI); 1115namespaceURI = (namespaceURI == null) ? string.Empty : _nameTable.Get(namespaceURI); 1300_curNode.SetValueNode(XmlNodeType.Text, string.Empty); 1525throw new XmlException(ResXml.Xml_InternalError, string.Empty); 1551throw new XmlException(ResXml.Xml_InternalError, string.Empty); 1922_curNode.SetValue(string.Empty); 2053_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty); 2061_xmlContext.defaultNamespace = string.Empty; 2117throw new XmlException(ResXml.Xml_WhitespaceHandling, string.Empty); 2154throw new XmlException(ResXml.Xml_EntityHandling, string.Empty); 2233return new StringReader(string.Empty); 2739Throw(res, string.Empty); 2744Throw(res, string.Empty); 2749Throw(new XmlException(res, string.Empty, lineNo, linePos, _ps.baseUriStr)); 2795Throw(new XmlException(res, string.Empty, _ps.baseUriStr)); 2876InitStreamInput(null, string.Empty, stream, null, 0, encoding); 3051_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty); 3066_ps.baseUriStr = string.Empty; 3618_reportedBaseUri = string.Empty; 5167AddNamespace(string.Empty, ns, attr); 5953_curNode.SetValue(string.Empty); 6162schemaEntity.Text = string.Empty; 6174schemaEntity.Text = string.Empty; 6856_curNode.SetNamedNode(XmlNodeType.DocumentType, _dtdInfo.Name.ToString(), string.Empty, null); 6957_curNode.SetValue(string.Empty); 7818return AddAttribute(localName, string.Empty, localName); 8078ThrowWithoutLineInfo(ResXml.Xml_CannotResolveExternalSubset, new string[] { (publicId != null ? publicId : string.Empty), systemId }, null); 8161InitStringInput(entity.SystemId, enc, string.Empty); 8179InitStringInput((entity.DeclaredUriString != null) ? entity.DeclaredUriString : string.Empty, enc, entity.Text ?? string.Empty); 8715_curNode.SetValueNode(XmlNodeType.Text, string.Empty); 9137_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty); 9151throw new XmlException(ResXml.Xml_NametableMismatch, string.Empty); 9376prefix = string.Empty; 9511_curNode.SetValue(string.Empty); 9748return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (16)
85baseUriStr = string.Empty; 138xmlLang = string.Empty; 139defaultNamespace = string.Empty; 158public override string DefaultNamespace { get { return string.Empty; } } 165public override string LookupNamespace(string prefix) { return string.Empty; } 491_value = string.Empty; 493nameWPrefix = string.Empty; 500localName = string.Empty; 501prefix = string.Empty; 502ns = string.Empty; 503nameWPrefix = string.Empty; 539SetNamedNode(type, localName, string.Empty, localName); 551this.ns = string.Empty; 552_value = string.Empty; 761throw new XmlException(ResXml.Xml_DefaultException, string.Empty); 781throw new XmlException(ResXml.Xml_DefaultException, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (4)
65defaultNs = String.Empty; 621prefix = string.Empty; 809ws = String.Empty; 1068s = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (27)
281_nsStack[2].Set(string.Empty, string.Empty, NamespaceKind.Implied); 285string defaultNs = _predefinedNamespaces.LookupNamespace(string.Empty); 286_nsStack[2].Set(string.Empty, (defaultNs == null ? string.Empty : defaultNs), NamespaceKind.Implied); 291_elemScopeStack[0].Set(string.Empty, string.Empty, string.Empty, _nsTop); 464prefix = string.Empty; 485ns = string.Empty; 533throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 584throw new XmlException(ResXml.Xml_NoStartTag, string.Empty); 636prefix = string.Empty; 658prefix = string.Empty; 669namespaceName = string.Empty; 681_curDeclPrefix = String.Empty; 731prefix = string.Empty; 780if (PushNamespaceExplicit(string.Empty, value)) 786_rawWriter.WriteStartNamespaceDeclaration(string.Empty); 792_rawWriter.WriteNamespaceDeclaration(string.Empty, value); 797_writer.WriteStartAttribute(string.Empty, "xmlns", XmlReservedNs.NsXmlNs); 887text = string.Empty; 905text = string.Empty; 931text = string.Empty; 1054ws = string.Empty; 1373string prefix = String.Empty; 1787throw DupAttrException((prefix.Length == 0) ? string.Empty : "xmlns", (prefix.Length == 0) ? "xmlns" : prefix);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriterHelpers.cs (1)
109writer.WriteStartAttribute(string.Empty, "xmlns", XmlReservedNs.NsXmlNs);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (3)
231return string.Empty; 369throw new XmlException(ResXml.Xml_InvalidPosition, string.Empty); 652WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdCachingReader.cs (2)
267namespaceURI = (namespaceURI == null) ? string.Empty : _coreReaderNameTable.Get(namespaceURI); 346ns = (ns == null) ? string.Empty : _coreReaderNameTable.Get(ns);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (14)
39localName = string.Empty; 40namespaceUri = string.Empty; 1118namespaceURI = (namespaceURI == null) ? string.Empty : _coreReaderNameTable.Get(namespaceURI); 1188ns = ns != null ? _coreReaderNameTable.Get(ns) : string.Empty; 2013_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value); 2112ns = string.Empty; 2154ns = string.Empty; 2279originalStringValue = string.Empty; 2281return string.Empty; 2362typedValue = string.Empty; 2363originalString = string.Empty; 2368throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 2377throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 2638return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (7)
589_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value); 698originalStringValue = string.Empty; 700tuple = new Tuple<string, object>(originalStringValue, string.Empty); 790typedValue = string.Empty; 791originalString = string.Empty; 796throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 808throw new XmlException(ResXml.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (4)
200if (!dictionary.ContainsKey(string.Empty)) 202dictionary.Add(string.Empty, attr.Value); 376_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value); 732_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (3)
129XmlNode node = _document.CreateXmlDeclaration("1.0", string.Empty, standalone == XmlStandalone.Yes ? "yes" : "no"); 228XmlNode node = _document.CreateTextNode(string.Empty); 275XmlNode node = _document.CreateTextNode(string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (7)
123return string.Empty; 144return string.Empty; // xmlns declaration 150return string.Empty; 163return string.Empty; 200return string.Empty; 424return string.Empty; 1851string prefix = attribute.Prefix.Length == 0 ? string.Empty : attribute.LocalName;
FrameworkFork\Microsoft.Xml\Xml\Dom\DomNameTable.cs (4)
37prefix = string.Empty; 41ns = string.Empty; 67prefix = string.Empty; 71ns = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttribute.cs (3)
364return String.Empty; 389return String.Empty; 408if (_name.Prefix.Length == 0 && _name.LocalName == "xmlns") return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlCharacterData.cs (2)
50return String.Empty; 94return String.Empty;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDeclaration.cs (2)
47set { _encoding = ((value == null) ? String.Empty : value); } 57_standalone = String.Empty;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (25)
100nt.Add(string.Empty); 116strEmpty = nt.Add(String.Empty); 117baseURI = String.Empty; 195XmlName newName = GetXmlName(eleName.Prefix, eleName.LocalName, string.Empty, null); 537String prefix = String.Empty; 538String localName = String.Empty; 539String namespaceURI = String.Empty; 589string prefix = String.Empty; 590string localName = String.Empty; 592return CreateElement(prefix, localName, string.Empty); 610string attrPrefix = string.Empty; 612string attrNamespaceURI = string.Empty; 842string prefix = String.Empty; 843string localName = String.Empty; 853string prefix = String.Empty; 854string localName = String.Empty; 1068return CreateTextNode(string.Empty); 1071return CreateCDataSection(string.Empty); 1077return CreateProcessingInstruction(name, string.Empty); 1083return CreateComment(string.Empty); 1089return CreateDocumentType(name, string.Empty, string.Empty, string.Empty); 1095return CreateSignificantWhitespace(string.Empty); 1098return CreateWhitespace(string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlElement.cs (5)
273return String.Empty; 341return String.Empty; 351attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 385attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 635return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlEntity.cs (2)
137get { return String.Empty; } 142get { return String.Empty; }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlEntityReference.cs (1)
212return String.Empty;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (9)
288node.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 347node.AppendChildForLoad(direct ? new XmlText(string.Empty) : _doc.CreateTextNode(string.Empty), _doc); 378eref.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 599XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(_doc.NameTable), null, null, null, null, _doc.BaseURI, string.Empty, XmlSpace.None); 619throw new XmlException(ResXml.Xml_InternalError, string.Empty); 677_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 678_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null)); 718mgr.AddNamespace(String.Empty, attr.Value);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (11)
813get { return string.Empty; } 819get { return string.Empty; } 912return string.Empty; 1018return String.Empty; 1059return namespaceName != null ? namespaceName : string.Empty; 1146return prefix != null ? prefix : string.Empty; 1174return string.Empty; // found xmlns="namespaceURI" 1270prefix = string.Empty; 1364return String.Empty; 1380return string.Empty; 1386return String.Empty;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (28)
133return String.Empty; //Text node's name is String.Empty 144return String.Empty; 157return String.Empty; 263StringBuilder strb = new StringBuilder(String.Empty); 276return (retValue == null) ? String.Empty : retValue; 645return MoveToAttribute(name, string.Empty); 876prefix = string.Empty; 907return string.Empty; 924if (prefix == string.Empty) 926return _nameTable.Add(string.Empty); 946if (namespaceName == string.Empty) 948return string.Empty; 967if (LookupNamespace(string.Empty) == namespaceName) 969return string.Empty; 1015if (!dict.ContainsKey(string.Empty)) 1017dict.Add(_nameTable.Add(string.Empty), _nameTable.Add(a.Value)); 1045if (dict.ContainsKey(string.Empty) && dict[string.Empty] == string.Empty) 1047dict.Remove(string.Empty); 1190return String.Empty; 1201return String.Empty; 1213return String.Empty; 1224return String.Empty; 1247return String.Empty; 1313return String.Empty; 1360String ns = (namespaceURI == null) ? String.Empty : namespaceURI; 1400String ns = (namespaceURI == null) ? String.Empty : namespaceURI;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNotation.cs (2)
77get { return String.Empty; } 82get { return String.Empty; }
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlProcessingInstruction.cs (1)
33return String.Empty;
FrameworkFork\Microsoft.Xml\Xml\HWStack.cs (1)
39throw new XmlException(ResXml.Xml_StackOverflow, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\NameTable.cs (4)
76return string.Empty; 108return string.Empty; 145return string.Empty; 179return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlSystemPathResolver.cs (1)
30throw new XmlException(ResXml.Xml_UnsupportedClass, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\AstTree.cs (1)
571throw new XmlSchemaException(ResXml.Sch_EmptyXPath, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (4)
138throw new XmlException(ResXml.Xml_InternalError, string.Empty); 191SendValidationEvent(ResXml.Sch_InvalidTextInEmpty, string.Empty); 211SendValidationEvent(ResXml.Sch_InvalidWhitespaceInEmpty, string.Empty); 239SendValidationEvent(code, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (1)
114AddWildcard(string.Empty, null); //##local is not allowed
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (9)
391throw new XmlSchemaException(ResXml.Sch_ListFromNonatomic, string.Empty); 395throw new XmlSchemaException(ResXml.Sch_ListFromNonatomic, string.Empty); 1166return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1923return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1954return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1993return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 2764return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 3100return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 3815throw new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (20)
157private string _systemId = string.Empty; 158private string _publicId = string.Empty; 201private string _documentBaseUri = string.Empty; 202private string _externalDtdBaseUri = string.Empty; 583SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 643SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 699Throw(ResXml.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 739Throw(ResXml.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 918SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_AttListPresence, string.Empty); 1100SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1162SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1187SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1208SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1447SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1472SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 1481SendValidationEvent(_curPos, XmlSeverityType.Error, ResXml.Sch_ParEntityRefNesting, string.Empty); 2659Throw(ResXml.Xml_ErrorParsingEntityName, string.Empty, e.LineNumber, e.LinePosition); 3520return (tmp != null) ? tmp.ToString() : string.Empty; 3532Throw(curPos, res, string.Empty); 3627return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (3)
231textString = string.Empty; 285textString = string.Empty; 573baseUriStr = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (63)
320throw new XmlSchemaException(ResXml.Sch_TotalDigitsMismatch, string.Empty); 340throw new XmlSchemaException(ResXml.Sch_TotalDigitsMismatch, string.Empty); 385throw new XmlSchemaException(ResXml.Sch_MaxInclusiveMismatch, string.Empty); 392throw new XmlSchemaException(ResXml.Sch_MaxIncExlMismatch, string.Empty); 402throw new XmlSchemaException(ResXml.Sch_MaxExclusiveMismatch, string.Empty); 409throw new XmlSchemaException(ResXml.Sch_MaxExlIncMismatch, string.Empty); 419throw new XmlSchemaException(ResXml.Sch_MinInclusiveMismatch, string.Empty); 426throw new XmlSchemaException(ResXml.Sch_MinIncExlMismatch, string.Empty); 433throw new XmlSchemaException(ResXml.Sch_MinIncMaxExlMismatch, string.Empty); 443throw new XmlSchemaException(ResXml.Sch_MinExclusiveMismatch, string.Empty); 450throw new XmlSchemaException(ResXml.Sch_MinExlIncMismatch, string.Empty); 457throw new XmlSchemaException(ResXml.Sch_MinExlMaxExlMismatch, string.Empty); 477throw new XmlSchemaException(ResXml.Sch_MaxInclusiveExclusive, string.Empty); 484throw new XmlSchemaException(ResXml.Sch_MinInclusiveExclusive, string.Empty); 491throw new XmlSchemaException(ResXml.Sch_LengthAndMinMax, string.Empty); 504throw new XmlSchemaException(ResXml.Sch_MinLengthGtMaxLength, string.Empty); 516throw new XmlSchemaException(ResXml.Sch_MinInclusiveGtMaxInclusive, string.Empty); 526throw new XmlSchemaException(ResXml.Sch_MinInclusiveGtMaxExclusive, string.Empty); 536throw new XmlSchemaException(ResXml.Sch_MinExclusiveGtMaxExclusive, string.Empty); 546throw new XmlSchemaException(ResXml.Sch_MinExclusiveGtMaxInclusive, string.Empty); 553throw new XmlSchemaException(ResXml.Sch_FractionDigitsGtTotalDigits, string.Empty); 885return new XmlSchemaException(ResXml.Sch_PatternConstraintFailed, string.Empty); 1029return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1037return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1045return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1053return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1060return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1121return new XmlSchemaException(ResXml.Sch_TotalDigitsConstraintFailed, string.Empty); 1125return new XmlSchemaException(ResXml.Sch_FractionDigitsConstraintFailed, string.Empty); 1150return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1157return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1165return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1173return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1180return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1225return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1233return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1241return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1249return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1256return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1296return new XmlSchemaException(ResXml.Sch_MaxInclusiveConstraintFailed, string.Empty); 1304return new XmlSchemaException(ResXml.Sch_MaxExclusiveConstraintFailed, string.Empty); 1312return new XmlSchemaException(ResXml.Sch_MinInclusiveConstraintFailed, string.Empty); 1320return new XmlSchemaException(ResXml.Sch_MinExclusiveConstraintFailed, string.Empty); 1327return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1396return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1403return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1410return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1417return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1479return new XmlSchemaException(ResXml.Sch_EmptyAttributeValue, string.Empty); 1483return new XmlSchemaException(ResXml.Sch_InvalidLanguageId, string.Empty); 1528return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1535return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1542return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1549return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1597return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1604return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1611return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1618return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1660return new XmlSchemaException(ResXml.Sch_LengthConstraintFailed, string.Empty); 1668return new XmlSchemaException(ResXml.Sch_MinLengthConstraintFailed, string.Empty); 1676return new XmlSchemaException(ResXml.Sch_MaxLengthConstraintFailed, string.Empty); 1684return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty); 1714return new XmlSchemaException(ResXml.Sch_EnumerationConstraintFailed, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (1)
522if (childURI == String.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\NamespaceList.cs (17)
54_set[string.Empty] = string.Empty; 163return string.Empty; 227nslist = new NamespaceList("##other", string.Empty); //clause 4, negations of different values, result is not(absent) 245if (o2._targetNamespace != string.Empty) 249else if (o1._set.Contains(string.Empty)) 255nslist = new NamespaceList("##other", string.Empty); 274if (o1._targetNamespace != string.Empty) 278else if (o2._set.Contains(string.Empty)) 284nslist = new NamespaceList("##other", string.Empty); 297if (_set.Contains(string.Empty)) 303nslist = new NamespaceList("##other", string.Empty); 306else if (_set.Contains(string.Empty)) 335nslist.RemoveNamespace(string.Empty); //remove ##local 344nslist.RemoveNamespace(string.Empty); //remove ##local 370if (o1._targetNamespace == string.Empty) 374else if (o2._targetNamespace == string.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (5)
193_namespaceManager.AddNamespace(_reader.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 357_annotationNSManager.AddNamespace(r.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 373if (elemNS != string.Empty) 408attr = _dummyDocument.CreateAttribute(string.Empty, _xmlns, XmlReservedNs.NsXmlNs); 466eref.AppendChild(_dummyDocument.CreateTextNode(String.Empty));
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (6)
325string importNS = import.Namespace != null ? import.Namespace : string.Empty; 511ns = string.Empty; 522tns = string.Empty; 676_targetNamespace = targetNamespace == null ? string.Empty : targetNamespace; 717string importNS = import.Namespace != null ? import.Namespace : string.Empty; 869string targetNS = schemaToUpdate.TargetNamespace == null ? string.Empty : schemaToUpdate.TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaAttDef.cs (2)
152get { return (_defExpanded != null) ? _defExpanded : String.Empty; } 220validationEventHandling.SendEvent(new XmlSchemaException(ResXml.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (4)
1040string position = string.Empty; 1897string position = string.Empty; 1930string position = string.Empty; 2468string name = complexType.Name != null ? complexType.Name : string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (4)
171string importNS = import.Namespace != null ? import.Namespace : string.Empty; 274_referenceNamespaces.Add(string.Empty, string.Empty); 437_targetNamespace = targetNamespace == null ? string.Empty : targetNamespace;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaDeclBase.cs (2)
61get { return (prefix == null) ? string.Empty : prefix; } 118get { return (defaultValueRaw != null) ? defaultValueRaw : string.Empty; }
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (1)
247throw new XmlSchemaException(ResXml.Sch_StandAlone, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaEntity.cs (2)
169get { return (_baseURI == null) ? String.Empty : _baseURI; } 181get { return (_declaredURI == null) ? String.Empty : _declaredURI; }
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (2)
39private string _internalDtdSubset = string.Empty; 346eventhandler(this, new ValidationEventArgs(new XmlSchemaException(ResXml.Sch_MixSchemaTypes, string.Empty)));
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaNamespaceManager.cs (1)
37return prefix.Length == 0 ? string.Empty : null;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (5)
139tns = string.Empty; 1119string position = string.Empty; 2240string position = string.Empty; 2281string position = string.Empty; 2911string name = complexType.Name != null ? complexType.Name : string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (3)
484buildFunc(this, a._Datatype.ParseValue(value, _NameTable, _CurNsMgr), string.Empty); 668builder._TargetNamespace = String.Empty; 1812SendValidationEvent(code, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (6)
185textString = string.Empty; 199LoadSchema(string.Empty); 212_nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 323textString = string.Empty; 394throw new XmlException(ResXml.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition); 450SendValidationEvent(new XmlSchemaException(ResXml.Xml_NoValidation, string.Empty), XmlSeverityType.Warning);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (1)
409return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaAny.cs (1)
99return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (4)
221XmlSchemaCollectionNode node = (XmlSchemaCollectionNode)_collection[(ns != null) ? ns : string.Empty]; 242return _collection[(ns != null) ? ns : string.Empty] != null; 322XmlSchemaCollectionNode node = (XmlSchemaCollectionNode)_collection[(ns != null) ? ns : string.Empty]; 358ns = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaDatatype.cs (2)
140string typeCodeString = string.Empty; 275string stringValue = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (8)
317throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 321throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 376throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 380throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 392throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 396throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 408throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 412throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (6)
53throw new XmlSchemaException(ResXml.Sch_MinOccursInvalidXsd, string.Empty); 89throw new XmlSchemaException(ResXml.Sch_MaxOccursInvalidXsd, string.Empty); 113throw new XmlSchemaException(ResXml.Sch_MinOccursInvalidXsd, string.Empty); 132throw new XmlSchemaException(ResXml.Sch_MaxOccursInvalidXsd, string.Empty); 157return string.Empty; 180ns = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (12)
445tns = string.Empty; 560SendValidationEvent(new XmlSchemaException(ResXml.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning); 584targetNamespace = string.Empty; 645SendValidationEvent(new XmlSchemaException(ResXml.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error); 827targetNamespace = string.Empty; 947targetNamespace = string.Empty; 986tns = string.Empty; 1023string tns = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace; 1028else if (tns == string.Empty) 1402targetNamespace = string.Empty; 1455return schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace; 1556string code = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (12)
337tns = string.Empty; 367tns = string.Empty; 631SendValidationEvent(ResXml.Sch_ValidateAttributeInvalidCall, string.Empty); 643SendValidationEvent(ResXml.Sch_AttrUseAndWildId, string.Empty); 652SendValidationEvent(ResXml.Sch_MoreThanOneWildId, string.Empty); 801SendValidationEvent(ResXml.Sch_InvalidTextInEmpty, string.Empty); 883SendValidationEvent(ResXml.Sch_InvalidWhitespaceInEmpty, string.Empty); 1068string defaultPrefix = string.Empty; 1210string stringValue = string.Empty; 1299LoadSchema(string.Empty, xsiNoNamespaceSchemaLocation); 1647SendValidationEvent(ResXml.Sch_ValidateElementInvalidCall, string.Empty); 2814SendValidationEvent(code, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
762_namespaces.Add((name == _schemaNames.QnXmlNs.Name) ? string.Empty : name, value);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (6)
155inlineNS = schema.TargetNamespace == null ? string.Empty : schema.TargetNamespace; 270LoadSchema(string.Empty, null); 290_nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 317LoadSchema(string.Empty, xsiNoNamespaceSchemaLocation); 573textString = string.Empty; 651throw new XmlException(ResXml.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
FrameworkFork\Microsoft.Xml\Xml\Serialization\_Events.cs (2)
89get { return _qnames == null ? string.Empty : _qnames; } 146get { return _qnames == null ? string.Empty : _qnames; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
207typesIncluded.Add(arrayMapping.TypeDesc.FullName, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (5)
54get { return _name == null ? string.Empty : _name; } 441get { return _xmlName == null ? string.Empty : _xmlName; } 447get { return _name == null ? string.Empty : _name; } 984get { return _name == null ? string.Empty : _name; } 1195_namespaces = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (1)
277if (o == null) return String.Empty;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapAttributeAttribute.cs (2)
43get { return _attributeName == null ? string.Empty : _attributeName; } 63get { return _dataType == null ? string.Empty : _dataType; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapAttributeOverrides.cs (2)
28Add(type, string.Empty, attributes); 58return this[type, string.Empty];
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
133string baseName = mapping.TypeDesc.BaseTypeDesc == null ? string.Empty : mapping.TypeDesc.BaseTypeDesc.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapElementAttribute.cs (2)
43get { return _elementName == null ? string.Empty : _elementName; } 53get { return _dataType == null ? string.Empty : _dataType; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapEnumAttribute.cs (1)
41get { return _name == null ? string.Empty : _name; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (4)
59defaultNamespace = String.Empty; 193return ImportTypeMapping(model, String.Empty, limiter); 732attribute.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(accessorType), (a.SoapAttribute == null ? String.Empty : a.SoapAttribute.DataType), limiter); 747element.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(accessorType), (a.SoapElement == null ? String.Empty : a.SoapElement.DataType), limiter);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaMember.cs (1)
32get { return _memberName == null ? string.Empty : _memberName; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapTypeAttribute.cs (1)
63get { return _typeName == null ? string.Empty : _typeName; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAnyElementAttribute.cs (1)
56get { return _name == null ? string.Empty : _name; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayAttribute.cs (1)
46get { return _elementName == null ? string.Empty : _elementName; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayItemAttribute.cs (2)
78get { return _elementName == null ? string.Empty : _elementName; } 105get { return _dataType == null ? string.Empty : _dataType; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAttributeAttribute.cs (2)
75get { return _attributeName == null ? string.Empty : _attributeName; } 95get { return _dataType == null ? string.Empty : _dataType; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAttributeOverrides.cs (2)
28Add(type, string.Empty, attributes); 58return this[type, string.Empty];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlChoiceIdentifierAttribute.cs (1)
44get { return _name == null ? string.Empty : _name; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
569string baseName = mapping.TypeDesc.BaseTypeDesc == null || mapping.TypeDesc.BaseTypeDesc.IsRoot ? string.Empty : mapping.TypeDesc.BaseTypeDesc.FullName;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlElementAttribute.cs (2)
78get { return _elementName == null ? string.Empty : _elementName; } 98get { return _dataType == null ? string.Empty : _dataType; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (2)
129return type.FullName + ":" + (root == null ? String.Empty : root.Key) + ":" + (ns == null ? String.Empty : ns);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (1)
81get { return Accessor.Mapping != null ? Accessor.Mapping.TypeName : String.Empty; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (7)
81defaultNamespace = String.Empty; 126TypeMapping mapping = ImportTypeMapping(_modelScope.GetTypeModel(type), _defaultNs, ImportContext.Element, string.Empty, null, limiter); 272ElementAccessor element = CreateElementAccessor(ImportTypeMapping(model, ns, ImportContext.Element, string.Empty, a, limiter), ns); 1551accessor.ChoiceIdentifier.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(choiceIdentifierType), ns, ImportContext.Element, String.Empty, null, limiter); 1695element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, String.Empty, null, limiter); 1940element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, String.Empty, null, false, openModel, limiter); 2260string typeName = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionMember.cs (1)
59get { return _memberName == null ? string.Empty : _memberName; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlRootAttribute.cs (3)
47get { return _elementName == null ? string.Empty : _elementName; } 67get { return _dataType == null ? string.Empty : _dataType; } 92get { return (_ns == null ? String.Empty : _ns) + ":" + ElementName + ":" + _nullable.ToString(); }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (3)
303accessor = ImportElement(element, string.Empty, desiredMappingType, baseType, name.Namespace, true); 1894return String.Compare(e1.ToString(string.Empty), e2.ToString(string.Empty), StringComparison.Ordinal);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (4)
461return string.Empty; 475s = string.Empty; 895XmlQualifiedName empty = new XmlQualifiedName(string.Empty, _r.LookupNamespace("")); 1212return new XmlQualifiedName(_r.NameTable.Add(value), _r.LookupNamespace(String.Empty));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (6)
337value = String.Empty; 1420if (name == null) name = String.Empty; 2573string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty; 2697string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty; 3909typeof(MemberInfo).FullName, string.Empty /*typeof(MemberTypes).FullName*/)); 4216return GetStringForCreateInstance(escapedTypeName, useReflection, ctorInaccessible, cast, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1228string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty; 1398string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : String.Empty;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (2)
512return xmlReader.IsStartElement(typeDesc.DataType.Name, string.Empty); 760if (ns != null && ns != string.Empty)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlTextAttribute.cs (1)
52get { return _dataType == null ? string.Empty : _dataType; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlTypeAttribute.cs (1)
64get { return _typeName == null ? string.Empty : _typeName; }
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (9)
371prefix = string.Empty; 398throw new XmlException(ResXml.Xml_EmptyName, string.Empty); 418return new XmlException(ResXml.Xml_EmptyName, string.Empty); 518if (throwOnError) throw new XmlException(ResXml.Xdom_Empty_LocalName, string.Empty); 565if (throwOnError) throw new XmlException(ResXml.Xml_PrefixForEmptyNs, string.Empty); 583if (throwOnError) throw new XmlException(ResXml.Xml_XmlPrefix, string.Empty); 590if (throwOnError) throw new XmlException(ResXml.Xml_XmlnsPrefix, string.Empty); 596if (throwOnError) throw new XmlException(ResXml.Xml_NamespaceDeclXmlXmlns, string.Empty); 643prefix = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XmlComplianceUtil.cs (2)
24return string.Empty; 110return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (3)
381return new XmlException(ResXml.Xml_EmptyName, string.Empty); 522return new XmlException(ResXml.Xml_EmptyName, string.Empty); 1771return new XmlException(res, string.Empty, lineNo, linePos);
FrameworkFork\Microsoft.Xml\Xml\XmlEncoding.cs (4)
562throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 601throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 641throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty); 681throw new XmlException(ResXml.Xml_InvalidCharInThisEncoding, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (3)
80string emptyStr = nameTable.Add(string.Empty); 100string defaultNs = LookupNamespace(string.Empty); 101return (defaultNs == null) ? string.Empty : defaultNs;
FrameworkFork\Microsoft.Xml\Xml\XmlNullResolver.cs (1)
20throw new XmlException(ResXml.Xml_NullResolver, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\XmlQualifiedName.cs (7)
35public static readonly XmlQualifiedName Empty = new XmlQualifiedName(string.Empty); 41public XmlQualifiedName() : this(string.Empty, string.Empty) { } 47public XmlQualifiedName(string name) : this(name, string.Empty) { } 55_ns = ns == null ? string.Empty : ns; 56_name = name == null ? string.Empty : name; 217uri = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Axis.cs (3)
54: this(axisType, input, string.Empty, string.Empty, XPathNodeType.All) 76private string _urn = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\baseaxisquery.cs (4)
31_name = string.Empty; 32_prefix = string.Empty; 33_nsUri = string.Empty; 44_nsUri = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CompiledXpathExpr.cs (2)
119get { return string.Empty; } 126return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NodeFunctions.cs (1)
100return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (1)
261w.WriteElementString(this.GetType().Name, string.Empty);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\StringFunctions.cs (7)
63return string.Empty; 86return value != null ? value.Value : string.Empty; 153return (idx < 1) ? string.Empty : s1.Substring(0, idx); 162return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 172return string.Empty; 179return string.Empty; 187return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathArrayIterator.cs (1)
58throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (5)
415nodePrefix = string.Empty; 416nodeName = string.Empty; 448nodeName = string.Empty; 453nodePrefix = string.Empty; 454nodeName = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathScanner.cs (2)
32throw XPathException.Create(ResXml.Xp_ExprExpected, string.Empty); 222_prefix = string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (5)
92XmlTextReaderImpl reader = SetupReader(new XmlTextReaderImpl(string.Empty, textReader)); 109XmlTextReaderImpl reader = SetupReader(new XmlTextReaderImpl(string.Empty, stream)); 189Debug.Assert((object)_nameTable.Get(string.Empty) == (object)string.Empty, "NameTable must contain atomized string.Empty"); 222builder.WriteNamespaceDeclaration(string.Empty, reader.Value);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathException.cs (1)
26public XPathException() : this(string.Empty, (Exception)null) { }
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (6)
474return string.Empty; 511if (namespaceURI == LookupNamespace(string.Empty)) 512return string.Empty; 602return string.Empty; 687return string.Empty; 1485return string.Empty;
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (19)
212return string.Empty; 226return string.Empty; 240return string.Empty; 320return string.Empty; 440return nav.GetNamespace(string.Empty); 443if (nav.MoveToAttribute(localname, string.Empty)) 486localName = string.Empty; 490namespaceURI = string.Empty; 574localName = string.Empty; 587namespaceName = string.Empty; 725localname = string.Empty; 738if (nav.MoveToAttribute(localname, string.Empty)) 1177get { return string.Empty; } 1182get { return string.Empty; } 1187get { return string.Empty; } 1192get { return string.Empty; } 1197get { return string.Empty; } 1202get { return string.Empty; } 1212get { return string.Empty; }
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNodeIterator.cs (2)
70throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 76throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (5)
82clrNamespace = String.Empty; 110string ns = codeNS.Name ?? string.Empty; 214get { return (CodeProvider == null) ? String.Empty : CodeProvider.FileExtension; } 1421return String.Empty; 1448return String.Empty;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (7)
148throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(SRSerialization.ErrorDeserializing, string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), string.Format(SRSerialization.NoSetMethodForProperty, string.Empty, string.Empty)))); 1623string arrayOfPrefix = string.Empty; 1722clrNs = String.Empty; 1787if (clrNs == null) clrNs = String.Empty; 1821ns = String.Empty; 1847clrNsInAttribute = String.Empty;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
472errorMessage.Append(string.Empty); // TODO: SR.Format(((other != null && other.Equals(dataContract)) ? SR.ReferencedTypeMatchingMessage : SR.ReferencedTypeNotMatchingMessage)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DictionaryGlobals.cs (1)
83EmptyString = dictionary.Add(String.Empty);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (18)
61AddPrefix(String.Empty, String.Empty); 222_value = String.Empty; 308_prefix = String.Empty; 309_ns = String.Empty; 310_localName = String.Empty; 317_prefix = String.Empty; 318_ns = String.Empty; 319_localName = String.Empty; 320_value = String.Empty; 330_prefix = String.Empty; 331_ns = String.Empty; 332_localName = String.Empty; 333_value = String.Empty; 359return string.Empty; 385return string.Empty; 517ns = ns ?? String.Empty; 524prefix = (ns == null || ns.Length == 0) ? String.Empty : "p" + s_nsToPrefixTable.Count;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
1090public readonly static string NewObjectId = string.Empty;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (1)
105ns = string.Empty;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
488ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, String.Empty);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
173_ilg.BeginMethod("Read" + collectionContract.StableName.Name + "FromXml" + string.Empty, Globals.TypeOfXmlFormatCollectionReaderDelegate, memberAccessFlag);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (2)
383string typeInfo = (type == null) ? string.Empty : string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(type)); 384string innerExceptionMessage = (innerException == null) ? string.Empty : innerException.Message;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (5)
263return isEndOfEmptyElement ? String.Empty : reader.ReadContentAsString(); 281ThrowConversionException(string.Empty, "Boolean"); 394ThrowConversionException(string.Empty, "Int32"); 499ThrowConversionException(string.Empty, "UInt64"); 613name = ns = String.Empty;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableWriter.cs (3)
27throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableMissingEndElements, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType()))))); 56throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType()))))); 64throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
86writer.WriteAttributeString("xmlns", String.Empty, null, ns);
FrameworkFork\System.Runtime.Serialization\System\Xml\StringHandle.cs (1)
78return Equals2(string.Empty);
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
511return string.Empty;
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (12)
430return string.Empty; 546localName = string.Empty; 550prefix = string.Empty; 585namespaceUri = string.Empty; 964_prefix = string.Empty; 1030prefix = string.Empty; 1210return string.Empty; 1485_value = string.Empty; 1850string s = string.Empty; 2563_lang = string.Empty; 2573_lang = string.Empty; 2640_lang = string.Empty;
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (23)
201prefix = string.Empty; 208localName = string.Empty; 218_attributeValue = string.Empty; 226_attributeValue = string.Empty; 235ns = string.Empty; 415text = string.Empty; 452text = string.Empty; 488prefix = string.Empty; 501prefix = string.Empty; 502_nsMgr.AddNamespace(string.Empty, ns, xNs); 542prefix = string.Empty; 555prefix = string.Empty; 556_nsMgr.AddNamespace(string.Empty, ns, xNs); 796namespaceUri = string.Empty; 952value = string.Empty; 1033value = string.Empty; 1710_defaultNamespace.Prefix = string.Empty; 1711_defaultNamespace.Uri = string.Empty; 1876AddNamespaceIfNotDeclared(string.Empty, uri, uriDictionaryString); 1877return string.Empty; 2032return string.Empty; 2102return string.Empty; 2117return string.Empty;
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (3)
467return string.Empty; 487prefix = string.Empty; 1178return string.Empty;
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (19)
331string result = string.Empty; 584value = string.Empty; 604value = XmlConverter.ToBoolean(string.Empty); 624value = XmlConverter.ToInt32(string.Empty); 644value = XmlConverter.ToInt64(string.Empty); 664value = XmlConverter.ToSingle(string.Empty); 684value = XmlConverter.ToDouble(string.Empty); 704value = XmlConverter.ToDecimal(string.Empty); 726value = DateTime.Parse(string.Empty, NumberFormatInfo.InvariantInfo); 730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "DateTime", exception)); 734throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "DateTime", exception)); 757value = new UniqueId(string.Empty); 761throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "UniqueId", exception)); 765throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "UniqueId", exception)); 788value = new Guid(string.Empty); 792throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception)); 796throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception)); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception)); 821value = XmlConverter.ToTimeSpan(string.Empty);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryString.cs (1)
95_empty = new XmlDictionaryString(this, string.Empty, 0);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (2)
111prefix = namespaceUri.Length == 0 ? string.Empty : string.Concat("d", namespaceUri.Length.ToString(System.Globalization.NumberFormatInfo.InvariantInfo)); 814prefix = string.Empty;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
22protected static string AppDomainFriendlyName = String.Empty;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DictionaryTraceRecord.cs (1)
28xml.WriteElementString(key.ToString(), value == null ? string.Empty : value.ToString());
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (2)
217return new TracePayload(serializedException, eventSource, DiagnosticTraceBase.AppDomainFriendlyName, extendedData, string.Empty); 370xml.WriteElementString(DiagnosticStrings.ValueTag, string.Empty);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EventDescriptor.cs (2)
47throw Fx.Exception.ArgumentOutOfRange("id", id, string.Empty); 64throw Fx.Exception.ArgumentOutOfRange("task", task, string.Empty);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (2)
209TraceCore.UnhandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 230TraceCore.ThrowingException(_diagnosticTrace, eventSource, exception != null ? exception.ToString() : string.Empty, exception);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (4)
479return string.Empty; 558base.Add(null, string.Empty); 574return string.Empty; 591keyPrefix = (!string.IsNullOrEmpty(key)) ? (key + "=") : string.Empty;
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
559return String.Empty;
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
40s_anonymousIdentity = SecurityUtils.CreateIdentity(string.Empty);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
109return String.Empty;
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (1)
42if (localId == string.Empty)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\UserNameSecurityToken.cs (1)
26if (userName == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpMessageSecurity.cs (1)
92Fx.Assert(null != sbe, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
68RemoteAddress != null ? RemoteAddress.ToString() : string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
464WcfEventSource.Instance.ConnectionPoolMiss(_key != null ? _key.ToString() : string.Empty, _busyConnections.Count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
98: base(string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (1)
610string remoteEndpointAddressString = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CustomBinding.cs (1)
131return String.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DnsCache.cs (1)
60s_machineName = Dns.GetHostEntryAsync(String.Empty).GetAwaiter().GetResult().HostName;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (6)
268connectionGroupName = connectionGroupName == null ? string.Empty : connectionGroupName; 323if (credentials.UserName.UserName == string.Empty) 331if (credentials.HttpDigest.ClientCredential.UserName != string.Empty) 339if (credentials.Windows.ClientCredential.UserName != string.Empty) 535return string.Empty; 560string inputString = TransferModeHelper.IsRequestStreamed(this.TransferMode) ? "streamed" : string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (1)
306return query.Length > 0 ? query.Substring(1) : string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
133_contentType = mediaValueContentType == null ? string.Empty : mediaValueContentType.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
51_method = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
1808string value = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (2)
193actor = string.Empty; 207actor = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, string.Format(SRServiceModel.ObjectDisposed, this.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (3)
658string remoteAddress = string.Empty; 988string remoteAddress = string.Empty; 2424string listenUri = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
601await sslStream.AuthenticateAsClientAsync(string.Empty, clientCertificates, _parent.SslProtocols, false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
482this.LocalAddress != null && this.LocalAddress.Uri != null ? this.LocalAddress.Uri.AbsoluteUri : string.Empty,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
217string errorMsg = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (11)
100RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 119RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 133RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 199RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 291RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 609string.Empty); 776String.Empty); 1088WcfEventSource.Instance.WebSocketAsyncReadStop(_webSocket.GetHashCode(), receivedBytes, string.Empty); 1135string.Empty); 1176string.Empty); 1201string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
98if (value == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (7)
644return CheckAndAddPart(part.Type, DataContractSerializerMessageContractImporter.GenericMessageTypeName, part.Name, string.Empty, typeof(Message), description, isReply); 678string ns = string.Empty; 1167return string.Empty; 1455return new XmlQualifiedName(part.Name, String.Empty); 1479bodyPart = isHeader ? (MessagePartDescription)new MessageHeaderDescription(part.Name, String.Empty) : new MessagePartDescription(part.Name, String.Empty); 2004MessagePartDescription part = new MessagePartDescription(xmlName, member.Namespace == null ? string.Empty : member.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (2)
331xmlSerializerNamespaces.Add(string.Empty, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
134_defaultNS = (style == OperationFormatStyle.Rpc) ? string.Empty : _contractNS;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (2)
110else if (idRef == string.Empty) 229return string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (2)
76if (ns == null) { ns = String.Empty; } 99return String.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (2)
715string target = String.Empty; 725return String.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceMetadataExtension.cs (2)
178text = String.Empty; 231text = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
31if (Uri.IsWellFormedUriString(path, UriKind.Absolute) || path == String.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (1)
980prefix = string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (18)
1059string ns = wsdlOperationMessage.Operation.PortType.ServiceDescription.TargetNamespace ?? string.Empty; 1423return string.Empty; 1764string rest = string.Empty; 1765string itemPath = string.Empty; 1783wsdlNs = ((WsdlNS.ServiceDescription)item).TargetNamespace ?? String.Empty; 1788wsdlNs = ((WsdlNS.PortType)item).ServiceDescription.TargetNamespace ?? String.Empty; 1793wsdlNs = ((WsdlNS.Binding)item).ServiceDescription.TargetNamespace ?? String.Empty; 1798wsdlNs = ((WsdlNS.ServiceDescription)item).TargetNamespace ?? String.Empty; 1803wsdlNs = ((WsdlNS.Service)item).ServiceDescription.TargetNamespace ?? String.Empty; 1808wsdlNs = ((WsdlNS.Message)item).ServiceDescription.TargetNamespace ?? String.Empty; 1815wsdlNs = wsdlService.ServiceDescription.TargetNamespace ?? String.Empty; 1823wsdlNs = wsdlPortType.ServiceDescription.TargetNamespace ?? String.Empty; 1831wsdlNs = wsdlOperationBinding.Binding.ServiceDescription.TargetNamespace ?? String.Empty; 1838wsdlNs = wsdlOperationBinding.Binding.ServiceDescription.TargetNamespace ?? String.Empty; 1842string messageTag = string.Empty; 1927: base(string.Empty, innerException) 1970return string.Empty; 2130else if (idRef == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
263_keyBase = string.Empty; 872if (member.XmlAttributes.XmlArray.ElementName == String.Empty) 900if (elementAttribute.ElementName == String.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
41string clrNamespace = options.ClrNamespace ?? string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (3)
227terminatorUri = string.Empty; 231return string.Empty; 435return String.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
578(this.Listener != null) ? this.Listener.Uri.ToString() : string.Empty, Guid.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
138string ns = (style == OperationFormatStyle.Rpc || part.Namespace == null) ? string.Empty : part.Namespace; 476: base(headerPart.DictionaryName.Value, headerPart.DictionaryNamespace.Value, headerValue, headerPart.Serializer, mustUnderstand, actor ?? string.Empty, relay) 484string prefix = (this.Namespace == null || this.Namespace.Length == 0) ? string.Empty : "h";
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointDispatcher.cs (2)
28get { return String.Empty; } 33get { return String.Empty; }
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultContractInfo.cs (1)
65_serializer = DataContractSerializerDefaults.CreateSerializer(_detail, _knownTypes, _elementName, _ns == null ? string.Empty : _ns, int.MaxValue /* maxItemsInObjectGraph */);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (2)
201string.Empty/*actor*/, 202string.Empty/*node*/)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (1)
593String.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
859writer.WriteStartElement((this.Namespace == null || this.Namespace.Length == 0) ? string.Empty : "h", this.Name, this.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (1)
242AddToDictionary(dictionary, isRpc ? string.Empty : part.Namespace),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
45_rootNamespace = rootNamespace == null ? string.Empty : rootNamespace;
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultContractAttribute.cs (1)
52if (value == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultException.cs (1)
384return string.Format(SRServiceModel.SFxFaultExceptionToString3, this.GetType(), this.Message, _detail != null ? _detail.ToString() : String.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultReason.cs (1)
127return string.Empty;
FrameworkFork\System.ServiceModel\System\ServiceModel\FederatedMessageSecurityOverHttp.cs (1)
236Fx.Assert(null != sbe, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractAttribute.cs (1)
57if (value == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractMemberAttribute.cs (1)
55if (value == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageParameterAttribute.cs (1)
22if (value == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageSecurityOverHttp.cs (1)
219Fx.Assert(null != sbe, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (3)
247s_anonymousIdentity = CreateIdentity(string.Empty); 537return String.Empty; 594return str.Length <= 0 ? String.Empty : str.ToString();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (2)
263string claimValue = claimRequirement.GetAttribute("Uri", string.Empty); 267string optional = claimRequirement.GetAttribute("Optional", string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrustFeb2005.cs (1)
183writer.WriteElementString(this.DriverDictionary.RequestedTokenClosed, this.DriverDictionary.Namespace, String.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (3)
294prefix = string.Empty; 389return new UniqueId(string.Empty); 403return new UniqueId(string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceContractAttribute.cs (2)
31if (value == string.Empty) 49if (value == string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (4)
88return string.Empty; 135value = DateTime.Parse(string.Empty, NumberFormatInfo.InvariantInfo); 139throw new XmlException(string.Format(SRServiceModel.XmlInvalidConversion, string.Empty, "DateTime"), exception); 143throw new XmlException(string.Format(SRServiceModel.XmlInvalidConversion, string.Empty, "DateTime"), exception);
FrameworkFork\System.Web.Services\Services\Description\HttpFormatExtensions.cs (2)
20get { return _location == null ? string.Empty : _location; } 54get { return _location == null ? string.Empty : _location; }
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (4)
33get { return _type == null ? string.Empty : _type; } 165get { return _name == null ? string.Empty : _name; } 173get { return _type == null ? string.Empty : _type; } 231get { return _pattern == null ? string.Empty : _pattern; }
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (5)
72get { return _retrievalUrl == null ? string.Empty : _retrievalUrl; } 604get { return _ns == null ? string.Empty : _ns; } 615get { return _location == null ? string.Empty : _location; } 645return string.Empty; 1224if (_parameters == null) return string.Empty;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
103return string.Empty;
FrameworkFork\System.Web.Services\Services\Description\SoapFormatExtensions.cs (11)
34get { return _transport == null ? string.Empty : _transport; } 88get { return _soapAction == null ? string.Empty : _soapAction; } 122get { return _ns == null ? string.Empty : _ns; } 130get { return _encoding == null ? string.Empty : _encoding; } 210get { return _ns == null ? string.Empty : _ns; } 218get { return _encoding == null ? string.Empty : _encoding; } 271get { return _encoding == null ? string.Empty : _encoding; } 279get { return _ns == null ? string.Empty : _ns; } 329get { return _encoding == null ? string.Empty : _encoding; } 337get { return _ns == null ? string.Empty : _ns; } 352get { return _location == null ? string.Empty : _location; }
FrameworkFork\System.Web.Services\Services\Description\XmlFormatExtensionAttribute.cs (2)
72get { return _ns == null ? string.Empty : _ns; } 82get { return _name == null ? string.Empty : _name; }
FrameworkFork\System.Web.Services\Services\Description\XmlFormatExtensionPointAttribute.cs (1)
34get { return _name == null ? string.Empty : _name; }
FrameworkFork\System.Web.Services\Services\Description\XmlFormatExtensionPrefixAttribute.cs (2)
43get { return _prefix == null ? string.Empty : _prefix; } 53get { return _ns == null ? string.Empty : _ns; }
HelpGenerator.cs (1)
222name = string.Empty;
MarkupTelemetryHelper.cs (1)
101else if (propValue.Trim() == string.Empty)
Metadata\HttpAuthenticationHelper.cs (4)
83realm = string.Empty; 96realm = string.Empty; 133return string.Empty; 179return string.Empty;
Metadata\MetadaExchangeResolver.cs (1)
228await loader.LoadFromStreamAsync(stream, baseUri, string.Empty, cancellationToken).ConfigureAwait(false);
Metadata\MetadataDocumentLoader.cs (6)
95if (!CanLoad(uri, string.Empty, Directory.GetCurrentDirectory(), out Uri metadataUri)) 137if (!CanLoad(uri, string.Empty, Directory.GetCurrentDirectory(), out Uri metadataUri)) 184await LoadAsync(this.MetadataSourceUrl.AbsoluteUri, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false); 190await LoadAsync(fileUri.LocalPath, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false); 252return CanLoad(uri, string.Empty, string.Empty, out serviceUri);
Metadata\MetadataFileNameManager.cs (3)
33extension = string.Empty; 74extension = string.Empty; 223relUrl = string.Empty;
Shared\MSBuildProj.cs (5)
362msbuildProj.SdkVersion = sdkVersion ?? string.Empty; 415project.SdkVersion = sdkVersion ?? string.Empty; 636SetPropertyValue("WarningsAsErrors", string.Empty); 1002var depsFile = string.Empty; 1040return string.Empty;
Shared\Options\ListValue.cs (1)
215var value = this.InnerList.Count > 0 ? this.InnerList.Select(i => $"\"{i}\"").Aggregate((str, s) => $"{str}, {s}") : string.Empty;
Shared\Options\OptionsSerializer.cs (1)
232value = value is bool ? string.Empty : $" \"{value}\"";
Shared\ProjectDependency.cs (3)
184string assemblyName = string.Empty; 225string version = values.Length > 1 ? values[1].Trim() : string.Empty; 243name = string.Empty;
Shared\ProjectPropertyResolver.cs (2)
107propertyTable[propertyName] = string.Empty; 198string value = string.Empty;
Shared\TargetFrameworkHelper.cs (2)
99string targetFramework = string.Empty; 110targetFramework = targetFrameworks.FirstOrDefault() ?? string.Empty;
Shared\Utilities\DebugUtils.cs (1)
19set { Environment.SetEnvironmentVariable(SvcutilKeepBootstrapDirEnvVar, value ? "1" : string.Empty); }
Shared\Utilities\LogTag.cs (2)
39throw new ArgumentException(string.Empty, nameof(tag)); 58value = string.Empty;
Shared\Utilities\PathHelper.cs (3)
116relativePath = string.Empty; 163return pathParts.Length > 0 ? pathParts[pathParts.Length - 1] : string.Empty; 245var fullPath = string.Empty;
Shared\Utilities\Utilities.cs (1)
43message.Append(string.Concat(Environment.NewLine, exMsg, includeStackTrace ? e.StackTrace : string.Empty));
dotnet-svcutil-lib.Tests (17)
E2ETests.cs (3)
95var tf = string.IsNullOrEmpty(targetFramework) ? string.Empty : $"-tf {targetFramework}"; 378var dstParamsFile = string.Empty; 381var suffix = idx == 0 ? string.Empty : $"_{idx}";
GlobalToolTests.cs (1)
138var tf = string.IsNullOrEmpty(targetFramework) ? string.Empty : $"-tf {targetFramework}";
ProjectUtils.cs (2)
99string csStr = string.Empty; 141string csprojStr = string.Empty;
TestInit.cs (1)
389failureMessage = string.Empty;
UnitTest.cs (10)
28var outputText = string.Empty; 62var verbosityOption = string.IsNullOrWhiteSpace(verbosity) ? string.Empty : $" -v {verbosity}"; 151var tf = targetFramework == null ? string.Empty : $"-tf {targetFramework}"; 252var cmderrors = cmdOptions.Errors.Count() == 0 ? string.Empty : 254var cmdwarnings = cmdOptions.Warnings.Count() == 0 ? string.Empty : 298var cmderrors = cmdOptions.Errors.Count() == 0 ? string.Empty : 300var cmdwarnings = cmdOptions.Warnings.Count() == 0 ? string.Empty : 326var errorMessage = string.Empty; 341ValidateTest(options.ToString(), this_TestCaseProject.DirectoryPath, 0, string.Empty, true); 346errorMessage = string.Empty;
dotnet-svcutil.xmlserializer (5)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (3)
170arguments.Add(String.Empty, arg); 191argValue = String.Empty; 211arguments.Add(string.Empty, potentialPath);
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
242if (_parent._outputFileArg != string.Empty) 257_parent._inputParameters = new List<string>(_arguments.GetArguments(String.Empty));
dotnet-user-jwts (12)
Commands\CreateCommand.cs (8)
132string.Empty, 133string.Empty 138var optionsString = schemeNameOption.HasValue() ? $"{Resources.JwtPrint_Scheme}: {scheme}{Environment.NewLine}" : string.Empty; 144optionsString += audienceOption.HasValue() ? $"{Resources.JwtPrint_Audiences}: {string.Join(", ", audience)}{Environment.NewLine}" : string.Empty; 151optionsString += issuerOption.HasValue() ? $"{Resources.JwtPrint_Issuer}: {issuer}{Environment.NewLine}" : string.Empty; 205optionsString += rolesOption.HasValue() ? $"{Resources.JwtPrint_Roles}: [{string.Join(", ", roles)}]{Environment.NewLine}" : string.Empty; 208optionsString += scopesOption.HasValue() ? $"{Resources.JwtPrint_Scopes}: {string.Join(", ", scopes)}{Environment.NewLine}" : string.Empty; 226optionsString += appsettingsFileOption.HasValue() ? $"{Resources.JwtPrint_appsettingsFile}: {appsettingsFile}{Environment.NewLine}" : string.Empty;
Helpers\ConsoleTable.cs (3)
107while (!rows[i].All(i => i == string.Empty)) 109var outputRow = string.Empty; 118rows[i][j] = string.Empty;
Helpers\DevJwtCliHelpers.cs (1)
235reporter.Output(fullToken is not null ? jwt.Token : string.Empty);
DotNetInvocationHostedAgent (3)
EchoAIAgent.cs (2)
69return message.Text ?? string.Empty; 73return string.Empty;
EchoInvocationHandler.cs (1)
28return payload?.Message ?? string.Empty;
EventSourceGenerator (1)
EventSourceGenerator.Parser.cs (1)
149return string.Empty;
GenerateAnalyzerNuspec (6)
Program.cs (6)
48string version = string.Empty; 49string repositoryType = string.Empty; 50string repositoryUrl = string.Empty; 51string repositoryCommit = string.Empty; 52string readmePackageLocation = string.Empty; 181var directoryName = Path.GetDirectoryName(readmePackageLocation) ?? string.Empty;
GenerateDocumentationAndConfigFiles (63)
JsonWriter.cs (1)
174return string.Empty;
Program.cs (25)
208var analyzerRulesetsDir = parseResult.GetValue(analyzerRulesetsDirOption) ?? string.Empty; 209var analyzerEditorconfigsDir = parseResult.GetValue(analyzerEditorConfigsDirOption) ?? string.Empty; 210var analyzerGlobalconfigsDir = parseResult.GetValue(analyzerGlobalConfigsDirOption) ?? string.Empty; 211var binDirectory = parseResult.GetValue(binDirectoryOption) ?? string.Empty; 212var configuration = parseResult.GetValue(configurationOption) ?? string.Empty; 213var tfm = parseResult.GetValue(tfmOption) ?? string.Empty; 214var assembliesString = parseResult.GetValue(assembliesOption) ?? string.Empty; 216var propsFileDir = parseResult.GetValue(propsFileDirOption) ?? string.Empty; 217var propsFileName = parseResult.GetValue(propsFileNameOption) ?? string.Empty; 218var targetsFileDir = parseResult.GetValue(targetsFileDirOption) ?? string.Empty; 219var targetsFileName = parseResult.GetValue(targetsFileNameOption) ?? string.Empty; 220var propsFileToDisableNetAnalyzersInNuGetPackageName = parseResult.GetValue(propsFileToDisableNetAnalyzersInNuGetPackageNameOption) ?? string.Empty; 221var analyzerDocumentationFileDir = parseResult.GetValue(analyzerDocumentationFileDirOption) ?? string.Empty; 222var analyzerDocumentationFileName = parseResult.GetValue(analyzerDocumentationFileNameOption) ?? string.Empty; 223var analyzerSarifFileDir = parseResult.GetValue(analyzerSarifFileDirOption) ?? string.Empty; 224var analyzerSarifFileName = parseResult.GetValue(analyzerSarifFileNameOption) ?? string.Empty; 225var analyzerVersion = parseResult.GetValue(analyzerVersionOption) ?? string.Empty; 226var analyzerPackageName = parseResult.GetValue(analyzerPackageNameOption) ?? string.Empty; 488return string.Empty; 1171commentEnd: string.Empty, 1638var afterTargets = string.Empty; 1639var trimmedPackageName = packageName.Replace(".", string.Empty, StringComparison.Ordinal); 1707var propertyStr = string.Empty; 1755return string.Empty; 1916_ => string.Empty,
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
228return analyzerConfigOptions.GetOptionValue(optionName, tree, rule, TryParseValue, string.Empty); 370return new SymbolNamesWithValueOption<string?>.NameParts(split[0], string.Empty); 496string optionValue = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
193: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
266=> LogBlock(functionId, string.Empty, token, logLevel);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
149if (prefix != string.Empty) 153failureReason = Prefix == string.Empty 468new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 469new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 486writer.WriteString(Prefix ?? string.Empty); 487writer.WriteString(Suffix ?? string.Empty); 488writer.WriteString(WordSeparator ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
52if (info.Context.GenerateMembers && info.Context.MergeNestedNamespaces && @namespace.Name != string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
394name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
10internal sealed class CodeGenerationArrayTypeSymbol(ITypeSymbol elementType, int rank, NullableAnnotation nullableAnnotation) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, nullableAnnotation), IArrayTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (1)
22name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
18name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
49return this.Name == string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
9internal sealed class CodeGenerationPointerTypeSymbol(ITypeSymbol pointedAtType) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, NullableAnnotation.None), IPointerTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
53var bestPath = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
37var publicKeyToken = thisAssemblyName.GetPublicKeyToken()?.Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
135=> GenerateUniqueName(baseName, string.Empty, canUse);
HelixTestTasks (2)
ComputeBatchTimeout.cs (2)
27public string ItemPrefix { get; set; } = string.Empty; 30public string BatchOutputDir { get; set; } = string.Empty;
ilasm (1)
NativeCommandLine.cs (1)
227optionName = string.Empty;
ILAssembler (35)
Actions\GrammarActions.CustomAttributes.Serialization.cs (1)
308return (type as EntityRegistry.IHasReflectionNotation)?.ReflectionNotation ?? string.Empty;
Actions\GrammarActions.Declarations.Actions.cs (2)
88context.Value = string.Empty; 106_entityRegistry.GetOrCreateModuleReference(name ?? string.Empty, _ => { });
Actions\GrammarActions.Manifest.Assembly.cs (1)
189: new Location(new SourceSpan(0, 0), new SourceText(string.Empty, keyFilePath));
Actions\GrammarActions.Manifest.Files.cs (1)
76context.Value ?? new(string.Empty, HasMetadata: true, IsEntryPoint: false, Hash: null);
Actions\GrammarActions.Security.cs (1)
194string attributeName = attribute.Name ?? string.Empty;
Actions\GrammarActions.Types.Headers.cs (2)
84typeNamespace = lastDot == -1 ? string.Empty : fullName.Substring(0, lastDot); 88typeNamespace = _currentNamespace.PeekOrDefault() ?? string.Empty;
CILParser.SemanticValues.Declarations.cs (6)
32new(0, string.Empty, []); 56string.Empty, 76string.Empty, 97string.Empty, 109new(false, 0, null, string.Empty); 146string.Empty,
CILParser.SemanticValues.Manifest.cs (7)
32new(false, 0, string.Empty, string.Empty); 69internal string Name { get; set; } = string.Empty; 91new(false, 0, string.Empty, null); 131new(false, 0, string.Empty, string.Empty, null); 161: TypedefDeclarationValue(string.Empty);
CILParser.SemanticValues.MethodBodies.cs (1)
161new(string.Empty, SecurityCaValue.Error);
DocumentCompiler.cs (1)
112string.Empty;
EntityRegistry.cs (1)
1902public string ReflectionNotation { get; set; } = string.Empty;
gen\CILParser.cs (5)
461 _localctx.Value = string.Empty; 1354 _localctx.Value = string.Empty; 3042 _localctx.Value = string.Empty; 5365 _localctx.Value = _localctx.CurrentName ?? new CILParser.TypeName(null, string.Empty); 12564 _localctx.Value = string.Empty;
Location.cs (2)
16string.Empty; 19: new SourceText(string.Empty, sourceName);
NameHelpers.cs (1)
57return (string.Empty, dottedName);
StringCharStream.cs (2)
18SourceName = sourceName ?? string.Empty; 65return start > end ? string.Empty : _text.Substring(start, end - start + 1);
StringHelpers.cs (1)
23return string.Empty;
ilc (1)
parent\parent\Common\CommandLineHelpers.cs (1)
336string prefix = input ? string.Empty : "out_"; // prefix output directories for clarity
ILCompiler.Compiler (9)
Compiler\Dataflow\FlowAnnotations.cs (1)
1017"Empty" when field.OwningType.IsTypeOf(ILLink.Shared.TypeSystemProxy.WellKnownType.System_String) => new KnownStringValue(string.Empty),
parent\parent\Common\Compiler\Dataflow\TypeExtensions.cs (2)
48_ => wellKnownType == WellKnownTypeExtensions.GetWellKnownType((type as MetadataType)?.GetNamespace() ?? string.Empty, ((type as MetadataType)?.GetName()) ?? string.Empty)
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (1)
37public string Name { get => Type is MetadataType metadataType ? metadataType.GetName() : string.Empty; }
parent\parent\Common\Compiler\FeatureSettings.cs (1)
46return nav.GetAttribute(attribute, string.Empty);
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (1)
824@namespace = string.Empty;
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
23missingMemberTypesString = string.Empty;
src\runtime\src\tools\illink\src\ILLink.Shared\MessageFormat.cs (2)
16return string.Empty; 24return string.Empty;
ILCompiler.Diagnostics (1)
PdbWriter.cs (1)
256string nameSuffix = $"{method.Name}$#{(assemblyName != method.AssemblyName ? method.AssemblyName : String.Empty)}#{method.MethodToken.ToString("X")}";
ILCompiler.MetadataTransform (5)
ILCompiler\Metadata\Transform.Namespace.cs (2)
42string currentNamespaceName = string.Empty; 102string currentNamespaceName = string.Empty;
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (2)
613str = string.Empty; 648str = string.Empty;
parent\parent\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
68value = string.Empty;
ILCompiler.ReadyToRun (14)
parent\parent\Common\Compiler\Dataflow\TypeExtensions.cs (2)
48_ => wellKnownType == WellKnownTypeExtensions.GetWellKnownType((type as MetadataType)?.GetNamespace() ?? string.Empty, ((type as MetadataType)?.GetName()) ?? string.Empty)
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (1)
37public string Name { get => Type is MetadataType metadataType ? metadataType.GetName() : string.Empty; }
parent\parent\Common\Compiler\FeatureSettings.cs (1)
46return nav.GetAttribute(attribute, string.Empty);
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (1)
824@namespace = string.Empty;
parent\parent\Common\JitInterface\JitConfigProvider.cs (1)
138return string.Empty;
PortableCallHelpers\PInvokeCollector.cs (1)
62Namespace = type.ContainingType is not null ? string.Empty : type.Namespace.ToString();
PortableCallHelpers\PInvokeTableGenerator.cs (6)
244: string.Empty; 296: string.Empty; 329: string.Empty; 345: string.Empty; 354""" : string.Empty; 595return string.Empty;
PortableCallHelpers\TypeNames.cs (1)
37return string.Empty;
ILCompiler.RyuJit (1)
parent\parent\Common\JitInterface\JitConfigProvider.cs (1)
138return string.Empty;
ILCompiler.TypeSystem (2)
parent\parent\Common\TypeSystem\Common\Instantiation.cs (1)
63return string.Empty;
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
295string unmanagedCallConvMaybe = string.Empty;
illink (20)
ILLink.RoslynAnalyzer (9)
src\runtime\src\libraries\Common\src\System\Buffers\SearchValuesPolyfills.cs (1)
64_nonAscii = nonAscii?.ToString() ?? string.Empty;
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (3)
133if (attributeName == string.Empty) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 369tokenString = string.Empty;
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
403rootTypeName._namespace = string.Empty;
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
23missingMemberTypesString = string.Empty;
src\runtime\src\tools\illink\src\ILLink.Shared\MessageFormat.cs (2)
16return string.Empty; 24return string.Empty;
TrimAnalysis\TrimAnalysisVisitor.cs (1)
181return new KnownStringValue(string.Empty);
Infrastructure.Common (6)
JsonSerializer.cs (5)
22sb.AppendFormat(" {0} : \"{1}\",\n", key, dictionary[key] == null ? String.Empty : dictionary[key].ToString()); 33data = data.Replace("{", String.Empty) 34.Replace("}", String.Empty) 43string key = pair.Substring(0, colonPos - 1).Replace("\"", String.Empty).Trim(); 44string value = pair.Substring(colonPos + 1).Replace("\"", String.Empty).Trim();
ServiceUtilHelper.cs (1)
28private static string s_serviceHostName = string.Empty;
Infrastructure.Tests (73)
CreateFailingTestIssue\CreateFailingTestIssueFixture.cs (1)
14public string ToolProjectPath { get; private set; } = string.Empty;
CreateLayout\CreateLayoutTests.cs (1)
59File.WriteAllText(Path.Combine(workspace.Path, files[^1]), string.Empty);
DownloadFailingJobLogs\DownloadFailingJobLogsFixture.cs (2)
13public string ToolPath { get; private set; } = string.Empty; 15public string DotNetPath { get; private set; } = string.Empty;
ExtractTestPartitions\ExtractTestPartitionsFixture.cs (1)
15public string ToolProjectPath { get; private set; } = string.Empty;
GenerateTestSummary\GenerateTestSummaryFixture.cs (1)
14public string ToolProjectPath { get; private set; } = string.Empty;
Hex1bNativePublishingTests.cs (1)
52Assert.Equal(projectName == "Aspire.Dashboard" ? "true" : string.Empty, properties.GetProperty("ServerGarbageCollection").GetString());
Pipelines\ExtensionE2eRecorderStepTests.cs (1)
197pwshPath = PathLookupHelper.FindFullPathFromPath("pwsh") ?? string.Empty;
Pipelines\ExtensionE2eWorkflowTests.cs (7)
45var prepareCliScript = Scalar(prepareCliStep, "run") ?? string.Empty; 82var installScript = Scalar(installDenoStep, "run") ?? string.Empty; 100var e2eCondition = string.Join(' ', (Scalar(extensionE2eJob, "if") ?? string.Empty).Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries)); 125Assert.Contains("!cancelled()", Scalar(uploadStep, "if") ?? string.Empty, StringComparison.Ordinal); 126Assert.Contains("inputs.packageVsix", Scalar(uploadStep, "if") ?? string.Empty, StringComparison.Ordinal); 128Assert.Contains("!cancelled()", Scalar(packageStep, "if") ?? string.Empty, StringComparison.Ordinal); 129Assert.Contains("inputs.packageVsix", Scalar(packageStep, "if") ?? string.Empty, StringComparison.Ordinal);
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
579var path = ctx.Request.Url?.AbsolutePath ?? string.Empty;
PowerShellScripts\PowerShellCommand.cs (1)
35_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
PowerShellScripts\ValidateNpmReleaseAliasesTests.cs (1)
195var withoutAnsi = Regex.Replace(output, @"\u001b\[[0-9;]*m", string.Empty);
ResourceGeneratorMetadataTests.cs (1)
61await File.WriteAllTextAsync(Path.Combine(workspace.Path, path), string.Empty);
src\Shared\PathLookupHelper.cs (1)
157foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
WorkflowScripts\AnalyzeCiFailureWorkflowTests.cs (19)
103["WORKFLOW_RUN_ATTEMPT"] = string.Empty, 104["WORKFLOW_RUN_ID"] = string.Empty, 291["WORKFLOW_RUN_ATTEMPT"] = string.Empty, 292["WORKFLOW_RUN_ID"] = string.Empty, 378["WORKFLOW_RUN_ATTEMPT"] = string.Empty, 379["WORKFLOW_RUN_ID"] = string.Empty, 457["WORKFLOW_RUN_ATTEMPT"] = string.Empty, 458["WORKFLOW_RUN_ID"] = string.Empty, 527["WORKFLOW_RUN_ATTEMPT"] = string.Empty, 528["WORKFLOW_RUN_ID"] = string.Empty, 591["WORKFLOW_RUN_ATTEMPT"] = string.Empty, 592["WORKFLOW_RUN_ID"] = string.Empty, 676["WORKFLOW_RUN_ATTEMPT"] = string.Empty, 677["WORKFLOW_RUN_ID"] = string.Empty, 2830["PR_NUMBERS"] = string.Empty, 6078Assert.Equal(string.Empty, outputLines[^1]); 6906var testName = type == "flaky-test" ? ",\"test_name\":\"Tests.Flaky\"" : string.Empty; 7165body.Add(string.Empty); 7329: string.Empty,
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (23)
312AnalyzeFailedJobsResult result = await AnalyzeSingleJobAsync(job, string.Empty); 2260public string Operation { get; init; } = string.Empty; 2295public string Name { get; init; } = string.Empty; 2298public string Reason { get; init; } = string.Empty; 2304public string Name { get; init; } = string.Empty; 2305public string Conclusion { get; init; } = string.Empty; 2314public string Name { get; init; } = string.Empty; 2315public string Conclusion { get; init; } = string.Empty; 2325public string Type { get; init; } = string.Empty; 2336public string Name { get; init; } = string.Empty; 2337public string Reason { get; init; } = string.Empty; 2343public string Name { get; init; } = string.Empty; 2345public string Reason { get; init; } = string.Empty; 2356public string Route { get; init; } = string.Empty; 2380public string TestName { get; init; } = string.Empty; 2381public string Reason { get; init; } = string.Empty; 2388public string Reason { get; init; } = string.Empty; 2393public string TestName { get; init; } = string.Empty; 2394public string Output { get; init; } = string.Empty; 2404public string TestName { get; init; } = string.Empty; 2405public string Reason { get; init; } = string.Empty; 2407public string TestProject { get; init; } = string.Empty; 2420public string Name { get; init; } = string.Empty;
WorkflowScripts\CreateFailingTestIssueWorkflowTests.cs (2)
147Assert.Equal(string.Empty, result.TestQuery); 164Assert.Equal(string.Empty, result.TestQuery);
WorkflowScripts\DeploymentTestScriptTests.cs (2)
71var stepOutputs = File.Exists(outputFile) ? await File.ReadAllTextAsync(outputFile) : string.Empty; 78Assert.Equal(string.Empty, stepOutputs);
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (1)
329process.StartInfo.Environment[key] = value ?? string.Empty;
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (1)
773process.StartInfo.Environment[key] = value ?? string.Empty;
WorkflowScripts\ExtensionWorkflowTests.cs (2)
42Assert.Equal(string.Empty, Scalar(extensionVersionOverride, "default")); 288=> string.Join(' ', (value ?? string.Empty).Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries));
WorkflowScripts\NodeCommand.cs (2)
25_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] "; 238=> WorkingDirectory is null ? string.Empty : $" in pwd {WorkingDirectory}";
WorkflowScripts\SelectTestsCommentScriptTests.cs (1)
271body.Add(string.Empty);
installer.tasks (5)
GenerateFileVersionProps.cs (2)
142var assemblyVersion = versions.AssemblyVersion?.ToString() ?? String.Empty; 143var fileVersion = versions.FileVersion?.ToString() ?? String.Empty;
GenerateTestSharedFrameworkDepsFile.cs (3)
62string fileVersion = FileUtilities.GetFileVersion(filePath)?.ToString() ?? string.Empty; 83runtimeAssemblyGroups: new[] { new RuntimeAssetGroup(string.Empty, runtimeFiles) }, 84nativeLibraryGroups: new[] { new RuntimeAssetGroup(string.Empty, nativeFiles) },
Microsoft.Agents.AI.ProjectTemplates.Tests (3)
test\ProjectTemplates\Infrastructure\TestCommandResult.cs (3)
25""" : string.Empty)} 31""" : string.Empty)} 37""" : string.Empty)}
Microsoft.Analyzers.Extra (6)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
340return string.Empty;
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (5)
25public string Message { get; } = string.Empty; 26public string Level { get; } = string.Empty; 50Message = children[0].ConstantValue.Value as string ?? string.Empty; 129TargetNamespace = defaultNamespace ?? string.Empty; 158_ => string.Empty,
Microsoft.Analyzers.Extra.Tests (2)
CallAnalysis\LegacyLoggingTests.Extra.cs (2)
164string actualSource = string.Empty; 165string actualTarget = string.Empty;
Microsoft.Analyzers.Local (10)
ApiLifecycle\Json\JsonValue.cs (1)
273public DateTime? AsDateTime => IsString && DateTime.TryParse((string?)_reference ?? string.Empty, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out var value)
ApiLifecycle\Model\Assembly.cs (2)
18Name = value[nameof(Name)].AsString ?? string.Empty; 24Name = string.Empty;
ApiLifecycle\Model\Field.cs (1)
16Member = value[nameof(Member)].AsString ?? string.Empty;
ApiLifecycle\Model\Method.cs (1)
16Member = value[nameof(Member)].AsString ?? string.Empty;
ApiLifecycle\Model\Prop.cs (1)
16Member = value[nameof(Member)].AsString ?? string.Empty;
ApiLifecycle\Model\TypeDef.cs (3)
21ModifiersAndName = Utils.StripBaseAndConstraints(value["Type"].AsString ?? string.Empty); 22Constraints = Utils.GetConstraints(value["Type"].AsString ?? string.Empty); 23BaseTypes = Utils.GetBaseTypes(value["Type"].AsString ?? string.Empty);
ApiLifecycle\ModelLoader.cs (1)
45var publicInterface = string.Empty;
Microsoft.Analyzers.Local.Tests (10)
ApiLifecycle\AnalysisModelTest.cs (5)
17Assert.Equal(string.Empty, field.Member); 26Assert.Equal(string.Empty, member.ModifiersAndName); 40Assert.Equal(string.Empty, prop.Member); 67Assert.Equal(string.Empty, package.Name); 75Assert.Equal(string.Empty, method.Member);
Json\JsonValueTest.cs (5)
34Assert.True(new JsonValue(string.Empty).IsString); 81Assert.False(new JsonValue(string.Empty).AsBoolean); 233Assert.False((bool)new JsonValue(string.Empty)); 245Assert.False((bool?)new JsonValue(string.Empty)); 349Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse(string.Empty));
Microsoft.Arcade.Common (1)
Command.cs (1)
16: new string[] { string.Empty };
Microsoft.AspNetCore.Antiforgery (10)
Internal\AntiforgeryOptionsSetup.cs (1)
27var applicationId = _dataProtectionOptions.ApplicationDiscriminator ?? string.Empty;
Internal\AntiforgeryToken.cs (4)
11private string _additionalData = string.Empty; 12private string _username = string.Empty; 20_additionalData = value ?? string.Empty; 46_username = value ?? string.Empty;
Internal\DefaultAntiforgeryAdditionalDataProvider.cs (1)
16return string.Empty;
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
143var currentUsername = string.Empty; 156currentUsername = authenticatedIdentity.Name ?? string.Empty;
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
139/// <param name="value">When this method returns, contains the decoded string value, or <see cref="string.Empty"/> if the length is zero.</param> 144value = string.Empty;
Microsoft.AspNetCore.App.Analyzers (6)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
261properties.Add(NewTextKey, textChange.NewText ?? string.Empty); 454context.AddIfMissing(routeParameter.Name, suffix: string.Empty, description: "(Route parameter)", WellKnownTags.Parameter, parentOpt);
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (1)
99propertiesBuilder.Add("RouteParameterPolicy", string.Join(string.Empty, unusedParameter.Policies));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (3)
140properties.Add(NewTextKey, textChange.NewText ?? string.Empty); 379displayText, suffix ?? string.Empty, description ?? string.Empty, glyph,
Microsoft.AspNetCore.App.CodeFixes (2)
WebApplicationBuilderFixer.cs (2)
41var message = string.Empty; 42var identifierMethod = string.Empty;
Microsoft.AspNetCore.Authentication (5)
PropertiesSerializer.cs (2)
55writer.Write(item.Key ?? string.Empty); 56writer.Write(item.Value ?? string.Empty);
TicketSerializer.cs (3)
91var authenticationType = identity.AuthenticationType ?? string.Empty; 148writer.Write(property.Key ?? string.Empty); 149writer.Write(property.Value ?? string.Empty);
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationProperties.cs (1)
76set => SetString(IsPersistentKey, value ? string.Empty : null);
Microsoft.AspNetCore.Authentication.Cookies (6)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
128return string.Join(string.Empty, chunks); 155responseCookies.Append(key, string.Empty, options); 159var templateLength = options.CreateCookieHeader(key, string.Empty).ToString().Length; 297keyValuePairs[0] = KeyValuePair.Create(key, string.Empty); 301keyValuePairs[i] = KeyValuePair.Create(string.Concat(key, "C", i.ToString(CultureInfo.InvariantCulture)), string.Empty); 327keyValuePairs.Add(KeyValuePair.Create(subkey, string.Empty));
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
238IssuerAddress = _configuration?.EndSessionEndpoint ?? string.Empty, 411IssuerAddress = _configuration?.AuthorizationEndpoint ?? string.Empty,
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
351string.IsNullOrEmpty(tokenSecret) ? string.Empty : Uri.EscapeDataString(tokenSecret)));
Microsoft.AspNetCore.Authentication.WsFederation (2)
WsFederationHandler.cs (2)
100IssuerAddress = _configuration.TokenEndpoint ?? string.Empty, 427IssuerAddress = _configuration.TokenEndpoint ?? string.Empty,
Microsoft.AspNetCore.Authorization (2)
ClaimsAuthorizationRequirement.cs (1)
94? string.Empty
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
Microsoft.AspNetCore.Components (27)
BindConverter.cs (10)
384return string.Empty; 399return string.Empty; 470return string.Empty; 485return string.Empty; 557return string.Empty; 573return string.Empty; 645return string.Empty; 661return string.Empty; 1876builder.Append(JsonEncodedText.Encode(elementFormatter(value[0], culture)?.ToString() ?? string.Empty).Value); 1882builder.Append(JsonEncodedText.Encode(elementFormatter(value[i], culture)?.ToString() ?? string.Empty).Value);
EventCallbackFactoryBinderExtensions.cs (4)
1386else if (string.Empty.Equals(e.Value) && emptyStringHandling == EmptyStringHandling.SetDefault) 1430else if (string.Empty.Equals(e.Value) && emptyStringHandling == EmptyStringHandling.SetDefault) 1475else if (string.Empty.Equals(e.Value) && emptyStringHandling == EmptyStringHandling.SetDefault) 1520else if (string.Empty.Equals(e.Value) && emptyStringHandling == EmptyStringHandling.SetDefault)
MarkupString.cs (1)
34=> Value ?? string.Empty;
ParameterView.cs (1)
19RenderTreeFrame.Element(0, string.Empty).WithComponentSubtreeLength(1)
Rendering\RenderTreeBuilder.cs (3)
26private static readonly object ElementBoolTrueValue = OperatingSystem.IsBrowser() ? string.Empty : BoxedTrue; 88_entries.AppendMarkup(sequence, markupContent ?? string.Empty); 99_entries.AppendText(sequence, textContent ?? string.Empty);
src\aspnetcore\src\Http\Routing\src\Patterns\RouteParameterParser.cs (2)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>()); 52var parameterName = string.Empty;
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternDebugStringFormatter.cs (1)
86return string.Join(string.Empty, parts);
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
499var found = RouteValueEqualityComparer.Default.Equals(string.Empty, kvp.Value);
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternParser.cs (1)
205context.Error = Resources.FormatTemplateRoute_InvalidParameterName(string.Empty);
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternPathSegment.cs (1)
49return string.Join(string.Empty, parts.Select(p => p.DebuggerToString()));
src\aspnetcore\src\Http\Routing\src\RouteValueEqualityComparer.cs (1)
52return StringComparer.OrdinalIgnoreCase.GetHashCode(string.Empty);
src\aspnetcore\src\Http\Routing\src\Template\RoutePrecedence.cs (1)
267!RouteValueEqualityComparer.Default.Equals(requiredValue, string.Empty))
Microsoft.AspNetCore.Components.AI (20)
Blocks\ActivityContentBlock.cs (1)
16public string ActivityType { get; set; } = string.Empty;
Blocks\ContentBlock.cs (1)
25public string Id { get; internal set; } = string.Empty;
Blocks\RichText\CodeBlockNode.cs (1)
38public string Code { get; set; } = string.Empty;
Blocks\RichText\DefinitionNode.cs (2)
14public string Label { get; set; } = string.Empty; 19public string Url { get; set; } = string.Empty;
Blocks\RichText\FootnoteDefinitionNode.cs (1)
18public string Label { get; set; } = string.Empty;
Blocks\RichText\FootnoteReferenceNode.cs (1)
18public string Label { get; set; } = string.Empty;
Blocks\RichText\HtmlNode.cs (1)
31public string Value { get; set; } = string.Empty;
Blocks\RichText\ImageNode.cs (1)
35public string Url { get; set; } = string.Empty;
Blocks\RichText\ImageReferenceNode.cs (1)
14public string Label { get; set; } = string.Empty;
Blocks\RichText\InlineCodeNode.cs (1)
31public string Code { get; set; } = string.Empty;
Blocks\RichText\LinkNode.cs (1)
33public string Url { get; set; } = string.Empty;
Blocks\RichText\LinkReferenceNode.cs (1)
14public string Label { get; set; } = string.Empty;
Blocks\RichText\TextNode.cs (1)
31public string Text { get; set; } = string.Empty;
Components\MessageListContext.cs (1)
293builder.AddAttribute(2, "alt", image.Alt ?? string.Empty);
Engine\ConversationTurn.cs (1)
18public string Id { get; internal set; } = string.Empty;
Pipeline\ActivityHandler.cs (1)
18if (state.Id == string.Empty)
Pipeline\TextBlockHandler.cs (3)
27if (state.Id != string.Empty) 36state.AppendText(textContent.Text ?? string.Empty); 39if (state.Id == string.Empty)
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
ToolBlockParser.cs (1)
98? string.Empty
Microsoft.AspNetCore.Components.Endpoints (13)
Builder\ResourcePreloadCollection.cs (1)
27group = property.Value ?? string.Empty;
Forms\DataAnnotationsClientValidationProvider.cs (3)
91?? string.Empty; 211.Replace(" ", string.Empty) 212.Replace(".", string.Empty)
Rendering\EndpointHtmlRenderer.cs (1)
55private string _notFoundUrl = string.Empty;
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
41_ssrFramingCommentMarkup = string.Empty;
Rendering\SSRRenderModeBoundary.cs (1)
283_ => string.Empty
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
128return string.Join(string.Empty, chunks); 155responseCookies.Append(key, string.Empty, options); 159var templateLength = options.CreateCookieHeader(key, string.Empty).ToString().Length; 297keyValuePairs[0] = KeyValuePair.Create(key, string.Empty); 301keyValuePairs[i] = KeyValuePair.Create(string.Concat(key, "C", i.ToString(CultureInfo.InvariantCulture)), string.Empty); 327keyValuePairs.Add(KeyValuePair.Create(subkey, string.Empty));
Microsoft.AspNetCore.Components.Forms (1)
EditContextDataAnnotationsExtensions.cs (1)
186_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!);
Microsoft.AspNetCore.Components.Media (2)
FileDownload.cs (2)
34internal override string TargetAttributeName => string.Empty; // Not used – object URL not tracked for downloads. 159public string FileName { get; internal set; } = string.Empty;
Microsoft.AspNetCore.Components.QuickGrid (1)
QuickGrid.razor.cs (1)
636return AttributeUtilities.CombineClassNames(AdditionalAttributes, gridClass) ?? string.Empty;
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
165WriteString(boolValue ? string.Empty : null, allowDeduplication: true);
Microsoft.AspNetCore.Components.Web (12)
Forms\FieldIdGenerator.cs (1)
34return string.Empty;
Forms\InputBase.cs (4)
204return AttributeUtilities.CombineClassNames(AdditionalAttributes, fieldClass) ?? string.Empty; 217return Convert.ToString(nameAttributeValue, CultureInfo.InvariantCulture) ?? string.Empty; 225return string.Empty; 242return Convert.ToString(idAttributeValue, CultureInfo.InvariantCulture) ?? string.Empty;
Forms\InputDate.cs (2)
40[Parameter] public string ParsingErrorMessage { get; set; } = string.Empty; 107_ => string.Empty, // Handles null for Nullable<DateTime>, etc.
Forms\InputFile\BrowserFile.cs (2)
14public string Name { get; set; } = string.Empty; 32public string ContentType { get; set; } = string.Empty;
Forms\ValidationSummary.cs (1)
77: CurrentEditContext.GetValidationMessages(new FieldIdentifier(Model, string.Empty));
HtmlRendering\HtmlRootComponent.cs (1)
36return string.Empty;
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
21string.Empty,
Microsoft.AspNetCore.Components.WebAssembly (4)
Hosting\WebAssemblyHostEnvironmentAdapter.cs (2)
26get => string.Empty; 32get => string.Empty;
Services\WebAssemblyConsoleLogger.cs (1)
24: this(string.Empty, (WebAssemblyJSRuntime)jsRuntime) // Cast for DI
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
165WriteString(boolValue ? string.Empty : null, allowDeduplication: true);
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (1)
321? string.Empty
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
43if (requestPath == string.Empty)
Microsoft.AspNetCore.Components.WebView (2)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
165WriteString(boolValue ? string.Empty : null, allowDeduplication: true);
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
290public string PhysicalPath => _source.PhysicalPath ?? string.Empty;
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
16 return string.Empty;
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
BlazorWebView.cs (1)
211 logger.AddingRootComponent(rootComponent.ComponentType.FullName ?? string.Empty, rootComponent.Selector, rootComponent.Parameters?.Count ?? 0);
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
16 return string.Empty;
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (1)
294 logger.AddingRootComponent(rootComponent.ComponentType.FullName ?? string.Empty, rootComponent.Selector, rootComponent.Parameters?.Count ?? 0);
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
16 return string.Empty;
Microsoft.AspNetCore.Connections.Abstractions (1)
Features\ITlsHandshakeFeature.cs (1)
35string HostName => string.Empty;
Microsoft.AspNetCore.Cors (2)
Infrastructure\CorsPolicyExtensions.cs (1)
32return new Uri(origin.Replace(_WildcardSubdomain, string.Empty), UriKind.Absolute);
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
Microsoft.AspNetCore.Cryptography.Internal (1)
SafeHandles\BCryptAlgorithmHandle.cs (1)
77return string.Empty; // degenerate case
Microsoft.AspNetCore.DataProtection (2)
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
139/// <param name="value">When this method returns, contains the decoded string value, or <see cref="string.Empty"/> if the length is zero.</param> 144value = string.Empty;
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 701key.ImportFromEncryptedPem(pem, string.Empty);
Microsoft.AspNetCore.Diagnostics (7)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
317Function = string.Empty
DeveloperExceptionPage\Views\ErrorPage.Designer.cs (3)
66string? location = string.Empty; 1345WriteAttributeValue("", 17075, metadata.GetType().FullName ?? string.Empty, 17075, 46, false); 1363Output.Write(HtmlEncodeAndReplaceLineBreaks(metadata.ToString() ?? string.Empty));
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (1)
289return string.Empty;
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
118var prefix = string.Empty;
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (1)
289return string.Empty;
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Latency\RequestLatencyTelemetryMiddleware.cs (1)
43_applicationName = string.Empty;
Logging\HttpUtilityExtensions.cs (2)
43return routeEndpoint.RoutePattern.RawText ?? string.Empty; 46return string.Empty;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Buffering\PerRequestLogBufferingOptionsCustomValidatorTests.cs (1)
25var validationResult = validator.Validate(string.Empty, options);
Logging\HeaderReaderTests.cs (2)
20var reader = new HeaderReader(new Dictionary<string, DataClassification>(), null!, string.Empty); 30var reader = new HeaderReader(new Dictionary<string, DataClassification> { [HeaderNames.Accept] = DataClassification.Unknown }, null!, string.Empty);
Logging\HttpUtilityExtensionsTests.cs (2)
62Assert.Equal(string.Empty, mockHttpRequest.Object.GetRoute()); 81Assert.Equal(string.Empty, mockHttpRequest.Object.GetRoute());
Logging\IncomingHttpRouteUtilityTests.cs (1)
205var httpRoute = string.Empty;
Logging\RequestHeadersEnricherTests.cs (1)
39{ HeaderKey2, string.Empty },
Microsoft.AspNetCore.Grpc.JsonTranscoding (7)
Internal\Json\EnumNameHelpers.cs (1)
107var normalizedPrefix = prefix.Replace("_", string.Empty, StringComparison.Ordinal).ToLowerInvariant();
Internal\Json\JsonConverterHelper.cs (1)
198return (string)value == string.Empty;
Internal\JsonTranscodingRouteAdapter.cs (2)
91var catchAllSuffix = string.Empty; 122var constraint = suffix.Length > 0 ? $":regex({Regex.Escape(suffix)}$)" : string.Empty;
Internal\JsonTranscodingServerCallContext.cs (1)
64protected override string HostCore => HttpContext.Request.Host.Value ?? string.Empty;
parent\Shared\HttpRoutePatternParser.cs (1)
202var identifier = string.Empty;
parent\Shared\ServiceDescriptorHelpers.cs (1)
615var result = string.Empty;
Microsoft.AspNetCore.HeaderParsing.Tests (7)
HostHeaderValueTests.cs (1)
84Assert.False(HostHeaderValue.TryParse(string.Empty, out var _));
ParserTests.cs (6)
53var sv = new StringValues(string.Empty); 101var sv = new StringValues(string.Empty); 194var sv = new StringValues(string.Empty); 214var sv = new StringValues(string.Empty); 233var sv = new StringValues(string.Empty); 264var sv = new StringValues(string.Empty);
Microsoft.AspNetCore.Hosting (10)
GenericHost\GenericWebHostService.cs (2)
79var httpPorts = Configuration[WebHostDefaults.HttpPortsKey] ?? string.Empty; 80var httpsPorts = Configuration[WebHostDefaults.HttpsPortsKey] ?? string.Empty;
Internal\WebHostOptions.cs (1)
20ApplicationName = environment?.ApplicationName ?? GetConfig(WebHostDefaults.ApplicationKey) ?? Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty;
src\aspnetcore\src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
58var location = string.Empty;
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
25var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName!).Version?.ToString() ?? string.Empty;
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
118var prefix = string.Empty;
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
290public string PhysicalPath => _source.PhysicalPath ?? string.Empty;
WebHostExtensions.cs (2)
52using (var lifetime = new WebHostLifetime(cts, done, shutdownMessage: string.Empty)) 93var shutdownMessage = host.Services.GetRequiredService<WebHostOptions>().SuppressStatusMessages ? string.Empty : "Application is shutting down...";
Microsoft.AspNetCore.Html.Abstractions (4)
HtmlFormattableString.cs (1)
155return string.Empty;
HtmlString.cs (3)
19/// An <see cref="HtmlString"/> instance for <see cref="string.Empty"/>. 21public static readonly HtmlString Empty = new HtmlString(string.Empty); 49return Value ?? string.Empty;
Microsoft.AspNetCore.Http (20)
BindingAddress.cs (1)
155address = address ?? string.Empty;
Features\HttpRequestFeature.cs (7)
18Protocol = string.Empty; 19Scheme = string.Empty; 20Method = string.Empty; 21PathBase = string.Empty; 22Path = string.Empty; 23QueryString = string.Empty; 24RawTarget = string.Empty;
Features\QueryFeature.cs (2)
79_original = string.Empty; 80HttpRequestFeature.QueryString = string.Empty;
Internal\DefaultHttpRequest.cs (3)
70set { HttpRequestFeature.PathBase = value.Value ?? string.Empty; } 76set { HttpRequestFeature.Path = value.Value ?? string.Empty; } 82set { HttpRequestFeature.QueryString = value.Value ?? string.Empty; }
Internal\ResponseCookies.cs (4)
90var cookieSuffix = options.CreateCookieHeader(string.Empty, string.Empty).ToString().AsSpan(1); 153var value = values[i] ?? string.Empty; 163Append(key, string.Empty, new CookieOptions(options)
SendFileFallback.cs (2)
28throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 33throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty);
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
114sb.Append(CultureInfo.InvariantCulture, $"{scheme}://{host}{request.PathBase.Value}{request.Path.Value}{(includeQueryString ? request.QueryString.Value : string.Empty)}");
Microsoft.AspNetCore.Http.Abstractions (19)
FragmentString.cs (2)
17public static readonly FragmentString Empty = new FragmentString(string.Empty); 71return HasValue ? _value : string.Empty;
HostString.cs (1)
139return string.Empty;
Internal\HeaderSegmentCollection.cs (2)
83_header = string.Empty; 173_header = _headers[_index] ?? string.Empty;
PathString.cs (9)
30public static readonly PathString Empty = new(string.Empty); 82return string.Empty; 250var value1 = Value ?? string.Empty; 251var value2 = other.Value ?? string.Empty; 301var value1 = Value ?? string.Empty; 302var value2 = other.Value ?? string.Empty; 359var value1 = Value ?? string.Empty; 360var value2 = other.Value ?? string.Empty; 560? value?.ToString() ?? string.Empty
QueryString.cs (3)
21public static readonly QueryString Empty = new QueryString(string.Empty); 68return HasValue ? Value.Replace("#", "%23") : string.Empty; 81return new QueryString(string.Empty);
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
114sb.Append(CultureInfo.InvariantCulture, $"{scheme}://{host}{request.PathBase.Value}{request.Path.Value}{(includeQueryString ? request.QueryString.Value : string.Empty)}");
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
108var logScope = new ConnectionLogScope(connectionId: string.Empty); 126var logScope = new ConnectionLogScope(connectionId: string.Empty);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\ConnectionLogScope.cs (1)
66return _cachedToString ?? string.Empty;
Microsoft.AspNetCore.Http.Extensions (3)
HttpRequestMultipartExtensions.cs (1)
24return string.Empty;
QueryBuilder.cs (1)
42: this(parameters.SelectMany(kvp => kvp.Value, (kvp, v) => KeyValuePair.Create(kvp.Key, v ?? string.Empty)))
RequestDelegateFactory.cs (1)
1431new KeyValuePair<string, string[]>(ex.Path ?? string.Empty, [ex.Message]),
Microsoft.AspNetCore.Http.Features (3)
IHttpRequestFeature.cs (3)
35/// The value is un-escaped. The value may be <see cref="string.Empty"/>. 43/// The value may be <see cref="string.Empty"/> if <see cref="PathBase"/> contains the full path, 53/// may be <see cref="string.Empty" />. If not empty then the leading '?' will be included. The value
Microsoft.AspNetCore.Http.RequestDelegateGenerator (13)
RequestDelegateGenerator.cs (2)
59Emit(context, endpointsCode, helperMethods ?? string.Empty, httpVerbs, helperTypes ?? string.Empty);
RequestDelegateGenerator.Emitter.cs (6)
71codeWriter.WriteLineNoTabs(string.Empty); 89codeWriter.WriteLineNoTabs(string.Empty); 91codeWriter.WriteLineNoTabs(string.Empty); 93codeWriter.WriteLineNoTabs(string.Empty); 253helperMethods: helperMethods ?? string.Empty, 254helperTypes: helperTypes ?? string.Empty,
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (5)
28var parameterTypeList = string.Join(", ", endpoint.Parameters.Select((p, i) => $"{EmitUnwrappedParameterType(p)} arg{i}{(p.HasDefaultValue ? $"= {p.DefaultValue}" : string.Empty)}")); 172var argumentList = endpoint.Parameters.Length == 0 ? string.Empty : $", {endpoint.EmitArgumentList()}"; 178: string.Empty; 444return string.Empty; 470return string.Empty;
Microsoft.AspNetCore.Http.Results (2)
HttpResultsHelper.cs (1)
108fileDownloadName ??= string.Empty;
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
231value ??= string.Empty;
Microsoft.AspNetCore.Identity (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (1)
2424new KeyValuePair<string, string[]>(jsonException.Path ?? string.Empty, [jsonException.Message]),
PasskeyHandler.cs (1)
751var originalRpIdHash = SHA256.HashData(Encoding.UTF8.GetBytes(originalRpId ?? string.Empty));
Passkeys\BufferSource.cs (1)
121return string.Empty;
Microsoft.AspNetCore.Identity.UI (34)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
222ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (2)
107ModelState.AddModelError(string.Empty, ErrorMessage); 147ModelState.AddModelError(string.Empty, "Invalid login attempt.");
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (3)
124var authenticatorCode = Input.TwoFactorCode.Replace(" ", string.Empty).Replace("-", string.Empty); 143ModelState.AddModelError(string.Empty, "Invalid authenticator code.");
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (2)
107var recoveryCode = Input.RecoveryCode.Replace(" ", string.Empty); 126ModelState.AddModelError(string.Empty, "Invalid recovery code entered.");
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
131ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (1)
100ModelState.AddModelError(string.Empty, "Incorrect password.");
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (2)
131var verificationCode = Input.Code.Replace(" ", string.Empty).Replace("-", string.Empty);
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
119ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
162ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (2)
82ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email."); 102ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email.");
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
128ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
222ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (2)
107ModelState.AddModelError(string.Empty, ErrorMessage); 147ModelState.AddModelError(string.Empty, "Invalid login attempt.");
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (3)
124var authenticatorCode = Input.TwoFactorCode.Replace(" ", string.Empty).Replace("-", string.Empty); 143ModelState.AddModelError(string.Empty, "Invalid authenticator code.");
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (2)
107var recoveryCode = Input.RecoveryCode.Replace(" ", string.Empty); 126ModelState.AddModelError(string.Empty, "Invalid recovery code entered.");
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
131ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (1)
100ModelState.AddModelError(string.Empty, "Incorrect password.");
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (2)
131var verificationCode = Input.Code.Replace(" ", string.Empty).Replace("-", string.Empty);
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
119ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
162ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (2)
82ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email."); 102ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email.");
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
128ModelState.AddModelError(string.Empty, error.Description);
Microsoft.AspNetCore.InternalTesting (4)
AssemblyTestLog.cs (2)
107normalizedTestName = string.Empty; 108logOutputDirectory = string.Empty;
Logging\XunitLoggerProvider.cs (1)
78messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
TestFileOutputContext.cs (1)
88return string.Empty;
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
159if (cultureName.Equals(string.Empty))
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisBuilder.cs (1)
65var middlewareName = string.Empty; // UseMiddleware doesn't work with null params.
Microsoft.AspNetCore.Mvc.Abstractions (11)
ModelBinding\ModelBindingContext.cs (1)
70/// Gets or sets the name of the top-level model. This is not reset to <see cref="string.Empty"/> when value
ModelBinding\ModelError.cs (1)
38ErrorMessage = errorMessage ?? string.Empty;
ModelBinding\ModelStateDictionary.cs (7)
63var emptySegment = new StringSegment(buffer: string.Empty); 66Key = string.Empty 519var entries = FindKeysWithPrefix(key ?? string.Empty); 672AddModelErrorCore(string.Empty, exception); 750public Enumerator GetEnumerator() => new Enumerator(this, prefix: string.Empty); 1126public KeyEnumerator GetEnumerator() => new KeyEnumerator(_dictionary, prefix: string.Empty); 1201public ValueEnumerator GetEnumerator() => new ValueEnumerator(_dictionary, prefix: string.Empty);
ModelBinding\Validation\ModelValidationResult.cs (2)
18MemberName = memberName ?? string.Empty; 19Message = message ?? string.Empty;
Microsoft.AspNetCore.Mvc.ApiExplorer (14)
DefaultApiDescriptionProvider.cs (2)
413var currentSegment = string.Empty; 580Visit(context, source, containerName: string.Empty);
EndpointMetadataApiDescriptionProvider.cs (12)
97controllerName = _environment.ApplicationName ?? string.Empty; 204var parameterName = parameter.Name ?? string.Empty; 258var parameterName = parameter.Name ?? string.Empty; 264return (BindingSource.Query, queryAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 268return (BindingSource.Header, headerAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 272return (BindingSource.Body, parameter.Name ?? string.Empty, fromBodyAttribute.AllowEmpty, parameterType); 276return (BindingSource.FormFile, fromFormAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 287return (BindingSource.Services, parameter.Name ?? string.Empty, false, parameterType); 301return (BindingSource.Query, parameter.Name ?? string.Empty, false, displayType); 306return (BindingSource.FormFile, parameter.Name ?? string.Empty, false, parameterType); 313return (BindingSource.Query, parameter.Name ?? string.Empty, false, parameterType); 317return (BindingSource.Body, parameter.Name ?? string.Empty, false, parameterType);
Microsoft.AspNetCore.Mvc.Core (38)
ApplicationModels\ApplicationModelFactory.cs (1)
305var formattedVerbs = string.Empty;
ApplicationModels\AttributeRouteModel.cs (2)
201template.Equals(string.Empty, StringComparison.Ordinal) || 234return string.Empty;
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
243actionDescriptor.RouteValues.Add("action", action.ActionName ?? string.Empty);
ControllerBase.cs (2)
2535return TryUpdateModelAsync(model, prefix: string.Empty); 2842prefix: prefix ?? string.Empty,
FileResult.cs (1)
40get { return _fileDownloadName ?? string.Empty; }
Formatters\MediaType.cs (2)
36: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length) 212return mediaType.Value ?? string.Empty;
Formatters\OutputFormatter.cs (1)
174response.ContentType = context.ContentType.Value ?? string.Empty;
Formatters\SystemTextJsonInputFormatter.cs (2)
90var path = jsonException.Path ?? string.Empty; 105context.ModelState.TryAddModelError(string.Empty, exception, context.Metadata);
Infrastructure\ActionSelectionTable.cs (3)
74return value ?? string.Empty; 96return Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty; 171routeValues[i] = value as string ?? Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty;
Infrastructure\StringArrayComparer.cs (1)
68hash.Add(obj[i] ?? string.Empty, _valueComparer);
ModelBinding\Binders\BodyModelBinder.cs (1)
99modelBindingKey = bindingContext.BinderModelName ?? string.Empty;
ModelBinding\CompositeValueProvider.cs (1)
90actionContext.ModelState.TryAddModelException(key: string.Empty, exception);
ModelBinding\DefaultPropertyFilterProvider.cs (1)
24public virtual string Prefix => string.Empty;
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
44return string.Empty;
ModelBinding\ModelBindingHelper.cs (1)
425var entry = modelState[string.Empty];
ModelBinding\ModelNames.cs (2)
47return propertyName ?? string.Empty; 52return prefix ?? string.Empty;
ModelBinding\ParameterBinder.cs (1)
129modelBindingContext.ModelName = string.Empty;
ModelBinding\RouteValueProvider.cs (1)
92var stringValue = value as string ?? Convert.ToString(value, Culture) ?? string.Empty;
ModelBinding\Validation\ValidationVisitor.cs (2)
314key = entry?.Key ?? key ?? string.Empty; 352using (StateManager.Recurse(this, key ?? string.Empty, metadata, model, strategy!))
MvcCoreLoggerExtensions.cs (2)
301return new KeyValuePair<string, object>("ActionName", _action.DisplayName ?? string.Empty); 321return _action.DisplayName ?? string.Empty;
Routing\ActionEndpointFactory.cs (1)
285if (!RouteValueEqualityComparer.Default.Equals(routeValue.Value, string.Empty))
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
128return string.Join(string.Empty, chunks); 155responseCookies.Append(key, string.Empty, options); 159var templateLength = options.CreateCookieHeader(key, string.Empty).ToString().Length; 297keyValuePairs[0] = KeyValuePair.Create(key, string.Empty); 301keyValuePairs[i] = KeyValuePair.Create(string.Concat(key, "C", i.ToString(CultureInfo.InvariantCulture)), string.Empty); 327keyValuePairs.Add(KeyValuePair.Create(subkey, string.Empty));
src\aspnetcore\src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
29: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
DataAnnotationsMetadataProvider.cs (1)
423return string.Empty;
FileExtensionsAttributeAdapter.cs (2)
23var normalizedExtensions = Attribute.Extensions.Replace(" ", string.Empty).Replace(".", string.Empty).ToLowerInvariant();
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
ProblemDetailsWrapper.cs (1)
106name = string.Empty;
SerializableErrorWrapper.cs (1)
71key = string.Empty;
ValidationProblemDetailsWrapper.cs (1)
67key = string.Empty;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchExtensions.cs (1)
29patchDoc.ApplyTo(objectToApplyTo, modelState, prefix: string.Empty);
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPageBase.cs (1)
618value?.ToString() ?? string.Empty,
RazorView.cs (1)
282var locations = string.Empty;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (7)
CompilationFailedExceptionFactory.cs (2)
39compiledContent: string.Empty, 114return string.Empty;
FileProviderRazorProjectFileSystem.cs (2)
38return new FileProviderRazorProjectItem(fileInfo, basePath: string.Empty, filePath: path, root: _hostingEnvironment.ContentRootPath, fileKind); 45return EnumerateFiles(FileProvider.GetDirectoryContents(path), path, prefix: string.Empty);
FileProviderRazorProjectItem.cs (1)
66public override string PhysicalPath => FileInfo.PhysicalPath ?? string.Empty;
PageDirectiveFeature.cs (1)
83return new NotFoundProjectItem(string.Empty, path, fileKind);
parent\parent\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
73string.Empty :
Microsoft.AspNetCore.Mvc.RazorPages (9)
ApplicationModels\PageRouteModelFactory.cs (1)
73string.Empty :
DependencyInjection\PageConventionCollectionExtensions.cs (4)
220AuthorizePage(conventions, pageName, policy: string.Empty); 236=> AuthorizeAreaPage(conventions, areaName, pageName, policy: string.Empty); 309AuthorizeFolder(conventions, folderPath, policy: string.Empty); 325=> AuthorizeAreaFolder(conventions, areaName, folderPath, policy: string.Empty);
PageBase.cs (2)
1282return TryUpdateModelAsync(model, prefix: string.Empty); 1579prefix: prefix ?? string.Empty,
PageModel.cs (2)
190return TryUpdateModelAsync(model, name: string.Empty); 1656prefix: name ?? string.Empty,
Microsoft.AspNetCore.Mvc.TagHelpers (7)
AnchorTagHelper.cs (3)
239linkText: string.Empty, 252linkText: string.Empty, 264linkText: string.Empty,
Cache\CacheTagKey.cs (1)
302result.Add(new KeyValuePair<string, string>(trimmedValue.Value, value ?? string.Empty));
FileProviderGlobbingDirectory.cs (1)
31RelativePath = string.Empty;
ScriptTagHelper.cs (1)
326output.Content.SetContent(string.Empty);
TagHelperOutputExtensions.cs (1)
281var currentClassValue = extractedClassValue ?? string.Empty;
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
304{ HostDefaults.ApplicationKey, typeof(TEntryPoint).Assembly.GetName()?.Name ?? string.Empty }
Microsoft.AspNetCore.Mvc.ViewFeatures (38)
DefaultDisplayTemplates.cs (6)
66new SelectListItem(Resources.Common_TriState_NotSet, string.Empty, !value.HasValue), 104htmlHelper.ViewData.TemplateInfo.HtmlFieldPrefix = string.Empty; 162string.Empty : 165string.Empty : 279var uriString = (htmlHelper.ViewData.Model == null) ? string.Empty : htmlHelper.ViewData.Model.ToString(); 281string.Empty :
DefaultEditorTemplates.cs (2)
87viewData.TemplateInfo.HtmlFieldPrefix = string.Empty; 222expression: string.Empty,
DefaultHtmlGenerator.cs (4)
104return !string.IsNullOrEmpty(value) ? _htmlEncoder.Encode(value) : string.Empty; 110return (value != null) ? _htmlEncoder.Encode(value.ToString()) : string.Empty; 634var value = string.Empty; 1584Value = string.Empty,
ExpressionHelper.cs (2)
135expressionTextCache?.TryAdd(expression, string.Empty); 137return string.Empty;
HtmlHelper.cs (4)
524var locations = string.Empty; 791return resolvedDisplayName ?? string.Empty; 801return modelExplorer.GetSimpleDisplayText() ?? string.Empty; 1411return string.Equals(expression, "model", StringComparison.OrdinalIgnoreCase) ? string.Empty : expression;
ModelExplorerExtensions.cs (2)
67return string.Empty; 77return string.Empty;
NameAndIdProvider.cs (1)
39return string.Empty;
NullView.cs (1)
13public string Path => string.Empty;
PartialViewResultExecutor.cs (1)
67var viewName = viewResult.ViewName ?? GetActionName(actionContext) ?? string.Empty;
RemoteAttributeBase.cs (2)
28private string _additionalFields = string.Empty; 63_additionalFields = value ?? string.Empty;
Rendering\TagBuilder.cs (1)
159return string.Empty;
TemplateBuilder.cs (1)
61if (_metadata.ConvertEmptyStringToNull && string.Empty.Equals(_model))
TemplateInfo.cs (4)
22_htmlFieldPrefix = string.Empty; 23_formattedModelValue = string.Empty; 49set { _formattedModelValue = value ?? string.Empty; } 62set { _htmlFieldPrefix = value ?? string.Empty; }
ValidationHelpers.cs (1)
21return string.Empty;
ViewDataDictionary.cs (1)
402return string.Empty;
ViewDataEvaluator.cs (3)
92expression = string.Empty; 142return string.Empty; 148return string.Empty;
ViewEngines\ViewEngineResult.cs (1)
95var locations = string.Empty;
ViewResultExecutor.cs (1)
68var viewName = viewResult.ViewName ?? GetActionName(actionContext) ?? string.Empty;
Microsoft.AspNetCore.OpenApi (3)
Schemas\OpenApiJsonSchema.Helpers.cs (2)
351schema.Metadata.Add(OpenApiConstants.SchemaId, reader.GetString() ?? string.Empty); 377schema.Metadata[OpenApiConstants.RefDescriptionAnnotation] = reader.GetString() ?? string.Empty;
Services\OpenApiGenerator.cs (1)
359controllerName = _environment?.ApplicationName ?? string.Empty;
Microsoft.AspNetCore.OpenApi.SourceGenerators (12)
XmlCommentGenerator.cs (1)
53: string.Empty;
XmlCommentGenerator.Emitter.cs (1)
719_ => string.Empty // Effectively no-op for AddOpenApi invocations that do not conform to a variant
XmlComments\XmlComment.cs (1)
90.Select(item => listPrefix + item?.Value?.TrimEachLine() ?? string.Empty)
XmlComments\XmlComment.InheritDoc.cs (2)
37return string.Empty; 192if (inheritedDocumentation == string.Empty)
XmlComments\XmlParameterComment.cs (4)
11public string Name { get; set; } = string.Empty; 26var name = nav.GetAttribute("name", string.Empty); 31var example = nav.GetAttribute("example", string.Empty); 32var deprecated = nav.GetAttribute("deprecated", string.Empty);
XmlComments\XmlResponseComment.cs (3)
11public string Code { get; set; } = string.Empty; 27var code = nav.GetAttribute("code", string.Empty); 32var example = nav.GetAttribute("example", string.Empty);
Microsoft.AspNetCore.OutputCaching (7)
OutputCacheKeyProvider.cs (7)
51return string.Empty; 56return string.Empty; 61return string.Empty; 168var header = varyByRules.HeaderNames[i] ?? string.Empty; 243var queryKey = varyByRules.QueryKeys[i] ?? string.Empty; 284var routeValueName = varyByRules.RouteValueNames[i] ?? string.Empty; 321var key = orderedKeys[i] ?? string.Empty;
Microsoft.AspNetCore.Owin (14)
OwinEnvironment.cs (6)
409{ OwinConstants.RequestProtocol, new FeatureMap<IHttpRequestFeature>(feature => feature.Protocol, () => string.Empty, (feature, value) => feature.Protocol = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 410{ OwinConstants.RequestScheme, new FeatureMap<IHttpRequestFeature>(feature => feature.Scheme, () => string.Empty, (feature, value) => feature.Scheme = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 411{ OwinConstants.RequestMethod, new FeatureMap<IHttpRequestFeature>(feature => feature.Method, () => string.Empty, (feature, value) => feature.Method = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 412{ OwinConstants.RequestPathBase, new FeatureMap<IHttpRequestFeature>(feature => feature.PathBase, () => string.Empty, (feature, value) => feature.PathBase = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 413{ OwinConstants.RequestPath, new FeatureMap<IHttpRequestFeature>(feature => feature.Path, () => string.Empty, (feature, value) => feature.Path = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 414{ OwinConstants.RequestQueryString, new FeatureMap<IHttpRequestFeature>(feature => Utilities.RemoveQuestionMark(feature.QueryString), () => string.Empty, (feature, value) => feature.QueryString = Utilities.AddQuestionMark(Convert.ToString(value, CultureInfo.InvariantCulture))) },
OwinFeatureCollection.cs (1)
113get { return string.Empty; }
WebSockets\OwinWebSocketAdapter.cs (2)
191throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 206throw new ArgumentOutOfRangeException(nameof(webSocketMessageType), webSocketMessageType, string.Empty);
WebSockets\WebSocketAdapter.cs (5)
83_environment[OwinConstants.WebSocket.ClientCloseDescription] = nativeResult.CloseStatusDescription ?? string.Empty; 101return CloseAsync(1000, string.Empty, cancel); 129_webSocket.CloseStatusDescription ?? string.Empty, _cancellationToken); 151throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 166throw new ArgumentOutOfRangeException(nameof(webSocketMessageType), webSocketMessageType, string.Empty);
Microsoft.AspNetCore.Razor (1)
TagHelpers\DefaultTagHelperContent.cs (1)
169return string.Empty;
Microsoft.AspNetCore.Razor.Runtime (1)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
30uniqueId: string.Empty,
Microsoft.AspNetCore.Razor.Utilities.Shared (5)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\FileUtilities.cs (1)
102var identifier = n > 0 ? n.ToString(CultureInfo.InvariantCulture) : string.Empty; // Make it look nice
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\MemoryBuilderExtensions.cs (2)
22/// A string created by concatenating all chunks in the builder. Returns <see cref="string.Empty"/> if the builder is empty. 33return string.Empty;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\StringBuilderExtensions.cs (1)
37return length > 0 ? builder.ToString(start, length) : string.Empty;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\StringExtensions.cs (1)
37/// or <see cref="string.Empty"/>, or if <paramref name="value"/> consists exclusively of
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingKeyProvider.cs (2)
118var header = varyByRules!.Headers[i] ?? string.Empty; 177var queryKey = varyByRules.QueryKeys[i] ?? string.Empty;
Microsoft.AspNetCore.Rewrite (10)
ApacheModRewrite\ConditionPatternParser.cs (1)
32condition = string.Empty;
ApacheModRewrite\FlagParser.cs (1)
88flags.SetFlag(flag, string.Empty);
ApacheModRewrite\Flags.cs (2)
29value = string.Empty; 57FlagDictionary[flag] = value ?? string.Empty;
ApacheModRewrite\TestStringParser.cs (1)
36testString = string.Empty;
IISUrlRewrite\InputParser.cs (1)
49testString = string.Empty;
IISUrlRewrite\UrlRewriteFileParser.cs (1)
199var url = string.Empty;
PatternSegments\DateTimeSegment.cs (1)
66return string.Empty;
RedirectRule.cs (1)
36initMatchResults = InitialMatch.Match(string.Empty);
UrlActions\ChangeCookieAction.cs (1)
39context.HttpContext.Response.Cookies.Append(Name, Value ?? string.Empty, options);
Microsoft.AspNetCore.Routing (35)
InlineRouteParameterParser.cs (2)
25name: string.Empty, 53var parameterName = string.Empty;
Matching\AcceptsMatcherPolicy.cs (2)
231edges.Add(string.Empty, endpoints.ToList()); 236edges.Add(string.Empty, anyEndpoints.ToList());
Matching\DfaMatcherBuilder.cs (1)
987return !RouteValueEqualityComparer.Default.Equals(value, string.Empty);
Matching\HttpMethodMatcherPolicy.cs (1)
382var allow = httpMethods is null ? string.Empty : string.Join(", ", httpMethods);
Matching\NegotiationMatcherPolicy.cs (2)
303edges.Add(string.Empty, anyEndpoints); 308edges.Add(string.Empty, anyEndpoints);
Patterns\DefaultRoutePatternTransformer.cs (2)
51if (RouteValueEqualityComparer.Default.Equals(kvp.Value, string.Empty)) 85!RouteValueEqualityComparer.Default.Equals(string.Empty, defaultValue))
Patterns\RouteParameterParser.cs (2)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>()); 52var parameterName = string.Empty;
Patterns\RoutePatternDebugStringFormatter.cs (1)
86return string.Join(string.Empty, parts);
Patterns\RoutePatternFactory.cs (1)
499var found = RouteValueEqualityComparer.Default.Equals(string.Empty, kvp.Value);
Patterns\RoutePatternParser.cs (1)
205context.Error = Resources.FormatTemplateRoute_InvalidParameterName(string.Empty);
Patterns\RoutePatternPathSegment.cs (1)
49return string.Join(string.Empty, parts.Select(p => p.DebuggerToString()));
RouteBase.cs (1)
44template = template ?? string.Empty;
RouteCollection.cs (1)
158var queryString = string.Empty;
RouteValueEqualityComparer.cs (1)
52return StringComparer.OrdinalIgnoreCase.GetHashCode(string.Empty);
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
src\aspnetcore\src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
29: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length)
Template\RoutePrecedence.cs (1)
267!RouteValueEqualityComparer.Default.Equals(requiredValue, string.Empty))
Template\TemplateBinder.cs (5)
647var sa = a as string ?? (ReferenceEquals(SentinullValue.Instance, a) ? string.Empty : null); 648var sb = b as string ?? (ReferenceEquals(SentinullValue.Instance, b) ? string.Empty : null); 652if ((sa == string.Empty && sb == null) || (sb == string.Empty && sa == null)) 747public override string ToString() => string.Empty;
Template\TemplatePart.cs (2)
143return "{" + (IsCatchAll ? "*" : string.Empty) + Name + (IsOptional ? "?" : string.Empty) + "}";
Template\TemplateSegment.cs (1)
52return string.Join(string.Empty, Parts.Select(p => p.DebuggerToString()));
Tree\LinkGenerationDecisionTree.cs (5)
134if (criterion.Branches.TryGetValue(value ?? string.Empty, out var branch)) 146!criterion.Branches.Comparer.Equals(value, string.Empty)) 154if (criterion.Branches.TryGetValue(string.Empty, out branch)) 179results.Add(kvp.Key, new DecisionCriterionValue(kvp.Value ?? string.Empty)); 230branchStack.Push(string.Empty);
Microsoft.AspNetCore.Routing.Abstractions (1)
VirtualPathData.cs (1)
83return string.Empty;
Microsoft.AspNetCore.Server.HttpSys (27)
RequestProcessing\Request.cs (7)
64QueryString = cookedUrl.GetQueryString() ?? string.Empty; 69PathBase = string.Empty; 76PathBase = string.Empty; 77Path = string.Empty; 90Path = string.Empty; 96Path = string.Empty; 178SniHostName = string.Empty;
RequestProcessing\RequestStream.cs (2)
147Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 268Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\RequestStreamAsyncResult.cs (2)
79asyncResult.Fail(new IOException(string.Empty, new HttpSysException((int)errorCode))); 89asyncResult.Fail(new IOException(string.Empty, e));
RequestProcessing\Response.cs (4)
569headerValue = headerValues[headerValueIndex] ?? string.Empty; 578headerValue = headerValues[0] ?? string.Empty; 608headerValue = headerValues[headerValueIndex] ?? string.Empty; 663var headerValue = headerValues[headerValueIndex] ?? string.Empty;
RequestProcessing\ResponseBody.cs (5)
169var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 385Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 645throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 649throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty); 713var exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\ResponseStreamAsyncResult.cs (1)
245var exception = new IOException(string.Empty, new HttpSysException((int)errorCode));
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
623headerValue = string.Empty;
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
UrlPrefix.cs (2)
23PathWithoutTrailingSlash = Path.Length > 1 ? Path[0..^1] : string.Empty; 106var whole = prefix ?? string.Empty;
ValidationHelper.cs (1)
14return string.Empty;
Microsoft.AspNetCore.Server.IIS (29)
Core\IISConfigurationData.cs (3)
72pwzFullApplicationPath = native.pwzFullApplicationPath == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzFullApplicationPath), 73pwzVirtualApplicationPath = native.pwzVirtualApplicationPath == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzVirtualApplicationPath), 77pwzBindings = native.pwzBindings == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzBindings),
Core\IISEnvironmentFeature.cs (7)
37AppPoolId = configuration["IIS_APP_POOL_ID"] ?? string.Empty; 38AppPoolConfigFile = configuration["IIS_APP_POOL_CONFIG_FILE"] ?? string.Empty; 39AppConfigPath = configuration["IIS_APP_CONFIG_PATH"] ?? string.Empty; 40ApplicationPhysicalPath = configuration["IIS_PHYSICAL_PATH"] ?? string.Empty; 41ApplicationVirtualPath = configuration["IIS_APPLICATION_VIRTUAL_PATH"] ?? string.Empty; 42ApplicationId = configuration["IIS_APPLICATION_ID"] ?? string.Empty; 43SiteName = configuration["IIS_SITE_NAME"] ?? string.Empty;
Core\IISHttpContext.cs (12)
161Method = GetVerb() ?? string.Empty; 163RawTarget = GetRawUrl() ?? string.Empty; 170var originalPath = GetOriginalPath() ?? string.Empty; 171var pathBase = _server.VirtualPath ?? string.Empty; 179PathBase = string.Empty; 180Path = string.Empty; 184PathBase = string.Empty; 191Path = string.Empty; 197Path = string.Empty; 272QueryString = cookedUrl.GetQueryString() ?? string.Empty; 280SniHostName = string.Empty; 608ReasonPhrase = string.Empty;
src\aspnetcore\src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
58var location = string.Empty;
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
25var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName!).Version?.ToString() ?? string.Empty;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
623headerValue = string.Empty;
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
118var prefix = string.Empty;
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Common\DeploymentResult.cs (1)
43: this(loggerFactory, deploymentParameters: deploymentParameters, applicationBaseUri: applicationBaseUri, contentRoot: string.Empty, hostShutdownToken: CancellationToken.None)
Deployers\SelfHostDeployer.cs (3)
82var executableName = string.Empty; 83var executableArgs = string.Empty; 84var workingDirectory = string.Empty;
Microsoft.AspNetCore.Server.Kestrel.Core (42)
Internal\Http\Http1Connection.cs (8)
499QueryString = string.Empty; 544if (ReferenceEquals(_parsedQueryString, string.Empty)) 550QueryString = string.Empty; 551_parsedQueryString = string.Empty; 642Path = string.Empty; 643QueryString = string.Empty; 662Path = string.Empty; 663QueryString = string.Empty;
Internal\Http\HttpHeaders.cs (1)
285ValidateHeaderValueCharacters(headerValues[i] ?? string.Empty, requireAscii);
Internal\Http\HttpHeaders.Generated.cs (4)
7517var nameStr = string.Empty; 7930var nameStr = string.Empty; 8142var nameStr = string.Empty; 14831var headerName = string.Empty;
Internal\Http\HttpParser.cs (1)
374: string.Empty);
Internal\Http\HttpProtocol.cs (2)
177return string.Empty; 1437: string.Empty);
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
43_methodText = HttpUtilities.MethodToString(Method) ?? string.Empty;
Internal\Http2\Http2Stream.cs (3)
326Path = string.Empty; 327QueryString = string.Empty; 341QueryString = queryIndex == -1 ? string.Empty : path.Substring(queryIndex);
Internal\Http3\Http3Stream.cs (3)
1153Path = string.Empty; 1154QueryString = string.Empty; 1168QueryString = queryIndex == -1 ? string.Empty : path.Substring(queryIndex);
Internal\Infrastructure\HttpUtilities.cs (1)
89return string.Empty;
Internal\Infrastructure\KestrelEventSource.cs (8)
195var applicationProtocol = feature == null ? string.Empty : Encoding.UTF8.GetString(feature.ApplicationProtocol.Span); 196var sslProtocols = feature?.Protocol.ToString() ?? string.Empty; 197var hostName = feature?.HostName ?? string.Empty; 387arg1 ??= string.Empty; 388arg2 ??= string.Empty; 389arg3 ??= string.Empty; 390arg4 ??= string.Empty; 391arg5 ??= string.Empty;
Internal\Infrastructure\TimeExtensions.cs (1)
15throw new ArgumentOutOfRangeException(nameof(timeSpan), timeSpan, string.Empty);
Internal\TlsConnectionFeature.cs (1)
107public string HostName { get; set; } = string.Empty;
Middleware\HttpsConnectionMiddleware.cs (1)
357feature.HostName = name ?? string.Empty;
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 701key.ImportFromEncryptedPem(pem, string.Empty);
src\aspnetcore\src\Shared\Hpack\DynamicHPackEncoder.cs (2)
32Head.Initialize(-1, string.Empty, string.Empty, 0, int.MaxValue, null);
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackEncoder.cs (1)
230return EncodeValueString(string.Empty, valueEncoding: null, buffer, out length);
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
Microsoft.AspNetCore.Session (5)
CookieProtection.cs (4)
32return string.Empty; 38return string.Empty; 44return string.Empty; 53return string.Empty;
DistributedSession.cs (1)
199_sessionId = string.Empty;
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.Log.cs (2)
31var argsList = args == null ? string.Empty : string.Join(", ", args.Select(a => a?.GetType().FullName ?? "(null)")); 88var argsList = args == null ? string.Empty : string.Join(", ", args.Select(a => a?.GetType().FullName ?? "(null)"));
Internal\ConnectionLogScope.cs (1)
67return _cachedToString ?? string.Empty;
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Emitter.cs (2)
51var methodName = $"Register{typeSpec.FullyQualifiedTypeName.Replace(".", string.Empty)}"; 138private static System.IDisposable[] Register{typeSpec.FullyQualifiedTypeName.Replace(".", string.Empty)}(HubConnection connection, {typeSpec.FullyQualifiedTypeName} provider)
Microsoft.AspNetCore.SignalR.Common (3)
Protocol\CompletionMessage.cs (1)
53var resultField = HasResult ? $", {nameof(Result)}: {Result ?? "<<null>>"}" : string.Empty;
Protocol\HubMethodInvocationMessage.cs (2)
104args = Arguments == null ? string.Empty : string.Join(", ", Arguments.Select(a => a?.ToString())); 159args = Arguments == null ? string.Empty : string.Join(", ", Arguments.Select(a => a?.ToString()));
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (2)
32var completeArguments = $"run {scriptName} -- {arguments ?? string.Empty}"; 121=> AnsiColorRegex.Replace(line, string.Empty);
Microsoft.AspNetCore.StaticAssets (2)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
StaticAssetsInvoker.cs (1)
82public string PhysicalPath => FileInfo.PhysicalPath ?? string.Empty;
Microsoft.AspNetCore.StaticFiles (2)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
StaticFileContext.cs (1)
113public string PhysicalPath => _fileInfo.PhysicalPath ?? string.Empty;
Microsoft.AspNetCore.TestHost (6)
ResponseBodyPipeWriter.cs (1)
47_pipe.Writer.Complete(new IOException(string.Empty, innerException));
ResponseBodyReaderStream.cs (1)
133throw new IOException(string.Empty, _abortException);
TestWebSocket.cs (4)
126_closeStatusDescription = receiveMessage.CloseStatusDescription ?? string.Empty; 160throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 202throw new ArgumentOutOfRangeException(nameof(buffer), buffer.Offset, string.Empty); 206throw new ArgumentOutOfRangeException(nameof(buffer), buffer.Count, string.Empty);
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserToolsForwarder.cs (1)
193Query = query.HasValue ? query.Value![1..] : string.Empty,
Microsoft.AspNetCore.WebUtilities (93)
FormPipeReader.cs (1)
427return string.Empty;
HttpResponseStreamWriter.cs (1)
480value ??= string.Empty;
MultipartReaderStream.cs (1)
328if (!stream.FinalBoundaryFound && !string.Equals(string.Empty, remainder, StringComparison.Ordinal))
ReasonPhrases.cs (90)
30/* 209 */ string.Empty, 31/* 210 */ string.Empty, 32/* 211 */ string.Empty, 33/* 212 */ string.Empty, 34/* 213 */ string.Empty, 35/* 214 */ string.Empty, 36/* 215 */ string.Empty, 37/* 216 */ string.Empty, 38/* 217 */ string.Empty, 39/* 218 */ string.Empty, 40/* 219 */ string.Empty, 41/* 220 */ string.Empty, 42/* 221 */ string.Empty, 43/* 222 */ string.Empty, 44/* 223 */ string.Empty, 45/* 224 */ string.Empty, 46/* 225 */ string.Empty, 81/* 420 */ string.Empty, 86/* 425 */ string.Empty, 88/* 427 */ string.Empty, 91/* 430 */ string.Empty, 93/* 432 */ string.Empty, 94/* 433 */ string.Empty, 95/* 434 */ string.Empty, 96/* 435 */ string.Empty, 97/* 436 */ string.Empty, 98/* 437 */ string.Empty, 99/* 438 */ string.Empty, 100/* 439 */ string.Empty, 101/* 440 */ string.Empty, 102/* 441 */ string.Empty, 103/* 442 */ string.Empty, 104/* 443 */ string.Empty, 105/* 444 */ string.Empty, 106/* 445 */ string.Empty, 107/* 446 */ string.Empty, 108/* 447 */ string.Empty, 109/* 448 */ string.Empty, 110/* 449 */ string.Empty, 111/* 450 */ string.Empty, 113/* 452 */ string.Empty, 114/* 453 */ string.Empty, 115/* 454 */ string.Empty, 116/* 455 */ string.Empty, 117/* 456 */ string.Empty, 118/* 457 */ string.Empty, 119/* 458 */ string.Empty, 120/* 459 */ string.Empty, 121/* 460 */ string.Empty, 122/* 461 */ string.Empty, 123/* 462 */ string.Empty, 124/* 463 */ string.Empty, 125/* 464 */ string.Empty, 126/* 465 */ string.Empty, 127/* 466 */ string.Empty, 128/* 467 */ string.Empty, 129/* 468 */ string.Empty, 130/* 469 */ string.Empty, 131/* 470 */ string.Empty, 132/* 471 */ string.Empty, 133/* 472 */ string.Empty, 134/* 473 */ string.Empty, 135/* 474 */ string.Empty, 136/* 475 */ string.Empty, 137/* 476 */ string.Empty, 138/* 477 */ string.Empty, 139/* 478 */ string.Empty, 140/* 479 */ string.Empty, 141/* 480 */ string.Empty, 142/* 481 */ string.Empty, 143/* 482 */ string.Empty, 144/* 483 */ string.Empty, 145/* 484 */ string.Empty, 146/* 485 */ string.Empty, 147/* 486 */ string.Empty, 148/* 487 */ string.Empty, 149/* 488 */ string.Empty, 150/* 489 */ string.Empty, 151/* 490 */ string.Empty, 152/* 491 */ string.Empty, 153/* 492 */ string.Empty, 154/* 493 */ string.Empty, 155/* 494 */ string.Empty, 156/* 495 */ string.Empty, 157/* 496 */ string.Empty, 158/* 497 */ string.Empty, 159/* 498 */ string.Empty, 172/* 509 */ string.Empty, 182/// <returns>The reason phrase, or <see cref="string.Empty"/> if the status code is unknown.</returns> 194return string.Empty;
Microsoft.Build (357)
BackEnd\BuildManager\BuildManager.cs (3)
491Text = buildEvent.Message ?? string.Empty; 1253string.Empty, 0, 0, 0, 0, message, null, warningCode, helpKeyword) 3882get => String.Empty;
BackEnd\Client\MSBuildClient.cs (2)
285MSBuildEventSource.Log.MSBuildServerBuildStop(descriptiveCommandLine, _numConsoleWritePackets, _sizeOfConsoleWritePackets, _exitResult.MSBuildClientExitType.ToString(), _exitResult.MSBuildAppExitTypeString ?? string.Empty); 637envVars[(string)envVar.Key] = (envVar.Value as string) ?? string.Empty;
BackEnd\Components\Communications\LogMessagePacket.cs (2)
276writer.Write(kvp.Key ?? string.Empty); 277writer.Write(kvp.Value ?? string.Empty);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
1178launchData.CommandLineArgs ?? string.Empty, 1185return string.Empty;
BackEnd\Components\Logging\LoggingService.cs (1)
1053string.Empty /*No parameters needed as we are forwarding all events*/,
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
329string message = String.Empty; 363string message = String.Empty;
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
143string assemblyPath = args.LoadedAssembly.IsDynamic ? string.Empty : args.LoadedAssembly.Location;
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
408itemMetadataValues[metadataQualifiedName] = String.Empty;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
743return GetEscapedValueIfPresent(specifiedItemType, name) ?? String.Empty;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (2)
40internal static string SkipTargetUpToDateInputs = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("SkipTargetUpToDateInputs", string.Empty); 41internal static string SkipTargetUpToDateOutputs = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("SkipTargetUpToDateOutputs", string.Empty);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
457RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, String.Empty);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
493MSBuildEventSource.Log.TargetStop(currentTargetEntry.Name, currentTargetEntry.Result?.TargetResultCodeToString() ?? string.Empty);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (7)
584string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.Empty); 585string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.Empty); 589if (msbuildRuntime != string.Empty || msbuildArchitecture != string.Empty) 591msbuildArchitecture = msbuildArchitecture == string.Empty ? XMakeAttributes.MSBuildArchitectureValues.any : msbuildArchitecture.Trim(); 592msbuildRuntime = msbuildRuntime == string.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : msbuildRuntime.Trim(); 805ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty);
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (4)
44MSBuildEventSource.Log.CachedSdkResolverServiceResolveSdkStart(sdk.Name, solutionPath ?? string.Empty, projectPath ?? string.Empty); 82MSBuildEventSource.Log.CachedSdkResolverServiceResolveSdkStop(sdk.Name, solutionPath ?? string.Empty, projectPath ?? string.Empty, result.Success, wasResultCached);
BackEnd\Components\SdkResolution\DefaultSdkResolver.cs (1)
34? factory.IndicateSuccess(sdkPath, string.Empty)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (2)
208ProjectErrorUtilities.ThrowInvalidProject(location, "SdkResolverDllInManifestMissing", pathToManifest, string.Empty); 305MSBuildEventSource.Log.SdkResolverLoadResolversStop(manifest.DisplayName ?? string.Empty, resolvers.Count);
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
371MSBuildEventSource.Log.SdkResolverResolveSdkStop(sdkResolver.Name, sdk.Name, solutionPath ?? string.Empty, projectPath ?? string.Empty, result?.Path ?? string.Empty, result?.Success ?? false);
BackEnd\Node\OutOfProcNode.cs (1)
635buildEvent?.GetType().Name ?? string.Empty);
BackEnd\Shared\BuildResult.cs (1)
727additionalEntries.Add(SpecialKeyForVersion, String.Empty);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
610setParameters[parameter.Key] = String.Empty;
BuildCheck\API\CheckRule.cs (1)
87public string HelpLinkUri { get; } = string.Empty;
BuildCheck\Checks\ExecCliBuildCheck.cs (2)
70var execCommandValue = commandArgument.Value?.ToString() ?? string.Empty; 141knownBuildCommand = string.Empty;
BuildCheck\Checks\PropertiesUsageCheck.cs (2)
152writeData.PropertyName, writeData.ElementLocation?.LocationString ?? string.Empty)); 164writeData.PropertyName, writeData.ElementLocation?.LocationString ?? string.Empty));
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
473evr.Message ?? string.Empty, 595projectFullPath = string.Empty;
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (1)
26new(string.Empty, CheckConfiguration.Default.EvaluationCheckScope!.Value,
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
16public static CustomConfigurationData Null { get; } = new(string.Empty);
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
51while (editorConfigFilePath != string.Empty)
BuildCheck\OM\BuildFinishedCheckData.cs (1)
10public class BuildFinishedCheckData() : CheckData(string.Empty, null)
Collections\LookasideStringInterner.cs (1)
106EmptyStringIndex => String.Empty,
Construction\ProjectElementContainer.cs (2)
591return string.Empty; 600return string.Empty;
Construction\ProjectExtensionsElement.cs (2)
108return idElement == null ? String.Empty : Internal.Utilities.RemoveXmlNamespace(idElement.InnerXml); 139idElement.InnerXml.Replace(ProjectRootElement.EmptyProjectFileXmlNamespace, string.Empty) != value)
Construction\ProjectRootElement.cs (5)
153private string _dirtyParameter = String.Empty; 211(projectFileOptions & NewProjectFileOptions.IncludeXmlDeclaration) != 0 ? EmptyProjectFileXmlDeclaration : string.Empty, 212(projectFileOptions & NewProjectFileOptions.IncludeToolsVersion) != 0 ? EmptyProjectFileToolsVersion : string.Empty, 213(projectFileOptions & NewProjectFileOptions.IncludeXmlNamespace) != 0 ? EmptyProjectFileXmlNamespace : string.Empty); 398get => Link != null ? RootLink.DirectoryPath : _directory ?? String.Empty;
Construction\ProjectTaskElement.cs (1)
308return String.Empty;
Construction\Solution\ProjectInSolution.cs (2)
409string uniqueName = String.Empty; 459string projectName = String.Empty;
Construction\Solution\SolutionFile.cs (16)
684return string.Empty; 1231proj.ProjectGuid = projGuidNode?.InnerText ?? String.Empty; 1414aspNetVirtualPath = String.Empty, 1415aspNetPhysicalPath = String.Empty, 1416aspNetTargetPath = String.Empty, 1417aspNetForce = String.Empty, 1418aspNetUpdateable = String.Empty, 1419aspNetDebug = String.Empty, 1420aspNetKeyFile = String.Empty, 1421aspNetKeyContainer = String.Empty, 1422aspNetDelaySign = String.Empty, 1423aspNetAPTCA = String.Empty, 1424aspNetFixedNames = String.Empty 1828(configurationPlatformParts.Length > 1) ? configurationPlatformParts[1] : string.Empty, 1850_defaultConfigurationName = string.Empty; 1883_defaultPlatformName = string.Empty;
Construction\Solution\SolutionProjectGenerator.cs (31)
817string.Empty, 818string.Empty, 819string.Empty, 821string.Empty, 822string.Empty, 823string.Empty, 824string.Empty, 828AddProjectBuildTask(traversalInstance, null, targetElement, string.Join(";", _targetNames), "@(ProjectReference)", string.Empty, string.Empty); 1420ProjectTargetInstance target = metaprojectInstance.AddTarget(targetName ?? "Build", String.Empty, String.Empty, outputItemAsItem, null, String.Empty, String.Empty, String.Empty, String.Empty, false /* legacy target returns behaviour */); 1425AddProjectBuildTask(traversalProject, projectConfiguration, target, targetName, EscapingUtilities.Escape(project.AbsolutePath), String.Empty, outputItem); 1433ProjectTaskInstance task = target.AddTask("MSBuild", condition, String.Empty); 1455task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 1464ProjectTaskInstance task = target.AddTask("MSBuild", Strings.WeakIntern($"'%(ProjectReference.Identity)' == '{GetMetaprojectName(project)}'"), String.Empty); 1478task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 2052string dependOnTargets = batchBuildTargets ? SolutionProjectReferenceAllTargets : string.Empty; 2053ProjectTargetInstance target = traversalProject.AddTarget(correctedTargetName, string.Empty, string.Empty, outputItemAsItem, null, string.Empty, dependOnTargets, string.Empty, string.Empty, false /* legacy target returns behaviour */); 2066ProjectTaskInstance task = target.AddTask("MSBuild", String.Empty, String.Empty); 2086task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 2488string.Empty, 2493string.Empty,
Construction\UsingTaskParameterGroupElement.cs (3)
87return AddParameter(name, String.Empty, String.Empty, String.Empty);
Definition\BuiltInMetadata.cs (3)
70return string.Empty; 100return String.Empty; 114return String.Empty;
Definition\Project.cs (5)
2113Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1} - {2}] [PC Hash {3}]", reason, FullPath, import.ImportedProject.FullPath == FullPath ? String.Empty : import.ImportedProject.FullPath, ProjectCollection.GetHashCode())); 2848string originalValue = (existing == null) ? String.Empty : ((IProperty)existing).EvaluatedValueEscaped; 2858string displayValue = escapedValue.Substring(0, Math.Min(escapedValue.Length, 75)) + ((escapedValue.Length > 75) ? "..." : String.Empty); 2865string displayOriginalValue = originalValue.Substring(0, Math.Min(originalValue.Length, 75)) + ((originalValue.Length > 75) ? "..." : String.Empty); 4541string value = property?.EvaluatedValue ?? String.Empty;
Definition\ProjectImportPathMatch.cs (1)
23public static readonly ProjectImportPathMatch None = new ProjectImportPathMatch(string.Empty, new List<string>());
Definition\ProjectItem.cs (3)
510return value ?? String.Empty; 748return value ?? String.Empty; 1116return value ?? String.Empty;
Definition\ProjectItemDefinition.cs (1)
226return ((IMetadataTable)this).GetEscapedValueIfPresent(specifiedItemType, name) ?? String.Empty;
Definition\ProjectMetadata.cs (1)
150_evaluatedValueEscaped = String.Empty;
Definition\ProjectProperty.cs (1)
108EnvironmentVariableReadEventArgs args = new(Name, EvaluatedValueEscapedInternal, string.Empty, 0, 0);
Definition\Toolset.cs (1)
603String.Empty);
Definition\ToolsetConfigurationReader.cs (1)
99yield return new ToolsetPropertyDefinition(toolset.toolsVersion, string.Empty, location);
Definition\ToolsetLocalReader.cs (1)
31yield return new ToolsetPropertyDefinition(MSBuildConstants.CurrentToolsVersion, string.Empty, _sourceLocation);
Definition\ToolsetReader.cs (5)
200string.Empty)); 227string.Empty)); 241string.Empty)); 595return string.Empty; 673public static readonly MSBuildExtensionsPathReferenceKind None = new MSBuildExtensionsPathReferenceKind(String.Empty);
ElementLocation\ElementLocation.cs (4)
34public static ElementLocation Empty { get; } = new FileOnly(string.Empty); 193string normalizedFile = file ?? string.Empty; 225string normalizedFile = file ?? string.Empty; 252? string.Empty
ElementLocation\RegistryLocation.cs (1)
51get { return String.Empty; }
ElementLocation\XmlAttributeWithLocation.cs (1)
77if (!String.Equals(_elementLocation.File, ownerDocumentWithLocation.FullPath ?? String.Empty, StringComparison.OrdinalIgnoreCase))
ElementLocation\XmlDocumentWithLocation.cs (3)
242text = String.Empty; 258text = String.Empty; 283data = String.Empty;
ElementLocation\XmlElementWithLocation.cs (1)
97if (!String.Equals(_elementLocation.File, ownerDocumentWithLocation.FullPath ?? String.Empty, StringComparison.OrdinalIgnoreCase))
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
128string expandedValue = String.Empty;
Evaluation\Conditionals\Scanner.cs (1)
591string name = String.Empty;
Evaluation\Conditionals\StringExpressionNode.cs (1)
80_cachedExpandedValue = String.Empty;
Evaluation\Evaluator.cs (10)
310_streamImports.Add(string.Empty); 354string projectFile = root.ProjectFileLocation.File ?? string.Empty; 2193ImportedProjectFile = string.Empty, 2202ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValue", string.Empty, XMakeAttributes.project, XMakeElements.import); 2299string importedBy = importElement.ContainingProject.FullPath ?? string.Empty; 2320string parenthesizedProjectLocation = string.Empty; 2809string definingProject = _projectRootElement.FullPath ?? string.Empty; 2813I item = _itemFactory.CreateItem(importedProject.EscapedFullPath ?? string.Empty, definingProject); 2818item.SetMetadata(importingPathMetadata, importingElement.ContainingProject.EscapedFullPath ?? string.Empty); 2884string definingProject = _projectRootElement.FullPath ?? string.Empty;
Evaluation\EvaluatorMetadataTable.cs (1)
58return GetEscapedValueIfPresent(itemType, name) ?? String.Empty;
Evaluation\Expander.cs (3)
252return String.Empty; 273return String.Empty; 571return string.Empty;
Evaluation\Expander.Function.cs (9)
232ProjectErrorUtilities.VerifyThrowInvalidProject(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 246ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 260ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 313ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 370object functionResult = String.Empty; 487string startingDirectory = String.IsNullOrWhiteSpace(elementLocation.File) ? String.Empty : Path.GetDirectoryName(elementLocation.File); 973ProjectErrorUtilities.VerifyThrowInvalidProject(netPropertyName.Length > 0, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 992ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 1067string parameters = String.Empty;
Evaluation\Expander.ItemExpander.cs (3)
574result = string.Empty; 627return string.Empty; 632return value ?? string.Empty;
Evaluation\Expander.ItemExpander.Transforms.cs (5)
186string baseDirectoryToUse = item.Item.ProjectDirectory ?? FileUtilities.CurrentThreadWorkingDirectory ?? String.Empty; 276string baseDirectoryToUse = item.Item.ProjectDirectory ?? FileUtilities.CurrentThreadWorkingDirectory ?? String.Empty; 361string baseDirectoryToUse = item.Item.ProjectDirectory ?? FileUtilities.CurrentThreadWorkingDirectory ?? String.Empty; 440else if (metadataValue != String.Empty && includeNullEntries) 825string.Empty,
Evaluation\Expander.PropertyExpander.cs (16)
204propertyValue = string.Empty; 331return string.Empty; 341return string.Empty; 428ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty); 454ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "InvalidFunctionPropertyExpression", propertyBody, string.Empty); 494return String.Empty; 529convertedString = string.Empty; 598propertyValue = String.Empty; 624return String.Empty; 629return String.Empty; 632string value = String.Empty; 681return string.Empty; 693ProjectErrorUtilities.VerifyThrowInvalidProject(firstAtSignOffset == lastAtSignOffset, _elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty); 702string result = String.Empty; 732return string.Empty; 747result = String.Empty;
Evaluation\Expander.SpanBasedConcatenator.cs (1)
101? _builder?.ToString() ?? string.Empty
Evaluation\Expander\WellKnownFunctions.cs (3)
42: string.Empty; 951string projectPath = properties.GetProperty("MSBuildProjectFullPath")?.EvaluatedValue ?? string.Empty; 980returnVal = String.Empty;
Evaluation\IntrinsicFunctions.cs (3)
299return string.Empty; 694return string.Empty; 847subKeyName = string.Empty;
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
118MSBuildEventSource.Log.ExpandGlobStart(_rootDirectory ?? string.Empty, glob, string.Join(", ", excludePatternsForGlobs)); 135MSBuildEventSource.Log.ExpandGlobStop(_rootDirectory ?? string.Empty, glob, string.Join(", ", excludePatternsForGlobs));
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
159return string.Empty;
Evaluation\ParserIgnoreConfiguration.cs (1)
152sb.Append($" {kvp.Key} ({kvp.Value} occurrence{(kvp.Value > 1 ? "s" : string.Empty)});");
Evaluation\Preprocessor.cs (4)
282string condition = importCondition.Length > 0 ? $" Condition=\"{importCondition}\"" : String.Empty; 285string sdk = importSdk.Length > 0 ? $" {XMakeAttributes.sdk}=\"{importSdk}\"" : String.Empty; 288string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty; 340string importGroupTag = "<ImportGroup" + ((importGroupCondition.Length > 0) ? " Condition=\"" + importGroupCondition + "\"" : String.Empty) + ">";
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (4)
99evaluationLocation.ParentId?.ToString() ?? string.Empty, 101evaluationLocation.File == null ? string.Empty : System.IO.Path.GetFileName(evaluationLocation.File), 102evaluationLocation.Line?.ToString() ?? string.Empty, 103NormalizeExpression(evaluationLocation.ElementDescription, evaluationLocation.Kind) ?? string.Empty,
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (3)
236string.Empty, 310location == null ? GetPropertySourceName(source) : string.Empty, 470propertySource: string.Empty,
Evaluation\StringMetadataTable.cs (1)
51return GetEscapedValueIfPresent(itemType, name) ?? String.Empty;
Evaluation\ToolsetElement.cs (4)
278string locationString = String.Empty; 296_previouslySeenOS.Add(os, string.Empty); 466_previouslySeenPropertyNames.Add(propertyName, string.Empty); 637_previouslySeenToolsVersions.Add(toolsVersion, string.Empty);
Globbing\MSBuildGlob.cs (4)
263return Parse(string.Empty, fileSpec); 292=> new MatchInfoResult(false, string.Empty, string.Empty, string.Empty);
Graph\ProjectGraph.cs (2)
493? string.Empty 578? string.Empty
Graph\ProjectInterpretation.cs (1)
187if (selectedPlatform.Equals(String.Empty))
Instance\HostObjectException.cs (1)
43+ (innerException == null ? string.Empty : ($"\n=============\n{innerException}\n\n")),
Instance\HostServices.cs (1)
285if (_projectAffinities.TryGetValue(String.Empty, out affinity))
Instance\ProjectInstance.cs (10)
1274get => _projectFileLocation?.File ?? string.Empty; 2040unescapedValue = String.Empty; 2050unescapedValue = String.Empty; 2987condition ?? String.Empty, 2988inputs ?? String.Empty, 2989outputs ?? String.Empty, 2991keepDuplicateOutputs ?? String.Empty, 2992dependsOnTargets ?? String.Empty, 2993beforeTargets ?? String.Empty, 2994afterTargets ?? String.Empty,
Instance\ProjectItemDefinitionInstance.cs (1)
175return ((IMetadataTable)this).GetEscapedValueIfPresent(specifiedItemType, name) ?? String.Empty;
Instance\ProjectItemInstance.cs (6)
579return value ?? String.Empty; 1451return value ?? String.Empty; 1994_directMetadata = DirectMetadata.SetItem(name, metadataValueEscaped ?? string.Empty); 2028_directMetadata = DirectMetadata.SetItem(name, evaluatedValueEscaped ?? string.Empty); 2096: string.Empty; 2521return value ?? String.Empty;
Instance\ProjectMetadataInstance.cs (1)
77_escapedValue = escapedValue ?? String.Empty;
Instance\ProjectPropertyInstance.cs (1)
105EnvironmentVariableReadEventArgs args = new(Name, _escapedValue, string.Empty, 0, 0);
Instance\ProjectTargetInstance.cs (6)
528ProjectTaskInstance task = AddTask(taskName, condition, continueOnError, String.Empty, String.Empty); 544ProjectTaskInstance task = new ProjectTaskInstance(taskName, _location, condition ?? String.Empty, continueOnError ?? String.Empty, msbuildRuntime ?? String.Empty, msbuildArchitecture ?? String.Empty);
Instance\ProjectTaskInstance.cs (6)
142condition == string.Empty ? null : ElementLocation.Empty, 143continueOnError == string.Empty ? null : ElementLocation.Empty, 144msbuildRuntime == string.Empty ? null : ElementLocation.Empty, 145msbuildArchitecture == string.Empty ? null : ElementLocation.Empty) 341_outputs.Add(new ProjectTaskOutputItemInstance(itemName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.Empty, ElementLocation.Empty, ElementLocation.Empty, condition == null ? null : ElementLocation.Empty)); 354_outputs.Add(new ProjectTaskOutputPropertyInstance(propertyName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.Empty, ElementLocation.Empty, ElementLocation.Empty, condition == null ? null : ElementLocation.Empty));
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
269ProjectErrorUtilities.VerifyThrowInvalidProject(_loadedType != null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
Instance\TaskFactories\TaskHostTask.cs (4)
376taskLocation = _taskType?.Assembly?.AssemblyLocation ?? string.Empty; 709string.Empty]; 736_taskLoggingContext.LogError(_taskLocation, "TaskHostExitedPrematurely", (nodeShutdown.Exception == null) ? String.Empty : nodeShutdown.Exception.ToString()); 926e is NodeFailedToLaunchException nodeFailedExc ? nodeFailedExc.ErrorCode : string.Empty,
Instance\TaskFactoryWrapper.cs (3)
294namesOfPropertiesWithAmbiguousMatches[propertyInfo.Name] = String.Empty; 305namesOfPropertiesWithRequiredAttribute[propertyInfo.Name] = String.Empty; 316namesOfPropertiesWithOutputAttribute[propertyInfo.Name] = String.Empty;
Instance\TaskRegistry.cs (1)
1365string message = String.Empty;
Instance\TaskRegistry.UsingTaskInfo.cs (4)
196taskFactoryParameters = (runtime != string.Empty) || (architecture != string.Empty) 198runtime == string.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime, 199architecture == string.Empty ? XMakeAttributes.MSBuildArchitectureValues.any : architecture)
Logging\BinaryLogger\BinaryLogger.cs (3)
859=> (PathParameterExpander ?? ExpandPathParameter)(string.Empty); 915return TryInterpretPathParameterCore(parameter, () => ExpandPathParameter(string.Empty), out filePath); 964return string.Empty;
Logging\BinaryLogger\BuildEventArgsReader.cs (21)
351: string.Empty); 364: string.Empty); 649string value = GetStringFromRecord(list[i].valueIndex) ?? string.Empty; 664private readonly StringReadEventArgs stringReadEventArgs = new StringReadEventArgs(string.Empty); 676string requestedAssemblyName = ReadOptionalString() ?? string.Empty; 701fields.SenderName ?? string.Empty, 719sourceItemSpecs[i] = ReadOptionalString() ?? string.Empty; 722return new AssemblyConflictDependee(dependeeFullPath ?? string.Empty, sourceItemSpecs); 737primarySourceItemSpecs[i] = ReadOptionalString() ?? string.Empty; 748fusionName ?? string.Empty, 766fields.SenderName ?? string.Empty, 781string simpleAssemblyName = ReadOptionalString() ?? string.Empty; 791fields.Code ?? string.Empty, 796fields.SenderName ?? string.Empty, 946var projectFile = ReadDeduplicatedString() ?? string.Empty; 962var projectFile = ReadDeduplicatedString() ?? string.Empty; 1295fields.Extended?.ExtendedType ?? string.Empty, 1390fields.Extended?.ExtendedType ?? string.Empty, 1429environmentVariableName ?? string.Empty, 1431fileName ?? string.Empty, 2055return string.Empty;
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
1186WriteDeduplicatedString(absolutePath.OriginalValue ?? string.Empty);
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
75string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidFileLoggerFile", string.Empty, ResourceUtilities.GetResourceString("logfilePathNullOrEmpty"));
Logging\OptimizedStringIndenter.cs (1)
59return string.Empty;
Logging\ParallelLogger\ParallelConsoleLogger.cs (8)
700string projectName = startedEvent.ProjectFile ?? string.Empty; 1032string projectConfigurationDescription = String.Empty; 1284nonNullMessage ??= EventArgsFormatting.GetLocalizedMessage(e) ?? string.Empty; 1338string targetName = string.Empty; 1454string currentProjectFile = startedEvent.ProjectFile ?? string.Empty; 1528string current = projectStartedEvent.ProjectFile ?? string.Empty; 1617string context = string.Empty; 1631prefixString = $"{ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildEventContext", context, string.Empty)} ";
Logging\ParallelLogger\ParallelLoggerHelpers.cs (1)
546_targetName = targetName ?? string.Empty;
Logging\SimpleErrorLogger.cs (1)
40get => string.Empty;
Logging\TerminalLogger\TerminalLogger.cs (7)
291string tlEnvVariable = Environment.GetEnvironmentVariable("MSBUILDTERMINALLOGGER") ?? string.Empty; 639Terminal.WriteLine(string.Empty); 710Terminal.WriteLine(string.Empty); 872Terminal.WriteLine(string.Empty); 1003string.Empty; 1716indent: string.Empty, 1770message ??= string.Empty;
Logging\TerminalLogger\TerminalNodesFrame.cs (1)
80targetPrefix = target = string.Empty;
parent\Shared\CanonicalError.cs (1)
298string messageOverflow = String.Empty;
parent\Shared\LogMessagePacketBase.cs (1)
1019string responseFilePath = String.Empty;
parent\Shared\PlatformNegotiation.cs (3)
29return string.Empty; 42string buildProjectReferenceAs = string.Empty; 95buildProjectReferenceAs = string.Empty;
parent\Shared\PropertyParser.cs (2)
39string propertyName = String.Empty; 40string propertyValue = String.Empty;
parent\Shared\StringExtensions.cs (1)
24newValue = string.Empty;
parent\Shared\TaskHostBuildRequest.cs (1)
90result[i]![(string)entry.Key] = entry.Value?.ToString() ?? string.Empty;
parent\Shared\TaskParameter.cs (6)
246return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 632_customEscapedMetadata[(string)entry.Key] = (string)entry.Value ?? string.Empty; 652_customEscapedMetadata[(string)entry.Key] = EscapingUtilities.Escape((string)entry.Value) ?? string.Empty; 704return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 795_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 936return string.Empty;
parent\Shared\TaskParameterValueStringConverter.cs (3)
17return string.Empty; 22return absolutePath.Value ?? string.Empty; 35return Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty;
parent\Shared\Tracing.cs (2)
42private static string s_slot = String.Empty; 118s_slot = String.Empty;
parent\Shared\TypeLoader.cs (3)
315? propertyInfo.DeclaringType?.Assembly.Location ?? string.Empty 316: string.Empty; 929targetFramework = targetFrameworkAttr.ConstructorArguments[0].Value as string ?? string.Empty;
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
Utilities\EngineFileUtilities.cs (1)
193string excludeFileSpec = string.Empty;
Utilities\Utilities.cs (6)
202return String.Empty; 208return String.Empty; 324return XmlnsPattern.Replace(xml, String.Empty); 551string localAppData = String.Empty; 708yield return new(property.Name, property.EvaluatedValue ?? string.Empty); 712yield return new(key, dictionaryEntry.Value as string ?? string.Empty);
Utilities\XmlUtilities.cs (1)
37(XmlElementWithLocation)((XmlDocumentWithLocation)oldElement.OwnerDocument).CreateElement(newElementName, xmlNamespace ?? string.Empty, oldElement.Location);
Xml\ProjectXmlUtilities.cs (2)
133String.Empty, 262return returnNullForNonexistentAttributes ? null : String.Empty;
Xml\XmlReaderExtension.cs (1)
87string uri = new UriBuilder(Uri.UriSchemeFile, string.Empty) { Path = file }.ToString();
Microsoft.Build.Framework (138)
AssemblyReferenceConflictEventArgs.cs (7)
87sourceItemSpecs[i] = reader.ReadOptionalString() ?? string.Empty; 90return new AssemblyConflictDependee(dependeeFullPath ?? string.Empty, sourceItemSpecs); 190primarySourceItemSpecs[i] = reader.ReadOptionalString() ?? string.Empty; 201fusionName ?? string.Empty, 484return Message ?? string.Empty; 569public string SimpleAssemblyName { get; private set; } = string.Empty; 614return Message ?? string.Empty;
AssemblyResolutionSearchTraceEventArgs.cs (1)
232public string RequestedAssemblyName { get; private set; } = string.Empty;
BackEnd\CommunicationsUtilities.cs (1)
301string value = Strings.WeakIntern((string?)entry.Value ?? string.Empty);
BackEnd\Handshake.cs (2)
162return string.Empty; 167return disabledWave == ChangeWaves.EnableAllFeatures ? string.Empty : disabledWave.ToString();
BackEnd\InterningBinaryReader.cs (1)
94return String.Empty;
BackEnd\ServerNodeHandshake.cs (1)
80.Replace("=", string.Empty);
BinaryTranslator.cs (4)
800string key = string.Empty; 848if (nullable && !TranslateNullable(string.Empty)) 887if (nullable && !TranslateNullable(string.Empty)) 1479string value = string.Empty;
BuildCheck\BuildCheckEventArgs.cs (2)
123: this(string.Empty, string.Empty)
BuildEnvironmentHelper.cs (1)
408NativeMethods.ProcessorArchitecture == NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
BuiltInMetadataExpander.cs (1)
69? escapedRecursiveDir ?? string.Empty
CriticalTaskException.cs (1)
18: base(string.Empty, innerException)
EnvironmentVariableReadEventArgs.cs (1)
77File = reader.ReadOptionalString() ?? string.Empty;
EscapingUtilities.cs (1)
123return string.Empty;
FileUtilities_TempFiles.cs (3)
89string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 178extension = string.Empty; 199File.WriteAllText(file, string.Empty);
FileUtilities.cs (2)
1706return string.Empty; 1728return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
GeneratedFileUsedEventArgs.cs (1)
24: base(string.Empty, null, null, MessageImportance.Low)
Globbing\MSBuildPathMatcher.cs (2)
147FileMatcher.RegularExpressionFromFileSpec(string.Empty, string.Empty, filePattern),
IItemData.cs (1)
62EvaluatedInclude = value.ToString() ?? string.Empty;
ImmutableDictionaryExtensions.cs (1)
39builder[item.Key] = item.Value ?? string.Empty;
InternalErrorException.cs (2)
62? String.Empty 113string innerMessage = (innerException == null) ? String.Empty : innerException.ToString();
InterningReadTranslator.cs (1)
46if (!_translator.TranslateNullable(string.Empty))
InterningWriteTranslator.cs (1)
30private static readonly string IsPathMarker = string.Empty;
ItemSpecModifiers.cs (8)
437return string.Empty; 460return string.Empty; 500currentDirectory ??= FileUtilities.CurrentThreadWorkingDirectory ?? string.Empty; 534return string.Empty; 550return string.Empty; 603: string.Empty; 608: string.Empty; 613: string.Empty;
Loader\CoreCLRAssemblyLoader.cs (2)
178? new[] { string.Empty } 182: [assemblyName.CultureName, string.Empty])
Loader\LoadedType.cs (3)
128string loadedAssemblyLocation = RuntimeFeature.IsDynamicCodeSupported ? loadedAssembly.Location : string.Empty; 255PropertyAssemblyQualifiedNames[i] = propertyType.AssemblyQualifiedName ?? string.Empty; 259PropertyAssemblyQualifiedNames[i] = string.Empty;
Loader\MSBuildLoadContext.cs (2)
79? (string[])[string.Empty] 83: [assemblyName.CultureName, string.Empty])
LoggersRegisteredEventArgs.cs (1)
80return string.Empty;
MSBuildEventSource.cs (2)
345WriteEvent(37, projectPath ?? string.Empty, configurationId, globalRequestId, nodeRequestId); 355WriteEvent(38, projectPath ?? string.Empty, configurationId, globalRequestId, nodeRequestId);
MultiThreadedTaskEnvironmentDriver.cs (4)
110string systemTempDirectory = GetEnvironmentVariable("SystemTemp") ?? string.Empty; 119string tempDirectoryWindows = GetEnvironmentVariable("TMP") ?? string.Empty; 122tempDirectoryWindows = GetEnvironmentVariable("TEMP") ?? string.Empty; 127tempDirectoryWindows = GetEnvironmentVariable("USERPROFILE") ?? string.Empty;
MutableTaskItem.cs (2)
26public string GetMetadata(string metadataName) => _metadata.TryGetValue(metadataName, out string? value) ? value ?? string.Empty : string.Empty;
NativeMethods.cs (4)
614s_frameworkCurrentPath = string.Empty; 623?? string.Empty; 641if (dir != string.Empty) 646s_frameworkBasePath = dir ?? string.Empty;
Profiler\EvaluationLocation.cs (5)
252$"{Id}\t{ParentId?.ToString() ?? string.Empty}\t{EvaluationPassDescription ?? string.Empty}\t{File ?? string.Empty}\t{Line?.ToString() ?? string.Empty}\t{ElementName ?? string.Empty}\tDescription:{ElementDescription}\t{this.EvaluationPassDescription}";
ProjectStartedEventArgs.cs (1)
142this.targetNames = targetNames ?? String.Empty;
ReuseableStringBuilder.cs (1)
72return String.Empty;
Sdk\SdkResultItem.cs (1)
23ItemSpec = string.Empty;
SolutionConfiguration.cs (1)
116public static SolutionConfiguration Empty { get; } = new SolutionConfiguration(string.Empty);
TargetStartedEventArgs.cs (1)
47: this(message, helpKeyword, targetName, projectFile, targetFile, String.Empty, TargetBuiltReason.None, DateTime.UtcNow)
TaskHostParameters.cs (9)
79StringComparer.OrdinalIgnoreCase.Equals(Runtime ?? string.Empty, other.Runtime ?? string.Empty) 80&& StringComparer.OrdinalIgnoreCase.Equals(Architecture ?? string.Empty, other.Architecture ?? string.Empty) 91hash = hash * 31 + comparer.GetHashCode(Runtime ?? string.Empty); 92hash = hash * 31 + comparer.GetHashCode(Architecture ?? string.Empty); 163{ nameof(Runtime), Runtime ?? string.Empty }, 164{ nameof(Architecture), Architecture ?? string.Empty }, 165{ nameof(TaskHostFactoryExplicitlyRequested), TaskHostFactoryExplicitlyRequested?.ToString() ?? string.Empty },
TaskItem_T.cs (1)
143return (_backingItem as ITaskItem2)?.GetMetadataValueEscaped(metadataName) ?? string.Empty;
TaskParameterEventArgs.cs (1)
225writer.Write(absolutePath.OriginalValue ?? string.Empty);
Telemetry\TelemetryDataUtils.cs (1)
155return GetHashed(typeName ?? string.Empty);
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
27writer.Write(entry.Value.TaskFactoryName ?? string.Empty); 28writer.Write(entry.Value.TaskHostRuntime ?? string.Empty);
Utilities\EventArgsFormatting.cs (1)
361message = String.Empty;
Utilities\FileMatcher.cs (30)
598pathRoot = string.Empty; 613longParts[i - startingElement] = string.Empty; 723fixedDirectoryPart = string.Empty; 724wildcardDirectoryPart = string.Empty; 753wildcardDirectoryPart = string.Empty; 774fixedDirectoryPart = string.Empty; 1284recursionState.RemainingWildcardDirectory = indexOfNextSlash != -1 ? recursionState.RemainingWildcardDirectory.Substring(indexOfNextSlash + 1) : string.Empty; 1651: string.Empty; 1687fixedDirectoryPart = string.Empty; 1688wildcardDirectoryPart = string.Empty; 1689filenamePart = string.Empty; 1780internal string wildcardDirectoryPart = string.Empty; 2023wildcardDirectoryPart = string.Empty; 2024filenamePart = string.Empty; 2072return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), SearchAction.None, string.Empty, null); 2106string excludeFileSpec = string.Empty; 3015return ([], action, string.Empty, null); 3020return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), action, string.Empty, null); 3025return ([], action, string.Empty, null); 3044return ([], action, string.Empty, null); 3058string trackedExcludeFileSpec = string.Empty; 3133relativeDirectory: string.Empty, 3714return string.Empty; 3774return ([], action, string.Empty, null); 3778return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), action, string.Empty, null); 3782return ([], action, string.Empty, null); 3798string trackExcludeFileSpec = string.Empty; 3929string includeFilespec = state.SearchData.Filespec ?? string.Empty; 3930string excludeFilespec = excludeState.SearchData.Filespec ?? string.Empty; 4012if (possibleParent == string.Empty)
Utilities\FrameworkLocationHelper.cs (1)
836var frameworkPath = Path.Combine(NativeMethods.FrameworkBasePath, prefix ?? string.Empty);
Utilities\MessageParser.cs (1)
205: string.Empty;
Utilities\ProcessExtensions.cs (1)
161return string.Empty;
Utilities\StringBuilderHelper.cs (2)
96/// back to the <see cref="StringBuilderCache"/>. Subsequent calls return <see cref="string.Empty"/>. 105: string.Empty;
ValueTypeParser.cs (3)
131return string.Empty; 137return absolutePath.Value ?? string.Empty; 152return Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty;
XMakeAttributes.cs (9)
162Assumed.True(runtimeA != string.Empty && runtimeB != string.Empty, "We should never get an empty string passed to this method"); 206Assumed.True(runtimeA != string.Empty && runtimeB != string.Empty, "We should never get an empty string passed to this method"); 279Assumed.True(architectureA != string.Empty && architectureB != string.Empty, "We should never get an empty string passed to this method"); 346Assumed.True(architectureA != string.Empty && architectureB != string.Empty, "We should never get an empty string passed to this method"); 421string currentArchitecture = string.Empty;
Microsoft.Build.NuGetSdkResolver (24)
SdkResolverEventSource.cs (24)
36WriteEvent(1, path ?? string.Empty, projectFullPath ?? string.Empty, solutionFullPath ?? string.Empty); 42WriteEvent(2, path ?? string.Empty, projectFullPath ?? string.Empty, solutionFullPath ?? string.Empty); 50WriteEvent(3, name ?? string.Empty, version ?? string.Empty); 56WriteEvent(4, name ?? string.Empty, version ?? string.Empty); 64WriteEvent(5, id ?? string.Empty, version ?? string.Empty); 70WriteEvent(6, id ?? string.Empty, version ?? string.Empty, installPath ?? string.Empty, success); 92WriteEvent(9, id ?? string.Empty, version ?? string.Empty); 98WriteEvent(10, id ?? string.Empty, version ?? string.Empty); 106WriteEvent(11, logLevel, message ?? string.Empty); 112WriteEvent(12, logLevel, message ?? string.Empty); 118WriteEvent(13, logLevel, message ?? string.Empty); 124WriteEvent(14, logLevel, message ?? string.Empty); 130WriteEvent(15, logLevel, message ?? string.Empty);
Microsoft.Build.TaskAuthoring.Analyzer (3)
PreferTypedParameterAnalyzer.cs (3)
401propertyKey = string.Empty; 402suggestedType = string.Empty; 472: string.Empty;
Microsoft.Build.Tasks.CodeAnalysis (9)
src\roslyn\src\Compilers\Core\MSBuildTask\CanonicalError.cs (1)
263string messageOverflow = String.Empty;
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
64ConfigFileContents = string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (4)
385var eventName = ReadLengthPrefixedString(reader) ?? string.Empty; 390var key = ReadLengthPrefixedString(reader) ?? string.Empty; 391var value = ReadLengthPrefixedString(reader) ?? string.Empty; 429Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
536environmentVariables[key] = string.Empty; 725.Replace("=", string.Empty);
Microsoft.Build.Tasks.Core (181)
AddToWin32Manifest.cs (3)
30private string _outputDirectory = string.Empty; 31private string _supportedArchitectures = string.Empty; 32private string _generatedManifestFullPath = string.Empty;
AppConfig\AppConfigException.cs (1)
20private string fileName = String.Empty;
AssemblyDependency\AssemblyAttributes.cs (8)
11public string AssemblyFullPath { get; set; } = string.Empty; 13public string AssemblyName { get; set; } = string.Empty; 15public string DefaultAlias { get; set; } = string.Empty; 17public string Description { get; set; } = string.Empty; 19public string Culture { get; set; } = string.Empty; 21public string RuntimeVersion { get; set; } = string.Empty; 32public string PublicHexKey { get; set; } = string.Empty; 40public string TargetFrameworkMoniker { get; set; } = string.Empty;
AssemblyDependency\AssemblyInformation.cs (13)
305imageRuntimeVersion = String.Empty; 999return string.Empty; 1035return string.Empty; 1048return string.Empty; 1057return string.Empty; 1068return string.Empty; // There can't be more than 96 sections, something is wrong 1097return string.Empty; 1106return string.Empty; // No CLI section 1148return string.Empty; 1162return string.Empty; 1172return string.Empty; 1180return string.Empty; 1200return string.Empty;
AssemblyDependency\AssemblyResolution.cs (1)
66resolvedSearchPath = String.Empty;
AssemblyDependency\GenerateBindingRedirects.cs (1)
251var cultureValue = culture?.Value ?? String.Empty;
AssemblyDependency\Reference.cs (8)
88private string _fullPath = String.Empty; 93private string _directoryName = String.Empty; 98private string _fileNameWithoutExtension = String.Empty; 103private string _fullPathWithoutExtension = String.Empty; 507ResolvedSearchPath = String.Empty; 589internal string AssemblyFolderKey { get; set; } = String.Empty; 809internal string SDKName { get; private set; } = String.Empty; 829internal string ResolvedSearchPath { get; set; } = String.Empty;
AssemblyDependency\ReferenceTable.cs (5)
514reference.FullPath = String.Empty; 1008: string.Empty; 1334string resolvedSearchPath = String.Empty; 1452subsetName = String.Empty; 2897yield return new KeyValuePair<string, string>(ItemMetadataNames.version, reference.ReferenceVersion == null ? string.Empty : reference.ReferenceVersion.ToString());
AssemblyDependency\ResolveAssemblyReference.cs (15)
219private string _targetedFrameworkMoniker = String.Empty; 226private string _projectTargetFrameworkAsString = String.Empty; 227private string _targetedRuntimeVersionRawValue = String.Empty; 234private string _profileName = String.Empty; 732_appConfigValueIsEmptyString = value == string.Empty 1315string details = string.Empty; 1899string message = String.Empty; 2347string details = string.Empty; 2354output = LogFoundConflictsWarning(assemblyName.Name, lossReason, victorDetails, victimDetails, materializeMessage: OutputUnresolvedAssemblyConflicts) ?? string.Empty; 2367: string.Empty; 2387details = detailsEvent.Message ?? string.Empty; 2695Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.InvalidParameter", "TargetFrameworkMoniker", _targetedFrameworkMoniker, String.Empty); 2922string.Empty, 3744return String.Empty; 3789return string.Empty;
AssemblyDependency\Resolver.cs (1)
342throw new InvalidParameterValueException("SearchPaths", fullPathToDirectory + (fullPathToDirectory.EndsWith("\\", StringComparison.OrdinalIgnoreCase) ? String.Empty : "\\") + baseName, e.Message);
BootstrapperUtil\BootstrapperBuilder.cs (1)
1076string copyAllPackageFiles = String.Empty;
BootstrapperUtil\BuildResults.cs (1)
35public string KeyFile { get; private set; } = string.Empty;
BootstrapperUtil\Util.cs (4)
92string probed = ProbeRegistryDefaultPath(String.Empty); 121? String.Empty 164return p ?? String.Empty; 186return defaultPath ?? String.Empty;
CombinePath.cs (1)
59BasePath = String.Empty;
Copy.cs (3)
331string errorMessage = string.Empty; 925resultPathOperation = string.Empty; 1110destinationFileState.Path.OriginalValue, retries, RetryDelayMilliseconds, String.Empty /* no details */,
CreateItem.cs (2)
145string itemSpec = string.Empty; 225uniqueItems[item.ItemSpec] = String.Empty;
Culture.cs (1)
38string parentName = dependentUponFilename ?? String.Empty;
Exec.cs (1)
34Command = string.Empty;
FileIO\WriteLinesToFile.cs (1)
94string contentsAsString = string.Empty;
FindInvalidProjectReferences.cs (1)
122platformIdentity = String.Empty;
FormatUrl.cs (1)
34OutputUrl = String.Empty;
GenerateApplicationManifest.cs (2)
94public string TargetFrameworkSubset { get; set; } = String.Empty; 96public string TargetFrameworkProfile { get; set; } = String.Empty;
GenerateManifestBase.cs (1)
469throw new ArgumentException(String.Empty /* no message */, nameof(manifestType));
GenerateResource.cs (10)
474return String.Empty; 491return String.Empty; 513return String.Empty; 535return String.Empty; 1184_resgenPath = string.Empty; 2192Sources[i].SetMetadata("OutputResource", String.Empty); 2747string priDirectory = Path.Combine(outFileOrDir ?? String.Empty, 2750reader.cultureName ?? String.Empty); 2921string shorterPath = Path.Combine(outputDirectory ?? String.Empty, cultureName ?? String.Empty);
GetCompatiblePlatform.cs (2)
48CurrentProjectPlatform = string.Empty; 49PlatformLookupTable = string.Empty;
GetInstalledSDKLocations.cs (2)
58private string _targetPlatformVersion = String.Empty; 63private string _targetPlatformIdentifier = String.Empty;
GetSDKReferenceFiles.cs (14)
316Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandRedistFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty)); 337Log.LogMessageFromResources("GetSDKReferenceFiles.AddingRedistFile", redist.RedistFile.Replace(redist.SDKReferenceItem.ItemSpec, String.Empty), redist.TargetPath); 390Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandReferencesFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty)); 411Log.LogMessageFromResources("GetSDKReferenceFiles.AddingReference", reference.AssemblyLocation.Replace(reference.SDKReferenceItem.ItemSpec, String.Empty)); 599Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty)); 603string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty)); 639Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty)); 643string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty)); 954string referencesCacheFile = String.Empty; 1090string currentAssembly = String.Empty;
ManifestUtil\ApplicationIdentity.cs (2)
71string dname = string.Empty; 77string aname = string.Empty;
ManifestUtil\AssemblyReference.cs (1)
165return String.Empty;
ManifestUtil\BaseReference.cs (2)
88return string.Empty; 164return String.Empty;
ManifestUtil\Manifest.cs (1)
217string defaultDir = String.Empty;
ManifestUtil\mansign2.cs (2)
770string timestamp = String.Empty; 870string timestamp = String.Empty;
ManifestUtil\PathUtil.cs (1)
67Host = string.Empty,
Move.cs (1)
135Log.LogErrorWithCodeFromResources("Move.Error", SourceFiles[i].ItemSpec, DestinationFolder.ItemSpec, e.Message, string.Empty);
MSBuildInternalMessage.cs (2)
38public string ResourceName { get; set; } = string.Empty; 49public string Severity { set; get; } = string.Empty;
NativeMethods.cs (1)
500assemblyNameVersion.CultureName != "neutral" ? assemblyNameVersion.CultureName : string.Empty,
parent\Shared\CanonicalError.cs (1)
298string messageOverflow = String.Empty;
parent\Shared\LogMessagePacketBase.cs (1)
1019string responseFilePath = String.Empty;
parent\Shared\PlatformNegotiation.cs (3)
29return string.Empty; 42string buildProjectReferenceAs = string.Empty; 95buildProjectReferenceAs = string.Empty;
parent\Shared\PropertyParser.cs (2)
39string propertyName = String.Empty; 40string propertyValue = String.Empty;
parent\Shared\TaskParameter.cs (6)
246return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 632_customEscapedMetadata[(string)entry.Key] = (string)entry.Value ?? string.Empty; 652_customEscapedMetadata[(string)entry.Key] = EscapingUtilities.Escape((string)entry.Value) ?? string.Empty; 704return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 795_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 936return string.Empty;
parent\Shared\TaskParameterValueStringConverter.cs (3)
17return string.Empty; 22return absolutePath.Value ?? string.Empty; 35return Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty;
parent\Shared\Tracing.cs (2)
42private static string s_slot = String.Empty; 118s_slot = String.Empty;
ParserState.cs (1)
56Namespace = String.Empty;
ResolveComReference.cs (1)
196public string TargetFrameworkVersion { get; set; } = String.Empty;
ResolveKeySource.cs (4)
50public string ResolvedThumbprint { get; set; } = String.Empty; 53public string ResolvedKeyContainer { get; set; } = String.Empty; 56public string ResolvedKeyFile { get; set; } = String.Empty; 100string keyFileExtension = String.Empty;
ResolveSDKReference.cs (22)
157_targetPlatformIdentifier ??= String.Empty; 172_projectName ??= String.Empty; 583sdkSimpleName = String.Empty; 585rawSdkVersion = String.Empty; 710private string _sdkManifestPath = String.Empty; 934ResolvedPath = String.Empty; 1030SupportedArchitectures = _sdkManifest.SupportedArchitectures ?? String.Empty; 1036DependsOnSDK = _sdkManifest.DependsOnSDK ?? String.Empty; 1053FrameworkIdentity = _sdkManifest.FrameworkIdentity ?? String.Empty; 1074PlatformIdentity = _sdkManifest.PlatformIdentity ?? String.Empty; 1080MinOSVersion = _sdkManifest.MinOSVersion ?? String.Empty; 1086MaxOSVersionTested = _sdkManifest.MaxOSVersionTested ?? String.Empty; 1092MoreInfo = _sdkManifest.MoreInfo ?? String.Empty; 1098MaxPlatformVersion = _sdkManifest.MaxPlatformVersion ?? String.Empty; 1104TargetPlatform = _sdkManifest.TargetPlatform ?? String.Empty; 1110TargetPlatformMinVersion = _sdkManifest.TargetPlatformMinVersion ?? String.Empty; 1116TargetPlatformVersion = _sdkManifest.TargetPlatformVersion ?? String.Empty; 1133DisplayName = _sdkManifest.DisplayName ?? String.Empty; 1139SupportPrefer32Bit = _sdkManifest.SupportPrefer32Bit ?? String.Empty; 1145CopyRedistToSubDirectory = _sdkManifest.CopyRedistToSubDirectory ?? String.Empty; 1151ProductFamilyName = _sdkManifest.ProductFamilyName ?? String.Empty; 1235string supportedArchList = String.Empty;
ResourceHandling\MSBuildResXReader.cs (1)
139value = string.Empty;
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
52String.Empty, 400log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidTaskXml", String.Empty); 628IEnumerable<string> references = taskInfo.References.Union(DefaultReferences[String.Empty]); 876string cachedAssemblyPath = _compileForOutOfProcess ? _assemblyPath : string.Empty;
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
64string exeSuffix = runningOnWindows ? ".exe" : string.Empty;
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
system.design\stronglytypedresourcebuilder.cs (1)
633String typeName = String.Empty;
TarDirectory.cs (2)
274Log.LogErrorWithCodeFromResources("TarDirectory.ErrorFailed", _sourceDirectory.FullName, _destinationFile.FullName, e.Message, string.Empty); 502entry.LinkName = info.LinkTarget ?? string.Empty;
WriteCodeFragment.cs (3)
137string itemSpec = OutputFile?.ItemSpec ?? String.Empty; 193return String.Empty; 307return haveGeneratedContent ? code : String.Empty;
XmlPoke.cs (1)
68Value = new TaskItem(string.Empty);
XslTransformation.cs (2)
251string offendingPath = XmlInputPaths?[currentXmlInputIndex]?.ItemSpec ?? string.Empty; 318string ns = String.Empty;
ZipDirectory.cs (1)
141Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, string.Empty);
Microsoft.Build.Utilities.Core (43)
CommandLineBuilder.cs (5)
337VerifyThrowNoEmbeddedDoubleQuotes(string.Empty, fileName); 369VerifyThrowNoEmbeddedDoubleQuotes(string.Empty, fileName); 390VerifyThrowNoEmbeddedDoubleQuotes(string.Empty, fileItem.ItemSpec); 415VerifyThrowNoEmbeddedDoubleQuotes(string.Empty, fileNames[i]); 452VerifyThrowNoEmbeddedDoubleQuotes(string.Empty, fileItems[i].ItemSpec);
LockCheck.cs (3)
90/// <returns>A message to inform the user which processes have a lock on the file if known, <see cref="string.Empty"/> otherwise. Always returns <see cref="string.Empty"/> on operating systems other than Windows.</returns> 103return string.Empty;
parent\Shared\CanonicalError.cs (1)
298string messageOverflow = String.Empty;
parent\Shared\Tracing.cs (2)
42private static string s_slot = String.Empty; 118s_slot = String.Empty;
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
TaskItem.cs (6)
77_itemSpec = string.Empty; 136builder[key] = (string)singleMetadata.Value ?? string.Empty; 236get => _itemSpec == null ? string.Empty : EscapingUtilities.UnescapeAll(_itemSpec); 372_metadata = _metadata.SetItem(metadataName, metadataValue ?? string.Empty); 572return metadataValue ?? string.Empty; 619_metadata = _metadata.SetItems(metadata.Select(kvp => new KeyValuePair<string, string>(kvp.Key, kvp.Value ?? string.Empty)));
ToolLocationHelper.cs (20)
548return string.Empty; 605string sdkLocation = string.Empty; 1018return string.Empty; 1114internal static string[] GetApiContractReferences(IEnumerable<ApiContract> apiContracts, string targetPlatformSdkRoot) => GetApiContractReferences(apiContracts, targetPlatformSdkRoot, string.Empty); 1217folderName = string.Empty; 1266return targetPlatform?.Path ?? string.Empty; 1298string sdkLocation = string.Empty; 1399return string.Empty; 1412string versionRange = $"{minVersion?.ToString() ?? string.Empty};{maxVersion?.ToString() ?? string.Empty}"; 1450string foldersString = string.Empty; 1523return string.Empty; 1775return string.Empty; 1866return string.Empty; 2444string registryRoot = NativeMethodsShared.IsWindows ? GetTargetPlatformMonikerRegistryRoots(registrySearchLocation) : string.Empty; 2450string cachedExtensionSdksKey = extensionDiskRoots == null ? string.Empty : string.Join(";", extensionDiskRoots); 2483extensionSdk = new TargetPlatformSDK(string.Empty, new Version(0, 0), null); 2993DebugTrace.WriteLine($"RegistryRoot passed in '{registryRootLocation ?? string.Empty}'"); 2997string registryRoot = string.Empty; 3188string pathToReturn = string.Empty;
ToolTask.cs (4)
414protected virtual string GenerateResponseFileCommands() => string.Empty; // Default is nothing. This is useful for tools that don't need or support response files. 422protected virtual string GenerateCommandLineCommands() => string.Empty; // Default is nothing. This is useful for tools where all the parameters can go into a response file. 1571commandLineCommands = $"{(Traits.Instance.EscapeHatches.UseAutoRunWhenLaunchingProcessUnderCmd ? string.Empty : "/D ")}/C \"{batchFileForCommandLine}\""; 1583commandLineCommands = string.Empty;
Microsoft.CodeAnalysis (84)
CodeAnalysisEventSource.Common.cs (1)
184internal void ProjectCreated(string projectSystemName, string? filePath) => WriteEvent(20, projectSystemName, filePath ?? string.Empty);
CodeAnalysisResourcesLocalizableErrorArgument.cs (2)
31return CodeAnalysisResources.ResourceManager.GetString(_targetResourceId, formatProvider as System.Globalization.CultureInfo) ?? string.Empty; 34return string.Empty;
CodeGen\PrivateImplementationDetails.cs (1)
512public string NamespaceName => string.Empty;
CommandLine\AnalyzerConfigSet.cs (2)
539Section globalSection = GetSection(string.Empty); 540_values.Remove(string.Empty);
CommandLine\CommandLineParser.cs (1)
346return string.Empty;
CommandLine\CommonCompiler.cs (2)
822string cacheKey = string.Empty; 1083analyzerConfigProvider = analyzerConfigProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(analyzerConfigSet.GetOptionsForSourcePath(string.Empty).AnalyzerOptions));
Diagnostic\Diagnostic.cs (3)
277return SimpleDiagnostic.Create(id, title ?? string.Empty, category, message, description ?? string.Empty, helpLink ?? string.Empty,
Diagnostic\DiagnosticDescriptor.cs (2)
190this.Description = description ?? string.Empty; 191this.HelpLinkUri = helpLinkUri ?? string.Empty;
Diagnostic\DiagnosticFormatter.cs (1)
112return string.Empty;
Diagnostic\DiagnosticInfo.cs (1)
320return string.Empty;
Diagnostic\FileLinePositionSpan.cs (1)
23/// Path may be <see cref="string.Empty"/> if not available.
Diagnostic\LocalizableResourceString.cs (1)
76string.Empty;
Diagnostic\LocalizableResourceString.FixedLocalizableString.cs (1)
17private static readonly FixedLocalizableString s_empty = new FixedLocalizableString(string.Empty);
Diagnostic\LocalizableString.cs (1)
33return string.Empty;
DiagnosticAnalyzer\AnalysisContextInfo.cs (2)
115sb.AppendLine($"{nameof(SyntaxNode)}: {GetFlattenedNodeText(_node)} [{_node.GetType().Name}]@{_node.Span} {(lineSpan.HasValue ? lineSpan.Value.ToString() : string.Empty)}"); 143return sb.ToString() + (sb.Length > cutoff ? " ..." : string.Empty);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
77var path = file.Path ?? string.Empty;
DiagnosticAnalyzer\AnalyzerReference.cs (1)
36get { return string.Empty; }
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
23{ string.Empty, TargetScope.None }, 439=> s_suppressMessageScopeTypes.TryGetValue(scopeString ?? string.Empty, out scope);
DiaSymReader\Utilities\InteropUtilities.cs (1)
40namespaceStr = string.Empty;
FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
InternalUtilities\JsonWriter.cs (1)
267return string.Empty;
InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
MetadataReader\MetadataHelpers.cs (2)
330return String.Empty; 718qualifier = string.Empty.AsMemory();
MetadataReader\MetadataTypeName.cs (2)
164name._namespaceName = string.Empty; 165name._namespaceNameMemory = string.Empty.AsMemory();
MetadataReference\AssemblyIdentity.cs (2)
83/// Specify null, <see cref="string.Empty"/>, or "neutral" (any casing) to represent <see cref="System.Globalization.CultureInfo.InvariantCulture"/>. 213string.Empty : cultureName;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
191/// The default culture is neutral (<see cref="CultureName"/> is <see cref="String.Empty"/>.
MetadataReference\PortableExecutableReference.cs (1)
197return messageProvider.CreateDiagnostic(messageProvider.ERR_MetadataFileNotFound, location, fileNotFound.FileName ?? string.Empty);
PEWriter\MetadataWriter.cs (1)
614if (parDef.Name != String.Empty ||
PEWriter\MetadataWriter.PortablePdb.cs (1)
561WriteUtf8String(builder, name ?? string.Empty);
PEWriter\NativeResourceWriter.cs (2)
176Directory typeDirectory = new Directory(string.Empty, 0); 301name = string.Empty;
PEWriter\ReturnValueParameter.cs (1)
62get { return string.Empty; }
PEWriter\RootModuleType.cs (1)
257return string.Empty;
SourceGeneration\GeneratorDriver.cs (1)
665return Path.Combine(baseDirectory ?? "", type.Assembly.GetName().Name ?? string.Empty, type.FullName!);
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
31return string.Empty;
SymbolDisplay\SymbolDisplayExtensions.cs (2)
32return string.Empty; 65return string.Empty;
Symbols\Attributes\AttributeUsageInfo.cs (1)
150return string.Empty;
Symbols\RefKind.cs (1)
83case RefKind.None: return string.Empty;
Syntax\GreenNode.cs (1)
749public virtual string GetValueText() { return string.Empty; }
Syntax\LineDirectiveMap.cs (1)
248string path = entry.MappedPathOpt ?? string.Empty;
Syntax\SyntaxDiffer.cs (1)
824return string.Empty;
Syntax\SyntaxList`1.cs (2)
201return _node != null ? _node.ToString() : string.Empty; 214return _node != null ? _node.ToFullString() : string.Empty;
Syntax\SyntaxNodeOrToken.cs (3)
112return string.Empty; 311return string.Empty; 332return string.Empty;
Syntax\SyntaxNodeOrTokenList.cs (2)
187: string.Empty; 202: string.Empty;
Syntax\SyntaxToken.cs (4)
59public string Language => Node?.Language ?? string.Empty; 152public string ValueText => Node?.GetValueText() ?? string.Empty; 163return Node != null ? Node.ToString() : string.Empty; 173return Node != null ? Node.ToFullString() : string.Empty;
Syntax\SyntaxTokenList.cs (2)
192return Node != null ? Node.ToString() : string.Empty; 205return Node != null ? Node.ToFullString() : string.Empty;
Syntax\SyntaxTrivia.cs (3)
51public string Language => UnderlyingNode?.Language ?? string.Empty; 228return UnderlyingNode != null ? UnderlyingNode.ToString() : string.Empty; 239return UnderlyingNode != null ? UnderlyingNode.ToFullString() : string.Empty;
Syntax\SyntaxTriviaList.cs (2)
522return Node != null ? Node.ToString() : string.Empty; 527return Node != null ? Node.ToFullString() : string.Empty;
Text\CompositeText.cs (1)
194return SourceText.From(string.Empty, original.Encoding, original.ChecksumAlgorithm);
Text\LargeText.cs (2)
71return SourceText.From(string.Empty, encoding, checksumAlgorithm); 94return SourceText.From(string.Empty, encodingOpt, checksumAlgorithm);
Text\SourceText.cs (3)
325return string.Empty; 526return SourceText.From(string.Empty, this.Encoding, this.ChecksumAlgorithm); 956newt = string.Empty;
Text\TextLine.cs (1)
177return string.Empty;
TreeDumper.cs (3)
75DoDumpCompact(root, string.Empty); 144dumper.DoDumpXML(root, string.Empty, indent ?? string.Empty);
Microsoft.CodeAnalysis.Analyzers (39)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
65static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
131appendChildren(indent: string.Empty);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
228return analyzerConfigOptions.GetOptionValue(optionName, tree, rule, TryParseValue, string.Empty); 370return new SymbolNamesWithValueOption<string?>.NameParts(split[0], string.Empty); 496string optionValue = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
193: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
266=> LogBlock(functionId, string.Empty, token, logLevel);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
149if (prefix != string.Empty) 153failureReason = Prefix == string.Empty 468new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 469new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 486writer.WriteString(Prefix ?? string.Empty); 487writer.WriteString(Suffix ?? string.Empty); 488writer.WriteString(WordSeparator ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
52if (info.Context.GenerateMembers && info.Context.MergeNestedNamespaces && @namespace.Name != string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
394name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
10internal sealed class CodeGenerationArrayTypeSymbol(ITypeSymbol elementType, int rank, NullableAnnotation nullableAnnotation) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, nullableAnnotation), IArrayTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (1)
22name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
18name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
49return this.Name == string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
9internal sealed class CodeGenerationPointerTypeSymbol(ITypeSymbol pointedAtType) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, NullableAnnotation.None), IPointerTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
53var bestPath = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
37var publicKeyToken = thisAssemblyName.GetPublicKeyToken()?.Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
135=> GenerateUniqueName(baseName, string.Empty, canUse);
Microsoft.CodeAnalysis.AnalyzerUtilities (35)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
65static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
131appendChildren(indent: string.Empty);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
228return analyzerConfigOptions.GetOptionValue(optionName, tree, rule, TryParseValue, string.Empty); 370return new SymbolNamesWithValueOption<string?>.NameParts(split[0], string.Empty); 496string optionValue = string.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisValueSet.cs (2)
193return string.Empty; 215return string.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (1)
31public static ValueContentAbstractValue ContainsEmptyStringLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(string.Empty), ValueContainsNonLiteralState.No);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (3)
37title: string.Empty, 38messageFormat: string.Empty, 39category: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
193: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
266=> LogBlock(functionId, string.Empty, token, logLevel);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
149if (prefix != string.Empty) 153failureReason = Prefix == string.Empty 468new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 469new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 486writer.WriteString(Prefix ?? string.Empty); 487writer.WriteString(Suffix ?? string.Empty); 488writer.WriteString(WordSeparator ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
Microsoft.CodeAnalysis.BuildClient.Package (7)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (4)
385var eventName = ReadLengthPrefixedString(reader) ?? string.Empty; 390var key = ReadLengthPrefixedString(reader) ?? string.Empty; 391var value = ReadLengthPrefixedString(reader) ?? string.Empty; 429Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
536environmentVariables[key] = string.Empty; 725.Replace("=", string.Empty);
Microsoft.CodeAnalysis.CodeStyle (28)
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
369: string.Empty;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
174propertiesBuilder.Add(IsUnusedLocalAssignmentKey, string.Empty); 179propertiesBuilder.Add(IsRemovableAssignmentKey, string.Empty);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
65static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
193: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
266=> LogBlock(functionId, string.Empty, token, logLevel);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
149if (prefix != string.Empty) 153failureReason = Prefix == string.Empty 468new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 469new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 486writer.WriteString(Prefix ?? string.Empty); 487writer.WriteString(Suffix ?? string.Empty); 488writer.WriteString(WordSeparator ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
Microsoft.CodeAnalysis.CodeStyle.Fixes (21)
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
138&& name != string.Empty
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
91if (previousNodeTextTrimmed == string.Empty ||
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (5)
107var leadingSpaces = string.Empty; 111var possibleLeadingSpaces = string.Empty; 119if (possibleLeadingSpaces != string.Empty) 131if (leadingSpaces == string.Empty) 140possibleLeadingSpaces = string.Empty;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
276=> _arguments.IsDefault || index >= _arguments.Length ? string.Empty : _arguments[index].Name;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (2)
33=> string.Empty; 36=> string.Empty;
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
218return string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
52if (info.Context.GenerateMembers && info.Context.MergeNestedNamespaces && @namespace.Name != string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
394name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
10internal sealed class CodeGenerationArrayTypeSymbol(ITypeSymbol elementType, int rank, NullableAnnotation nullableAnnotation) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, nullableAnnotation), IArrayTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (1)
22name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
18name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
49return this.Name == string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
9internal sealed class CodeGenerationPointerTypeSymbol(ITypeSymbol pointedAtType) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, NullableAnnotation.None), IPointerTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
53var bestPath = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
37var publicKeyToken = thisAssemblyName.GetPublicKeyToken()?.Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
135=> GenerateUniqueName(baseName, string.Empty, canUse);
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder_Expressions.cs (1)
3070nameString = string.Empty;
Binder\Binder_InterpolatedString.cs (1)
47resultConstant = ConstantValue.Create(string.Empty);
Binder\Binder_Invocation.cs (3)
2121var returnType = GetCommonTypeOrReturnType(methods) ?? new ExtendedErrorTypeSymbol(this.Compilation, string.Empty, arity: 0, errorInfo: null); 2364TypeSymbol returnType = new ExtendedErrorTypeSymbol(this.Compilation, string.Empty, arity: 0, errorInfo: null); 2366MethodSymbol method = new ErrorMethodSymbol(methodContainer, returnType, string.Empty);
Binder\Binder_Symbols.cs (1)
846return TypeWithAnnotations.Create(new ExtendedErrorTypeSymbol(qualifierOpt ?? this.Compilation.Assembly.GlobalNamespace, string.Empty, arity: 0, errorInfo: null));
BoundTree\Formatting.cs (2)
117get { return string.Empty; } 125get { return string.Empty; }
Compilation\CSharpCompilation.cs (2)
1877MetadataTypeName mdName = MetadataTypeName.FromNamespaceAndTypeName(HostObjectType.Namespace ?? String.Empty, 4000return string.Empty; //prevent emitter from crashing.
Declarations\MergedNamespaceDeclaration.cs (1)
24: base(declarations.IsEmpty ? string.Empty : declarations[0].Name)
Declarations\RootSingleNamespaceDeclaration.cs (1)
37: base(string.Empty,
Emitter\Model\PEModuleBuilder.cs (1)
1143diagnostics.Add(new CSDiagnostic(diagInfo ?? new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty), syntaxNodeOpt == null ? NoLocation.Singleton : syntaxNodeOpt.Location));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
92return _factory.StringLiteral(string.Empty); 141return _factory.Coalesce(arg, _factory.StringLiteral(string.Empty));
Parser\Lexer_StringLiteral.cs (2)
90info.StringValue = string.Empty; 113info.StringValue = string.Empty;
Parser\SlidingTextWindow.cs (1)
432case 0: return string.Empty;
Parser\SyntaxParser.cs (1)
683return new SyntaxDiagnosticInfo(offset, width, code, /*unused*/string.Empty, SyntaxFacts.GetText(actual));
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
543return string.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (2)
71get { return string.Empty; } 76get { return string.Empty; }
Symbols\AssemblySymbol.cs (1)
863typeInfo.Namespace ?? string.Empty,
Symbols\Attributes\AttributeData.cs (1)
634guidString = String.Empty;
Symbols\Attributes\PEAttributeData.cs (2)
187return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty); 199return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Symbols\ErrorMethodSymbol.cs (1)
16public static readonly ErrorMethodSymbol UnknownMethod = new ErrorMethodSymbol(ErrorTypeSymbol.UnknownResultType, ErrorTypeSymbol.UnknownResultType, string.Empty);
Symbols\ErrorTypeSymbol.cs (2)
301return string.Empty; 348@params[i] = new ErrorTypeParameterSymbol(this, string.Empty, i);
Symbols\FileIdentifier.cs (1)
35_filePath = string.Empty;
Symbols\Metadata\PE\PEEventSymbol.cs (1)
84_name = _name ?? string.Empty;
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
177_name = String.Empty;
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
56return string.Empty;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
443_name = string.Empty;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
333metadataName = string.Empty;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
490return HasNameInMetadata ? _name : string.Empty;
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
268_name = string.Empty;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
88_name = string.Empty;
Symbols\MissingMetadataTypeSymbol.cs (1)
131return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Symbols\MissingNamespaceSymbol.cs (1)
28_name = string.Empty;
Symbols\PlaceholderTypeArgumentSymbol.cs (1)
38return string.Empty;
Symbols\ReducedExtensionMethodSymbol.cs (1)
146var otherArgumentType = new ExtendedErrorTypeSymbol(errorNamespace, name: string.Empty, arity: 0, errorInfo: null, unreported: false);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
824type.ErrorInfo ?? new CSDiagnosticInfo(ErrorCode.ERR_ErrorInReferencedAssembly, type.ContainingAssembly?.Identity.GetDisplayName() ?? string.Empty), true);
Symbols\Source\LambdaSymbol.cs (1)
377: TypeWithAnnotations.Create(new ExtendedErrorTypeSymbol(compilation, name: string.Empty, arity: 0, errorInfo: null));
Symbols\Symbol.cs (2)
73return string.Empty; 1243var useSiteInfo = new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty));
Symbols\UnboundGenericType.cs (2)
54string name = (i < typeParameters.Length) ? typeParameters[i].Name : string.Empty; 60public static readonly ErrorTypeSymbol Instance = new UnboundArgumentErrorTypeSymbol(string.Empty, new CSDiagnosticInfo(ErrorCode.ERR_UnexpectedUnboundGenericName));
Symbols\UnsupportedMetadataTypeSymbol.cs (1)
29return new CSDiagnosticInfo(ErrorCode.ERR_BogusType, string.Empty);
Syntax\CSharpPragmaWarningStateMap.cs (1)
124var errorId = string.Empty;
Syntax\CSharpSyntaxTree.Dummy.cs (5)
25_node = this.CloneNodeAsRoot(SyntaxFactory.ParseCompilationUnit(string.Empty)); 30return string.Empty; 35return SourceText.From(string.Empty, Encoding, ChecksumAlgorithm); 40text = SourceText.From(string.Empty, Encoding, ChecksumAlgorithm); 65get { return string.Empty; }
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (1)
35_path = path ?? string.Empty;
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
51_path = path ?? string.Empty;
Syntax\InternalSyntax\SyntaxFactory.cs (1)
30internal static readonly SyntaxTrivia ElasticZeroSpace = Whitespace(string.Empty, elastic: true);
Syntax\InternalSyntax\SyntaxToken.MissingTokenWithTrivia.cs (2)
30get { return string.Empty; } 40return string.Empty;
Syntax\SyntaxFacts.cs (1)
363return string.Empty;
Syntax\SyntaxKindFacts.cs (1)
1899return string.Empty;
Utilities\ValueSetFactory.StringTC.cs (1)
20var result = constantValue.IsBad ? string.Empty : constantValue.StringValue;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
14if (text == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (2)
131return string.Empty; 142=> SyntaxFactory.ParseLeadingTrivia(s ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
43return string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
752return string.Empty; 1052=> (argument as ArgumentSyntax)?.NameColon?.Name.Identifier.ValueText ?? string.Empty; 1055=> (argument as AttributeArgumentSyntax)?.NameEquals?.Name.Identifier.ValueText ?? string.Empty;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\CSharpGenerateEnumMemberService.cs (1)
31if (identifierToken.ValueText != string.Empty &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
177return string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
105if (name == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
192if (symbol.Name == string.Empty || symbol.IsAnonymousType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
38(otherSideType.Name == string.Empty || otherSideType.Name == "var"); 2426if (name != string.Empty)
Microsoft.CodeAnalysis.CSharp.Features (14)
ChangeSignature\UnifiedArgumentSyntax.cs (1)
49=> NameColon == null ? string.Empty : ((NameColonSyntax)NameColon).Name.Identifier.ValueText;
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
82return string.Empty;
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
110if (type.IsErrorType() && (type.Name == "var" || type.Name == string.Empty))
ExtractInterface\CSharpExtractInterfaceService.cs (1)
53? string.Empty
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
93if (identifierToken.ValueText != string.Empty &&
GenerateType\CSharpGenerateTypeService.cs (1)
502=> string.Empty;
InlineHints\CSharpInlineParameterNameHintsService.cs (1)
107return (isReservedKeyword ? "@" : string.Empty) + parameterName + ": ";
MoveToNamespace\CSharpMoveToNamespaceService.cs (1)
32CompilationUnitSyntax _ => string.Empty,
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (4)
30private static readonly Func<TupleExpressionSyntax, IEnumerable<string>> s_getArgumentNames = e => e.Arguments.Select(a => a.NameColon?.Name.Identifier.ValueText ?? string.Empty); 56ArgumentName: string.Empty, 186var elementName = element.IsImplicitlyDeclared ? string.Empty : element.Name; 195result.Add(new SignatureHelpParameter(name: string.Empty, isOptional: false, documentationFactory: null, displayParts: typeParts));
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\CSharpGenerateEnumMemberService.cs (1)
31if (identifierToken.ValueText != string.Empty &&
Structure\CSharpStructureHelpers.cs (1)
145return string.Empty;
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (7)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CSharpIdentifiersShouldNotContainUnderscores.Fixer.cs (1)
23return string.Empty;
Microsoft.NetCore.Analyzers\Performance\CSharpCollapseMultiplePathOperations.Fixer.cs (1)
113methodName = string.Empty;
Microsoft.NetCore.Analyzers\Performance\CSharpUseStringContainsCharOverloadWithSingleCharactersFixer.cs (1)
18argumentName = string.Empty;
Microsoft.NetCore.Analyzers\Usage\FileBasedProgramDirectiveQuoting.cs (4)
29kind = string.Empty; 30value = string.Empty; 31valueLeadingWhitespace = string.Empty; 62value = string.Empty;
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
2064UsingDirectiveSyntax usingDirective => usingDirective.Name?.ToString() ?? string.Empty, 2072_ => string.Empty
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
615=> string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
14if (text == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (2)
131return string.Empty; 142=> SyntaxFactory.ParseLeadingTrivia(s ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
43return string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
752return string.Empty; 1052=> (argument as ArgumentSyntax)?.NameColon?.Name.Identifier.ValueText ?? string.Empty; 1055=> (argument as AttributeArgumentSyntax)?.NameEquals?.Name.Identifier.ValueText ?? string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
177return string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
105if (name == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
192if (symbol.Name == string.Empty || symbol.IsAnonymousType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
38(otherSideType.Name == string.Empty || otherSideType.Name == "var"); 2426if (name != string.Empty)
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
65static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
Microsoft.CodeAnalysis.Features (92)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
100var bannerText = banner.Select(trivia => trivia.ToFullString()).Join(string.Empty);
CallHierarchy\AbstractCallHierarchyService.cs (2)
33symbol.ContainingType?.ToDisplayString(CallHierarchyDisplayFormats.ContainingTypeFormat) ?? string.Empty, 34symbol.ContainingNamespace?.ToDisplayString(CallHierarchyDisplayFormats.ContainingNamespaceFormat) ?? string.Empty,
CodeFixes\Configuration\ConfigurationUpdater.cs (3)
427var relativePath = string.Empty; 428var diagnosticFilePath = string.Empty; 742var prefix = string.Empty;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (2)
126protected override string DiagnosticIdForEquivalenceKey => string.Empty; 215return builder.OrderBy(kvp => kvp.Key.GetDocumentationCommentId() ?? string.Empty);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningCodeAction.cs (1)
55=> _forFixMultipleContext ? string.Empty : _diagnostic.Id;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.cs (1)
63=> _forFixMultipleContext ? string.Empty : _diagnostic.Id;
CodeLens\CodeLensReferencesService.cs (2)
322return string.Empty; 396return string.Empty;
CodeLens\ReferenceCount.cs (1)
33private string GetCappedReferenceCountString() => $"{Count}{(IsCapped ? "+" : string.Empty)}";
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (1)
44MoveTypeOperationKind.MoveTypeNamespaceScope => string.Empty,
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (2)
114declaredNamespace = string.Empty; 206return string.Empty;
Common\SymbolDisplayPartKindTags.cs (1)
73_ => string.Empty,
Common\TaggedText.cs (2)
223return string.Join(string.Empty, parts.Select( 228=> string.Join(string.Empty, parts.Select(p => p.ToString()));
Completion\CommonCompletionProvider.cs (1)
126displayText: displayText ?? string.Empty,
Completion\Providers\AbstractAwaitCompletionProvider.cs (3)
110builder.Add(KeyValuePair.Create(MakeContainerAsync, string.Empty)); 114builder.Add(KeyValuePair.Create(AddAwaitAtCurrentPosition, string.Empty)); 139properties = properties.Add(KeyValuePair.Create(AppendConfigureAwait, string.Empty));
Completion\Providers\AbstractDocCommentCompletionProvider.cs (4)
180afterCaretText: string.Empty)); 190afterCaretText: string.Empty)); 338afterCaretText: string.Empty); 346afterCaretText: string.Empty);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (3)
232return string.Empty; 245return string.Empty; 292return string.Empty;
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
250var textChange = new TextChange(text.Lines[lineNumber].SpanIncludingLineBreak, string.Empty);
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
225item = item.AddProperty(CommonCompletionItem.DoNotMergeProperty, string.Empty);
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.SymbolComputer.cs (1)
467var qualifiedNamespaceName = indexOfLastDot > 0 ? staticClassName[..indexOfLastDot] : string.Empty;
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
100displayTextSuffix: arity == 0 ? string.Empty : genericTypeSuffix,
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
128var textChange = new TextChange(span, string.Empty);
Completion\Providers\SymbolCompletionItem.cs (1)
127return string.Empty;
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
86result.Add(CreateCodeAction(prefix + number.Replace(DigitSeparator, string.Empty), FeaturesResources.Remove_separators));
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (1)
51id, string.Empty, messageFormat,
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (3)
140Builder.Add(new TaggedText(TextTags.ContainerEnd, string.Empty)); 157Builder.Add(new TaggedText(TextTags.ContainerEnd, string.Empty)); 256Builder.Add(new TaggedText(TextTags.ContainerStart, string.Empty));
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (4)
96string.Join(string.Empty, lines), 287var newText = string.Join(string.Empty, lines); 329var lines = GetDocumentationCommentStubLines(targetMember, string.Empty, options); 344var comments = string.Join(string.Empty, lines);
EditAndContinue\SourceFileSpan.cs (1)
29/// Path may be <see cref="string.Empty"/> if not available.
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
599return string.Empty;
ExtractInterface\AbstractExtractInterfaceService.cs (1)
114? string.Empty
ExtractInterface\ExtractInterfaceCodeAction.cs (1)
33? string.Empty
ExtractMethod\MethodExtractor.Analyzer.cs (3)
230var namesWithAnonymousTypes = variables.SelectAsArray(v => v.OriginalTypeHadAnonymousTypeOrDelegate, v => v.Name ?? string.Empty); 274.Select(p => p.Name ?? string.Empty); 891names.Add(field.Name ?? string.Empty);
ExtractMethod\MethodExtractor.cs (1)
244currentType == null ? string.Empty : currentType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)));
ExtractMethod\UniqueNameGenerator.cs (1)
24return NameGenerator.GenerateUniqueName(baseName, string.Empty,
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
273var newSolution = projectToBeUpdated.Solution.AddDocument(newDocumentId, documentName, string.Empty, folders, fullFilePath);
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
297return string.Empty;
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
291new TaggedText(TextTags.ContainerEnd, string.Empty), 531.Insert(0, new TaggedText(TextTags.CodeBlockStart, string.Empty)) 532.Add(new TaggedText(TextTags.CodeBlockEnd, string.Empty));
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (7)
47formattedCommentLinesBuilder.Add(string.Empty); 54formattedCommentLinesBuilder.Add(string.Empty); 71formattedCommentLinesBuilder.Add(string.Empty); 78formattedCommentLinesBuilder.Add(string.Empty); 105formattedCommentLinesBuilder.Add(string.Empty); 116formattedCommentLinesBuilder.Add(string.Empty); 154result.Add(string.Empty);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
363var emptySourceText = SourceText.From(string.Empty, MetadataAsSourceGeneratedFileInfo.Encoding, MetadataAsSourceGeneratedFileInfo.ChecksumAlgorithm); 472Hash.Combine(StringComparer.OrdinalIgnoreCase.GetHashCode(_filePath ?? string.Empty),
MoveStaticMembers\MoveStaticMembersOptions.cs (2)
31string.Empty, 32string.Empty,
QuickInfo\QuickInfoSection.cs (2)
28Kind = kind ?? string.Empty; 51field = string.Empty;
Shared\Extensions\SyntaxTokenListExtensions.cs (1)
20return string.Empty;
Shared\Utilities\ExtractTypeHelpers.cs (1)
122return string.Empty;
SignatureHelp\SignatureHelpParameter.cs (2)
32public string Name { get; } = name ?? string.Empty; 100public string Name { get; } = name ?? string.Empty;
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
369: string.Empty;
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
174propertiesBuilder.Add(IsUnusedLocalAssignmentKey, string.Empty); 179propertiesBuilder.Add(IsRemovableAssignmentKey, string.Empty);
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
138&& name != string.Empty
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
91if (previousNodeTextTrimmed == string.Empty ||
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (5)
107var leadingSpaces = string.Empty; 111var possibleLeadingSpaces = string.Empty; 119if (possibleLeadingSpaces != string.Empty) 131if (leadingSpaces == string.Empty) 140possibleLeadingSpaces = string.Empty;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
276=> _arguments.IsDefault || index >= _arguments.Length ? string.Empty : _arguments[index].Name;
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (2)
33=> string.Empty; 36=> string.Empty;
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
218return string.Empty;
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
31return string.Empty;
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
107var packagesPath = projectAssets.Project?.Restore?.PackagesPath ?? string.Empty;
Microsoft.CodeAnalysis.Features.ExternalAccess (3)
Copilot\Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (1)
50return (string.Empty, false);
Copilot\Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (2)
69return Task.FromResult(string.Empty); 77return Task.FromResult((string.Empty, false));
Microsoft.CodeAnalysis.NetAnalyzers (24)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.cs (1)
188return sb?.ToString() ?? string.Empty;
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.cs (1)
141propertyBag = propertyBag.Add(NonStaticMemberIsMethodKey, string.Empty);
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (2)
2125platformName = string.Empty; 2149osPlatformName = string.Empty;
Microsoft.NetCore.Analyzers\InteropServices\UseValidPlatformString.cs (3)
208var maxCount = count == 2 ? string.Empty : $"-{count}"; 225var maxCount = count == 2 ? string.Empty : $"-{count}"; 238versionPart = string.Empty;
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (4)
620.Replace("this.", string.Empty) 621.Replace("Me.", string.Empty); 624.Replace("this.", string.Empty) 625.Replace("Me.", string.Empty);
Microsoft.NetCore.Analyzers\Runtime\DisposeMethodsShouldCallBaseClassDispose.cs (1)
105string.Empty;
Microsoft.NetFramework.Analyzers\Helpers\SecurityDiagnosticHelpers.cs (2)
247return string.Empty; 271return string.Empty;
src\440320f3f10733a8\ValueContentAbstractValue.cs (1)
30public static ValueContentAbstractValue ContainsEmptyStringLiteralState { get; } = new ValueContentAbstractValue(ImmutableHashSet.Create<object?>(string.Empty), ValueContainsNonLiteralState.No);
src\8ce1f4f68b646e6d\GlobalFlowStateAnalysisValueSet.cs (2)
191return string.Empty; 213return string.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
130appendChildren(indent: string.Empty);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
225return analyzerConfigOptions.GetOptionValue(optionName, tree, rule, TryParseValue, string.Empty); 367return new SymbolNamesWithValueOption<string?>.NameParts(split[0], string.Empty); 493string optionValue = string.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (3)
34title: string.Empty, 35messageFormat: string.Empty, 36category: string.Empty,
Microsoft.CodeAnalysis.Razor.Compiler (118)
CSharp\Utf8SupportMap.cs (1)
219if (_fileToType.TryGetValue(filePath ?? string.Empty, out var fqn))
Language\AllowedChildTagDescriptorBuilder.cs (2)
30var displayName = DisplayName ?? Name ?? string.Empty; 33Name ?? string.Empty,
Language\BoundAttributeDescriptorBuilder.cs (3)
157Name ?? string.Empty, 158PropertyName ?? string.Empty, 193return Name ?? string.Empty;
Language\BoundAttributeParameterDescriptorBuilder.cs (2)
78Name ?? string.Empty, 79PropertyName ?? string.Empty,
Language\CodeGeneration\CodeWriter.cs (1)
497return string.Empty;
Language\CodeGeneration\CodeWriter.WriteInterpolatedStringHandler.cs (1)
86_writer.Write(value.ToString() ?? string.Empty);
Language\Components\ComponentBindLoweringPass.cs (2)
1049return IntermediateNodeFactory.CSharpToken(string.Empty); 1054return IntermediateNodeFactory.CSharpToken(string.Empty);
Language\Components\ComponentCssScopePass.cs (1)
38Suffix = string.Empty,
Language\Components\ComponentEventHandlerLoweringPass.cs (2)
240return [IntermediateNodeFactory.CSharpToken(string.Empty)]; 249var content = "\"" + string.Join(string.Empty, tokens.Select(t => t.Content.Replace("\"", "\\\""))) + "\"";
Language\Components\ComponentGenericTypePass.cs (1)
294return string.Join(string.Empty, node.FindDescendantNodes<CSharpIntermediateToken>().Select(t => t.Content));
Language\Components\ComponentHelpers.cs (1)
18return string.Empty;
Language\Components\ComponentInjectDirectivePass.cs (1)
34var typeName = hasType ? tokens[0].Content : string.Empty;
Language\Components\ComponentInjectIntermediateNode.cs (1)
72if (TypeName == string.Empty && TypeSpan.HasValue)
Language\Components\ComponentLoweringPass.cs (2)
642content = string.Join(string.Empty, html.Children.OfType<IntermediateToken>().Select(n => n.Content)); 808attribute.Suffix = string.Empty;
Language\Components\ComponentMarkupEncodingPass.cs (1)
159decoded = string.Empty;
Language\Components\ComponentNodeWriter.cs (2)
247var cast = capture.IsComponentCapture ? $"({capture.FieldTypeName})" : string.Empty; 1310var content = string.Join(string.Empty, GetHtmlTokens(htmlNode).Select(t => t.Content));
Language\Components\ComponentRenderModeDirectivePass.cs (1)
107var namespaceSeparator = string.IsNullOrEmpty(@namespace.Name) ? string.Empty : ".";
Language\CSharpIdentifier.cs (1)
36return string.Empty;
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (26)
385Content = content?.GetContent() ?? string.Empty, 724Prefix = node.Prefix?.GetContent() ?? string.Empty, 739Prefix = node.Prefix?.GetContent() ?? string.Empty, 747Prefix = node.Prefix?.GetContent() ?? string.Empty, 763Prefix = node.Prefix?.GetContent() ?? string.Empty, 769contentFactory: static node => node.Value?.GetContent() ?? string.Empty, 778Prefix = node.Prefix?.GetContent() ?? string.Empty, 784contentFactory: static node => node.Value?.GetContent() ?? string.Empty, 1012attributeBlock.Value?.GetContent() ?? string.Empty)); 1017minimizedAttr.Name.GetContent(), string.Empty)); 1089var tagName = node.MarkupStartTag?.Name.Content ?? node.MarkupEndTag?.Name.Content ?? string.Empty; 1239Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1302Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1317Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1381Prefix = string.Empty, 1386contentFactory: static node => node.GetContent() ?? string.Empty, 1664var tagName = node.MarkupStartTag?.Name.Content ?? node.MarkupEndTag?.Name.Content ?? string.Empty; 1785Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1828Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1860Prefix = string.Empty, 1865contentFactory: static node => node.GetContent() ?? string.Empty, 1947Prefix = string.Empty, 1952Prefix = string.Empty, 1958contentFactory: static node => node.GetContent() ?? string.Empty, 2029Prefix = string.Empty, 2064Prefix = string.Empty,
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (3)
1048var prefix = htmlAttr.Prefix ?? string.Empty; 1098var prefix = htmlAttr.Prefix ?? string.Empty; 1099var suffix = htmlAttr.Suffix ?? string.Empty;
Language\DefaultTagHelperResolutionPhase.cs (1)
1009var content = attrValue.Prefix ?? string.Empty;
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (18)
370emptyHtml.Children.Add(new HtmlIntermediateToken(string.Empty, htmlAttr.Source)); 458htmlContent.Children.Add(new HtmlIntermediateToken(string.Empty, source: null)); 464targetNode.Children.Add(new CSharpIntermediateToken(string.Empty, emptySource)); 576var prefix = htmlAttr.Prefix ?? string.Empty; 577var suffix = htmlAttr.Suffix ?? string.Empty; 645var attrContent = (htmlAttrValue.Prefix ?? string.Empty); 677targetNode.Children.Add(new CSharpIntermediateToken(string.Empty, emptySource)); 722var prefix = htmlAttr.Prefix ?? string.Empty; 723var suffix = htmlAttr.Suffix ?? string.Empty; 858var prefix = htmlAttr.Prefix ?? string.Empty; 890sb.Append(csharpSeg.Prefix ?? string.Empty); 993var attrName = htmlAttr.AttributeName ?? string.Empty; 1032else if (!(htmlAttr.Prefix ?? string.Empty).Contains('=')) 1076var prefix = htmlAttr.Prefix ?? string.Empty; 1123var suffix = htmlAttr.Suffix ?? string.Empty; 1181sb.Append(htmlAttr.Prefix ?? string.Empty); 1205sb.Append(csharpAttrValue.Prefix ?? string.Empty); 1226sb.Append(htmlAttr.Suffix ?? string.Empty);
Language\Intermediate\DocumentationIntermediateNode.cs (1)
10public string Content { get; init; } = string.Empty;
Language\Intermediate\ExtensionIntermediateNode.cs (1)
36var documentKind = context.DocumentKind ?? string.Empty;
Language\Intermediate\HtmlAttributeIntermediateNode.cs (1)
58formatter.WriteProperty(nameof(AttributeNameExpression), string.Join(string.Empty, AttributeNameExpression?.FindDescendantNodes<IntermediateToken>().Select(n => n.Content) ?? Array.Empty<string>()));
Language\Intermediate\LazyContent.cs (1)
60_value = _contentFactory(_arg) ?? string.Empty;
Language\Intermediate\UnresolvedAttributeIntermediateNode.cs (1)
16public string AttributeName { get; set; } = string.Empty;
Language\Intermediate\UnresolvedAttributeValueIntermediateNode.cs (1)
22public string Prefix { get; set; } = string.Empty;
Language\Intermediate\UnresolvedElementIntermediateNode.cs (1)
16public string TagName { get; set; } = string.Empty;
Language\Intermediate\UnresolvedExpressionAttributeValueIntermediateNode.cs (1)
22public string Prefix { get; set; } = string.Empty;
Language\Legacy\CSharpCodeParser.cs (3)
1374directiveValue = string.Empty; 1483new SourceSpan(directiveLocation, Math.Max(text?.Length ?? 0, 1)), text ?? string.Empty)); 1764new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, CurrentToken.Content, lastSeenMemberIdentifier ?? string.Empty));
Language\Legacy\HtmlLanguageCharacteristics.cs (1)
91return SyntaxFactory.Token(SyntaxKind.Marker, string.Empty);
Language\Legacy\HtmlMarkupParser.cs (3)
654tagName = string.Empty; 888tagName = string.Empty; 898tagName = isBangEscape ? "!" : string.Empty;
Language\Legacy\NativeCSharpLanguageCharacteristics.cs (1)
120return SyntaxFactory.Token(SyntaxKind.Marker, string.Empty);
Language\Legacy\RoslynCSharpLanguageCharacteristics.cs (1)
112return SyntaxFactory.Token(SyntaxKind.Marker, string.Empty);
Language\Legacy\TagHelperParseTreeRewriter.cs (3)
258var tagNameScope = tracker?.TagName ?? string.Empty; 322var tagNameScope = tracker?.TagName ?? string.Empty; 419var minimizedAttribute = new KeyValuePair<string, string>(minimizedAttributeBlock.Name.GetContent(), string.Empty);
Language\NotFoundProjectItem.cs (1)
18public override string BasePath => string.Empty;
Language\RequiredAttributeDescriptorBuilder.cs (1)
51Name ?? string.Empty,
Language\SourceChange.cs (1)
107return string.Empty;
Language\Syntax\GreenNode.cs (1)
186return string.Empty;
Language\Syntax\InternalSyntax\SyntaxToken.cs (1)
78: base(kind, string.Empty, diagnostics)
Language\Syntax\MarkupEndTagSyntax.cs (1)
10return Name.IsMissing ? string.Empty : Bang.Content + Name.Content;
Language\Syntax\MarkupMinimizedTagHelperDirectiveAttributeSyntax.cs (2)
15Colon?.GetContent() ?? string.Empty, 16ParameterName?.GetContent() ?? string.Empty);
Language\Syntax\MarkupStartTagSyntax.cs (1)
10return Name.IsMissing ? string.Empty : Bang.Content + Name.Content;
Language\Syntax\MarkupTagHelperDirectiveAttributeSyntax.cs (2)
15Colon?.GetContent() ?? string.Empty, 16ParameterName?.GetContent() ?? string.Empty);
Language\Syntax\SyntaxFactory.cs (3)
13=> Token(kind, content: string.Empty, parent: null, position: 0, index: 0, diagnostics: diagnostics); 20=> Token(kind, string.Empty, parent, position, index: 0, diagnostics); 28=> Token(kind, string.Empty, parent, position, index, diagnostics);
Language\Syntax\SyntaxList`1.cs (1)
122=> Node?.ToString() ?? string.Empty;
Language\Syntax\SyntaxNodeOrToken.cs (1)
227return string.Empty;
Language\Syntax\SyntaxSerializer.cs (1)
171: string.Empty;
Language\Syntax\SyntaxToken.cs (2)
77public string Content => Node != null ? ((InternalSyntax.SyntaxToken)Node).Content : string.Empty; 82=> Node?.ToString() ?? string.Empty;
Language\Syntax\SyntaxTokenList.cs (1)
119=> Node != null ? Node.ToString() : string.Empty;
Language\TagMatchingRuleDescriptorBuilder.cs (1)
49TagName ?? string.Empty,
Mvc.Version2_X\NamespaceDirective.cs (1)
91return string.Empty;
Mvc\InjectDirective.cs (1)
73var typeName = hasType ? tokens[0].Content : string.Empty;
SourceGenerators\RazorSourceGenerator.cs (1)
387item.codeDocument.Source.FilePath ?? string.Empty, item.InheritsValue!, item.codeDocument.GetUsingDirectives()))
Microsoft.CodeAnalysis.ResxSourceGenerator (30)
AbstractResxGenerator.cs (1)
472var defaultValue = ResourceInformation.IncludeDefaultValues ? ", " + CreateStringLiteral(value, language) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
65static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
131appendChildren(indent: string.Empty);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
228return analyzerConfigOptions.GetOptionValue(optionName, tree, rule, TryParseValue, string.Empty); 370return new SymbolNamesWithValueOption<string?>.NameParts(split[0], string.Empty); 496string optionValue = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
193: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
266=> LogBlock(functionId, string.Empty, token, logLevel);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
149if (prefix != string.Empty) 153failureReason = Prefix == string.Empty 468new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 469new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 486writer.WriteString(Prefix ?? string.Empty); 487writer.WriteString(Suffix ?? string.Empty); 488writer.WriteString(WordSeparator ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
602docSubdirectory = string.Empty;
Hosting\CommandLine\CommandLineRunner.cs (1)
283newScript = Script.CreateInitialScript<object>(_scriptCompiler, SourceText.From(code ?? string.Empty), options, globals.GetType(), assemblyLoaderOpt: null);
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
410string v = FormatWithEmbeddedExpressions(lengthLimit, debuggerDisplay.Value, obj) ?? string.Empty; // TODO: ?
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
46return string.Empty;
Hosting\Resolvers\NuGetPackageResolver.cs (1)
32version = string.Empty;
ScriptOptions.cs (1)
26filePath: string.Empty,
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
137return String.Empty;
Microsoft.CodeAnalysis.VisualBasic (67)
Binding\Binder_Invocation.vb (2)
1104argumentValue = String.Empty 1144argumentValue = String.Empty
Binding\Binder_XmlLiterals.vb (3)
207childNodeBuilder.Add(CreateStringLiteral(syntax, String.Empty, compilerGenerated:=True, diagnostics:=diagnostics)) 931Return String.Empty 1290prefix = String.Empty
CommandLine\VisualBasicCommandLineParser.vb (1)
1399If Not String.Empty.Equals(rootNamespace) Then
Compilation\VisualBasicCompilation.vb (1)
2637Return If(corLibrary Is Nothing, String.Empty, corLibrary.Assembly.ManifestModule.MetadataVersion)
Declarations\GlobalNamespaceDeclaration.vb (1)
30MyBase.New(String.Empty, hasImports, syntaxReference, nameLocation, children)
Declarations\MergedNamespaceDeclaration.vb (1)
19MyBase.New(String.Empty)
Emit\PEModuleBuilder.vb (1)
121Return String.Empty
Emit\SymbolTranslator.vb (1)
144If(diagInfo, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)),
Generated\Syntax.xml.Main.Generated.vb (1)
45864Return String.Empty
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1394node.Syntax.ToString(), String.Empty, label.Name)
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
40Return factory.StringLiteral(ConstantValue.Create(String.Empty))
Scanner\ScannerInterpolatedString.vb (2)
223Dim text = If(offset > 0, GetTextNotInterned(offset), String.Empty) 234Return SyntaxFactory.Token(Nothing, SyntaxKind.EndOfInterpolatedStringToken, Nothing, String.Empty)
Scanner\ScannerXml.vb (2)
88Return SyntaxFactory.Token(Nothing, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) 782Return SyntaxFactory.Token(precedingTrivia.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty)
Scanner\TokenFactories.vb (2)
748Return SyntaxFactory.Token(precedingTrivia.Node, SyntaxKind.EndOfFileToken, Nothing, String.Empty) 751Private ReadOnly _simpleEof As SyntaxToken = SyntaxFactory.Token(Nothing, SyntaxKind.EndOfFileToken, Nothing, String.Empty)
Scanner\XmlDocComments.vb (3)
255Return SyntaxFactory.Token(Nothing, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) 377result = SyntaxFactory.Token(precedingTrivia.ToList.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) 481Return SyntaxFactory.Token(precedingTrivia.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty)
Semantics\Operators.vb (2)
1539Dim leftValue As String = If(left.IsNothing, String.Empty, left.StringValue) 1540Dim rightValue As String = If(right.IsNothing, String.Empty, right.StringValue)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
150If(vbNamedTypeSymbol.GetEmittedNamespaceName(), String.Empty), 151String.Empty)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
208VisitNamespace(symbol, String.Empty) 213Dim myCaseCorrectedParentNSName As String = String.Empty
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
231Return String.Empty
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
30Return String.Empty
Symbols\Attributes\AttributeData.vb (1)
500guidString = String.Empty
Symbols\Attributes\PEAttributeData.vb (2)
203ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)) 209Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\ErrorMethodSymbol.vb (1)
13Public Shared ReadOnly UnknownMethod As ErrorMethodSymbol = New ErrorMethodSymbol(ErrorTypeSymbol.UnknownResultType, ErrorTypeSymbol.UnknownResultType, String.Empty)
Symbols\ErrorTypeSymbol.vb (1)
148Return String.Empty
Symbols\EventSymbol.vb (1)
221If errorInfo.Arguments(0).Equals(String.Empty) Then
Symbols\ExtendedErrorTypeSymbol.vb (1)
33Me.New(errorInfo, String.Empty, 0, reportErrorWhenReferenced, nonErrorGuessType)
Symbols\InstanceErrorTypeSymbol.vb (1)
198Return String.Empty
Symbols\Metadata\PE\PEEventSymbol.vb (1)
68Me._name = String.Empty
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
65_name = String.Empty
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.vb (1)
43Return String.Empty
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
296_name = String.Empty
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
129name = String.Empty 1103Interlocked.CompareExchange(_lazyDefaultPropertyName, If(memberName, String.Empty), Nothing)
Symbols\Metadata\PE\PEParameterSymbol.vb (1)
284Return If(HasNameInMetadata, _name, String.Empty)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
105_name = String.Empty
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
86_name = String.Empty
Symbols\MissingMetadataTypeSymbol.vb (1)
69ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)) ' This is the best we can do at this point
Symbols\MissingNamespaceSymbol.vb (1)
32_name = String.Empty
Symbols\PointerTypeSymbol.vb (1)
35Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\Symbol.vb (2)
40Return String.Empty 1109useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty))
Symbols\Tuples\TupleTypeSymbol.vb (1)
241Return String.Empty
Symbols\UnsupportedMetadataTypeSymbol.vb (1)
38Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Syntax\InternalSyntax\SyntaxFactory.vb (1)
24Friend Shared ReadOnly ElasticZeroSpace As SyntaxTrivia = Whitespace(String.Empty, elastic:=True)
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
156t = SyntaxFactory.Token(Nothing, SyntaxKind.StatementTerminatorToken, Nothing, String.Empty)
Syntax\SyntaxFacts.vb (1)
532Return String.Empty
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (5)
21_node = Me.CloneNodeAsRoot(SyntaxFactory.ParseCompilationUnit(String.Empty)) 25Return String.Empty 29Return SourceText.From(String.Empty, Me.Encoding, ChecksumAlgorithm) 33text = SourceText.From(String.Empty, Me.Encoding, ChecksumAlgorithm) 63Return String.Empty
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
35_path = If(path, String.Empty)
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
55_path = If(path, String.Empty)
VisualBasicCompilationOptions.vb (1)
282_rootNamespace = If(rootNamespace, String.Empty)
VisualBasicExtensions.vb (1)
388String.Empty)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
883Return String.Empty 1098Return String.Empty
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (9)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
24otherSideType.Name = String.Empty
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (1)
126If argumentName IsNot String.Empty AndAlso Not FindCorrespondingParameterByName(argumentName, parameters,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (4)
112Return SyntaxFactory.StringLiteralExpression(SyntaxFactory.StringLiteralToken(s_doubleQuote & s_doubleQuote, String.Empty)) 201Dim suffix As String = String.Empty 345Dim suffix As String = String.Empty 382Dim suffix As String = String.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamespaceGenerator.vb (1)
89If name = String.Empty Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
14If text = String.Empty Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
77If symbol.Name = String.Empty OrElse symbol.IsAnonymousType Then
Microsoft.CodeAnalysis.VisualBasic.Features (7)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
216Return SpecializedCollections.SingletonEnumerable(CreateCompletionItem(nameToken.ValueText, beforeCaretText:=nameToken.ValueText & ">", afterCaretText:=String.Empty))
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (1)
79Return String.Empty
Completion\KeywordRecommenders\Declarations\OverloadableOperatorRecommender.vb (1)
97Return String.Empty
ExtractInterface\VisualBasicExtractInterfaceService.vb (3)
52Return String.Empty 58If rootNamespace Is Nothing OrElse rootNamespace = String.Empty Then 63Return String.Empty
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (1)
126If argumentName IsNot String.Empty AndAlso Not FindCorrespondingParameterByName(argumentName, parameters,
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\BasicIdentifiersShouldNotContainUnderscores.Fixer.vb (1)
20Return String.Empty
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.vb (1)
113If symbol.Name = String.Empty OrElse symbol.IsAnonymousType Then
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScript.vb (1)
26Return Script.CreateInitialScript(Of T)(VisualBasicScriptCompiler.Instance, SourceText.From(If(code, String.Empty)), options, globalsType, assemblyLoader)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (15)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1988Return String.Empty
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
307Dim prefix = If(isRenameLocation AndAlso Me._renameLocations(token.Span).IsRenamableAccessor, newToken.ValueText.Substring(0, newToken.ValueText.IndexOf("_"c) + 1), String.Empty) 530Dim withoutSuffix = String.Empty
Simplification\Simplifiers\NameSimplifier.vb (1)
369Dim newIdentifierText = String.Empty
Simplification\VisualBasicSimplificationService.Expander.vb (1)
581Dim newName = String.Empty
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
24otherSideType.Name = String.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
883Return String.Empty 1098Return String.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (4)
112Return SyntaxFactory.StringLiteralExpression(SyntaxFactory.StringLiteralToken(s_doubleQuote & s_doubleQuote, String.Empty)) 201Dim suffix As String = String.Empty 345Dim suffix As String = String.Empty 382Dim suffix As String = String.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamespaceGenerator.vb (1)
89If name = String.Empty Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
14If text = String.Empty Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
77If symbol.Name = String.Empty OrElse symbol.IsAnonymousType Then
Microsoft.CodeAnalysis.Workspaces (52)
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (2)
101=> new(string.Empty, IsComplexType: true, IsArray: false); 140? new ParameterTypeInfo(string.Empty, IsComplexType: true, IsArray: true)
Log\EtwEventSink.cs (1)
56=> IsVerbose() ? logMessage.GetMessage() : string.Empty;
Log\RoslynEventSource.cs (2)
47=> WriteEvent(1, message ?? string.Empty, (int)functionId); 51=> WriteEvent(2, message ?? string.Empty, (int)functionId, blockId);
Log\RoslynEventSource.LogBlock.cs (1)
122_message ??= (_entityForMessage?.ToString() ?? string.Empty);
Log\TraceEventSink.cs (1)
35var functionString = functionId.ToString() + (cancellationToken.IsCancellationRequested ? " Canceled" : string.Empty);
Options\OptionKey.cs (1)
78: string.Empty;
Shared\Extensions\ILanguageMetadataExtensions.cs (1)
36var language = service.Metadata?.Language ?? string.Empty;
Shared\Utilities\BloomFilter.cs (1)
502value = string.Empty;
Shared\Utilities\DocumentationComment.cs (2)
211return string.Empty; 374public static readonly DocumentationComment Empty = new(string.Empty);
src\roslyn\src\Compilers\Core\Portable\CodeAnalysisEventSource.Common.cs (1)
184internal void ProjectCreated(string projectSystemName, string? filePath) => WriteEvent(20, projectSystemName, filePath ?? string.Empty);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
193: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
266=> LogBlock(functionId, string.Empty, token, logLevel);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
149if (prefix != string.Empty) 153failureReason = Prefix == string.Empty 468new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 469new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 486writer.WriteString(Prefix ?? string.Empty); 487writer.WriteString(Suffix ?? string.Empty); 488writer.WriteString(WordSeparator ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
52if (info.Context.GenerateMembers && info.Context.MergeNestedNamespaces && @namespace.Name != string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
394name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
10internal sealed class CodeGenerationArrayTypeSymbol(ITypeSymbol elementType, int rank, NullableAnnotation nullableAnnotation) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, nullableAnnotation), IArrayTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (1)
22name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
18name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
49return this.Name == string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
9internal sealed class CodeGenerationPointerTypeSymbol(ITypeSymbol pointedAtType) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, NullableAnnotation.None), IPointerTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
53var bestPath = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
37var publicKeyToken = thisAssemblyName.GetPublicKeyToken()?.Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
135=> GenerateUniqueName(baseName, string.Empty, canUse);
Utilities\Documentation\DeferredDocumentationProvider.cs (1)
35? string.Empty
Workspace\Solution\Solution.cs (1)
1028var sourceText = SourceText.From(string.Empty, encoding: null, project.ChecksumAlgorithm);
Workspace\Solution\TextAndVersion.cs (1)
43FilePath = filePath ?? string.Empty;
Workspace\Solution\TextDocumentState.cs (1)
159: CreateStrongText(TextAndVersion.Create(SourceText.From(string.Empty, encoding: null, loadTextOptions.ChecksumAlgorithm), VersionStamp.Default, filePath));
Workspace\Solution\TextLoader.cs (1)
161SourceText.From(string.Empty, Encoding.UTF8),
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
192var projectName = Path.GetFileNameWithoutExtension(projectPath) ?? string.Empty;
MSBuild\ProjectLoadProgressExtensions.cs (1)
31progress.Report(new ProjectLoadProgress(projectPath ?? string.Empty, operation, targetFramework, watch.Elapsed));
MSBuild\SolutionFileReader.SolutionFilterReader.cs (2)
33solutionFilename = string.Empty; 70solutionFilename = string.Empty;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
MSBuild\ProjectFile\ProjectFile.cs (2)
30=> project?.FullPath ?? string.Empty; 171=> item.Metadata.FirstOrDefault(m => string.Equals(m.Name, MetadataNames.HintPath, StringComparison.OrdinalIgnoreCase))?.EvaluatedValue ?? string.Empty;
MSBuild\ProjectFile\ProjectInstance.cs (1)
38return string.Empty;
MSBuild\ProjectFile\ProjectInstanceReader.cs (1)
82var defaultNamespace = _projectInstance.ReadPropertyString(PropertyNames.RootNamespace) ?? string.Empty;
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
ProjectFileInfo.cs (1)
167? FilePath ?? string.Empty
Microsoft.Data.Analysis (4)
TextFieldParser.cs (4)
608if (Token == string.Empty) 900string field = (fieldLength > 0) ? line.SubstringByTextElements(index, fieldLength) : ((index < line.LengthInTextElements) ? line.SubstringByTextElements(index).TrimEnd(_newLineChars) : string.Empty); 1044if (token != string.Empty && (_hasFieldsEnclosedInQuotes && (_textFieldType == FieldType.Delimited)) && string.Compare(token.Trim(), "\"", StringComparison.Ordinal) == 0) 1061if (delimiter == string.Empty)
Microsoft.Data.Analysis.Interactive (1)
DataFrameKernelExtension.cs (1)
52var maxMessage = df.Rows.Count > maxRowCount ? $" (showing a max of {maxRowCount} rows)" : string.Empty;
Microsoft.Data.Analysis.Tests (5)
DataFrameGroupByTests.cs (1)
100var message = string.Empty;
parent\parent\src\Microsoft.Data.Analysis\TextFieldParser.cs (4)
608if (Token == string.Empty) 900string field = (fieldLength > 0) ? line.SubstringByTextElements(index, fieldLength) : ((index < line.LengthInTextElements) ? line.SubstringByTextElements(index).TrimEnd(_newLineChars) : string.Empty); 1044if (token != string.Empty && (_hasFieldsEnclosedInQuotes && (_textFieldType == FieldType.Delimited)) && string.Compare(token.Trim(), "\"", StringComparison.Ordinal) == 0) 1061if (delimiter == string.Empty)
Microsoft.Deployment.DotNet.Releases (9)
ProductCollection.cs (1)
61if (releasesIndexUri == string.Empty)
ReleaseFile.cs (1)
111if (destinationPath == string.Empty)
ReleaseVersion.cs (5)
310v += !string.IsNullOrWhiteSpace(Prerelease) ? $"-{Prerelease}" : string.Empty; 311v += !string.IsNullOrWhiteSpace(BuildMetadata) ? $"+{BuildMetadata}" : string.Empty; 327return string.Empty; 331value += fieldCount >= 4 && !string.IsNullOrWhiteSpace(Prerelease) ? $"-{Prerelease}" : string.Empty; 332value += fieldCount >= 5 && !string.IsNullOrWhiteSpace(BuildMetadata) ? $"+{BuildMetadata}" : string.Empty;
Utils.cs (2)
88if (fileName == string.Empty) 130if (path == string.Empty)
Microsoft.Diagnostics.DataContractReader (4)
CachingContractRegistry.cs (1)
107if (_creators.TryGetValue((contractType, string.Empty), out creator))
ContractDescriptorParser.cs (1)
352value = string.Empty;
ContractDescriptorTarget.cs (2)
711return string.Empty; 736return string.Empty;
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Contracts\IGCInfo.cs (1)
104public string RegisterName => _registerName ?? string.Empty;
Microsoft.Diagnostics.DataContractReader.Contracts (11)
Contracts\Loader_1.cs (4)
480: string.Empty; 487return string.Empty; 491: string.Empty; 499: string.Empty;
Contracts\Object_1.cs (1)
56return string.Empty;
Contracts\RuntimeTypeSystem_1.cs (2)
414: string.Empty; 1776methodName = string.Empty;
Contracts\StackWalk\Context\ContextHolder.cs (1)
79public override string ToString() => Context.ToString() ?? string.Empty;
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
70return string.Empty;
EcmaMetadataUtils.cs (2)
65return string.Empty; 71return string.Empty;
Microsoft.Diagnostics.DataContractReader.DataGenerator (2)
Parser.cs (2)
74? string.Empty 189string fqn = a.AttributeClass?.ToDisplayString() ?? string.Empty;
Microsoft.Diagnostics.DataContractReader.Legacy (11)
ClrDataAppDomain.cs (2)
55friendlyName = string.Empty; 60friendlyName = string.Empty;
ClrDataFrame.cs (4)
242OutputBufferHelpers.CopyStringToBuffer(name, bufLen, nameLen, paramName ?? string.Empty); 246OutputBufferHelpers.CopyStringToBuffer(name, bufLen, nameLen, string.Empty); 251OutputBufferHelpers.CopyStringToBuffer(name, bufLen, nameLen, string.Empty); 346OutputBufferHelpers.CopyStringToBuffer(name, bufLen, nameLen, string.Empty);
ClrDataModule.cs (1)
623string result = string.Empty;
Dbi\DacDbiImpl.cs (3)
372string path = string.Empty; 385hr = StringHolderAssignCopy(pStrFilename, string.Empty); 4843string path = string.Empty;
MetaDataImportImpl.cs (1)
1088return string.Empty;
Microsoft.DiaSymReader (1)
Utilities\InteropUtilities.cs (1)
33namespaceStr = string.Empty;
Microsoft.DotNet.ApiCompat.Task (2)
ValidatePackageTask.cs (2)
184if (targetFrameworkMoniker == string.Empty || referencePath == string.Empty)
Microsoft.DotNet.ApiCompatibility (6)
Logging\Suppression.cs (5)
39DiagnosticId = string.Empty; 69public bool ShouldSerializeDiagnosticId() => DiagnosticId != string.Empty; 93hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(Target?.ToLowerInvariant() ?? string.Empty); 94hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(Left?.ToLowerInvariant() ?? string.Empty); 95hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(Right?.ToLowerInvariant() ?? string.Empty);
Logging\SuppressionEngine.cs (1)
74Suppression globalLeftRightSuppression = new(string.Empty, left: error.Left, right: error.Right, isBaselineSuppression: error.IsBaselineSuppression);
Microsoft.DotNet.Arcade.Sdk (3)
src\GenerateChecksums.cs (1)
60string checksum = BitConverter.ToString(hash).Replace("-", string.Empty);
src\GenerateResxSource.cs (1)
138string defaultValue = IncludeDefaultValues ? ", " + CreateStringLiteral(value, language) : string.Empty;
src\InstallDotNetCore.cs (1)
266string architecture = string.Empty;
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
61return string.Empty;
Microsoft.DotNet.Build.Manifest (1)
BuildModelFactory.cs (1)
227repoUri = repoUri.Replace($"{parsedUri.UserInfo}@", string.Empty);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
583string errorMessage = string.Empty;
Microsoft.DotNet.Build.Tasks.FileCatalog (2)
CatalogMemberEncoder.cs (1)
88writer.WriteCharacterString(UniversalTagNumber.BMPString, string.Empty, unicodeTag);
GenerateFileCatalog.cs (1)
28public string OutputPath { get; set; } = string.Empty;
Microsoft.DotNet.Build.Tasks.Installers (4)
src\CreateWixBuildWixpack.cs (1)
134_wixprojDir = string.Empty;
src\GenerateCurrentVersion.cs (2)
76GeneratedVersion = string.Empty; 145return string.Empty;
src\GenerateGuidFromName.cs (1)
28var nameBytes = System.Text.Encoding.UTF8.GetBytes(Name ?? string.Empty);
Microsoft.DotNet.Build.Tasks.Packaging (7)
GeneratePackageReport.cs (1)
182private static string[] s_noRids = new[] { string.Empty };
NuGetPack.cs (2)
230return string.Empty; 252return string.Empty;
PackageItem.cs (1)
59TargetDirectory = (dirLength > 0) ? TargetPath.Substring(0, dirLength) : String.Empty;
ValidateHarvestVersionIsLatestForRelease.cs (3)
70harvestVersion = string.Empty; 105harvestVersion = string.Empty; 139return (latestPatchVersion == null) ? string.Empty : $"{latestPatchVersion.Major}.{latestPatchVersion.Minor}.{latestPatchVersion.Build}";
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
ChooseBestP2PTargetFrameworkTask.cs (1)
111Log.LogError(string.Format(CultureInfo.CurrentCulture, "Project '{0}' targets '{1}'. It cannot be referenced by a project that targets '{2}{3}'.", project.ItemSpec, referencedProjectFrameworkString, projectNuGetFramework.DotNetFrameworkName, projectNuGetFramework.HasPlatform ? "-" + projectNuGetFramework.DotNetPlatformName : string.Empty));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\IbcEntry.cs (1)
88let filePath = fileName.Replace("/Contents/", string.Empty).Replace("/", "\\")
Microsoft.DotNet.Build.Tasks.Workloads (1)
Utils.cs (1)
97if (value == string.Empty)
Microsoft.DotNet.Cli.CoreUtils (4)
GracefulException.cs (1)
9public string VerboseMessage { get; } = string.Empty;
Product.cs (1)
21?? string.Empty;
Resources\ManagedAssemblyIdentity.cs (2)
82assemblyName.CultureName ?? string.Empty, 106? string.Empty
Microsoft.DotNet.Cli.Definitions (15)
Common\ImplicitRestoreOptions.cs (7)
30Description = showHelp ? CommandDefinitionStrings.CmdPackagesOptionDescription : string.Empty, 39Description = showHelp ? CommandDefinitionStrings.CmdDisableParallelOptionDescription : string.Empty, 46Description = showHelp ? CommandDefinitionStrings.CmdConfigFileOptionDescription : string.Empty, 53Description = string.Empty, 60Description = showHelp ? CommandDefinitionStrings.CmdNoHttpCacheOptionDescription : string.Empty, 67Description = showHelp ? CommandDefinitionStrings.CmdIgnoreFailedSourcesOptionDescription : string.Empty, 91Description = showHelp ? CommandDefinitionStrings.CmdSourceOptionDescription : string.Empty,
Help\HelpBuilder.cs (2)
213var symbolDescription = customizedSymbolDescription ?? symbol.Description ?? string.Empty; 219: string.Empty;
Help\HelpBuilder.Default.cs (3)
35null => string.Empty, 38_ => value.ToString() ?? string.Empty 45public static string GetArgumentDescription(Argument argument) => argument.Description ?? string.Empty;
Help\LocalizationResources.cs (1)
100return string.Empty;
src\sdk\src\Common\WorkloadSetVersion.cs (1)
73: string.Empty;
src\sdk\src\Resolvers\Microsoft.DotNet.NativeWrapper\Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
Microsoft.DotNet.Cli.InternalMicrosoft (3)
Internal\InternalMicrosoftDetectionContext.cs (1)
280: [string.Empty];
Internal\InternalMicrosoftDetectionUtilities.cs (2)
119value = string.Empty; 122(value = property.GetString() ?? string.Empty).Length > 0;
Microsoft.DotNet.Cli.Telemetry (9)
Implementation\BreezeEnvelope.cs (8)
22public string Name { get; set; } = string.Empty; 25public string Time { get; set; } = string.Empty; 28public string InstrumentationKey { get; set; } = string.Empty; 41public string BaseType { get; set; } = string.Empty; 51public string Id { get; set; } = string.Empty; 57public string Duration { get; set; } = string.Empty; 77public string Id { get; set; } = string.Empty; 87public string Duration { get; set; } = string.Empty;
Implementation\BreezeWriter.cs (1)
62value = string.Empty;
Microsoft.DotNet.Cli.Utils (22)
CommandAvailableAsDotNetToolException.cs (1)
19var commandRemoveLeadingDotnet = commandName.Replace("dotnet-", string.Empty);
CommandUnknownException.cs (1)
8public string InstructionMessage { get; } = string.Empty;
Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
EnvironmentProvider.cs (3)
16private readonly Lazy<string> _userHomeDirectory = new(() => Environment.GetEnvironmentVariable("HOME") ?? string.Empty); 28.Select(e => e.ToLower().Trim('"')) ?? [string.Empty] 29: [string.Empty];
Extensions\LockFileExtensions.cs (1)
16var userPackageFolder = packageFoldersCount == 1 ? string.Empty : packageFolders.First();
Extensions\TypeExtensions.cs (1)
17var typeName = type.FullName ?? string.Empty;
FileNameSuffixes.cs (2)
52Exe = string.Empty, 60Exe = string.Empty,
FrameworkDependencyFile.cs (1)
105using (Stream depsFileStream = File.OpenRead(_depsFilePath ?? string.Empty))
MSBuildForwardingAppWithoutLogging.cs (1)
168if (value == string.Empty || value == "\0")
Muxer.cs (2)
20var depsFile = new FileInfo(GetDataFromAppDomain("FX_DEPS_FILE") ?? string.Empty); 21return depsFile.Directory?.Name ?? string.Empty;
PathUtility.cs (1)
280var result = string.Empty;
RuntimeEnvironment.cs (2)
67return GetDistroVersionId() ?? string.Empty; 80return string.Empty;
StreamForwarder.cs (1)
91WriteLine(_builder?.ToString() ?? string.Empty);
TelemetryEventEntry.cs (1)
75var appliedProperties = Properties?.ToDictionary(p => p.Key, p => (string?)func(p.Value ?? string.Empty));
ToolCommandName.cs (1)
15if (name == string.Empty)
UILanguageOverride.cs (1)
135var buildNumber = windowsVersionRegistry?.GetValue("CurrentBuildNumber")?.ToString() ?? string.Empty;
Uuid.cs (1)
21var nameBytes = Encoding.UTF8.GetBytes(name ?? string.Empty);
Microsoft.DotNet.CMake.Sdk (1)
src\CreateCMakeFileApiQuery.cs (1)
37File.WriteAllText(TaskEnvironment.GetAbsolutePath(queryFile), string.Empty);
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
145string altMsg = string.Empty;
Microsoft.DotNet.Configurer (3)
CliFolderPathCalculator.cs (1)
18Path.Combine(new DirectoryInfo(AppContext.BaseDirectory).Parent?.FullName ?? string.Empty, "NuGetFallbackFolder");
DotnetFirstTimeUseConfigurer.cs (1)
101NuGetVersion.TryParse(productVersion, out var parsedVersion) ? $"{parsedVersion.Major}.{parsedVersion.Minor}" : string.Empty;
IFileExtensions.cs (1)
17var parentDirectory = Path.GetDirectoryName(filePath) ?? string.Empty;
Microsoft.DotNet.HotReload.Utils.Generator.Data (1)
Script\Json\ScriptCapabilitiesConverter.cs (1)
19JsonTokenType.Null => string.Empty,
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (2)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (2)
41BaseAssemblyName = string.Empty; 42DeltaScript = string.Empty;
Microsoft.DotNet.HotReload.Watch (11)
HotReload\HotReloadDotNetWatcher.cs (1)
1340return $".{(relativePath.StartsWith(Path.DirectorySeparatorChar) ? string.Empty : Path.DirectorySeparatorChar)}{relativePath}";
src\sdk\src\Dotnet.Watch\AspireService\Contracts\IAspireServerEvents.cs (1)
32public string ProjectPath { get; set; } = string.Empty;
src\sdk\src\Dotnet.Watch\AspireService\Helpers\ExceptionExtensions.cs (2)
18string msg = string.Empty; 23if (msg == string.Empty)
src\sdk\src\Dotnet.Watch\AspireService\Helpers\HttpContextExtensions.cs (2)
35return dcpHeader[0]?? string.Empty; 38return string.Empty;
src\sdk\src\Dotnet.Watch\AspireService\Models\RunSessionRequest.cs (4)
19public string Name { get; set; } = string.Empty; 29public string LaunchType { get; set; } = string.Empty; 33public string ProjectPath { get; set; } = string.Empty; 42public string LaunchMode { get; set; } = string.Empty;
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\StreamExtensions.cs (1)
214return string.Empty;
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
100public string Capabilities => _capabilities ?? string.Empty;
Microsoft.DotNet.MacOsPkg.Core (1)
ExecuteHelper.cs (1)
19string output = string.Empty;
Microsoft.DotNet.NativeWrapper (9)
Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
NETCoreSdkResolverNativeWrapper.cs (1)
37SdkResolutionResult result = ResolveSdk(string.Empty, globalJsonStartDirectory);
PlatformString.cs (3)
26return string.Empty; 32return Marshal.PtrToStringUTF8(Value) ?? string.Empty; 36return Marshal.PtrToStringUni(Value) ?? string.Empty;
src\sdk\src\Common\HostFxrPathResolver.cs (4)
38return string.Empty; 44return string.Empty; 68return string.Empty; 78return fileExists(hostfxrPath) ? hostfxrPath : string.Empty;
Microsoft.DotNet.PackageValidation (1)
Filtering\TargetFrameworkFilter.cs (1)
27if (targetFramework == string.Empty)
Microsoft.DotNet.SharedFramework.Sdk (11)
src\GeneratePlatformManifestEntriesFromFileList.cs (2)
35AssemblyVersion = FileUtilities.GetAssemblyName(originalFilePath)?.Version.ToString() ?? string.Empty, 36FileVersion = FileUtilities.GetFileVersion(originalFilePath)?.ToString() ?? string.Empty
src\GeneratePlatformManifestEntriesFromTemplate.cs (4)
46AssemblyVersion = FileUtilities.GetAssemblyName(existingFilePath)?.Version.ToString() ?? string.Empty, 47FileVersion = FileUtilities.GetFileVersion(existingFilePath)?.ToString() ?? string.Empty 57string assemblyVersion = string.Empty; 58string fileVersion = string.Empty;
src\GenerateSharedFrameworkDepsFile.cs (5)
53var target = new TargetInfo(TargetFrameworkMoniker, RuntimeIdentifier, string.Empty, isPortable: false); 67string fileVersion = FileUtilities.GetFileVersion(absoluteFilePath)?.ToString() ?? string.Empty; 91hash: string.Empty, 92runtimeAssemblyGroups: new[] { new RuntimeAssetGroup(string.Empty, runtimeFiles) }, 93nativeLibraryGroups: new[] { new RuntimeAssetGroup(string.Empty, nativeFiles) },
Microsoft.DotNet.SourceBuild.Tasks (3)
src\WriteBuildOutputProps.cs (3)
104string overwriteCondition = string.Empty; 133?? string.Empty); 143?? string.Empty);
Microsoft.DotNet.TemplateLocator (22)
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
44return _version?.ToString() ?? string.Empty;
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
522return (string.Empty, string.Empty); 549return (string.Empty, string.Empty);
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (2)
111var patch = releaseVersion.Patch > 0 ? $".{releaseVersion.Patch}" : string.Empty; 112var release = string.IsNullOrWhiteSpace(releaseVersion.Prerelease) ? string.Empty : $"-{releaseVersion.Prerelease}";
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
37string.Empty, // The version here isn't used.
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifest.cs (1)
51public static WorkloadManifest CreateForTests(string id) => new(id, new FXVersion(7, 3, 5), null, string.Empty, [], [], []);
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (10)
227var dependencyId = reader.GetString() ?? string.Empty; 259var workloadId = new WorkloadId(reader.GetString() ?? string.Empty); 285var packId = new WorkloadPackId(reader.GetString() ?? string.Empty); 311list.Add(reader.GetString() ?? string.Empty); 334list.Add(map(reader.GetString() ?? string.Empty)); 357var name = reader.GetString() ?? string.Empty; 360dictionary.Add(name, val ?? string.Empty); 383var name = reader.GetString() ?? string.Empty; 384var val = mapValue(ReadString(ref reader) ?? string.Empty); 471replaceWith = new WorkloadId(ReadString(ref reader) ?? string.Empty);
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
52new(reader.GetString() ?? string.Empty);
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
38string manifestVersionString = string.Empty;
src\sdk\src\Common\WorkloadSetVersion.cs (1)
73: string.Empty;
Microsoft.DotNet.XliffTasks (1)
Tasks\XlfTask.cs (1)
115string languageSuffix = IsNeutralLanguage(language) ? string.Empty : $".{language}";
Microsoft.Extensions.AI (6)
ChatCompletion\ChatResponse{T}.cs (1)
126var json = Messages.Count > 0 ? Messages[Messages.Count - 1].Text : string.Empty;
ChatCompletion\FunctionInvocationContext.cs (1)
42get => field ??= new(string.Empty, _nopFunction.Name, EmptyReadOnlyDictionary<string, object?>.Instance);
ChatCompletion\FunctionInvokingChatClient.cs (3)
1603? string.Empty 1604: (currentMessage.MessageId ?? string.Empty); 1612var messageKey = resultWithRequestMessage.RequestMessage?.MessageId ?? string.Empty;
Image\LoggingImageGenerator.cs (1)
67LogInvokedSensitive(nameof(GenerateAsync), request.Prompt ?? string.Empty, AsJson(options), AsJson(this.GetService<ImageGeneratorMetadata>()));
Microsoft.Extensions.AI.Abstractions (21)
ChatCompletion\ChatMessage.cs (1)
124private string EllipsesForDebuggerDisplay => _contents is { Count: > 1 } ? ", ..." : string.Empty;
ChatCompletion\ChatResponse.cs (1)
61public string Text => _messages?.ConcatText() ?? string.Empty;
ChatCompletion\ChatResponseUpdate.cs (2)
100public string Text => _contents is not null ? _contents.ConcatText() : string.Empty; 192private string EllipsesForDebuggerDisplay => _contents is { Count: > 1 } ? ", ..." : string.Empty;
Contents\AIContentExtensions.cs (3)
27return string.Empty; 30return (list[0] as TextContent)?.Text ?? string.Empty; 70return string.Empty;
Contents\ErrorContent.cs (3)
28get => field ?? string.Empty; 42(!string.IsNullOrWhiteSpace(ErrorCode) ? $" ({ErrorCode})" : string.Empty) + 43(!string.IsNullOrWhiteSpace(Details) ? $" - \"{Details}\"" : string.Empty);
Contents\TextContent.cs (1)
30get => field ?? string.Empty;
Contents\TextReasoningContent.cs (1)
35get => field ?? string.Empty;
Functions\AIFunctionFactory.cs (4)
517description ?? string.Empty, 830Description = key.Description ?? key.Method.GetCustomAttribute<DescriptionAttribute>(inherit: true)?.Description ?? string.Empty; 840title: string.Empty, // Forces skipping of the title keyword 841description: string.Empty, // Forces skipping of the description keyword
Realtime\RealtimeServerMessageType.cs (1)
149public override string ToString() => Value ?? string.Empty;
Realtime\RealtimeSessionKind.cs (1)
86public override string ToString() => Value ?? string.Empty;
SpeechToText\SpeechToTextResponse.cs (1)
69public string Text => _contents?.ConcatText() ?? string.Empty;
SpeechToText\SpeechToTextResponseUpdate.cs (1)
89public string Text => _contents?.ConcatText() ?? string.Empty;
Tools\AITool.cs (1)
26public virtual string Description => string.Empty;
Microsoft.Extensions.AI.Abstractions.Tests (41)
ChatCompletion\ChatMessageTests.cs (2)
28Assert.Equal(string.Empty, message.ToString()); 56Assert.Equal(text ?? string.Empty, message.ToString());
ChatCompletion\ChatResponseUpdateTests.cs (1)
27Assert.Equal(string.Empty, update.ToString());
Contents\DataContentTests.cs (2)
676savedPath = await content.SaveToAsync(string.Empty); 701await Assert.ThrowsAsync<ArgumentException>("path", async () => await DataContent.LoadFromAsync(string.Empty));
Contents\HostedFileContentTests.cs (2)
16Assert.Throws<ArgumentException>("fileId", () => new HostedFileContent(string.Empty)); 46Assert.Throws<ArgumentException>("value", () => c.FileId = string.Empty);
Contents\HostedVectorStoreContentTests.cs (2)
16Assert.Throws<ArgumentException>("vectorStoreId", () => new HostedVectorStoreContent(string.Empty)); 39Assert.Throws<ArgumentException>("value", () => c.VectorStoreId = string.Empty);
Contents\McpServerToolCallContentTests.cs (2)
55Assert.Throws<ArgumentException>("callId", () => new McpServerToolCallContent(string.Empty, "name", null)); 56Assert.Throws<ArgumentException>("name", () => new McpServerToolCallContent("callId1", string.Empty, null));
Contents\McpServerToolResultContentTests.cs (1)
49Assert.Throws<ArgumentException>("callId", () => new McpServerToolResultContent(string.Empty));
Contents\TextContentTests.cs (7)
20Assert.Equal(text ?? string.Empty, c.Text); 38Assert.Equal(string.Empty, c.Text); 44Assert.Equal(string.Empty, c.Text); 45Assert.Equal(string.Empty, c.ToString()); 47c.Text = string.Empty; 48Assert.Equal(string.Empty, c.Text); 49Assert.Equal(string.Empty, c.ToString());
Contents\TextReasoningContentTests.cs (7)
21Assert.Equal(text ?? string.Empty, c.Text); 39Assert.Equal(string.Empty, c.Text); 45Assert.Equal(string.Empty, c.Text); 46Assert.Equal(string.Empty, c.ToString()); 48c.Text = string.Empty; 49Assert.Equal(string.Empty, c.Text); 50Assert.Equal(string.Empty, c.ToString());
Files\HostedFileClientExtensionsTests.cs (4)
116await Assert.ThrowsAsync<ArgumentException>("filePath", () => client.UploadAsync(string.Empty)); 214savedPath = await client.DownloadToAsync("file-cwd", string.Empty); 276await Assert.ThrowsAsync<ArgumentException>("fileId", () => client.DownloadToAsync(string.Empty, "path")); 396await Assert.ThrowsAsync<ArgumentException>("fileId", () => client.DownloadAsDataContentAsync(string.Empty));
SpeechToText\SpeechToTextResponseTests.cs (2)
33Assert.Equal(string.Empty, response.ToString()); 58Assert.Equal(text ?? string.Empty, response.ToString());
SpeechToText\SpeechToTextResponseUpdateTests.cs (1)
24Assert.Equal(string.Empty, update.ToString());
Tools\HostedMcpServerToolTests.cs (3)
124Assert.Throws<ArgumentException>("serverName", () => new HostedMcpServerTool(string.Empty, "https://localhost/")); 125Assert.Throws<ArgumentException>("serverName", () => new HostedMcpServerTool(string.Empty, new Uri("https://localhost/"))); 129Assert.Throws<ArgumentException>("serverAddress", () => new HostedMcpServerTool("name", string.Empty));
Utilities\AIJsonUtilitiesTests.cs (5)
295JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty); 358JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty, description: string.Empty, inferenceOptions: inferenceOptions); 434JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method, title: string.Empty); 496JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method, title: string.Empty, serializerOptions: options);
Microsoft.Extensions.AI.Evaluation (1)
ChatMessageExtensions.cs (1)
119return string.Empty;
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\DeviceIdHelper.cs (1)
56deviceId = string.Empty;
Microsoft.Extensions.AI.Evaluation.Quality (8)
CoherenceEvaluator.cs (1)
119string renderedUserRequest = userRequest?.RenderText() ?? string.Empty;
EquivalenceEvaluator.cs (1)
126string renderedUserRequest = userRequest?.RenderText() ?? string.Empty;
IntentResolutionRating.cs (3)
17explanation: string.Empty, 18agentPerceivedIntent: string.Empty, 19actualUserIntent: string.Empty,
RelevanceTruthAndCompletenessRating.cs (3)
17relevanceReasoning: string.Empty, 20truthReasoning: string.Empty, 23completenessReasoning: string.Empty,
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
DiskBased\PathValidationTests.cs (1)
398File.WriteAllText(Path.Combine(longRoot, "file.txt"), string.Empty);
ScenarioRunResultTests.cs (2)
56var stringMetric = new StringMetric("string", value: "A", reason: string.Empty); 148var stringMetric = new StringMetric("string", value: "A", reason: string.Empty);
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyService.cs (1)
416request.Content = new StringContent(payload ?? string.Empty);
ContentSafetyServicePayloadUtilities.cs (1)
129userTextListItems.Select(item => string.Join(string.Empty, item.Select(e => e.ToString())));
Microsoft.Extensions.AI.Evaluation.Tests (1)
BuiltInMetricUtilitiesTests.cs (1)
62metric.AddOrUpdateMetadata(BuiltInMetricUtilities.BuiltInEvalMetadataName, string.Empty);
Microsoft.Extensions.AI.Integration.Tests (2)
VerbatimHttpHandler.cs (1)
99return Regex.Replace(text, @"\s*", string.Empty);
VerbatimMultiPartHttpHandler.cs (1)
219Regex.Replace(text, @"\s*", string.Empty);
Microsoft.Extensions.AI.OpenAI (22)
OpenAIChatClient.cs (5)
200yield return new ToolChatMessage(resultContent.CallId, result ?? string.Empty); 249new(ChatMessageContentPart.CreateTextPart(string.Empty)); 282parts.Add(ChatMessageContentPart.CreateTextPart(string.Empty)); 469fci.Arguments?.ToString() ?? string.Empty, 850name = InvalidAuthorNameRegex().Replace(name, string.Empty);
OpenAIRealtimeClientSession.cs (14)
63_model = model ?? string.Empty; 257metadata[kvp.Key] = BinaryData.FromString(kvp.Value?.ToString() ?? string.Empty); 640: string.Empty; 642functionResult.CallId ?? string.Empty, 652functionCall.CallId ?? string.Empty, 660approvalResponse.RequestId ?? string.Empty, 670contentParts.Add(new Sdk.RealtimeInputTextMessageContentPart(textContent.Text ?? string.Empty)); 734string dataUri = content.Uri?.ToString() ?? string.Empty; 1103[new FunctionResultContent(funcOutputItem.CallId ?? string.Empty, funcOutputItem.FunctionOutput)], 1117[new FunctionCallContent(funcCallItem.CallId ?? string.Empty, funcCallItem.FunctionName, arguments)], 1172string callId = mcpItem.Id ?? string.Empty; 1186new McpServerToolCallContent(callId, mcpItem.ToolName ?? string.Empty, mcpItem.ServerLabel) 1211string approvalId = approvalItem.Id ?? string.Empty; 1223var toolCall = new McpServerToolCallContent(approvalId, approvalItem.ToolName ?? string.Empty, approvalItem.ServerLabel)
OpenAIResponsesChatClient.cs (3)
1398parts.Add(ResponseContentPart.CreateInputTextPart(string.Empty)); 1503FunctionCallOutputResponseItem outputItem = new(callId, string.Empty); 1536yield return ResponseItem.CreateFunctionCallOutputItem(resultContent.CallId, result ?? string.Empty);
Microsoft.Extensions.AI.OpenAI.Tests (8)
OpenAIChatClientTests.cs (3)
527string responseText = string.Empty; 682string responseText = string.Empty; 1556string detailProperty = expectedDetail is not null ? $"\"detail\": \"{expectedDetail}\"," : string.Empty;
OpenAIResponseClientTests.cs (5)
3119using VerbatimHttpHandler handler = new(string.Empty, string.Empty); 3362using VerbatimHttpHandler handler = new(string.Empty, string.Empty); 7367RequestBodies.Add(request.Content is null ? string.Empty : await request.Content.ReadAsStringAsync().ConfigureAwait(false));
Microsoft.Extensions.AI.Stabilization.Tests (2)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\Contents\HostedFileContentTests.cs (2)
16Assert.Throws<ArgumentException>("fileId", () => new HostedFileContent(string.Empty)); 46Assert.Throws<ArgumentException>("value", () => c.FileId = string.Empty);
Microsoft.Extensions.AI.Templates.Tests (3)
test\ProjectTemplates\Infrastructure\TestCommandResult.cs (3)
25""" : string.Empty)} 31""" : string.Empty)} 37""" : string.Empty)}
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\FunctionInvocationContextTests.cs (2)
55FunctionCallContent callContent = new(string.Empty, string.Empty, new Dictionary<string, object?>());
Microsoft.Extensions.AmbientMetadata.Application (2)
ApplicationMetadata.cs (2)
27public string ApplicationName { get; set; } = string.Empty; 33public string EnvironmentName { get; set; } = string.Empty;
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
ApplicationMetadataExtensionsTests.cs (1)
38Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddApplicationMetadata(config.GetSection(string.Empty)));
Microsoft.Extensions.AmbientMetadata.Build.Tests (9)
BuildMetadataServiceCollectionExtensionsTests.cs (1)
22serviceCollection.Invoking(x => ((IServiceCollection)null!).AddBuildMetadata(config.GetSection(string.Empty)))
ConfigurationBindingQuirkBehaviorTests.cs (8)
40BuildId = string.Empty, 41BuildNumber = string.Empty, 42SourceBranchName = string.Empty, 43SourceVersion = string.Empty 56{ $"{sectionName}:BuildId", string.Empty }, 57{ $"{sectionName}:BuildNumber", string.Empty }, 58{ $"{sectionName}:SourceBranchName", string.Empty }, 59{ $"{sectionName}:SourceVersion", string.Empty }
Microsoft.Extensions.AsyncState.Tests (3)
AsyncContextTests.cs (1)
210var obj = string.Empty;
AsyncStateTokenTests.cs (1)
19Assert.False(t1.Equals(string.Empty));
FeaturesPooledPolicyTests.cs (1)
26list.Add(string.Empty);
Microsoft.Extensions.Compliance.Abstractions (6)
Classification\DataClassification.cs (1)
49TaxonomyName = string.Empty;
Classification\DataClassificationAttribute.cs (1)
29public string Notes { get; set; } = string.Empty;
Classification\DataClassificationTypeConverter.cs (1)
87taxonomyName = string.Empty;
Redaction\NullRedactor.cs (1)
35public override string Redact(string? source) => source ?? string.Empty;
Redaction\Redactor.cs (2)
32return string.Empty; 251var fmt = format.Length > 0 ? format.ToString() : string.Empty;
Microsoft.Extensions.Compliance.Abstractions.Tests (13)
Redaction\NullRedactorTest.cs (3)
17var emptyStringRedacted = r.Redact(string.Empty); 18Assert.Equal(string.Empty, emptyStringRedacted); 22Assert.Equal(string.Empty, emptyStringRedacted);
Redaction\RedactionAbstractionsExtensionsTest.cs (1)
37sb.AppendRedacted(NullRedactor.Instance, string.Empty);
Redaction\RedactorTest.cs (9)
18Assert.Equal(string.Empty, r.Redact((string?)null)); 19Assert.Equal(string.Empty, r.Redact<object?>(null)); 20Assert.Equal(string.Empty, r.Redact(string.Empty.AsSpan())); 23Assert.True(r.TryRedact<object?>(null, new char[0], out _, string.Empty.AsSpan())); 248Assert.Equal(success, r.TryRedact(data, buffer, out int charsWritten, string.Empty.AsSpan(), null)); 266Assert.Equal(success, r.TryRedact(data, buffer, out int charsWritten, string.Empty.AsSpan(), null)); 298Assert.True(r.TryRedact(Array.Empty<char>(), buffer, out int charsWritten, string.Empty.AsSpan(), null)); 314Assert.True(r.TryRedact(new char[0], buffer, out int charsWritten, string.Empty.AsSpan(), null));
Microsoft.Extensions.Compliance.Redaction (6)
HmacRedactor.cs (1)
47_keyId = value.KeyId.HasValue ? value.KeyId.Value.ToInvariantString() + ':' : string.Empty;
HmacRedactorOptions.cs (2)
36/// The default is <see cref="string.Empty" />. 45public string Key { get; set; } = string.Empty;
src\Shared\Data.Validation\LengthAttribute.cs (2)
178var exclusiveString = Exclusive ? "exclusive " : string.Empty; 179var orEqualString = Exclusive ? string.Empty : "or equal ";
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Compliance.Redaction.Tests (4)
HmacRedactorTest.cs (4)
49Assert.Equal(0, redactor.Redact(string.Empty, [])); 145public string Key { get; init; } = string.Empty; 147public string Plaintext { get; init; } = string.Empty; 148public string Hash { get; init; } = string.Empty;
Microsoft.Extensions.Compliance.Testing.Tests (10)
FakeRedactorOptionsValidatorTests.cs (2)
19var validationResult = validator.Validate(string.Empty, options); 40var validationResult = validator.Validate(string.Empty, options);
RedactionFakesEventCollectorTests.cs (8)
33var first = new RedactedData(string.Empty, string.Empty, 0); 34var second = new RedactedData(string.Empty, string.Empty, 0); 35var third = new RedactedData("d", string.Empty, 0); 36var fourth = new RedactedData(string.Empty, string.Empty, 1); 37var fifth = new RedactedData(string.Empty, "d", 1);
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
656nameOfInvalidParameter = string.Empty; 1023result = value == string.Empty ? Array.Empty<byte>() : Convert.FromBase64String(value);
Microsoft.Extensions.Configuration.Binder.SourceGeneration (9)
Emitter\CoreBindingHelpers.cs (7)
274: string.Empty; 412string bangExpr = memberType.IsValueType ? string.Empty : "!"; 817string elementTypeDisplayString = complexElementType.TypeRef.FullyQualifiedName + (complexElementType.IsValueType ? string.Empty : "?"); 1014string valueCondition = requireValue ? $" && {valueIdentifier} is not null" : string.Empty; 1300string boundThroughConstructorArg = string.Empty; 1392string conditionPrefix = string.Empty; 1508string returnPostfix = voidReturn ? string.Empty : " null";
Emitter\Helpers.cs (1)
203string endSource = isStart ? string.Empty : "end";
Parser\Extensions.cs (1)
155string fullname = (@namespace is null ? string.Empty : @namespace + ".") + displayString.Replace(".", "+");
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
59_prefix = prefix ?? string.Empty;
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationExtensions.cs (1)
46return new PhysicalFileProvider(AppContext.BaseDirectory ?? string.Empty);
FileConfigurationProvider.cs (1)
70IFileInfo? file = Source.FileProvider?.GetFileInfo(Source.Path ?? string.Empty);
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
31string sectionPrefix = string.Empty;
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
85_data[_paths.Peek()] = string.Empty;
Microsoft.Extensions.Configuration.UserSecrets (1)
PathHelper.cs (1)
83return string.Empty;
Microsoft.Extensions.Configuration.Xml (3)
XmlStreamConfigurationProvider.cs (3)
140parent.TextContent = new XmlConfigurationElementTextContent(string.Empty, linePosition, lineNumber); 195return lineInfo == null ? string.Empty : 394? string.Empty
Microsoft.Extensions.DataIngestion (3)
Chunkers\DocumentTokenChunker.cs (1)
97context: string.Empty);
Chunkers\SectionChunker.cs (1)
50string context = parentContext ?? string.Empty;
Chunkers\SemanticSimilarityChunker.cs (1)
101string context = string.Empty;
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownReader.cs (1)
74string outputContent = string.Empty;
Microsoft.Extensions.DataIngestion.Tests (5)
Readers\DocumentReaderConformanceTests.cs (3)
27await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: string.Empty)); 31await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(stream, identifier: string.Empty, mediaType: "some")); 189_ => string.Empty
Readers\MarkItDownMcpReaderTests.cs (2)
25await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: string.Empty)); 29await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(stream, identifier: string.Empty, mediaType: "some"));
Microsoft.Extensions.DependencyInjection (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
54return name ?? builder?.ToString() ?? string.Empty;
Microsoft.Extensions.DependencyModel (11)
CollectionExtensions.cs (3)
11public static RuntimeAssetGroup? GetDefaultGroup(this IEnumerable<RuntimeAssetGroup> self) => GetGroup(self, string.Empty); 27public static IEnumerable<string> GetDefaultAssets(this IEnumerable<RuntimeAssetGroup> self) => GetAssets(self, string.Empty); 51public static IEnumerable<RuntimeFile> GetDefaultRuntimeFileAssets(this IEnumerable<RuntimeAssetGroup> self) => GetRuntimeFiles(self, string.Empty);
DependencyContextExtensions.cs (3)
50return ResolveAssets(context, string.Empty, self.NativeLibraryGroups); 57return ResolveRuntimeFiles(context, string.Empty, self.NativeLibraryGroups); 98return ResolveAssets(context, string.Empty, self.RuntimeAssemblyGroups).Select(GetAssemblyName);
DependencyContextJsonReader.cs (4)
132string runtime = string.Empty; 133string framework = string.Empty; 827runtimeAssemblyGroups.Add(new RuntimeAssetGroup(string.Empty, targetLibrary.Runtimes)); 832nativeLibraryGroups.Add(new RuntimeAssetGroup(string.Empty, targetLibrary.Natives));
Resolution\PackageCompilationAssemblyResolver.cs (1)
63return [string.Empty];
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
54return name ?? builder?.ToString() ?? string.Empty;
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
TelemetryHealthCheckPublisher.cs (1)
58string separator = string.Empty;
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (3)
src\Shared\Data.Validation\LengthAttribute.cs (2)
178var exclusiveString = Exclusive ? "exclusive " : string.Empty; 179var orEqualString = Exclusive ? string.Empty : "or equal ";
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Diagnostics.Probes (3)
src\Shared\Data.Validation\LengthAttribute.cs (2)
178var exclusiveString = Exclusive ? "exclusive " : string.Empty; 179var orEqualString = Exclusive ? string.Empty : "or equal ";
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Linux\Disk\DiskStats.cs (1)
14public string DeviceName { get; set; } = string.Empty;
src\Shared\Data.Validation\LengthAttribute.cs (2)
178var exclusiveString = Exclusive ? "exclusive " : string.Empty; 179var orEqualString = Exclusive ? string.Empty : "or equal ";
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (1)
KubernetesResourceQuotaServiceCollectionExtensions.cs (1)
38return new KubernetesResourceQuotaProvider(KubernetesMetadata.FromEnvironmentVariables(environmentVariablePrefix ?? string.Empty));
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (6)
KubernetesMetadataTests.cs (5)
24prefix: string.Empty, 33var result = KubernetesMetadata.FromEnvironmentVariables(string.Empty); 115KubernetesMetadata.FromEnvironmentVariables(string.Empty)); 141var exception = Assert.Throws<InvalidOperationException>(() => KubernetesMetadata.FromEnvironmentVariables(string.Empty)); 165var result = KubernetesMetadata.FromEnvironmentVariables(string.Empty);
KubernetesResourceQuotasServiceCollectionExtensionsTests.cs (1)
25setup.SetupKubernetesEnvironment(prefix: string.Empty, limitsMemory, limitsCpu, requestsMemory, requestsCpu);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\FileNamesOnlyFileSystem.cs (1)
34.FirstOrDefault() ?? string.Empty;
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogger.cs (1)
133var record = new FakeLogRecord(rec.LogLevel, rec.EventId, ConsumeTState(rec.Attributes), exception, rec.FormattedMessage ?? string.Empty,
Logging\FakeLoggerProvider.cs (1)
70return _loggers.GetOrAdd(categoryName ?? string.Empty, (name) => new(Collector, name)
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Logging\FakeLogCollectorTests.cs (1)
17public string Last { get; private set; } = string.Empty;
Metrics\MetricCollectorTests.cs (3)
25Assert.Throws<ArgumentException>(() => new MetricCollector<long>(new Meter(Guid.NewGuid().ToString()), string.Empty)); 26Assert.Throws<ArgumentException>(() => new MetricCollector<long>(null, string.Empty, "Hello")); 27Assert.Throws<ArgumentException>(() => new MetricCollector<long>(null, "Hello", string.Empty));
Microsoft.Extensions.DotNetDeltaApplier (2)
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\StreamExtensions.cs (1)
214return string.Empty;
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
100public string Capabilities => _capabilities ?? string.Empty;
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedFileProvider.cs (1)
60_baseNamespace = string.IsNullOrEmpty(baseNamespace) ? string.Empty : baseNamespace + ".";
Manifest\ManifestRootDirectory.cs (1)
9: base(name: string.Empty, children: children)
Manifest\ManifestSinkDirectory.cs (1)
12: base(name: string.Empty, children: Array.Empty<ManifestEntry>())
Microsoft.Extensions.FileSystemGlobbing (5)
Internal\PathSegments\WildcardPathSegment.cs (2)
14string.Empty, new List<string>(), string.Empty, StringComparison.OrdinalIgnoreCase);
Internal\PatternContexts\CompositePatternContext.cs (1)
22context.Test(dir) ? PatternTestResult.Success(stem: string.Empty) : PatternTestResult.Failed).IsSuccessful;
Internal\Patterns\PatternBuilder.cs (2)
113string beginsWith = string.Empty; 115string endsWith = string.Empty;
Microsoft.Extensions.Hosting (3)
Internal\HostingEnvironment.cs (3)
21public string EnvironmentName { get; set; } = string.Empty; 26public string ApplicationName { get; set; } = string.Empty; 31public string ContentRootPath { get; set; } = string.Empty;
Microsoft.Extensions.Hosting.Systemd (1)
ServiceState.cs (1)
42=> _data == null ? string.Empty : Encoding.UTF8.GetString(_data);
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetimeOptions.cs (1)
16public string ServiceName { get; set; } = string.Empty;
Microsoft.Extensions.Http (2)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (1)
68return s.GetRequiredService<IHttpClientFactory>().CreateClient(string.Empty);
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
54return name ?? builder?.ToString() ?? string.Empty;
Microsoft.Extensions.Http.Diagnostics (13)
Http\HostSuffixTrieNode.cs (1)
10public string DependencyName { get; set; } = string.Empty;
Http\HttpDependencyMetadataResolver.cs (2)
321trieCurrent.RequestMetadata.MethodType = string.Empty; 327string dependencyName = string.Empty;
Logging\Internal\HttpHeadersRedactor.cs (2)
44return string.Empty; 106return string.Empty;
Logging\Internal\HttpRequestBodyReader.cs (1)
41return new(string.Empty);
Logging\Internal\HttpRequestReader.cs (1)
144logRecord.QueryString = string.Empty;
Logging\Internal\HttpResponseBodyReader.cs (1)
139return string.Empty;
Logging\Internal\LogRecord.cs (5)
21public string Host { get; set; } = string.Empty; 31public string Path { get; set; } = string.Empty; 91Host = string.Empty; 93Path = string.Empty; 102QueryString = string.Empty;
Microsoft.Extensions.Http.Diagnostics.Tests (22)
HttpHeadersRedactorTests.cs (4)
36Add(new LinkedList<string>(new List<string> { null! }), string.Empty); 38Add(new LinkedList<string>(new List<string>()), string.Empty); 45Add(new[] { (string)null! }, string.Empty); 47Add(new string[] { }, string.Empty);
Logging\HttpHeadersReaderTest.cs (4)
78httpRequest.Headers.Add("Header5", string.Empty); 79httpResponse.Headers.Add("Header6", string.Empty); 131using var requestContent = new StringContent(string.Empty); 140using var responseContent = new StringContent(string.Empty);
Logging\HttpRequestBodyReaderTest.cs (2)
219requestBody.Should().Be(string.Empty); 240requestBody.Should().Be(string.Empty);
Logging\HttpRequestReaderTest.cs (8)
59QueryString = string.Empty, 127QueryString = string.Empty 189QueryString = string.Empty 262QueryString = string.Empty 336QueryString = string.Empty 398QueryString = string.Empty 471QueryString = string.Empty 540QueryString = string.Empty
Logging\HttpResponseBodyReaderTest.cs (1)
86Content = new StringContent(string.Empty, Encoding.UTF8, TextPlain)
Logging\Internal\TestHttpMessageHandlerBuilder.cs (1)
23public override string Name { get; set; } = string.Empty;
Logging\LogRecordPoolingTest.cs (2)
38logRecord2.Host.Should().Be(string.Empty); 40logRecord2.Path.Should().Be(string.Empty);
Microsoft.Extensions.Http.Resilience (5)
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (2)
108var pipeline = resilienceProvider.GetPipeline<HttpResponseMessage>(new HttpKey(pipelineName, string.Empty)); 139var key = new HttpKey(pipelineName, string.Empty);
src\Shared\Data.Validation\LengthAttribute.cs (2)
178var exclusiveString = Exclusive ? "exclusive " : string.Empty; 179var orEqualString = Exclusive ? string.Empty : "or equal ";
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
Microsoft.Extensions.Http.Resilience.Tests (16)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (1)
440return SecurityElement.Escape(value) ?? string.Empty;
Hedging\StandardHedgingTests.cs (2)
164var section = ConfigurationStubFactory.CreateEmpty().GetSection(string.Empty); 219provider.Setup(v => v.GetPipeline<HttpResponseMessage>(new HttpKey("clientId-standard-hedging", string.Empty))).Returns(noPolicy);
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (6)
33Assert.Throws<ArgumentException>(() => builder.AddResilienceHandler(string.Empty, _ => { })); 35Assert.Throws<ArgumentException>(() => builder.AddResilienceHandler(string.Empty, (_, _) => { })); 226.Setup(v => v.GetPipeline<HttpResponseMessage>(new HttpKey(expectedPipelineKey, string.Empty))) 252var pipelineName = string.Empty; 260.Setup(v => v.GetPipeline<HttpResponseMessage>(new HttpKey(pipelineName, string.Empty))) 282.SelectPipelineBy(_ => _ => string.Empty);
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (3)
82ConfigurationStubFactory.CreateEmpty().GetSection(string.Empty); 165var descriptor = provider.GetPipeline<HttpResponseMessage>(new HttpKey("test-standard", string.Empty)).GetPipelineDescriptor(); 299return provider.GetPipeline<HttpResponseMessage>(new HttpKey(name, string.Empty));
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (4)
29var validationResult = new HttpStandardResilienceOptionsCustomValidator().Validate(string.Empty, options); 43var validationResult = new HttpStandardResilienceOptionsCustomValidator().Validate(string.Empty, options); 74var validationResult = new HttpStandardResilienceOptionsCustomValidator().Validate(string.Empty, options); 103var validationResult = new HttpStandardResilienceOptionsCustomValidator().Validate(string.Empty, options);
Microsoft.Extensions.Identity.Core (1)
AuthenticatorTokenProvider.cs (1)
37return Task.FromResult(string.Empty);
Microsoft.Extensions.Identity.Stores (2)
IdentityRole.cs (1)
83return Name ?? string.Empty;
IdentityUser.cs (1)
151=> UserName ?? string.Empty;
Microsoft.Extensions.Localization (2)
LocalizationOptions.cs (1)
20public string ResourcesPath { get; set; } = string.Empty;
ResourceManagerStringLocalizerFactory.cs (1)
43_resourcesRelativePath = localizationOptions.Value.ResourcesPath ?? string.Empty;
Microsoft.Extensions.Logging (4)
LoggerFactoryScopeProvider.cs (4)
245return string.Empty; 298} ?? string.Empty; 308} ?? string.Empty; 318} ?? string.Empty;
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
54return name ?? builder?.ToString() ?? string.Empty;
Microsoft.Extensions.Logging.Console (4)
ConsoleLogger.cs (1)
83var logEntry = new LogEntry<BufferedLogRecord>(rec.LogLevel, _name, rec.EventId, rec, null, static (s, _) => s.FormattedMessage ?? string.Empty);
JsonConsoleFormatter.cs (1)
32string message = bufferedRecord.FormattedMessage ?? string.Empty;
SimpleConsoleFormatter.cs (1)
51string message = bufferedRecord.FormattedMessage ?? string.Empty;
SystemdConsoleFormatter.cs (1)
41string message = bufferedRecord.FormattedMessage ?? string.Empty;
Microsoft.Extensions.Logging.EventSource (10)
EventSourceLogger.cs (3)
106activityTraceId = string.Empty; 107activitySpanId = string.Empty; 108activityTraceFlags = string.Empty;
LoggingEventSource.cs (7)
168EventName ??= string.Empty; 169FormattedMessage ??= string.Empty; 222EventName ??= string.Empty; 288EventName ??= string.Empty; 289FormattedMessage ??= string.Empty; 375filterSpec = string.Empty; // This means turn on everything. 426if (filterSpec == string.Empty)
Microsoft.Extensions.Logging.Generators (20)
LoggerMessageGenerator.Emitter.cs (2)
435string extension = lm.IsExtensionMethod ? "this " : string.Empty; 543string level = string.Empty;
LoggerMessageGenerator.Parser.cs (18)
84string nspace = string.Empty; 103(int eventId, int? level, string message, string? eventName, bool skipEnabledCheck) = (-1, null, string.Empty, null, false); 159message = string.Empty; 167message = items[1].IsNull ? string.Empty : (string)GetItem(items[1]); 178message = items[2].IsNull ? string.Empty : (string)GetItem(items[2]); 218message = value.IsNull ? string.Empty : (string)GetItem(value); 962public string Keyword = string.Empty; 963public string Namespace = string.Empty; 964public string Name = string.Empty; 1020public string Name = string.Empty; 1021public string UniqueName = string.Empty; 1022public string Message = string.Empty; 1027public string Modifiers = string.Empty; 1028public string LoggerField = string.Empty; 1119public string Name = string.Empty; 1120public string Type = string.Empty; 1121public string CodeName = string.Empty; 1213public string Name = string.Empty;
Microsoft.Extensions.Logging.TraceSource (2)
TraceSourceLogger.cs (2)
34string message = string.Empty; 47string exceptionDelimiter = string.IsNullOrEmpty(message) ? string.Empty : " ";
Microsoft.Extensions.ML (8)
Builder\BuilderExtensions.cs (4)
29return builder.FromUri(string.Empty, new Uri(uri)); 91return builder.FromUri(string.Empty, new Uri(uri), period); 165return builder.FromFile(string.Empty, filePath, true); 185return builder.FromFile(string.Empty, filePath, watchForChanges);
PredictionEnginePool.cs (3)
37var defaultOptions = _predictionEngineOptions.Create(string.Empty); 77return GetPredictionEngine(string.Empty); 132ReturnPredictionEngine(string.Empty, engine);
PredictionEnginePoolExtensions.cs (1)
25return predictionEnginePool.Predict(string.Empty, example);
Microsoft.Extensions.ML.Tests (1)
PredictionEnginePoolTests.cs (1)
123string.Empty, o => o.ModelLoader = loader);
Microsoft.Extensions.Options (1)
Options.cs (1)
19public static readonly string DefaultName = string.Empty;
Microsoft.Extensions.Options.Contextual.Tests (18)
AcceptanceTests.cs (1)
76public string TemperatureScale { get; set; } = string.Empty;
ContextualOptionsFactoryTests.cs (15)
43await Assert.ThrowsAsync<OptionsValidationException>(async () => await sut.CreateAsync(string.Empty, Mock.Of<IOptionsContext>(), default)); 66string.Empty, 73new[] { new PostConfigureOptions<List<string>>(string.Empty, (list) => list.Add("post configure")) }, 76var result = await sut.CreateAsync(string.Empty, Mock.Of<IOptionsContext>(), default); 172new(string.Empty, (context, _) => 177new(string.Empty, async (context, cancellationToken) => 182new(string.Empty, (context, _) => 187new(string.Empty, (context, _) => 200Assert.Equal(new[] { "1", "2", "3", "4" }, await sut.CreateAsync(string.Empty, Mock.Of<IOptionsContext>(), default)); 212new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 213new(string.Empty, (context, _) => throw new NotSupportedException()), 222var exception = await Assert.ThrowsAsync<AggregateException>(async () => await sut.CreateAsync(string.Empty, Mock.Of<IOptionsContext>(), default)); 237new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 238new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(disposeMock.Object)), 247var exception = await Assert.ThrowsAsync<AggregateException>(async () => await sut.CreateAsync(string.Empty, Mock.Of<IOptionsContext>(), default));
ContextualOptionsServiceCollectionExtensionsTests.cs (2)
38Assert.Equal(string.Empty, loader.Name); 48Assert.Equal(string.Empty, loader.Name);
Microsoft.Extensions.Options.SourceGeneration (19)
Emitter.cs (17)
95return tryValidateValueMethod.Parameters[0].NullableAnnotation == NullableAnnotation.NotAnnotated ? "!" : string.Empty; 502string ensureInitializedMethod = string.Empty; 603return string.Empty; 625return string.Empty; 648return string.Empty; 685string linesToInsert = attributeData.Value is not null ? GenerateStronglyTypedCodeForLengthAttributes((HashSet<object>)attributeData.Value) : string.Empty; 690string linesToInsert = attributeData.Value is not null ? GenerateStronglyTypedCodeForLengthAttributes((HashSet<object>)attributeData.Value) : string.Empty; 695string linesToInsert = attributeData.Value is not null ? GenerateStronglyTypedCodeForLengthAttributes((HashSet<object>)attributeData.Value) : string.Empty; 748OutLn($"public {(makeStatic ? "static " : string.Empty)}global::Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, {modelToValidate.Name} options)"); 864OutLn($"public {(makeStatic ? "static " : string.Empty)}async global::System.Threading.Tasks.Task<global::Microsoft.Extensions.Options.ValidateOptionsResult> ValidateAsync(string? name, {modelToValidate.Name} options, global::System.Threading.CancellationToken cancellationToken = default)"); 1078var valueAccess = (vm.IsNullable && vm.IsValueType) ? ".Value" : string.Empty; 1108var valueAccess = (vm.IsValueType && vm.IsNullable) ? ".Value" : string.Empty; 1109var enumeratedValueAccess = (vm.EnumeratedIsNullable && vm.EnumeratedIsValueType) ? ".Value" : string.Empty; 1259attrInstantiationStatementLines.Add($"{GetPaddingString(1)}{prop.Key} = {prop.Value}{(notLast ? "," : string.Empty)}"); 1296var valueAccess = (vm.IsNullable && vm.IsValueType) ? ".Value" : string.Empty; 1316var valueAccess = (vm.IsValueType && vm.IsNullable) ? ".Value" : string.Empty; 1317var enumeratedValueAccess = (vm.EnumeratedIsNullable && vm.EnumeratedIsValueType) ? ".Value" : string.Empty;
Parser.cs (2)
247=> type.ContainingNamespace.IsGlobalNamespace ? string.Empty : type.ContainingNamespace.ToDisplayString(_namespaceDisplayFormat); 346genericType = string.Empty;
Microsoft.Extensions.Primitives (6)
StringSegment.cs (5)
18/// A <see cref="StringSegment"/> for <see cref="string.Empty"/>. 20public static readonly StringSegment Empty = string.Empty; 651/// Returns the <see cref="string"/> represented by this <see cref="StringSegment"/> or <see cref="string.Empty" /> if the <see cref="StringSegment"/> does not contain a value. 653/// <returns>The <see cref="string"/> represented by this <see cref="StringSegment"/> or <see cref="string.Empty" /> if the <see cref="StringSegment"/> does not contain a value.</returns> 656return Value ?? string.Empty;
StringValues.cs (1)
169return GetStringValue() ?? string.Empty;
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
XunitLoggerFactoryExtensions.cs (1)
94messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ExtensionsServicePublicApiTests.cs (1)
180var input = isNull ? null! : string.Empty;
Microsoft.Extensions.Telemetry (21)
Buffering\BufferedLoggerProxy.cs (1)
41(_, _) => record.FormattedMessage ?? string.Empty);
Http\HttpRouteParser.cs (1)
282? string.Empty
Http\Segment.cs (3)
54public string Content { get; } = string.Empty; 64public string ParamName { get; } = string.Empty; 69public string DefaultValue { get; } = string.Empty;
Latency\Internal\TagCollection.cs (1)
41_tags[i] = new Tag(names[i], string.Empty);
Logging\ExtendedLogger.cs (1)
232config.AddRedactionDiscriminator ? cp.Name : string.Empty);
Logging\Import\LoggerFactoryScopeProvider.cs (4)
258return string.Empty; 312} ?? string.Empty; 322} ?? string.Empty; 332} ?? string.Empty;
Logging\JustInTimeRedactor.cs (5)
29private string _discriminator = string.Empty; 75_discriminator = string.Empty; 114inputAsSpan = f.ToString(format.Length > 0 ? format.ToString() : string.Empty, formatProvider).AsSpan(); 124var str = value?.ToString() ?? string.Empty; 150result = string.Empty;
src\Shared\Data.Validation\LengthAttribute.cs (2)
178var exclusiveString = Exclusive ? "exclusive " : string.Empty; 179var orEqualString = Exclusive ? string.Empty : "or equal ";
src\Shared\Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (2)
42string value = attribute.Value?.ToString() ?? string.Empty; 155attributes.Add(new KeyValuePair<string, object?>(item.Key, item.Value?.ToString() ?? string.Empty));
Microsoft.Extensions.Telemetry.Abstractions (2)
Logging\LoggerMessageState.cs (1)
111TagNamePrefix = string.Empty;
Logging\LoggerMessageState.TagCollector.cs (1)
31public string TagNamePrefix { get; set; } = string.Empty;
Microsoft.Extensions.Telemetry.Abstractions.Tests (7)
Latency\NoopLatencyContextTests.cs (5)
67context.SetTag(issuer.GetTagToken(string.Empty), string.Empty); 68context.AddCheckpoint(issuer.GetCheckpointToken(string.Empty)); 69context.AddMeasure(issuer.GetMeasureToken(string.Empty), 0); 70context.RecordMeasure(issuer.GetMeasureToken(string.Empty), 0);
Logging\LoggerMessageHelperTests.cs (1)
91Assert.Equal(string.Empty, nested.TagNamePrefix);
Logging\TagProviderAttributeTests.cs (1)
33Assert.Throws<ArgumentException>(() => new TagProviderAttribute(typeof(object), string.Empty));
Microsoft.Extensions.Telemetry.Tests (36)
Buffering\GlobalLogBufferingOptionsCustomValidatorTests.cs (1)
24var validationResult = validator.Validate(string.Empty, options);
Enrichment\Internals\TestMetricEnrichmentTagCollector.cs (2)
18_tags.Add(kvp.Key, kvp.Value.ToString() ?? string.Empty); 27_tags.Add(tagName, tagValue.ToString() ?? string.Empty);
Http\HttpParserTests.cs (10)
74string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 152string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 223string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 277string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 344string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 388string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 407var segment = string.Empty; 434string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 452var expectedValue = string.Empty; 646string redactedPrefix = isRedacted ? "Redacted:" : string.Empty;
Http\HttpRouteFormatterTests.cs (7)
154string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 236string redactedPrefix = isRedacted ? "Redacted:" : string.Empty; 350string redactedPrefix = redactionMode == HttpRouteParameterRedactionMode.None ? string.Empty : "Redacted:"; 371string redactedPrefix = redactionMode == HttpRouteParameterRedactionMode.None ? string.Empty : "Redacted:"; 413string redactedPrefix = redactionMode == HttpRouteParameterRedactionMode.None ? string.Empty : "Redacted:"; 433string redactedPrefix = redactionMode == HttpRouteParameterRedactionMode.None ? string.Empty : "Redacted:"; 448string redactedPrefix = redactionMode == HttpRouteParameterRedactionMode.None ? string.Empty : "Redacted:";
Latency\Internal\TagCollectionTests.cs (3)
59Assert.True(t[i].Value == string.Empty); 82var notaTagEmptyValues = notaTag.Where(t => t.Value == string.Empty).ToList(); 106if (tags[i].Value != string.Empty)
Logging\ExtendedLoggerFactoryTests.cs (6)
132return string.Empty; 258activity.AddBaggage("testKey2", string.Empty); 291activity.AddTag("testKey2", string.Empty); 667?? string.Empty; 679?? string.Empty; 691?? string.Empty;
Logging\ExtendedLoggerReentrancyTests.cs (2)
156var outerExceptionTag = extendedFactory ? $"exception.type={typeof(InvalidOperationException)};" : string.Empty; 287Errors.Add(eventData.Payload?[0]?.ToString() ?? string.Empty);
Logging\JustInTimeRedactorTests.cs (3)
46Assert.True(r.TryFormat(d, out int charsWritten, string.Empty.AsSpan(), CultureInfo.InvariantCulture)); 50Assert.False(r.TryFormat(d, out int _, string.Empty.AsSpan(), CultureInfo.InvariantCulture)); 70Assert.True(r.TryFormat(d, out charsWritten, string.Empty.AsSpan(), CultureInfo.InvariantCulture));
Sampling\RandomProbabilisticSamplerTests.cs (1)
18private readonly Func<IReadOnlyList<KeyValuePair<string, object?>>, Exception?, string> _dummyFormatter = (_, _) => string.Empty;
Sampling\TraceBasedSamplerTests.cs (1)
18private readonly Func<IReadOnlyList<KeyValuePair<string, object?>>, Exception?, string> _dummyFormatter = (_, _) => string.Empty;
Microsoft.Extensions.Validation (1)
ValidateContext.cs (1)
33public string CurrentValidationPath { get; set; } = string.Empty;
Microsoft.Extensions.VectorData.Abstractions (2)
ProviderServices\CollectionModelBuilder.cs (1)
510string TypeMessage() => type is null ? string.Empty : $"type '{type.Name}' or ";
ProviderServices\KeyPropertyModel.cs (1)
34=> $"{ModelName} (Key, {Type.Name}{(IsAutoGenerated ? ", auto-generated" : string.Empty)})";
Microsoft.Extensions.VectorData.ConformanceTests (3)
HybridSearchTests.cs (3)
142public string Text { get; set; } = string.Empty; 149public string Text1 { get; set; } = string.Empty; 150public string Text2 { get; set; } = string.Empty;
Microsoft.Extensions.WebEncoders (3)
Testing\HtmlTestEncoder.cs (1)
29return string.Empty;
Testing\JavaScriptTestEncoder.cs (1)
29return string.Empty;
Testing\UrlTestEncoder.cs (1)
29return string.Empty;
Microsoft.Gen.BuildMetadata (3)
src\Generators\Shared\GeneratorUtilities.cs (2)
154return string.Empty; 166: string.Empty;
src\Generators\Shared\SymbolHelpers.cs (1)
17return symbol.ContainingNamespace.IsGlobalNamespace ? string.Empty : symbol.ContainingNamespace.ToString();
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
GeneratorTests.cs (1)
46var source = string.Empty; // Empty source, no attributes
Microsoft.Gen.ComplianceReports (9)
Model\Classification.cs (1)
11public string Name = string.Empty;
Model\ClassifiedItem.cs (3)
13public string SourceFilePath = string.Empty; 16public string Name = string.Empty; 17public string TypeName = string.Empty;
Model\ClassifiedLogMethod.cs (2)
13public string MethodName = string.Empty; 14public string LogMethodMessage = string.Empty;
Model\ClassifiedType.cs (1)
13public string TypeName = string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
154return string.Empty; 166: string.Empty;
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
GeneratorTests.cs (2)
122["build_property.outputpath"] = string.Empty 127options.Add("build_property.ComplianceReportOutputPath", string.Empty);
Microsoft.Gen.ContextualOptions (4)
Emitter.cs (2)
32"{" : string.Empty)} 42{(!string.IsNullOrEmpty(optionsContextType.Namespace) ? "}" : string.Empty)}";
src\Generators\Shared\GeneratorUtilities.cs (2)
154return string.Empty; 166: string.Empty;
Microsoft.Gen.Logging (28)
Emission\Emitter.Method.cs (6)
21string extension = lm.IsExtensionMethod ? "this " : string.Empty; 29var lvl = string.Empty; 223var question = lp.PotentiallyNull ? "?" : string.Empty; 238var question = lp.PotentiallyNull ? "?" : string.Empty; 542var atSign = p.NeedsAtSign ? "@" : string.Empty; 571var atSign = p.NeedsAtSign ? "@" : string.Empty;
Emission\Emitter.Utils.cs (2)
50string level = string.Empty; 85string level = string.Empty;
Model\LoggingMethod.cs (3)
20public string Name = string.Empty; 21public string Message = string.Empty; 28public string Modifiers = string.Empty;
Model\LoggingMethodParameter.cs (3)
15public string ParameterName = string.Empty; 16public string TagName = string.Empty; 17public string Type = string.Empty;
Model\LoggingMethodTypeParameter.cs (1)
11public string Name = string.Empty;
Model\LoggingProperty.cs (3)
12public string PropertyName = string.Empty; 13public string TagName = string.Empty; 14public string Type = string.Empty;
Model\LoggingType.cs (3)
17public string Keyword = string.Empty; 18public string Namespace = string.Empty; 19public string Name = string.Empty;
Parsing\AttributeProcessors.cs (3)
36string message = string.Empty; 60message = a.Value as string ?? string.Empty; 193=> attr.ConstructorArguments[0].Value as string ?? string.Empty;
Parsing\Parser.cs (1)
71string nspace = string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
154return string.Empty; 166: string.Empty;
src\Generators\Shared\SymbolHelpers.cs (1)
17return symbol.ContainingNamespace.IsGlobalNamespace ? string.Empty : symbol.ContainingNamespace.ToString();
Microsoft.Gen.Logging.Generated.Tests (25)
LoggerMessageAttributeTests.cs (1)
157Assert.Equal(string.Empty, collector.LatestRecord.Message);
LogMethodTests.cs (10)
290Assert.Equal(string.Empty, collector.LatestRecord.Message); 298Assert.Equal(string.Empty, collector.LatestRecord.Message); 322Assert.Equal(string.Empty, collector.LatestRecord.Message); 333Assert.Equal(string.Empty, logRecord.Message); 359Assert.Equal(string.Empty, collector.LatestRecord.Message); 366Assert.Equal(string.Empty, collector.LatestRecord.Message); 373Assert.Equal(string.Empty, collector.LatestRecord.Message); 429Assert.Equal(string.Empty, logRecord.Message); 602Assert.Equal(string.Empty, collector.LatestRecord.Message); 626Assert.Equal(string.Empty, logRecord.Message);
LogPropertiesRedactionTests.cs (3)
57Assert.Equal(string.Empty, collector.LatestRecord.Message); 111Assert.Equal(string.Empty, collector.LatestRecord.Message); 166Assert.Equal(string.Empty, collector.LatestRecord.Message);
LogPropertiesTests.cs (1)
475Assert.Equal(string.Empty, latestRecord.Message);
TagProviderTests.cs (6)
85Assert.Equal(string.Empty, latestRecord.Message); 108Assert.Equal(string.Empty, latestRecord.Message); 129Assert.Equal(string.Empty, latestRecord.Message); 140Assert.Equal(string.Empty, latestRecord.Message); 164Assert.Equal(string.Empty, latestRecord.Message); 190Assert.Equal(string.Empty, latestRecord.Message);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesNullHandlingExtensions.cs (2)
14public string P0 { get; set; } = string.Empty; 21public string P5 { get; set; } = string.Empty;
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSimpleExtensions.cs (1)
15public string P3 { get; set; } = string.Empty;
test\Generators\Microsoft.Gen.Logging\TestClasses\TransitiveTestExtensions.cs (1)
32public string this[int index] => string.Empty;
Microsoft.Gen.Logging.Unit.Tests (6)
LoggingMethodParameterTests.cs (2)
38? new TagProvider(string.Empty, string.Empty)
ParserTests.LogMethod.cs (1)
467_ => string.Empty,
ParserTests.TagProvider.cs (2)
324if (listModifier == string.Empty && valueModifier == string.Empty)
SymbolLoaderTests.cs (1)
29string.Empty,
Microsoft.Gen.MetadataExtractor (42)
MetadataReportsGenerator.cs (5)
94(string metricReport, string complianceReport) metadataReport = (string.Empty, string.Empty); 128return string.Empty; 148return string.Empty; 156return string.Empty;
src\Generators\Microsoft.Gen.ComplianceReports\Model\Classification.cs (1)
11public string Name = string.Empty;
src\Generators\Microsoft.Gen.ComplianceReports\Model\ClassifiedItem.cs (3)
13public string SourceFilePath = string.Empty; 16public string Name = string.Empty; 17public string TypeName = string.Empty;
src\Generators\Microsoft.Gen.ComplianceReports\Model\ClassifiedLogMethod.cs (2)
13public string MethodName = string.Empty; 14public string LogMethodMessage = string.Empty;
src\Generators\Microsoft.Gen.ComplianceReports\Model\ClassifiedType.cs (1)
13public string TypeName = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (4)
19public string Modifiers = string.Empty; 20public string MetricTypeModifiers = string.Empty; 21public string MetricTypeName = string.Empty; 23public string GenericType = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricParameter.cs (2)
8public string Name = string.Empty; 9public string Type = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricType.cs (5)
11public string Namespace = string.Empty; 12public string Name = string.Empty; 13public string Constraints = string.Empty; 14public string Modifiers = string.Empty; 15public string Keyword = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\StrongTypeConfig.cs (3)
38public string Path = string.Empty; 39public string Name = string.Empty; 40public string TagName = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Parser.cs (9)
78string nspace = string.Empty; 277tagName = string.Empty; 287string metricNameFromAttribute = string.Empty; 288string metricUnitFromAttribute = string.Empty; 289string metricDescriptionFromAttribute = string.Empty; 299var value = (arg.Value.Value ?? string.Empty).ToString(); 362return string.Empty; 377return string.Empty; 383return string.Empty;
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (4)
11public string MetricNameFromAttribute = string.Empty; 12public string MetricUnitFromAttribute = string.Empty; 13public string MetricDescriptionFromAttribute = string.Empty; 17public string StrongTypeObjectName = string.Empty;
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (1)
25return string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
154return string.Empty; 166: string.Empty;
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
GeneratorTests.cs (2)
147["build_property.outputpath"] = string.Empty 152options.Add("build_property.MetadataReportOutputPath", string.Empty);
Microsoft.Gen.Metrics (35)
Emitter.cs (3)
251OutLn($" _{objectName}.{recordStatement}(value{(tagListInit ? ", tagList" : string.Empty)});"); 259? string.Empty 264: string.Empty;
MetricFactoryEmitter.cs (2)
102? string.Empty 143? string.Empty
Model\MetricMethod.cs (4)
19public string Modifiers = string.Empty; 20public string MetricTypeModifiers = string.Empty; 21public string MetricTypeName = string.Empty; 23public string GenericType = string.Empty;
Model\MetricParameter.cs (2)
8public string Name = string.Empty; 9public string Type = string.Empty;
Model\MetricType.cs (5)
11public string Namespace = string.Empty; 12public string Name = string.Empty; 13public string Constraints = string.Empty; 14public string Modifiers = string.Empty; 15public string Keyword = string.Empty;
Model\StrongTypeConfig.cs (3)
38public string Path = string.Empty; 39public string Name = string.Empty; 40public string TagName = string.Empty;
Parser.cs (9)
78string nspace = string.Empty; 277tagName = string.Empty; 287string metricNameFromAttribute = string.Empty; 288string metricUnitFromAttribute = string.Empty; 289string metricDescriptionFromAttribute = string.Empty; 299var value = (arg.Value.Value ?? string.Empty).ToString(); 362return string.Empty; 377return string.Empty; 383return string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
154return string.Empty; 166: string.Empty;
src\Generators\Shared\SymbolHelpers.cs (1)
17return symbol.ContainingNamespace.IsGlobalNamespace ? string.Empty : symbol.ContainingNamespace.ToString();
StrongTypeAttributeParameters.cs (4)
11public string MetricNameFromAttribute = string.Empty; 12public string MetricUnitFromAttribute = string.Empty; 13public string MetricDescriptionFromAttribute = string.Empty; 17public string StrongTypeObjectName = string.Empty;
Microsoft.Gen.MetricsReports (30)
MetricDefinitionEmitter.cs (1)
25return string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (4)
19public string Modifiers = string.Empty; 20public string MetricTypeModifiers = string.Empty; 21public string MetricTypeName = string.Empty; 23public string GenericType = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricParameter.cs (2)
8public string Name = string.Empty; 9public string Type = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricType.cs (5)
11public string Namespace = string.Empty; 12public string Name = string.Empty; 13public string Constraints = string.Empty; 14public string Modifiers = string.Empty; 15public string Keyword = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\StrongTypeConfig.cs (3)
38public string Path = string.Empty; 39public string Name = string.Empty; 40public string TagName = string.Empty;
src\Generators\Microsoft.Gen.Metrics\Parser.cs (9)
78string nspace = string.Empty; 277tagName = string.Empty; 287string metricNameFromAttribute = string.Empty; 288string metricUnitFromAttribute = string.Empty; 289string metricDescriptionFromAttribute = string.Empty; 299var value = (arg.Value.Value ?? string.Empty).ToString(); 362return string.Empty; 377return string.Empty; 383return string.Empty;
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (4)
11public string MetricNameFromAttribute = string.Empty; 12public string MetricUnitFromAttribute = string.Empty; 13public string MetricDescriptionFromAttribute = string.Empty; 17public string StrongTypeObjectName = string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
154return string.Empty; 166: string.Empty;
Microsoft.Gen.MetricsReports.Unit.Tests (4)
EmitterTests.cs (2)
95Assert.Equal(string.Empty, emitter.GenerateReport(null!, CancellationToken.None)); 102Assert.Equal(string.Empty, emitter.GenerateReport(Array.Empty<ReportedMetricClass>(), CancellationToken.None));
GeneratorTests.cs (2)
103["build_property.outputpath"] = string.Empty 108options.Add("build_property.MetricsReportOutputPath", string.Empty);
Microsoft.Interop.ComInterfaceGenerator (1)
ComMethodInfo.cs (1)
40public string ExternalSymbolId { get; init; } = string.Empty;
Microsoft.Interop.SourceGeneration (7)
EmptyElementInfoProvider.cs (1)
20public string FindNameForParamIndex(int paramIndex) => string.Empty;
Marshalling\MarshallerHelpers.cs (1)
415RefKind.None => string.Empty,
Marshalling\StatefulMarshallingStrategy.cs (1)
76string scoped = marshallerType is ValueTypeInfo { IsByRefLike: true } ? "scoped " : string.Empty;
Marshalling\StatelessMarshallingStrategy.cs (1)
50string cast = unmanagedType is PointerTypeInfo ? $"({unmanagedType.FullTypeName})" : string.Empty;
MethodSignatureDiagnosticLocations.cs (1)
50return diagnostic.ToDiagnosticInfo(descriptor, Location.None, string.Empty);
MethodSignatureElementInfoProvider.cs (1)
28public string FindNameForParamIndex(int paramIndex) => paramIndex >= _method.Parameters.Length ? string.Empty : _method.Parameters[paramIndex].Name;
TypePositionInfo.cs (1)
63public string InstanceIdentifier { get; init; } = string.Empty;
Microsoft.JSInterop (1)
JSRuntime.cs (1)
304var exceptionText = jsonReader.GetString() ?? string.Empty;
Microsoft.Maui (5)
Core\Extensions\ITextInputExtensions.cs (2)
13 var mauiText = textInput.Text ?? string.Empty; 14 var platformText = text ?? string.Empty;
Debugger\DebuggerDisplayHelpers.cs (1)
40 return string.Empty;
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
405 ? string.Empty
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
14 return string.Empty;
Microsoft.Maui.Controls (27)
BindingExpression.cs (1)
230 if (part == string.Empty)
BindingExpressionHelper.cs (1)
31 var stringValue = value as string ?? string.Empty;
Brush\BrushTypeConverter.cs (3)
215 return string.Empty; 332 var directionX = gradientCenterPosition < parts.Length ? parts[gradientCenterPosition].Trim() : string.Empty; 335 var directionY = gradientCenterPosition < parts.Length ? parts[gradientCenterPosition].Trim() : string.Empty;
DeviceStateTrigger.cs (1)
23 BindableProperty.Create(nameof(Device), typeof(string), typeof(DeviceStateTrigger), string.Empty,
Internals\TextTransformUtilites.cs (1)
25 return string.Empty;
NavigationPage\NavigationPageToolbar.cs (1)
286 return string.Empty;
Performance.cs (1)
37 reference = String.Empty;
Picker\Picker.cs (5)
231 return item == null ? string.Empty : item.ToString(); 448 return string.Empty; 453 return string.Empty; 461 return item ?? string.Empty; 464 return string.Empty;
PlatformConfiguration\WindowsSpecific\Application.cs (1)
12 BindableProperty.Create("ImageDirectory", typeof(string), typeof(FormsElement), string.Empty,
Routing.cs (1)
186 return String.Empty;
Shell\RouteRequestBuilder.cs (3)
94 return String.Empty; 176 return String.Empty; 195 return String.Empty;
Shell\Shell.cs (2)
866 String.Empty, 867 String.Empty);
Shell\ShellUriHandler.cs (2)
23 string queryString = (pathAndQueryString.Length > 1) ? $"?{pathAndQueryString[1]}" : String.Empty; 1023 return string.Empty;
ShellToolbar.cs (4)
170 Title = String.Empty; 177 Title = currentPage.Title ?? String.Empty; 183 Title = _shell.CurrentContent?.Title ?? String.Empty; 187 Title = String.Empty;
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
92 return string.Empty;
Microsoft.Maui.Controls.Build.Tasks (2)
CreateObjectVisitor.cs (1)
397 var valueString = hasValue ? ((ValueNode)node.CollectionItems[0]).Value as string : string.Empty;
PerformanceProvider.cs (1)
83 return string.Format("{0}:{1}{2}", path, member, (tag != null ? "-" + tag : string.Empty));
Microsoft.Maui.Controls.Xaml (1)
CreateValuesVisitor.cs (1)
339 value = String.Empty;
Microsoft.Maui.Essentials (9)
Clipboard\Clipboard.shared.cs (1)
49 => Default.SetTextAsync(text ?? string.Empty);
FileSystem\FileSystem.shared.cs (1)
163 return string.Empty;
Map\MapLaunchOptions.shared.cs (1)
16 public string Name { get; set; } = string.Empty;
TextToSpeech\TextToSpeech.shared.cs (1)
88 var p = string.Empty;
Types\DeviceIdiom.shared.cs (1)
92 deviceIdiom ?? string.Empty;
Types\DevicePlatform.shared.cs (1)
115 devicePlatform ?? string.Empty;
Types\Shared\WebUtils.shared.cs (1)
71 value = string.Empty;
VersionTracking\VersionTracking.shared.cs (2)
210 string LastInstalledVersion => versionTrail[versionsKey]?.LastOrDefault() ?? string.Empty; 212 string LastInstalledBuild => versionTrail[buildsKey]?.LastOrDefault() ?? string.Empty;
Microsoft.ML.AutoML (5)
Experiment\SuggestedTrainer.cs (1)
56var paramsStr = string.Empty;
SweepableEstimator\SweepablePipeline.cs (1)
169return string.Empty;
Utils\UserInputValidationUtil.cs (3)
255if (closestNamed != string.Empty) 287var closestNamed = string.Empty; 298return minEditDistance <= maxAllowableEditDistance ? closestNamed : string.Empty;
Microsoft.ML.AutoML.SourceGenerator (4)
SearchSpaceGenerator.cs (2)
68(null, _) => string.Empty, 91optionAttribution = string.Empty;
Template\SearchSpace.cs (1)
51if(defaultValue == string.Empty){
Utils.cs (1)
72return string.Join(string.Empty, str.Split('_', ' ', '-').Select(x => CapitalFirstLetter(x)));
Microsoft.ML.AutoML.Tests (1)
UserInputValidationTests.cs (1)
378dataViewBuilder.AddColumn(DefaultColumnNames.Label, string.Empty);
Microsoft.ML.CodeGenerator (5)
CodeGenerator\CSharp\PipelineExtension.cs (1)
84return (string.Empty, new string[0]);
CodeGenerator\CSharp\TrainerGeneratorBase.cs (1)
138return string.Empty;
Templates\Console\ModelBuilder.cs (3)
120if(Trainer != String.Empty ) { 137if(PreTrainerTransforms.Count >0 && Trainer != String.Empty ) { 140else if (PreTrainerTransforms.Count >0 && Trainer == String.Empty) {
Microsoft.ML.CodeGenerator.Tests (4)
ApprovalTests\ConsoleCodeGeneratorTests.cs (4)
765var onnxPipeLineNode = new PipelineNode(nameof(SpecialTransformer.ApplyOnnxModel), PipelineNodeType.Transform, string.Empty, string.Empty); 811var onnxPipeLineNode = new PipelineNode(nameof(SpecialTransformer.ApplyOnnxModel), PipelineNodeType.Transform, string.Empty, string.Empty);
Microsoft.ML.Core (1)
Utilities\IndentedTextWriterExtensions.cs (1)
45writer.WriteLineNoTabs(string.Empty);
Microsoft.ML.Data (3)
DataLoadSave\Text\TextLoaderParser.cs (1)
1303scan.Span = String.Empty.AsMemory();
Transforms\InvertHashUtils.cs (1)
205return Utils.Size(temp) > 0 ? temp.ToString().AsMemory() : String.Empty.AsMemory();
Transforms\ValueMapping.cs (1)
876conv(string.Empty.AsMemory(), ref value);
Microsoft.ML.FastTree (4)
FastTree.cs (2)
305private protected virtual string GetTestGraphHeader() => string.Empty; 313private protected virtual string GetTestGraphLine() => string.Empty;
GamModelParameters.cs (1)
468Host, ensemble, schema, calibrator, string.Empty, false, false);
TreeEnsemble\InternalTreeEnsemble.cs (1)
314return string.Empty;
Microsoft.ML.OnnxTransformer (2)
OnnxSessionOptions.cs (2)
79public string OptimizedModelFilePath { get; set; } = string.Empty; 108public string LogId { get; set; } = string.Empty;
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
756return String.Empty;
Microsoft.ML.PerformanceTests (1)
Harness\ProjectGenerator.cs (1)
28private readonly string _runtimeIdentifier = string.Empty;
Microsoft.ML.ResultProcessor (6)
ResultProcessor.cs (6)
450string datafile = string.Empty; 451string testDatafile = string.Empty; 601string timeElapsed = string.Empty; 602string executionDate = string.Empty; 603string physicalMemory = string.Empty; 604string virtualMemory = string.Empty;
Microsoft.ML.Samples (1)
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
93StringVector = new string[] { "A", string.Empty, "Female"}
Microsoft.ML.TestFramework (3)
BaseTestBaseline.cs (2)
275return GetBaselinePath(string.Empty, name); 281subDir = subDir ?? string.Empty;
Learners.cs (1)
634Tag = "Momentum" + (useNag ? "Nag" : string.Empty),
Microsoft.ML.Tests (2)
ImagesTests.cs (1)
123var emptyImageFolder = String.Empty;
Transformers\TextNormalizer.cs (1)
41new TestClass() { A = null, B =new string[2] { null, string.Empty } } };
Microsoft.ML.TimeSeries (2)
SequentialTransformerBase.cs (2)
434ctx.Writer.Write(ConfidenceLowerBoundColumn ?? string.Empty); 435ctx.Writer.Write(ConfidenceUpperBoundColumn ?? string.Empty);
Microsoft.ML.Tokenizers (15)
Model\BPETokenizer.cs (1)
831sb.Replace(ContinuingSubwordPrefix, string.Empty);
Model\SentencePieceBaseModel.cs (1)
200return string.Empty;
Model\SentencePieceUnigramModel.cs (1)
380normalizedText = string.Empty;
Model\TiktokenTokenizer.cs (2)
309value[i].TokenLength == 0 ? string.Empty : text.Slice(value[i].TokenIndex, value[i].TokenLength).ToString(), 350encodedTokens[i].TokenLength == 0 ? string.Empty : text.Slice(encodedTokens[i].TokenIndex, encodedTokens[i].TokenLength).ToString(),
Normalizer\BertNormalizer.cs (3)
33return string.Empty; 116string result = index == 0 ? string.Empty : new string(buffer, 0, index).Normalize(NormalizationForm.FormC); 130return string.Empty;
Normalizer\LowerCaseNormalizer.cs (1)
42return string.Empty;
Normalizer\SentencePieceNormalizer.cs (4)
100return string.Empty; 113return string.Empty; 123return length == 0 ? string.Empty : Encoding.UTF8.GetString(poolArray!, 0, length); 171return string.Empty;
Normalizer\UpperCaseNormalizer.cs (1)
42return string.Empty;
Tokenizer.cs (1)
377return string.Empty;
Microsoft.ML.Tokenizers.Tests (2)
NormalizerTests.cs (2)
145return string.Empty; 155return string.Empty;
Microsoft.ML.Transforms (2)
Expression\Printer.cs (2)
471string str = string.Empty; 472string strOp = string.Empty;
Microsoft.NET.Build.Containers (24)
LocalDaemons\ContainerRuntimeOperations.cs (1)
159foreach (string directory in (Environment.GetEnvironmentVariable("PATH") ?? string.Empty).Split(Path.PathSeparator))
LocalDaemons\ContainerRuntimes.cs (1)
161return JsonDocument.Parse(result.StdOut ?? string.Empty);
LocalDaemons\DockerCli.cs (2)
56foreach (string directory in (Environment.GetEnvironmentVariable("PATH") ?? string.Empty).Split(Path.PathSeparator)) 224return JsonDocument.Parse(dockerCommandResult.StdOut ?? string.Empty);
ManifestV2.cs (1)
59public string GetDigest() => KnownDigest ??= DigestUtils.ComputeSha256Digest(JsonSerializer.SerializeToNode(this)?.ToJsonString() ?? string.Empty);
Registry\Registry.cs (1)
130var port = baseUri.Port == -1 ? string.Empty : $":{baseUri.Port}";
src\sdk\src\Common\VSHostObject.cs (1)
109TaskItem taskItem = new(dto.ItemSpec ?? string.Empty);
Tasks\CreateImageIndex.cs (6)
149return (string.Empty, string.Empty); 155return (string.Empty, string.Empty); 161return (string.Empty, string.Empty);
Tasks\CreateImageIndex.Interface.cs (10)
83BaseRegistry = string.Empty; 84BaseImageName = string.Empty; 85BaseImageTag = string.Empty; 86BaseImageDigest = string.Empty; 88OutputRegistry = string.Empty; 89ArchiveOutputPath = string.Empty; 90LocalRegistry = string.Empty; 91Repository = string.Empty; 93GeneratedArchiveOutputPath = string.Empty; 94GeneratedImageIndex = string.Empty;
VSHostObject.cs (1)
101TaskItem taskItem = new(dto.ItemSpec ?? string.Empty);
Microsoft.NET.Build.Extensions.Tasks (9)
parent\Common\ConflictResolution\ConflictItem.cs (7)
78var assemblyVersionString = OriginalItem?.GetMetadata(nameof(AssemblyVersion)) ?? string.Empty; 86_assemblyVersion = FileUtilities.TryGetAssemblyVersion(SourcePathForFileAccess ?? string.Empty); 125_fileName = OriginalItem == null ? string.Empty : Path.GetFileName(OriginalItem.ItemSpec); 142var fileVersionString = OriginalItem?.GetMetadata(nameof(FileVersion)) ?? string.Empty; 181_packageId = OriginalItem?.GetMetadata(MetadataNames.NuGetPackageId) ?? string.Empty; 199var packageVersionString = OriginalItem?.GetMetadata(nameof(MetadataNames.NuGetPackageVersion)) ?? string.Empty; 221_sourcePath = ItemUtilities.GetSourcePath(OriginalItem) ?? string.Empty;
parent\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
193compilePlatformWinners.Select(c => Path.GetFileNameWithoutExtension(c.FileName) ?? string.Empty)
parent\Common\MessageBase.cs (1)
36string message = FormattedText ?? string.Empty;
Microsoft.NET.Build.Tasks (81)
AddPackageType.cs (2)
26string current = CurrentPackageType ?? string.Empty; 27string toAdd = (PackageTypeToAdd ?? string.Empty).Trim();
AllowEmptyTelemetry.cs (1)
20EventName = string.Empty;
CheckSdkVulnerabilities.cs (2)
24public string SdkVersion { get; set; } = string.Empty; 83: string.Empty;
CollectSDKReferencesDesignTime.cs (1)
86newTaskItem.SetMetadata(MetadataKeys.SDKPackageItemSpec, string.Empty);
DependencyContextBuilder.cs (17)
301hash: string.Empty, 302runtimeAssemblyGroups: [new RuntimeAssetGroup(string.Empty, [CreateRuntimeFile(directReference.FileName, directReference.FullPath, directReference.DestinationSubPath)])], 420hash: string.Empty, 447hash: string.Empty, 472hash: string.Empty, 483runtimeSignature: string.Empty, 525RuntimeAssetGroup[] runtimeAssemblyGroups = new[] { new RuntimeAssetGroup(string.Empty, _mainProjectInfo.OutputName) }; 545hash: string.Empty, 608var runtimeAssemblyGroup = new RuntimeAssetGroup(string.Empty, 612var nativeLibraryGroup = new RuntimeAssetGroup(string.Empty, 620hash: string.Empty, 659new RuntimeFile(referenceProjectInfo.OutputName, string.Empty, string.Empty); 660runtimeAssemblyGroups.Add(new RuntimeAssetGroup(string.Empty, [runtimeFile])); 672runtimeAssemblyGroups.Add(new RuntimeAssetGroup(string.Empty, 678nativeLibraryGroups.Add(new RuntimeAssetGroup(string.Empty, 790hash = string.Empty;
ExecutableExtension.cs (1)
16return string.Empty;
GenerateSupportedTargetFrameworkAlias.cs (1)
36TargetPlatformMoniker = string.Empty;
GetAssemblyAttributes.cs (1)
38["System.Reflection.AssemblyVersionAttribute"] = assemblyVersion != null ? assemblyVersion.ToString() : string.Empty
GetPackagesToPrune.cs (1)
195if (!frameworkReference.Equals(string.Empty, StringComparison.OrdinalIgnoreCase) &&
parent\Common\ConflictResolution\ConflictItem.cs (7)
78var assemblyVersionString = OriginalItem?.GetMetadata(nameof(AssemblyVersion)) ?? string.Empty; 86_assemblyVersion = FileUtilities.TryGetAssemblyVersion(SourcePathForFileAccess ?? string.Empty); 125_fileName = OriginalItem == null ? string.Empty : Path.GetFileName(OriginalItem.ItemSpec); 142var fileVersionString = OriginalItem?.GetMetadata(nameof(FileVersion)) ?? string.Empty; 181_packageId = OriginalItem?.GetMetadata(MetadataNames.NuGetPackageId) ?? string.Empty; 199var packageVersionString = OriginalItem?.GetMetadata(nameof(MetadataNames.NuGetPackageVersion)) ?? string.Empty; 221_sourcePath = ItemUtilities.GetSourcePath(OriginalItem) ?? string.Empty;
parent\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
193compilePlatformWinners.Select(c => Path.GetFileNameWithoutExtension(c.FileName) ?? string.Empty)
parent\Common\MessageBase.cs (1)
36string message = FormattedText ?? string.Empty;
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
44return _version?.ToString() ?? string.Empty;
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
522return (string.Empty, string.Empty); 549return (string.Empty, string.Empty);
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (2)
111var patch = releaseVersion.Patch > 0 ? $".{releaseVersion.Patch}" : string.Empty; 112var release = string.IsNullOrWhiteSpace(releaseVersion.Prerelease) ? string.Empty : $"-{releaseVersion.Prerelease}";
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
37string.Empty, // The version here isn't used.
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifest.cs (1)
51public static WorkloadManifest CreateForTests(string id) => new(id, new FXVersion(7, 3, 5), null, string.Empty, [], [], []);
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (10)
227var dependencyId = reader.GetString() ?? string.Empty; 259var workloadId = new WorkloadId(reader.GetString() ?? string.Empty); 285var packId = new WorkloadPackId(reader.GetString() ?? string.Empty); 311list.Add(reader.GetString() ?? string.Empty); 334list.Add(map(reader.GetString() ?? string.Empty)); 357var name = reader.GetString() ?? string.Empty; 360dictionary.Add(name, val ?? string.Empty); 383var name = reader.GetString() ?? string.Empty; 384var val = mapValue(ReadString(ref reader) ?? string.Empty); 471replaceWith = new WorkloadId(ReadString(ref reader) ?? string.Empty);
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
52new(reader.GetString() ?? string.Empty);
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
38string manifestVersionString = string.Empty;
ProcessFrameworkReferences.cs (3)
701(requiredLabelsMetadata == string.Empty ? string.Empty : ":" + requiredLabelsMetadata); 973if (knownPack.GetMetadata("ILCompilerRuntimePackNamePattern") is string runtimePackNamePattern && runtimePackNamePattern != string.Empty)
ProjectContext.cs (1)
196.Where(dg => dg.FrameworkName == string.Empty ||
ResolvePackageAssets.cs (5)
1560var version = packageVersion ?? string.Empty; 1567var resolvedPath = resolvedPackagePath ?? string.Empty; 1571string itemPath = package.Path ?? string.Empty; 1574: itemPath) ?? string.Empty; 1577string diagnosticLevel = string.Empty;
ResolvePackageDependencies.cs (7)
182item.SetMetadata(MetadataKeys.Path, package.Path ?? string.Empty); 185item.SetMetadata(MetadataKeys.ResolvedPath, resolvedPackagePath ?? string.Empty); 205fileItem.SetMetadata(MetadataKeys.ResolvedPath, resolvedPath ?? string.Empty); 273return logLevel != null ? logLevel.ToString() : string.Empty; 283item.SetMetadata(MetadataKeys.RuntimeIdentifier, target.RuntimeIdentifier ?? string.Empty); 318item.SetMetadata(MetadataKeys.ParentPackage, string.Empty); // Foreign Key 452return string.Empty;
ResolveRuntimePackAssets.cs (1)
112if (profiles.Contains(string.Empty))
SingleProjectInfo.cs (4)
17private UnreferencedProjectInfo() : base(string.Empty, string.Empty, string.Empty, string.Empty, new List<ReferenceInfo>(), new List<ResourceAssemblyInfo>())
src\sdk\src\Common\WorkloadSetVersion.cs (1)
73: string.Empty;
WriteAppConfigWithSupportedRuntime.cs (2)
65string runtimeVersion = string.Empty; 136string profileInSku = targetFrameworkProfile != null ? $",Profile={targetFrameworkProfile}" : string.Empty;
Microsoft.Net.Http.Headers (2)
HeaderUtilities.cs (2)
242var segment = headerValues[i] ?? string.Empty; 298var segment = cacheControlDirectives[i] ?? string.Empty;
Microsoft.NET.ProjectData (50)
CachePathResolver.cs (12)
191 body = string.Empty; 449 body = string.Empty; 504 string root = this.dotnetRoots.Length > 0 ? this.dotnetRoots[0] : string.Empty; 760 : string.Empty; 817 identity = string.Empty; 856 => properties.TryGetValue(name, out string? value) ? value : string.Empty; 954 return string.Empty; 959 return string.Empty; 972 prefix = string.Empty; 973 suffix = string.Empty; 1072 latest > 0 ? latest + ".0" : string.Empty, 1073 latest > 0 ? (latest + 1) + ".0" : string.Empty);
Donor\ProjectDataDonorIndex.cs (7)
114 workspaceRoot = string.Empty; 115 indexPath = string.Empty; 142 relativePath = string.Empty; 171 string root = Path.GetPathRoot(fullPath) ?? string.Empty; 191 workspaceRoot = string.Empty; 192 gitCommonDirectory = string.Empty; 221 gitDirectory = string.Empty;
Donor\ProjectDataDonorIndex.Git.cs (2)
68 string head = File.Exists(headPath) ? File.ReadAllText(headPath).Trim() : string.Empty; 167 string output = outputTask.Status == TaskStatus.RanToCompletion ? outputTask.Result : string.Empty;
Donor\ProjectDataDonorIndexEntry.cs (1)
9 public string Path { get; set; } = string.Empty;
ProjectDataBuildAttemptManifest.cs (15)
18 public string AttemptId { get; set; } = string.Empty; 23 public string CompletedUtc { get; set; } = string.Empty; 208 .Select(static value => value.GetString() ?? string.Empty)]; 213 value = string.Empty; 219 value = element.GetString() ?? string.Empty; 232 => TryGetString(owner, propertyName, out string value) ? value : string.Empty; 261 public string Phase { get; set; } = string.Empty; 270 public string Kind { get; set; } = string.Empty; 271 public string ProjectFilePath { get; set; } = string.Empty; 283 public string Severity { get; set; } = string.Empty; 284 public string Phase { get; set; } = string.Empty; 285 public string ProjectFilePath { get; set; } = string.Empty; 287 public string FilePath { get; set; } = string.Empty; 288 public string Code { get; set; } = string.Empty; 289 public string Message { get; set; } = string.Empty;
ProjectDataBuildDiagnosticProtocol.cs (1)
94 => Convert.ToBase64String(Utf8NoBom.GetBytes(value ?? string.Empty));
ProjectDataBuildReceipt.cs (3)
263 public string AttemptId { get; set; } = string.Empty; 264 public string ProjectFilePath { get; set; } = string.Empty; 265 public string ReceiptFilePath { get; set; } = string.Empty;
SdkKnownFrameworkReferenceResolver.cs (2)
144 versionMetadataName = string.Empty; 216 identifier = string.Empty;
UnsupportedProjectDataMarker.cs (6)
80 Reason = values.TryGetValue("reason", out string? reason) ? reason : string.Empty, 275 public string ProjectFilePath { get; set; } = string.Empty; 276 public string Reason { get; set; } = string.Empty; 277 public string MarkerFilePath { get; set; } = string.Empty; 278 public string ProjectFingerprint { get; set; } = string.Empty; 279 public string InputsFingerprint { get; set; } = string.Empty;
UserFolderCachePath.cs (1)
68 cacheFilePath = string.Empty;
Microsoft.NET.ProjectData.Tasks (100)
AnalyzerConfigFileFilter.cs (3)
118 IsSameOrAncestorDirectory(Path.GetDirectoryName(path) ?? string.Empty, sourceDirectory))) 129 string editorConfigDirectory = Path.GetDirectoryName(editorConfigPath) ?? string.Empty; 144 string rootDirectory = Path.GetDirectoryName(rootEditorConfigPath) ?? string.Empty;
CachePathResolver.cs (2)
26 this.projectDir = Path.GetDirectoryName(projectFilePath) ?? string.Empty; 328 if (string.IsNullOrEmpty(userHome)) userHome = Environment.GetEnvironmentVariable("HOME") ?? string.Empty;
ForwardCompat.cs (3)
447 pendingUnknownSections.Add(string.Empty); 525 var block = new List<string> { string.Empty, CacheFormat.SectionHeader(CacheFormat.Sections.Properties) }; 749 string prefix = prefixStack.Count > 0 ? prefixStack.Peek().Prefix : string.Empty;
MergeProjectDataSlicesTask.cs (8)
24 public string OutputPath { get; set; } = string.Empty; 26 public string SliceGlob { get; set; } = string.Empty; 36 public string TargetFrameworks { get; set; } = string.Empty; 42 public string ProjectFilePath { get; set; } = string.Empty; 50 public string IntermediateOutputPath { get; set; } = string.Empty; 56 public string DonorCacheIndexPath { get; set; } = string.Empty; 61 public string DonorCacheWorkspaceRoot { get; set; } = string.Empty; 70 public string ResolvedOutputPath { get; set; } = string.Empty;
ProjectDataBuildCompletionLogger.cs (12)
33 private string receiptDirectory = string.Empty; 34 private string attemptId = string.Empty; 44 private string completedUtc = string.Empty; 190 string projectFile = projectStarted.ProjectFile ?? string.Empty; 214 string projectFile = evaluationStarted.ProjectFile ?? string.Empty; 259 resolvedProjectFile = projectFile ?? string.Empty; 269 FilePath = file ?? string.Empty, 270 Code = code ?? string.Empty, 271 Message = message ?? string.Empty, 447 receiptDirectory = string.Empty; 448 attemptId = string.Empty; 523 ? string.Empty
ProjectDataMerger.cs (2)
131 .Where(candidate => allowedTargetFrameworks is null || allowedTargetFrameworks.Contains(candidate.Slice.GetTargetFramework() ?? string.Empty)) 135 .ThenBy(static candidate => GetSliceIdentity(candidate.Slice) ?? string.Empty, StringComparer.OrdinalIgnoreCase)
ProjectDataWriter.cs (14)
213 string value = kvp.Value ?? string.Empty; 703 unsupportedReason = string.Empty; 719 string projectDirectory = Path.GetDirectoryName(projectFilePath) ?? string.Empty; 1545 ? string.Empty 1615 string canonicalAnalysisLevel = CanonicalizeAnalysisLevel(analysisLevel, effectiveAnalysisLevel: string.Empty, targetFramework, out string parsedAnalysisLevelSuffix); 1679 .Replace("\r", string.Empty) 1680 .Replace("\n", string.Empty); 1684 => item.GetMetadata(name) ?? string.Empty; 1690 => string.Equals(left ?? string.Empty, right ?? string.Empty, StringComparison.OrdinalIgnoreCase); 1707 prefix = string.Empty; 1708 suffix = string.Empty; 2109 item.ItemSpec ?? string.Empty, 2110 item.GetMetadata("Value") ?? string.Empty));
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndex.cs (7)
114 workspaceRoot = string.Empty; 115 indexPath = string.Empty; 142 relativePath = string.Empty; 171 string root = Path.GetPathRoot(fullPath) ?? string.Empty; 191 workspaceRoot = string.Empty; 192 gitCommonDirectory = string.Empty; 221 gitDirectory = string.Empty;
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndexEntry.cs (1)
9 public string Path { get; set; } = string.Empty;
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildAttemptManifest.cs (15)
18 public string AttemptId { get; set; } = string.Empty; 23 public string CompletedUtc { get; set; } = string.Empty; 208 .Select(static value => value.GetString() ?? string.Empty)]; 213 value = string.Empty; 219 value = element.GetString() ?? string.Empty; 232 => TryGetString(owner, propertyName, out string value) ? value : string.Empty; 261 public string Phase { get; set; } = string.Empty; 270 public string Kind { get; set; } = string.Empty; 271 public string ProjectFilePath { get; set; } = string.Empty; 283 public string Severity { get; set; } = string.Empty; 284 public string Phase { get; set; } = string.Empty; 285 public string ProjectFilePath { get; set; } = string.Empty; 287 public string FilePath { get; set; } = string.Empty; 288 public string Code { get; set; } = string.Empty; 289 public string Message { get; set; } = string.Empty;
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildDiagnosticProtocol.cs (1)
94 => Convert.ToBase64String(Utf8NoBom.GetBytes(value ?? string.Empty));
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildReceipt.cs (3)
263 public string AttemptId { get; set; } = string.Empty; 264 public string ProjectFilePath { get; set; } = string.Empty; 265 public string ReceiptFilePath { get; set; } = string.Empty;
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\UnsupportedProjectDataMarker.cs (6)
80 Reason = values.TryGetValue("reason", out string? reason) ? reason : string.Empty, 275 public string ProjectFilePath { get; set; } = string.Empty; 276 public string Reason { get; set; } = string.Empty; 277 public string MarkerFilePath { get; set; } = string.Empty; 278 public string ProjectFingerprint { get; set; } = string.Empty; 279 public string InputsFingerprint { get; set; } = string.Empty;
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\UserFolderCachePath.cs (1)
68 cacheFilePath = string.Empty;
ValidateProjectDataPackagesTask.cs (8)
18 public string ProjectFilePath { get; set; } = string.Empty; 20 public string AssetsFile { get; set; } = string.Empty; 22 public string TargetFramework { get; set; } = string.Empty; 24 public string TargetFrameworkMoniker { get; set; } = string.Empty; 666 : string.Empty; 710 value = property.GetString() ?? string.Empty; 714 value = string.Empty; 810 return separatorIndex >= 0 ? resolvedPackage.ItemSpec.Substring(separatorIndex + 1) : string.Empty;
WriteProjectDataBuildReceiptTask.cs (5)
16 public string ReceiptDirectory { get; set; } = string.Empty; 19 public string AttemptId { get; set; } = string.Empty; 22 public string ProjectFilePath { get; set; } = string.Empty; 50 public string ProjectFilePath { get; set; } = string.Empty; 53 public string ProjectId { get; set; } = string.Empty;
WriteProjectDataSliceTask.cs (6)
18 public string ProjectFilePath { get; set; } = string.Empty; 24 public string OutputPath { get; set; } = string.Empty; 32 public string IntermediateOutputPath { get; set; } = string.Empty; 38 public string DonorCacheIndexPath { get; set; } = string.Empty; 43 public string DonorCacheWorkspaceRoot { get; set; } = string.Empty; 83 public string ResolvedOutputPath { get; set; } = string.Empty;
WriteUnsupportedProjectDataMarkerTask.cs (3)
17 public string ProjectFilePath { get; set; } = string.Empty; 19 public string Reason { get; set; } = string.Empty; 22 public string MarkerPath { get; set; } = string.Empty;
Microsoft.NET.Sdk.Publish.Tasks (48)
AppSettingsTransform.cs (1)
19DefaultConnection = string.Empty
Kudu\KuduVfsDeploy.cs (2)
28? string.Empty : string.Format(ConnectionInfo.DestinationUrl, ConnectionInfo.SiteName, "vfs/site/wwwroot/"); 55string relPath = file.Replace(sourcePath, string.Empty);
Kudu\KuduZipDeploy.cs (1)
25? string.Empty : string.Format(ConnectionInfo.DestinationUrl, ConnectionInfo.SiteName, "zip/site/wwwroot/");
MsDeploy\CommonUtility.cs (8)
489string strMinimumVersion = string.Empty; 696string dir = Path.GetDirectoryName(destRoot) ?? string.Empty; 776string dir = Path.GetDirectoryName(destRoot) ?? string.Empty; 811string absUriPath = string.Empty; 959new object[] { kind, scope, matchRegularExpression, string.Empty }); 1077string lastItemName = string.Empty; 1202new object[] { item.Kind, item.Scope, item.Match, string.Empty }); 1738string rootPathWithSlash = string.Concat(rootPath, rootPath.EndsWith(directorySeparator, StringComparison.Ordinal) ? string.Empty : directorySeparator);
MsDeploy\VsMSDeployObject.cs (5)
226m_root = string.IsNullOrEmpty(root) ? string.Empty : root; 258m_root = string.Empty; 331protected string m_root = string.Empty; 332protected string m_disableLinks = string.Empty; 333protected string m_enableLinks = string.Empty;
src\sdk\src\Common\VSHostObject.cs (1)
109TaskItem taskItem = new(dto.ItemSpec ?? string.Empty);
Tasks\Http\HttpClientExtensions.cs (1)
239var responseText = string.Empty;
Tasks\MsDeploy\MSDeploy.cs (3)
570string type = string.Empty; 571string path = string.Empty; 1039string result = ExePath is null ? string.Empty : Path.Combine(ExePath, ToolName);
Tasks\MsDeploy\NormalizeServiceUrl.cs (6)
20private string _serviceUrl = string.Empty; 21private string _resultUrl = string.Empty; 22private string _siteName = string.Empty; 84_resultUrl = string.Empty;//through in proc and don't need server name at all. 128return string.Empty; 132return string.Empty;
Tasks\MsDeploy\VsMsdeploy.cs (5)
123return (_host != null) ? _host.TaskName : string.Empty; 836src.DisableLinks = DisableLink ?? string.Empty; 837dest.DisableLinks = DisableLink ?? string.Empty; 838src.EnableLinks = EnableLink ?? string.Empty; 839dest.EnableLinks = EnableLink ?? string.Empty;
Tasks\OneDeploy\CreatePackageFile.cs (1)
55CreatedPackageFilePath = packageFileTask.Result ? packageFilePath : string.Empty;
Tasks\OneDeploy\OneDeploy.cs (3)
121var responseText = response is null ? string.Empty : await response.GetTextResponseAsync(cancellationToken); 173user = string.Empty; 174password = string.Empty;
Tasks\TransformAppSettings.cs (2)
62string sourceAppSettingsFilePath = string.Empty; 71string destinationAppSettingsFilePath = string.Empty;
Tasks\TransformWebConfig.cs (3)
80string publishWebConfigPath = string.Empty; 127string? outputFile = Path.GetFileName(TargetPath) ?? string.Empty; 161return string.Empty;
Tasks\Xdt\TaskTransformationLogger.cs (1)
40indentString = string.Empty;
Tasks\Xdt\TransformXml.cs (2)
16private string _sourceRootPath = string.Empty; 17private string _transformRootPath = string.Empty;
Tasks\ZipDeploy\ZipDeploy.cs (2)
148user = string.Empty; 149password = string.Empty;
WebConfigTransform.cs (1)
120appPath = string.Empty;
Microsoft.NET.Sdk.Razor.Tasks (1)
parent\Tool\PipeName.cs (1)
55.Replace("=", string.Empty);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (8)
DefineStaticWebAssets.cs (3)
129var relativePathCandidate = string.Empty; 285identity = Path.Combine(Path.GetDirectoryName(identity) ?? string.Empty, expanded); 424var finalIdentity = Path.Combine(normalizedContentRoot, identitySubPath ?? string.Empty, itemSpecFileName);
OverrideHtmlAssetPlaceholders.cs (1)
26public string OutputPath { get; set; } = string.Empty;
Utils\Globbing\GlobNode.cs (2)
58var wildCard = WildCard != null ? "*" : string.Empty; 59var recursiveWildCard = RecursiveWildCard != null ? "**" : string.Empty;
Utils\Globbing\StaticWebAssetGlobMatcher.cs (2)
27return new(false, string.Empty); 164return string.Empty;
Microsoft.NET.Sdk.WorkloadManifestReader (22)
ManifestVersion.cs (1)
44return _version?.ToString() ?? string.Empty;
SdkDirectoryWorkloadManifestProvider.cs (4)
522return (string.Empty, string.Empty); 549return (string.Empty, string.Empty);
SdkFeatureBand.cs (2)
111var patch = releaseVersion.Patch > 0 ? $".{releaseVersion.Patch}" : string.Empty; 112var release = string.IsNullOrWhiteSpace(releaseVersion.Prerelease) ? string.Empty : $"-{releaseVersion.Prerelease}";
src\sdk\src\Common\WorkloadSetVersion.cs (1)
73: string.Empty;
TempDirectoryWorkloadManifestProvider.cs (1)
37string.Empty, // The version here isn't used.
WorkloadManifest.cs (1)
51public static WorkloadManifest CreateForTests(string id) => new(id, new FXVersion(7, 3, 5), null, string.Empty, [], [], []);
WorkloadManifestReader.cs (10)
227var dependencyId = reader.GetString() ?? string.Empty; 259var workloadId = new WorkloadId(reader.GetString() ?? string.Empty); 285var packId = new WorkloadPackId(reader.GetString() ?? string.Empty); 311list.Add(reader.GetString() ?? string.Empty); 334list.Add(map(reader.GetString() ?? string.Empty)); 357var name = reader.GetString() ?? string.Empty; 360dictionary.Add(name, val ?? string.Empty); 383var name = reader.GetString() ?? string.Empty; 384var val = mapValue(ReadString(ref reader) ?? string.Empty); 471replaceWith = new WorkloadId(ReadString(ref reader) ?? string.Empty);
WorkloadPackId.cs (1)
52new(reader.GetString() ?? string.Empty);
WorkloadSet.cs (1)
38string manifestVersionString = string.Empty;
Microsoft.NET.StringTools (2)
InternableString.cs (1)
217return string.Empty;
WeakStringCacheInterner.cs (1)
80return string.Empty;
Microsoft.Private.Windows.Core (15)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\StringExtensions.cs (3)
43return string.Empty; 63return string.Empty; 97return string.Empty;
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\Text\EncodingExtensions.cs (1)
39return string.Empty;
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (4)
216return string.Empty; 229return string.Empty; 267return bytes.IsEmpty ? string.Empty : encoding.GetString(bytes); 297return string.Empty;
System\Private\Windows\Ole\DragDropHelper.cs (4)
45SetDropDescription(dataObject, DROPIMAGETYPE.DROPIMAGE_INVALID, string.Empty, string.Empty); 319e.Message ??= string.Empty; 320e.MessageReplacementToken ??= string.Empty;
Windows\Win32\Foundation\BSTR.cs (1)
28string result = ToString() ?? string.Empty;
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
34return string.Empty; 51return string.Empty;
Microsoft.TemplateEngine.Cli (52)
ChoiceTemplateParameter.cs (13)
85option.FromAmongCaseInsensitive(Choices.Keys.ToArray(), allowedHiddenValue: string.Empty); 120return string.Empty; 124return string.Empty; 139return string.Empty; 143return string.Empty; 149return string.Empty; 162return string.Empty; 177parsedValue = string.Empty; 178error = string.Empty; 193error = CreateParseError(string.Empty, parameter); 203parsedValue = string.Empty; 204error = string.Empty; 206if (value.Equals(string.Empty))
CliEnvironment.cs (1)
22variables[key] = (env[key] as string) ?? string.Empty;
CliTemplateParameter.cs (5)
39Description = parameter.Description ?? string.Empty; 85Description = string.Empty; 86DefaultValue = string.Empty; 87DefaultIfOptionWithoutValue = string.Empty; 414return (true, value ?? string.Empty);
Commands\AliasAssignmentCoordinator.cs (1)
61if (shortNameOverride == string.Empty)
Commands\BaseCommand.cs (4)
216.DefineColumn(mp => mp.GetType().FullName ?? string.Empty, LocalizableStrings.Type, showAlways: true) 217.DefineColumn(mp => mp.GetType().GetTypeInfo().Assembly.FullName ?? string.Empty, LocalizableStrings.Assembly, showAlways: true); 227.DefineColumn(g => g.GetType().FullName ?? string.Empty, LocalizableStrings.Type, showAlways: true) 228.DefineColumn(g => g.GetType().GetTypeInfo().Assembly.FullName ?? string.Empty, LocalizableStrings.Assembly, showAlways: true);
Commands\BaseFilterableArgs.cs (1)
32return _filters[filter].GetValueOrDefault<string>() ?? string.Empty;
Commands\create\InstantiateCommand.cs (5)
144return string.Empty; 306.DefineColumn(t => t.GetLanguage() ?? string.Empty, LocalizableStrings.ColumnNameLanguage, showAlways: true) 308.DefineColumn(t => t.Author ?? string.Empty, LocalizableStrings.ColumnNameAuthor, showAlways: true, shrinkIfNeeded: true, minWidth: 10) 331return templatePackage?.Identifier ?? string.Empty; 337return string.Empty;
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
86return string.Empty;
Commands\create\InvalidTemplateOptionResult.cs (1)
102optionResult.IdentifierToken?.Value ?? string.Empty,
Commands\create\TemplateCommand.cs (1)
166TemplateInvoker invoker = new(_environmentSettings, () => Console.ReadLine() ?? string.Empty);
Commands\create\TemplateOptionResult.cs (1)
48optionResult.IdentifierToken?.Value ?? string.Empty,
NuGet\NugetApiManager.cs (1)
120Authors = metadata.Authors ?? string.Empty;
PostActionProcessors\ProcessStartPostActionProcessor.cs (2)
77Reporter.Error.WriteLine(string.Empty); 90Reporter.Error.WriteLine(string.Empty);
TabularOutput\TabularOutput.cs (2)
85header[i] = new TextWrapper(_columns[i].Header ?? string.Empty, _columns[i].MaxWidth, _settings.NewLine, _settings.ShrinkReplacement); 426var text = _lines.Count > line ? _lines[line] : string.Empty;
TabularOutput\TemplateGroupDisplay.cs (2)
80string defaultLanguageDisplay = string.Empty; 247.GroupBy(template => string.IsNullOrWhiteSpace(template.Author) ? string.Empty : template.Author, StringComparer.OrdinalIgnoreCase)
TemplateGroup.cs (1)
146return GetHighestPrecedenceTemplates().First().Description ?? string.Empty;
TemplatePackageCoordinator.cs (4)
219Reporter.Output.WriteLine(string.Format(LocalizableStrings.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow()); 424string? packageSource = string.Empty; 475$"{packageIdentity}{(string.IsNullOrWhiteSpace(packageVersion) ? string.Empty : $"@{packageVersion}")}"); 858string currentDirectory = string.Empty;
TemplatePackageDisplay.cs (4)
296.DefineColumn(r => r.CurrentVersion ?? string.Empty, LocalizableStrings.ColumnNameCurrentVersion, showAlways: true) 297.DefineColumn(r => r.LatestVersion ?? string.Empty, LocalizableStrings.ColumnNameLatestVersion, showAlways: true) 385reporter.WriteLine($"{string.Empty.PadLeft(4)}{_vulnerabilitySeverityToColorMap[entry.Severity].Bold()}:"); 389entry.AdvisoryUris.Select(advisory => $"{string.Empty.PadLeft(8)}{(advisory.Url(advisory))}")));
TemplateSearch\CliTemplateSearchCoordinator.cs (2)
206private static string GetReservedMark(bool reserved) => reserved ? "✓" : string.Empty; 348return string.Empty;
Microsoft.TemplateEngine.Core (2)
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (2)
346string followingWhitespace = string.Empty; 355followingWhitespace = string.Empty;
Microsoft.TemplateEngine.Edge (19)
BuiltInManagedProvider\GlobalSettings.cs (1)
90package.ToString(nameof(TemplatePackageData.MountPointUri)) ?? string.Empty,
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (1)
302return (InstallerErrorCode.Success, string.Empty);
Installers\NuGet\NugetApiPackageManager.cs (2)
439return (searchResult.Owners ?? string.Empty, searchResult.PrefixReserved); 445string currentDirectory = string.Empty;
Installers\NuGet\NuGetInstaller.cs (1)
131nugetPackage?.Version ?? string.Empty,
Installers\NuGet\NuGetManagedTemplatePackage.cs (4)
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));
Mount\Archive\ZipFileMountPoint.cs (1)
24Root = new ZipFileDirectory(this, "/", string.Empty);
Mount\FileSystem\FileSystemMountPoint.cs (1)
23Root = new FileSystemDirectory(this, "/", string.Empty, MountPointRootPath);
Settings\TemplateCache.cs (5)
87Locale = string.Empty; 93: string.Empty; 134Locale = string.Empty; 143? localeToken.GetString() ?? string.Empty 144: string.Empty;
Settings\TemplateInfo.cs (1)
154return string.Empty;
Settings\TemplateInfoReader.cs (2)
100tags.Add(item.Key, item.Value?.GetValue<string>() ?? string.Empty); 219tags.Add(item.Name, item.Value.ValueKind == JsonValueKind.Null ? string.Empty : item.Value.GetString()!);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (43)
ConfigModel\ParameterSymbol.cs (6)
33DisplayName = jObject.ToString(nameof(DisplayName)) ?? string.Empty; 34Description = jObject.ToString(nameof(Description)) ?? string.Empty; 52choiceObject.ToString("displayName") ?? string.Empty, 53choiceObject.ToString("description") ?? string.Empty); 164{ value, new ParameterChoice(string.Empty, string.Empty) }
ConfigModel\PostActionModel.cs (3)
123args.Add(argInfo.Key, argInfo.Value?.ToString() ?? string.Empty); 169string localizedInstruction = string.Empty; 193string text = jToken.ToString("text") ?? string.Empty;
ConfigModel\TemplateConfigModel.cs (2)
64Description = source.ToString(nameof(Description)) ?? string.Empty; 161GlobalCustomOperations = CustomFileGlobModel.FromJObject((JsonObject)globalCustomConfigData, string.Empty);
DirectoryBasedTemplate.cs (1)
128protected string ParseHostFileName(string filename) => filename.Replace(HostTemplateFileConfigBaseName, string.Empty);
DirectoryBasedTemplate.Interfaces.cs (1)
33string ITemplateMetadata.Name => ConfigurationModel.Name ?? string.Empty;
EvaluatorSelector.cs (1)
72string evaluatorName = name ?? string.Empty;
FileRenameGenerator.cs (1)
134string newValue = newValueObject?.ToString() ?? string.Empty;
FileSourceHierarchicalPathMatcher.cs (1)
48_cachedEvaluatedPath = string.Empty;
Macros\BaseMacroConfig.cs (1)
156Regex.Match(string.Empty, regex);
Macros\CaseChangeMacro.cs (1)
18string value = string.Empty;
Macros\JoinMacro.cs (1)
29values.Add(string.Empty);
Macros\JoinMacroConfig.cs (2)
20Separator = separator ?? string.Empty; 27Separator = GetOptionalParameterValue(generatedSymbolConfig, "separator") ?? string.Empty;
Macros\SwitchMacro.cs (1)
18string result = string.Empty; // default if no condition assigns a value
OperationConfig\ConditionalConfig.cs (2)
70KeywordPrefix = string.Empty 85string.Empty,
OperationConfig\ConditionalLineCommentConfig.cs (1)
39IOperationProvider uncomment = new Replacement(token.TokenConfig(), string.Empty, uncommentOperationId, options.OnByDefault);
OperationConfig\FlagsConfig.cs (6)
30string on = rawConfiguration.ToString("on") ?? string.Empty; 31string off = rawConfiguration.ToString("off") ?? string.Empty; 32string onNoEmit = rawConfiguration.ToString("onNoEmit") ?? string.Empty; 33string offNoEmit = rawConfiguration.ToString("offNoEmit") ?? string.Empty; 69flagOperations.Add(new SetFlag(SetFlag.OperationName, on.TokenConfig(), string.Empty.TokenConfig(), (on + NoEmitSuffix).TokenConfig(), string.Empty.TokenConfig(), null, true));
OperationConfig\OperationConfigDefault.cs (3)
19internal static OperationConfigDefault Default { get; } = new(glob: string.Empty, flagPrefix: string.Empty, evaluator: EvaluatorType.CPP, type: ConditionalType.None); 24internal static OperationConfigDefault DefaultGlobalConfig { get; } = new(glob: string.Empty, flagPrefix: "//", evaluator: EvaluatorType.CPP, type: ConditionalType.CLineComments);
ParameterConverter.cs (3)
157string s when s.Equals("choice", StringComparison.OrdinalIgnoreCase) => string.Empty, 179return literal == string.Empty ? string.Empty : null;
PostAction.cs (1)
53string chosenInstruction = string.Empty;
RunnableProjectConfig.cs (1)
589string targetDirectory = string.Empty;
RunnableProjectConfig.ITemplate.cs (1)
82return string.Empty;
RunnableProjectGenerator.cs (1)
496return string.Empty;
ValueForms\DefaultSafeNameValueFormFactory.cs (1)
18string workingValue = Regex.Replace(value, @"(^\s+|\s+$)", string.Empty);
ValueForms\KebabCaseValueFormFactory.cs (1)
18return string.Empty;
Microsoft.TemplateEngine.Utils (4)
EnumerableExtensions.cs (1)
53return source == null ? "<NULL>" : string.Join("," + (useSpace ? " " : string.Empty), source);
InMemoryFileSystem.cs (2)
739realParts.Insert(0, string.Empty); 742processedPath = string.Join(Path.DirectorySeparatorChar + string.Empty, realParts);
IScanTemplateInfoExtensions.cs (1)
51public string ShortName => _templateInfo.ShortNameList.FirstOrDefault() ?? string.Empty;
Microsoft.TemplateSearch.Common (17)
Providers\NuGetMetadataSearchProvider.cs (1)
184client.DefaultRequestHeaders.Add(IfNoneMatchHeaderName, string.Empty);
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (16)
85string ITemplateLocator.MountPointUri => string.Empty; 92public string DefaultName => string.Empty; 109string ITemplateInfo.ShortName => ShortNameList.Count > 0 ? ShortNameList[0] : string.Empty; 125string ITemplateLocator.ConfigPlace => string.Empty; 128string IExtendedTemplateLocator.LocaleConfigPlace => string.Empty; 131string IExtendedTemplateLocator.HostConfigPlace => string.Empty; 169classifications.Add(item?.ToString() ?? string.Empty); 230tags.Add(item.Key, item.Value?.ToString() ?? string.Empty); 248{ item.Value.ToString(), string.Empty } 262choicesAndDescriptions[cdPair.Key] = new ParameterChoice(null, cdPair.Value?.ToString() ?? string.Empty); 263legacyChoices[cdPair.Key] = cdPair.Value?.ToString() ?? string.Empty; 276tags[item.Key] = tagObj.ToString("defaultValue") ?? string.Empty; 410string ITemplateParameter.DisplayName => string.Empty; 418string ITemplateParameter.Documentation => string.Empty; 461public string DisplayName => string.Empty; 487public string DisplayName => string.Empty;
Microsoft.TestPlatform.AdapterUtilities (3)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
237var assemblyName = assembly?.GetName()?.Name ?? string.Empty;
ManagedNameUtilities\ManagedNameParser.cs (2)
33namespaceName = string.Empty; 179parameterType = string.Empty;
Microsoft.TestPlatform.Build (6)
Tasks\TestTaskUtils.cs (1)
256builder.AppendSwitchIfNotNull(string.Empty, arg);
Tasks\VSTestTask2.cs (5)
115Log.LogError(subcategory: null, "TESTRUNCANCEL", null, TestFileFullPath?.ItemSpec ?? string.Empty, 0, 0, 0, 0, data[0]); 120Log.LogError(subcategory: null, "TESTRUNABORT", null, TestFileFullPath?.ItemSpec ?? string.Empty, 0, 0, 0, 0, data[0]); 227file ??= string.Empty; 230Log.LogError(null, "TESTERROR", null, file ?? string.Empty, lineNumber, 0, 0, 0, fullErrorMessage, null); 272name = string.Empty;
Microsoft.TestPlatform.CommunicationUtilities (11)
DataCollectionTestCaseEventHandler.cs (1)
109_communicationManager.SendMessage(MessageType.DataCollectionTestStartAck, string.Empty, Math.Min(message.Version, ProtocolVersioning.HighestSupportedVersion));
Json\Jsonite\Jsonite.cs (1)
1406var innerMessage = InnerException != null ? " Check inner exception for more details" : string.Empty;
JsonDataSerializer.Stj.cs (1)
190return string.Empty;
Serialization\DiscoveryCriteriaFactory.cs (1)
23sources.Length == 0 ? [string.Empty] : sources,
Serialization\TestPropertyConverter.cs (2)
59testProperty = TestProperty.Register(id, label, category ?? string.Empty, description ?? string.Empty, resolvedType, null, attributes, typeof(TestObject));
Serialization\TestResultConverter.cs (2)
88testResult.ComputerName = propertyData ?? string.Empty; break; 158writer.WriteStringValue(value.ComputerName ?? string.Empty);
TcpClientExtensions.cs (2)
30var remoteEndPoint = string.Empty; 31var localEndPoint = string.Empty;
TestRequestSender.cs (1)
138_clientExitErrorMessage = string.Empty;
Microsoft.TestPlatform.CoreUtilities (2)
Helpers\CommandLineArgumentsHelper.cs (1)
89return argsDictionary.TryGetValue(fullname, out var optionValue) ? optionValue : string.Empty;
Utilities\TimeSpanParser.cs (1)
44if (suffix.StartsWith("ms", c) || suffix.StartsWith("mil", c) || suffix == string.Empty)
Microsoft.TestPlatform.CrossPlatEngine (7)
Client\ProxyOperationManager.cs (3)
202_testHostProcessStdError = string.Empty; 435? friendlyName.FriendlyName : string.Empty; 580_ => string.Empty,
DataCollection\InProcDataCollectionExtensionManager.cs (2)
305var testProperty = TestProperty.Register(id: keyValuePair.Key, label: keyValuePair.Key, category: string.Empty, description: string.Empty, valueType: typeof(string), validateValueCallback: null, attributes: TestPropertyAttributes.None, owner: typeof(TestCase));
Discovery\DiscoveryContext.cs (1)
53var validPropertiesSttring = supportedProperties == null ? string.Empty : string.Join(CrossPlatEngineResources.StringSeperator, supportedProperties.ToArray());
TestEngine.cs (1)
296var uniqueRunConfigurations = sourceToSourceDetailMap.Values.GroupBy(k => $"{k.Framework}|{k.Architecture}|{_testHostProviderManager.GetSourceAwareRuntimeProviderType(runSettings, k.Source!)?.AssemblyQualifiedName ?? string.Empty}");
Microsoft.TestPlatform.Extensions.BlameDataCollector (8)
BlameLogger.cs (1)
91_output.WriteLine(string.Empty, OutputLevel.Information);
ProcDumpDumper.cs (1)
264.Where(dump => Path.GetFileNameWithoutExtension(dump).StartsWith(_outputFilePrefix ?? string.Empty, StringComparison.Ordinal))
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
WindowsHangDumper.cs (2)
134_ => string.Empty 137if (dumpMinitoolName == string.Empty)
XmlReaderWriter.cs (2)
69var xmlDeclaration = xmlDocument.CreateNode(XmlNodeType.XmlDeclaration, string.Empty, string.Empty);
Microsoft.TestPlatform.Filter.Source (1)
FilterExpression.cs (1)
132throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, string.Empty));
Microsoft.TestPlatform.TestHostRuntimeProvider (7)
Hosting\DefaultTestHostManager.cs (2)
268var targetFrameworkMoniker = "net" + targetFramework.Name.Replace(".NETFramework,Version=v", string.Empty).Replace(".", string.Empty);
Hosting\DotnetTestHostManager.cs (5)
277startInfo.EnvironmentVariables["DOTNET_ROOT"] = string.Empty; 304var args = string.Empty; 338string testHostPath = string.Empty; 522string message = string.Format(CultureInfo.CurrentCulture, TestHostResources.NoDotnetMuxerFoundForArchitecture, $"dotnet{(_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows ? ".exe" : string.Empty)}", finalTargetArchitecture.ToString()); 992string testHostPath = string.Empty;
Microsoft.TestPlatform.Utilities (13)
ClientUtilities.cs (1)
57var node = doc.CreateNode(XmlNodeType.Element, RunsettingsDirectory, string.Empty);
CodeCoverageDataAttachmentsHandler.cs (1)
86resultAttachmentSet.Attachments.Add(UriDataAttachment.CreateFrom(coverageOtherFilePath, string.Empty));
InferRunSettingsHelper.cs (7)
107if (!runSettingsNavigator.MoveToChild(RunSettingsNodeName, string.Empty) || 108!runSettingsNavigator.MoveToChild(RunConfigurationNodeName, string.Empty)) 507if (!runSettingsNavigator.MoveToChild(RunSettingsNodeName, string.Empty) || 508!runSettingsNavigator.MoveToChild("MSTest", string.Empty)) 558if (!runSettingsNavigator.MoveToChild(RunSettingsNodeName, string.Empty)) 567if (runSettingsNavigator.MoveToChild(RunConfigurationNodeName, string.Empty)) 675incompatibleSettingWarning = string.Empty;
MSTestSettingsUtilities.cs (2)
40if (!navigator.MoveToChild(Constants.RunSettingsName, string.Empty)) 50if (!navigator.MoveToChild(Constants.RunConfigurationSettingsName, string.Empty))
XmlUtilities.cs (2)
69secureInnerXml = string.Empty; 98parentNavigator.MoveToChild(childName, string.Empty);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (8)
VsTestConsoleWrapper.cs (8)
311runSettings ?? string.Empty); 382runSettings ?? string.Empty); 460runSettings ?? string.Empty); 539runSettings ?? string.Empty); 732runSettings ?? string.Empty); 803runSettings ?? string.Empty); 881runSettings ?? string.Empty); 960runSettings ?? string.Empty);
Microsoft.VisualBasic.Forms (12)
Microsoft\VisualBasic\ApplicationServices\AssemblyInfo.vb (6)
75_companyName = String.Empty 128_productName = String.Empty 150_copyright = String.Empty 174_description = String.Empty 213_title = String.Empty 237_trademark = String.Empty
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
139Dim description As String = String.Empty
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
22Public Output As String = String.Empty
Microsoft\VisualBasic\Interaction.vb (1)
86title = String.Empty
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
827Dim message As String = String.Empty
Microsoft\VisualBasic\Logging\Log.vb (2)
153message = String.Empty 164WriteException(ex, TraceEventType.Error, String.Empty, TraceEventTypeToId(TraceEventType.Error))
Microsoft.VisualStudio.TestPlatform.Common (15)
DataCollection\DataCollectionAttachmentManager.cs (1)
246: string.Empty;
DataCollection\DataCollectorConfig.cs (1)
135return string.Empty;
DataCollection\DataCollectorInformation.cs (1)
146AppendChildNodeOrInnerText(ConfigurationElement.OwnerDocument, ConfigurationElement, "Framework", string.Empty, frameWork.Name);
ExtensionFramework\TestPluginCache.cs (1)
372var extensionDirectories = GetExtensionPaths(string.Empty).Select(e => Path.GetDirectoryName(Path.GetFullPath(e))!).Distinct().ToList();
ExtensionFramework\Utilities\TestDiscovererPluginInformation.cs (1)
116var result = string.Empty;
ExtensionFramework\Utilities\TestExtensionPluginInformation.cs (1)
68string extensionUri = string.Empty;
ExtensionFramework\Utilities\TestLoggerPluginInformation.cs (1)
54string friendlyName = string.Empty;
ExtensionFramework\Utilities\TestRunTimePluginInformation.cs (1)
54string friendlyName = string.Empty;
ExtensionFramework\Utilities\TestSettingsProviderPluginInformation.cs (1)
68string settingName = string.Empty;
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterExpression.cs (1)
132throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, string.Empty));
Utilities\ExceptionUtilities.cs (1)
23return string.Empty;
Utilities\FakesUtilities.cs (1)
129var uri = dataCollectorNavigator.GetAttribute("uri", string.Empty);
Utilities\InstallationContext.cs (1)
38visualStudioDirectory = string.Empty;
Utilities\SimpleJSON.cs (2)
103return new KeyValuePair<string, JSONNode>(string.Empty, _array.Current); 106return new KeyValuePair<string, JSONNode>(string.Empty, null);
Microsoft.VisualStudio.TestPlatform.Extensions.TestIds.TestLogger (6)
TestIdsLogger.cs (6)
226string executorUri = testCase.ExecutorUri?.ToString() ?? string.Empty; 239testCase.Source ?? string.Empty, 241testCase.FullyQualifiedName ?? string.Empty, 242testCase.DisplayName ?? string.Empty, 294string filePath = string.Empty; 304: _testResultsDirPath ?? string.Empty;
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (38)
ObjectModel\CollectorDataEntry.cs (1)
106helper.SaveSimpleField(element, "@collectorDisplayName", _collectorDisplayName, string.Empty);
ObjectModel\TestCategoryItems.cs (6)
20private readonly string _category = string.Empty; 29category ??= string.Empty; 49ret = ret.Replace("&", string.Empty); 50ret = ret.Replace("|", string.Empty); 51ret = ret.Replace("!", string.Empty); 52ret = ret.Replace(",", string.Empty);
ObjectModel\TestElement.cs (4)
43_owner = string.Empty; 45_storage = string.Empty; 244h.SaveSimpleField(element, "@storage", _storage, string.Empty); 246h.SaveSimpleField(element, "Owners/Owner/@name", _owner, string.Empty);
ObjectModel\TestLink.cs (3)
40public string Name { get; } = string.Empty; 45public string Storage { get; } = string.Empty; 94h.SaveSimpleField(element, "@storage", Storage, string.Empty);
ObjectModel\TestListCategory.cs (1)
22private readonly string _name = string.Empty;
ObjectModel\TestMethod.cs (2)
83helper.SaveSimpleField(element, "@className", ClassName, string.Empty); 84helper.SaveSimpleField(element, "@name", Name, string.Empty);
ObjectModel\TestResult.cs (11)
305get { return _errorInfo?.Message ?? string.Empty; } 319get { return _errorInfo?.StackTrace ?? string.Empty; } 355get { return _stdOut ?? string.Empty; } 364get { return _stdErr ?? string.Empty; } 373get { return _debugTrace ?? string.Empty; } 503helper.SaveSimpleField(element, "@testName", _resultName, string.Empty); 504helper.SaveSimpleField(element, "@computerName", ComputerName, string.Empty); 517helper.SaveSimpleField(element, "Output/StdOut", _stdOut, string.Empty); 518helper.SaveSimpleField(element, "Output/StdErr", _stdErr, string.Empty); 519helper.SaveSimpleField(element, "Output/DebugTrace", _debugTrace, string.Empty); 531helper.SaveSimpleField(element, "@resultType", ResultType, string.Empty);
ObjectModel\TestRun.cs (1)
74_runUser = string.Empty;
ObjectModel\TestRunConfiguration.cs (3)
43_runDeploymentRoot = string.Empty; 146string.Empty); 152helper.SaveSimpleField(element, "Deployment/@runDeploymentRoot", _runDeploymentRoot, string.Empty);
ObjectModel\TestRunSummary.cs (1)
51private readonly string _stdOut = string.Empty;
ObjectModel\UnitTestElement.cs (2)
84h.SaveSimpleField(element, "TestMethod/@codeBase", _codeBase, string.Empty); 85h.SaveSimpleField(element, "TestMethod/@adapterTypeName", _adapter, string.Empty);
Utility\Converter.cs (1)
583return owner ?? string.Empty;
Utility\TrxFileHelper.cs (1)
397return !_checkMatchingDirectory || !Path.HasExtension(path) || !Directory.Exists(Path.ChangeExtension(path, string.Empty));
XML\XmlPersistence.cs (1)
105_prefix = string.Empty;
Microsoft.VisualStudio.TestPlatform.ObjectModel (72)
Client\FilterOptions.cs (2)
36FilterRegEx ?? string.Empty, 37FilterRegExReplacement ?? string.Empty));
Client\TestRunCriteria.cs (3)
58testSettings: string.Empty) 340string.Empty) 709: this(frequencyOfRunStatsChangeEvent, keepAlive, string.Empty)
DataCollector\DataCollectionLogger.cs (1)
40LogError(context, string.Empty, exception);
DataCollector\DataCollectionRunSettings.cs (3)
17private readonly string _dataCollectionRootName = string.Empty; 19private readonly string _dataCollectionsName = string.Empty; 21private readonly string _dataCollectorName = string.Empty;
DataCollector\DataCollectionSink.cs (1)
33SendFileAsync(context, path, string.Empty, deleteFile);
DataCollector\Events\TestCaseEvents.cs (1)
50TestCaseName = testCaseName ?? string.Empty;
DataCollector\InProcDataCollector\TestSessionStartArgs.cs (2)
22Configuration = string.Empty; 33Configuration = string.Empty;
DataCollector\TransferInformation\BaseTransferInformation.cs (2)
23Description = string.Empty; 47_description = value ?? string.Empty;
Logger\LoggerRunSettings.cs (3)
19private readonly string _loggerRunSettingsName = string.Empty; 20private readonly string _loggersSettingName = string.Empty; 21private readonly string _loggerSettingName = string.Empty;
Navigation\PortablePdbReader.cs (1)
169var fileName = string.Empty;
Nuget.Frameworks\DefaultFrameworkMappings.cs (3)
101new FrameworkSpecificMapping(FrameworkConstants.FrameworkIdentifiers.Net, "Full", string.Empty), 240new FrameworkSpecificMapping(FrameworkConstants.FrameworkIdentifiers.Net, "Client", string.Empty), 241new FrameworkSpecificMapping(FrameworkConstants.FrameworkIdentifiers.Net, "Full", string.Empty),
Nuget.Frameworks\FrameworkNameHelpers.cs (1)
19return String.Format(CultureInfo.InvariantCulture, "{0}{1}{2}{3}", identifierShortName, versionString, String.IsNullOrEmpty(profileShortName) ? string.Empty : "-", profileShortName);
Nuget.Frameworks\FrameworkNameProvider.cs (1)
205return string.Empty;
Nuget.Frameworks\NuGetFramework.cs (8)
35: this(framework, version, string.Empty, FrameworkConstants.EmptyVersion) 45: this(frameworkIdentifier, frameworkVersion, profile: frameworkProfile ?? string.Empty, platform: string.Empty, platformVersion: FrameworkConstants.EmptyVersion) 53: this(frameworkIdentifier, frameworkVersion, profile: string.Empty, platform: platform, platformVersion: platformVersion) 69Platform = IsNet5Era ? platform : string.Empty; 168? string.Empty 205var shortFramework = string.Empty; 274var shortProfile = string.Empty;
Nuget.Frameworks\NuGetFrameworkFactory.cs (7)
92if (!mappings.TryGetProfile(targetFrameworkIdentifier, targetFrameworkProfile ?? string.Empty, out profile)) 129result = new NuGetFramework(targetFrameworkIdentifier, targetFrameworkVersion, targetPlatformIdentifier ?? string.Empty, platformVersion); 164result = new NuGetFramework(framework, version, string.Empty, FrameworkConstants.EmptyVersion); 317result = new NuGetFramework(framework, version, platform ?? string.Empty, platformVersion ?? FrameworkConstants.EmptyVersion); 326result = new NuGetFramework(framework, version, string.Empty, FrameworkConstants.EmptyVersion); 333profile = profileShort ?? string.Empty; 413var profile = string.Empty;
TestCase.cs (12)
347private static readonly TestProperty ManagedTypeProperty = TestProperty.Register("TestCase.ManagedType", "ManagedType", string.Empty, string.Empty, typeof(string), o => !StringUtils.IsNullOrWhiteSpace(o as string), TestPropertyAttributes.Hidden, typeof(TestCase)); 348private static readonly TestProperty ManagedMethodProperty = TestProperty.Register("TestCase.ManagedMethod", "ManagedMethod", string.Empty, string.Empty, typeof(string), o => !StringUtils.IsNullOrWhiteSpace(o as string), TestPropertyAttributes.Hidden, typeof(TestCase)); 387public static readonly TestProperty Id = TestProperty.Register("TestCase.Id", IdLabel, string.Empty, string.Empty, typeof(Guid), ValidateGuid, TestPropertyAttributes.Hidden, typeof(TestCase)); 388public static readonly TestProperty FullyQualifiedName = TestProperty.Register("TestCase.FullyQualifiedName", FullyQualifiedNameLabel, string.Empty, string.Empty, typeof(string), ValidateName, TestPropertyAttributes.Hidden, typeof(TestCase)); 389public static readonly TestProperty DisplayName = TestProperty.Register("TestCase.DisplayName", NameLabel, string.Empty, string.Empty, typeof(string), ValidateDisplay, TestPropertyAttributes.None, typeof(TestCase)); 390public static readonly TestProperty ExecutorUri = TestProperty.Register("TestCase.ExecutorUri", ExecutorUriLabel, string.Empty, string.Empty, typeof(Uri), ValidateExecutorUri, TestPropertyAttributes.Hidden, typeof(TestCase));
TestProperty\TestProperty.cs (4)
294return Register(id, label, string.Empty, string.Empty, valueType, null, TestPropertyAttributes.None, owner); 304return Register(id, label, string.Empty, string.Empty, valueType, null, attributes, owner);
TestResult.cs (2)
291public static readonly TestProperty Outcome = TestProperty.Register("TestResult.Outcome", "Outcome", string.Empty, string.Empty, typeof(TestOutcome), ValidateOutcome, TestPropertyAttributes.None, typeof(TestResult));
Utilities\XmlRunSettingsUtilities.cs (15)
71var uri = dataCollectorNavigator?.GetAttribute("uri", string.Empty); 101var friendlyName = dataCollectorNavigator?.GetAttribute("friendlyName", string.Empty); 181var xmlDeclaration = doc.CreateNode(XmlNodeType.XmlDeclaration, string.Empty, string.Empty); 398if (!runSettingsNavigator.MoveToChild("RunSettings", string.Empty)) 403if (!runSettingsNavigator.MoveToChild("DataCollectionRunSettings", string.Empty)) 405runSettingsNavigator.AppendChildElement(string.Empty, "DataCollectionRunSettings", string.Empty, string.Empty); 406runSettingsNavigator.MoveToChild("DataCollectionRunSettings", string.Empty); 409if (!runSettingsNavigator.MoveToChild("DataCollectors", string.Empty)) 411runSettingsNavigator.AppendChildElement(string.Empty, "DataCollectors", string.Empty, string.Empty); 412runSettingsNavigator.MoveToChild("DataCollectors", string.Empty);
Microsoft.Web.Xdt.Extensions (1)
src\aspnetcore\src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
24if (argument is null || argument == string.Empty)
Microsoft.Web.XmlTransform (17)
XmlAttributePreservationDict.cs (3)
55leadingSpaces.Add(String.Empty, whitespaceReader.PrecedingWhitespace); 109if (leadingSpaces.ContainsKey(String.Empty)) { 110writer.WriteAttributeTrailingWhitespace(leadingSpaces[String.Empty]);
XmlElementContext.cs (3)
131string parentPath = parentContext == null ? String.Empty : parentContext.XPath; 145string parentPath = parentContext == null ? String.Empty : parentContext.XPath; 266string prefix = String.Empty;
XmlFormatter.cs (1)
27private string currentIndent = String.Empty;
XmlLocator.cs (8)
70return AppendStep(basePath, XPathAxis.Child, stepNodeTest, String.Empty); 74return AppendStep(basePath, stepAxis, stepNodeTest, String.Empty); 90return String.Empty; 149string resultPath = String.Empty; 176string resultPath = String.Empty; 209return String.Empty; 232return String.Empty; 246return String.Empty;
XmlTransformation.cs (1)
65this.transformFile = String.Empty;
XmlTransforms.cs (1)
441string path = string.Empty;
Microsoft.Win32.Registry (4)
Microsoft\Win32\Registry.cs (1)
58string.Empty :
Microsoft\Win32\RegistryKey.cs (3)
350int ret = Interop.Advapi32.RegDeleteTree(key._hkey, string.Empty); 359ret = Interop.Advapi32.RegDeleteKeyEx(key._hkey, string.Empty, (int)_regView, 0); 1165return string.Empty;
Mono.Cecil (39)
Mono.Cecil.Cil\VariableReference.cs (1)
39 return string.Empty;
Mono.Cecil.Metadata\Buffers.cs (1)
368 var previous = string.Empty;
Mono.Cecil.Metadata\StringHeap.cs (2)
29 return string.Empty; 36 return string.Empty;
Mono.Cecil.Metadata\UserStringHeap.cs (1)
26 return string.Empty;
Mono.Cecil\ArrayType.cs (1)
47 ? string.Empty
Mono.Cecil\AssemblyDefinition.cs (1)
33 get { return name != null ? name.FullName : string.Empty; }
Mono.Cecil\AssemblyReader.cs (7)
2380 var context = new MethodDefinition (string.Empty, MethodAttributes.Static, type_system.Void); 2381 context.DeclaringType = new TypeDefinition (string.Empty, string.Empty, TypeAttributes.Public); 2458 return string.Empty; 3070 return string.Empty; 3805 return string.Empty; 3808 return string.Empty;
Mono.Cecil\AssemblyWriter.cs (2)
2647 if (parts [i] == String.Empty) 3305 WriteUTF8String (marshaler.guid != Guid.Empty ? marshaler.guid.ToString () : string.Empty);
Mono.Cecil\CallSite.cs (2)
55 get { return string.Empty; } 60 get { return string.Empty; }
Mono.Cecil\FunctionPointerType.cs (1)
60 get { return string.Empty; }
Mono.Cecil\GenericParameter.cs (5)
116 get { return string.Empty; } 176 : this (string.Empty, owner) 181 : base (string.Empty, name) 195 : base (string.Empty, string.Empty)
Mono.Cecil\Import.cs (2)
188 string.Empty, 199 reference.Namespace = type.Namespace ?? string.Empty;
Mono.Cecil\MemberReference.cs (1)
79 this.name = name ?? string.Empty;
Mono.Cecil\ModuleDefinition.cs (5)
668 return HasTypeReference (string.Empty, fullName); 683 return TryGetTypeReference (string.Empty, fullName, out type); 749 return ((TypeDefinitionCollection) this.Types).GetType (@namespace ?? string.Empty, name); 1109 module.Types.Add (new TypeDefinition (string.Empty, "<Module>", TypeAttributes.NotPublic)); 1361 return string.Empty;
Mono.Cecil\ParameterDefinition.cs (2)
124 : this (string.Empty, ParameterAttributes.None, parameterType) 130 : this (string.Empty, ParameterAttributes.None, parameterType)
Mono.Cecil\ParameterReference.cs (1)
46 this.name = name ?? string.Empty;
Mono.Cecil\TypeParser.cs (3)
221 return string.Empty; 313 @namespace = string.Empty; 336 type = new TypeReference (string.Empty, nested_names [i], module, null) {
Mono.Cecil\TypeReference.cs (1)
242 this.@namespace = @namespace ?? string.Empty;
Mono.Cecil.Pdb (1)
Microsoft.Cci.Pdb\PdbFile.cs (1)
384pdbInfo.SourceServerData = string.Empty;
Mono.Cecil.Rocks (1)
Mono.Cecil.Rocks\DocCommentId.cs (1)
258 var name = string.Empty;
MSBuild (46)
CommandLine\CommandLineParser.cs (1)
268switchParameters = string.Empty;
CommandLine\CommandLineSwitches.cs (1)
542if (string.Empty.Equals(switchParameters) && emptyParametersAllowed)
CommandLine\CommandLineSwitchException.cs (1)
139Throw(messageResourceName, commandLineArg, String.Empty);
InitializationException.cs (1)
155errorMessage = MessageFormatter.Format(errorMessage, e?.Message ?? string.Empty);
JsonOutputFormatter.cs (2)
136return string.Empty; 155return string.Empty;
OutOfProcTaskAppDomainWrapperBase.cs (3)
144[taskName, taskLocation, String.Empty]); 156[taskName, taskLocation, String.Empty]); 394[taskName, taskLocation, String.Empty]);
OutOfProcTaskHostNode.cs (1)
1901LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentVariable", variable.Key, newValue, environmentValue ?? String.Empty);
parent\Shared\LogMessagePacketBase.cs (1)
1019string responseFilePath = String.Empty;
parent\Shared\StringExtensions.cs (1)
24newValue = string.Empty;
parent\Shared\TaskHostBuildRequest.cs (1)
90result[i]![(string)entry.Key] = entry.Value?.ToString() ?? string.Empty;
parent\Shared\TaskParameter.cs (6)
246return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 632_customEscapedMetadata[(string)entry.Key] = (string)entry.Value ?? string.Empty; 652_customEscapedMetadata[(string)entry.Key] = EscapingUtilities.Escape((string)entry.Value) ?? string.Empty; 704return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 795_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 936return string.Empty;
parent\Shared\TaskParameterValueStringConverter.cs (3)
17return string.Empty; 22return absolutePath.Value ?? string.Empty; 35return Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty;
parent\Shared\TypeLoader.cs (3)
315? propertyInfo.DeclaringType?.Assembly.Location ?? string.Empty 316: string.Empty; 929targetFramework = targetFrameworkAttr.ConstructorArguments[0].Value as string ?? string.Empty;
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
XMake.cs (19)
585serverEnableReason = string.Empty; 986string getResultOutputFile = string.Empty; 1367$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}"); 1375$"{e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}"); 2132EnvironmentUtilities.ProcessPath ?? string.Empty), 2718getResultOutputFile = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetResultOutputFile].FirstOrDefault() ?? string.Empty; 3003KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntent = terminalLoggerArg ?? string.Empty; 3062return terminalLoggerParameters?.Length > 0 ? MSBuildApp.AggregateParameters(string.Empty, terminalLoggerParameters) : string.Empty; 3188? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.OutputResultsCache].FirstOrDefault(p => p != null) ?? string.Empty 3982string result = anyPrefixingParameter ?? string.Empty; 4236string fileParameters = string.Empty; 4480loggerClassName = string.Empty; 4540InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4544InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4548InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4552InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4556InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4692string toolsVersionList = string.Empty;
NuGet.Build.Tasks (3)
Common\MSBuildLogger.cs (2)
161logWithDetails(string.Empty, 185logWithDetails(string.Empty,
GetReferenceNearestTargetFrameworkTask.cs (1)
248string.Empty :
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (3)
544projectTargetFrameworks[string.Empty] = project; 758var targetAlias = string.IsNullOrEmpty(projectInnerNode.Key) ? string.Empty : projectInnerNode.Key; 944PackagesPath = string.Empty,
RestoreProjectAdapter.cs (1)
53var targetFramework = OuterBuild.GetProperty("TargetFramework") ?? string.Empty;
NuGet.Build.Tasks.Pack (6)
GetProjectReferencesFromAssetsFileTask.cs (1)
36var assetsFilePath = string.Empty;
PackTaskLogic.cs (3)
705? new string[] { string.Empty }.ToList() 829sourcePath = Path.Combine(sourceProjectFile.Replace(Path.GetFileName(sourceProjectFile), string.Empty), identity); 1161var value = string.Empty;
parent\NuGet.Build.Tasks\Common\MSBuildLogger.cs (2)
161logWithDetails(string.Empty, 185logWithDetails(string.Empty,
NuGet.CommandLine.XPlat (25)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (2)
150var verbosityValue = parseResult.GetValue(verbosity) ?? string.Empty; 153var pathValue = parseResult.GetValue(path) ?? string.Empty;
Commands\PackageSearch\Table.cs (1)
104return Regex.Replace(value ?? string.Empty, @"\r\n|\n\r|\n|\r|\t", " ");
ListPackage\ListPackageConsoleRenderer.cs (1)
37_problems.Add(new ReportProblem(problemType, string.Empty, text));
ListPackage\ListPackageJsonRenderer.cs (2)
61_problems.Add(new ReportProblem(problemType, string.Empty, text)); 352_ => string.Empty,
Utility\CommandOutputLogger.cs (1)
81var caption = string.Empty;
Utility\FormattedCell.cs (2)
16public FormattedCell() : this(string.Empty) { } 20Value = value ?? string.Empty;
Utility\ProjectPackagesPrintUtility.cs (12)
81requestedVersion: printingTransitive ? string.Empty : p.OriginalRequestedVersion, 177? new List<FormattedCell> { new FormattedCell(string.Empty, foregroundColor: null) } 185? new List<FormattedCell> { new FormattedCell(string.Empty, foregroundColor: null) } 186: vulnerabilityMetadata.Select(v => new FormattedCell(v.AdvisoryUrl?.ToString() ?? string.Empty, foregroundColor: null)); 199return new FormattedCell(string.Empty, foregroundColor: null); 209return string.Empty; 217return string.Empty; 223? string.Empty 231return string.Empty; 253return string.Empty; 280result.Add(string.Empty); 285result.Add(string.Empty);
Utility\TableParser.cs (3)
59formattedDataCell.Value = (colIndex == 0 ? "> " : "") + formattedDataCell.Value?.ToString(CultureInfo.CurrentCulture) ?? string.Empty; 84formattedDataCell.Value = (colIndex == 0 ? "> " : "") + formattedDataCell.Value?.ToString(CultureInfo.CurrentCulture) ?? string.Empty; 132dataCell.Value = " " + dataCell.Value?.PadRight(maxColumnsWidth[colIndex]) ?? string.Empty;
Utility\XPlatUtility.cs (1)
152: string.Empty;
NuGet.Commands (70)
ClientCertificatesCommand\ListClientCertRunner.cs (2)
36getLogger().LogInformation(string.Empty); 38var defaultIndentation = string.Empty.PadRight(PaddingWidth);
CommandRunners\PackCommandRunner.cs (8)
459treatWarningsAsErrors: _packArgs.GetPropertyValue("TreatWarningsAsErrors") ?? string.Empty, 460warningsAsErrors: _packArgs.GetPropertyValue("WarningsAsErrors") ?? string.Empty, 461noWarn: _packArgs.GetPropertyValue("NoWarn") ?? string.Empty, 462warningsNotAsErrors: _packArgs.GetPropertyValue("WarningsNotAsErrors") ?? string.Empty); 570WriteLine(string.Empty); 625WriteLine(string.Empty); 654WriteLine(string.Empty); 661WriteLine(string.Empty);
CommandsEventSource.cs (26)
40WriteEvent(1, filePath ?? string.Empty); 46WriteEvent(2, filePath ?? string.Empty); 54WriteEvent(3, filePath ?? string.Empty); 60WriteEvent(4, filePath ?? string.Empty); 68WriteEvent(5, filePath ?? string.Empty); 74WriteEvent(6, filePath ?? string.Empty); 82WriteEvent(7, filePath ?? string.Empty); 88WriteEvent(8, filePath ?? string.Empty); 96WriteEvent(9, filePath ?? string.Empty); 102WriteEvent(10, filePath ?? string.Empty); 110WriteEvent(11, filePath ?? string.Empty); 116WriteEvent(12, filePath ?? string.Empty); 124WriteEvent(13, filePath ?? string.Empty); 130WriteEvent(14, filePath ?? string.Empty); 138WriteEvent(15, filePath ?? string.Empty); 144WriteEvent(16, filePath ?? string.Empty); 152WriteEvent(17, filePath ?? string.Empty); 158WriteEvent(18, filePath ?? string.Empty); 166WriteEvent(19, filePath ?? string.Empty, frameworkRuntimeDefinition ?? string.Empty); 172WriteEvent(20, filePath ?? string.Empty, frameworkRuntimeDefinition ?? string.Empty, success, resolvedPackageCount, unresolvedPackageCount); 180WriteEvent(21, filePath ?? string.Empty, frameworkRuntimeDefinition ?? string.Empty); 186WriteEvent(22, filePath ?? string.Empty, frameworkRuntimeDefinition ?? string.Empty, resolvedPackagesCount, restartCount, totalQueuedItemCount);
MSBuildProjectFactory.cs (2)
114builder.PopulateFiles(string.Empty, Files); 270var relativePath = Path.GetDirectoryName(sourcePath).Replace(projectDirectoryWithSeparatorChar, string.Empty, StringComparison.Ordinal);
RestoreCommand\CompatibilityIssue.cs (8)
65string.Empty, 77assemblyName: string.Empty, 93string.Empty, 108string.Empty, 180return FormatMessage(message, string.Empty, string.Empty); 191return FormatMessage(message, string.Empty, string.Empty);
RestoreCommand\DependencyGraphResolver.cs (2)
160downloadDependencyResolutionResults = await ProjectRestoreCommand.DownloadDependenciesAsync(_request.Project, context, _telemetryActivity, telemetryPrefix: string.Empty, token); 250downloadDependencyResolutionResults = await ProjectRestoreCommand.DownloadDependenciesAsync(_request.Project, context, _telemetryActivity, telemetryPrefix: string.Empty, token);
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (1)
95var message = string.Empty;
RestoreCommand\Diagnostics\UnresolvedMessages.cs (2)
87var message = string.Empty; 139var firstLine = string.Empty;
RestoreCommand\FrameworkRuntimeDefinition.cs (2)
22TargetAlias = targetAlias ?? string.Empty; 24RuntimeIdentifier = runtimeIdentifier ?? string.Empty;
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
120.Where(e => !PackageSpecificWarningProperties.Contains(message.Code, message.LibraryId, legacy ? string.Empty : GetTargetGraphAlias(e)))
RestoreCommand\MSBuildRestoreItemGroup.cs (1)
50return string.Empty;
RestoreCommand\RestoreCommand.cs (2)
1008TelemetryEvent packageData = new TelemetryEvent(eventName: string.Empty); 2155telemetryPrefix: string.Empty);
RestoreCommand\RestoreSummary.cs (4)
154logger.LogInformationSummary(string.Empty); 164logger.LogInformationSummary(string.Empty); 174logger.LogInformationSummary(string.Empty); 211logger.LogInformation(string.Empty);
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
299var linkPath = string.Join(string.Empty + Path.DirectorySeparatorChar,
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
379PackagesPath = string.Empty, 530var targetAlias = string.IsNullOrEmpty(frameworkString) ? string.Empty : frameworkString; 811var tfm = item.GetProperty("TargetFramework") ?? string.Empty; 983TargetAlias = needsAlias ? tfmProperty : string.Empty
RestoreCommand\Utility\PackageSpecFactory.cs (2)
228var targetAlias = string.IsNullOrEmpty(projectInnerNode.Key) ? string.Empty : projectInnerNode.Key; 701string? versionString = projectItemInstance.GetMetadata("Version") ?? string.Empty;
TrustedSignersCommand\TrustedSignersCommandRunner.cs (2)
223var defaultIndentation = string.Empty.PadRight(6); 241var extraIndentation = string.Empty.PadRight(2);
NuGet.Common (9)
ClientVersionUtility.cs (1)
24string version = string.Empty;
CommonEventSource.cs (1)
34WriteEvent(2, migrationFileFullPath ?? string.Empty, migrationPerformed);
ConcurrencyUtilities.cs (2)
67var lockPath = string.Empty; 160var lockPath = string.Empty;
Errors\RestoreLogMessage.cs (2)
56: this(logLevel, errorCode, errorString, string.Empty, logToInnerLogger: false) 61: this(logLevel, GetDefaultLogCode(logLevel), errorString, string.Empty, logToInnerLogger: false)
Migrations\MigrationRunner.cs (1)
54File.WriteAllText(expectedMigrationFilename, string.Empty);
PathUtil\PathUtility.cs (2)
253return string.Empty; 378var folder = path.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault() ?? string.Empty;
NuGet.Configuration (13)
ConfigurationEventSource.cs (3)
28WriteEvent(1, configFilePath ?? string.Empty, isMachineWide, isReadOnly); 34WriteEvent(2, configFilePath ?? string.Empty, isMachineWide, isReadOnly); 40WriteEvent(3, fullPath ?? string.Empty, isMachineWide, isReadOnly);
PackageSource\PackageSourceCredential.cs (1)
201: str!.Split(',').Select(x => x.Trim()).Where(x => x != string.Empty);
Settings\Items\AddItem.cs (3)
21set => AddOrUpdateAttribute(ConfigurationConstants.ValueAttribute, value ?? string.Empty); 36{ ConfigurationConstants.KeyAttribute, new HashSet<string>(new [] {string.Empty }) } 58AddAttribute(ConfigurationConstants.ValueAttribute, value ?? string.Empty);
Settings\Items\MinPublishAgeExceptionItem.cs (1)
17private string _pattern = string.Empty;
Settings\Items\StoreClientCertItem.cs (1)
29return type.ToString().Replace("FindBy", string.Empty);
Settings\SettingElement.cs (1)
177value = value ?? string.Empty;
Settings\Settings.cs (2)
582var rootDirectory = root ?? string.Empty; 728var fullPath = Path.Combine(root ?? string.Empty, settingsPath);
Utility\SettingsUtility.cs (1)
208var elementValue = string.Empty;
NuGet.Credentials (4)
PluginCredentialProvider.cs (2)
182+ (request.IsRetry ? " -isRetry" : string.Empty) 183+ (request.NonInteractive ? " -nonInteractive" : string.Empty);
PluginException.cs (2)
189response.Password == null ? string.Empty : RedactedPassword, 190response.AuthTypes == null ? string.Empty : string.Join(", ", response.AuthTypes),
NuGet.DependencyResolver.Core (4)
LibraryRangeCacheKey.cs (1)
20Alias = alias ?? string.Empty; // alias may be passed as both null or empty and we need to treat them equivalently.
LockFileCacheKey.cs (1)
31TargetAlias = targetAlias ?? string.Empty; // alias may be passed as both null or empty and we need to treat them equivalently.
Remote\RemoteDependencyWalker.cs (2)
445nearRelease = nearVersion.Float.OriginalReleasePrefix ?? string.Empty; 462farRelease = farVersion.Float.OriginalReleasePrefix ?? string.Empty;
NuGet.Frameworks (21)
DefaultFrameworkMappings.cs (3)
100new FrameworkSpecificMapping(FrameworkConstants.FrameworkIdentifiers.Net, "Full", string.Empty), 239new FrameworkSpecificMapping(FrameworkConstants.FrameworkIdentifiers.Net, "Client", string.Empty), 240new FrameworkSpecificMapping(FrameworkConstants.FrameworkIdentifiers.Net, "Full", string.Empty),
FrameworkNameHelpers.cs (1)
19return String.Format(CultureInfo.InvariantCulture, "{0}{1}{2}{3}", identifierShortName, versionString, String.IsNullOrEmpty(profileShortName) ? string.Empty : "-", profileShortName);
FrameworkNameProvider.cs (1)
212return string.Empty;
FrameworkRuntimePair.cs (1)
24RuntimeIdentifier = runtimeIdentifier ?? string.Empty;
NuGetFramework.cs (8)
35: this(framework, version, string.Empty, FrameworkConstants.EmptyVersion) 45: this(frameworkIdentifier, frameworkVersion, profile: frameworkProfile ?? string.Empty, platform: string.Empty, platformVersion: FrameworkConstants.EmptyVersion) 53: this(frameworkIdentifier, frameworkVersion, profile: string.Empty, platform: platform, platformVersion: platformVersion) 69Platform = IsNet5Era ? platform : string.Empty; 168? string.Empty 205var shortFramework = string.Empty; 274var shortProfile = string.Empty;
NuGetFrameworkFactory.cs (7)
89if (!mappings.TryGetProfile(targetFrameworkIdentifier, targetFrameworkProfile ?? string.Empty, out profile)) 126result = new NuGetFramework(targetFrameworkIdentifier, targetFrameworkVersion, targetPlatformIdentifier ?? string.Empty, platformVersion); 161result = new NuGetFramework(framework, version, string.Empty, FrameworkConstants.EmptyVersion); 314result = new NuGetFramework(framework, version, platform ?? string.Empty, platformVersion ?? FrameworkConstants.EmptyVersion); 323result = new NuGetFramework(framework, version, string.Empty, FrameworkConstants.EmptyVersion); 330profile = profileShort ?? string.Empty; 410var profile = string.Empty;
NuGet.LibraryModel (1)
LibraryRange.cs (1)
60var contraintString = string.Empty;
NuGet.PackageManagement (17)
Audit\AuditCheckResult.cs (1)
89TelemetryEvent packageData = new TelemetryEvent(eventName: string.Empty);
NuGetPackageManager.cs (5)
1804var alreadyInstalledMessage = string.Format(CultureInfo.CurrentCulture, Strings.PackageAlreadyExistsInProject, packageIdentity, projectName ?? string.Empty); 3080.Select(t => t.Graph.TargetAlias ?? string.Empty) 3194.Select(e => e.TargetAlias ?? string.Empty) 3200.Select(e => e.TargetAlias ?? string.Empty) 3571var readmeFilePath = string.Empty;
PackageRestoreConsent.cs (1)
60settingsValue = _configurationDefaults.DefaultPackageRestoreConsent ?? string.Empty;
Projects\FolderNuGetProject.cs (5)
467return string.Empty; 497return string.Empty; 550return string.Empty; 635if (!FileSystemUtility.GetFiles(Root, string.Empty, "*.*").Any() 636&& !FileSystemUtility.GetDirectories(Root, string.Empty).Any())
Projects\MSBuildNuGetProject.cs (1)
291var packageEventArgs = new PackageEventArgs(FolderNuGetProject, packageIdentity, installPath: string.Empty);
Resolution\ResolverGather.cs (1)
590var currentSource = string.Empty;
Utility\FileSystemUtility.cs (1)
220sourceControlManager.PendDeleteFiles(new List<string> { fullPath }, string.Empty, nuGetProjectContext);
Utility\JsonConfigUtility.cs (1)
236return string.Empty;
Utility\UriHelper.cs (1)
164localSource = string.Empty;
NuGet.Packaging (38)
ContentModel\ManagedCodeConventions.cs (7)
158return string.Empty; 186return string.Empty; 196return string.Empty; 204return string.Empty; 279return string.Empty; 296return string.Empty; 315return matchOnly ? string.Empty : s.ToString();
Core\NuspecCoreReaderBase.cs (1)
151return metadataValue ?? string.Empty;
Core\RepositoryMetadata.cs (4)
23public string Type { get; set; } = string.Empty; 25public string Url { get; set; } = string.Empty; 27public string Branch { get; set; } = string.Empty; 29public string Commit { get; set; } = string.Empty;
Licenses\NuGetLicense.cs (1)
128var plus = Plus ? "+" : string.Empty;
NuspecReader.cs (4)
418repository.Type = GetAttributeValue(node, "type") ?? string.Empty; 419repository.Url = GetAttributeValue(node, "url") ?? string.Empty; 420repository.Branch = GetAttributeValue(node, "branch") ?? string.Empty; 421repository.Commit = GetAttributeValue(node, "commit") ?? string.Empty;
PackageCreation\Authoring\ManifestMetadata.cs (5)
332if (_licenseUrl == String.Empty) 337if (_iconUrl == String.Empty) 342if (_projectUrl == String.Empty) 347if (Icon == string.Empty) 352if (Readme == string.Empty)
PackageCreation\Authoring\ManifestReader.cs (2)
447repository.Branch = repositoryBranch?.Value ?? string.Empty; 448repository.Commit = repositoryCommit?.Value ?? string.Empty;
PackageCreation\Authoring\PackageBuilder.cs (2)
231public string Id { get; set; } = string.Empty; 1062return Path.Combine(targetPath ?? string.Empty, packagePath);
PackageExtraction\PackagePathHelper.cs (2)
76foreach (var dir in GetDirectories(root, string.Empty)) 85foreach (var path in GetFiles(root, string.Empty, filter, recursive: false))
PackageFolderReader.cs (1)
110return GetFiles(folder: string.Empty);
Rules\PathTooLongRule.cs (1)
21var versionFolderPathResolver = new VersionFolderPathResolver(string.Empty);
Rules\UpholdBuildConventionRule.cs (4)
74string expectedFileName = tfm.Key == string.Empty 79string packageFolder = tfm.Key == string.Empty ? buildFolder.Key : buildFolder.Key + tfm.Key + '/'; 102return string.Empty; 108return framework.IsUnsupported ? string.Empty : folderName;
Signing\Content\KeyPairFileReader.cs (1)
67if (line != string.Empty)
Signing\SignatureException.cs (1)
42: this(string.Empty)
Signing\Timestamp\Rfc3161TimestampUtils.cs (1)
97return string.Empty;
Signing\Timestamp\TimestampException.cs (1)
15: base(string.Empty)
NuGet.ProjectModel (12)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (3)
94private static readonly byte[] EmptyStringPropertyName = Encoding.UTF8.GetBytes(string.Empty); 1323string targetAlias = string.Empty; 1430string targetAlias = string.Empty;
LockFile\AssetsLogMessage.cs (1)
129: this(logLevel, errorCode, errorString, string.Empty)
LockFile\BuildAction.cs (1)
54return Value ?? string.Empty;
LockFile\Utf8JsonStreamLockFileConverter.cs (1)
168packageSpecPath: string.Empty);
ProjectLockFile\PackagesLockFileUtilities.cs (3)
467return (false, string.Empty); 540return (false, string.Empty); 608return (false, string.Empty);
ProjectRestoreMetadataFrameworkInfo.cs (1)
17public string TargetAlias { get; set; } = string.Empty;
TargetFrameworkInformation.cs (2)
29public string TargetAlias { get; init; } = string.Empty; 123TargetAlias = string.Empty;
NuGet.Protocol (23)
Converters\FingerprintsConverter.cs (1)
25dict[fingerprint.Key] = fingerprint.Value?.ToString() ?? string.Empty;
Converters\FingerprintsStjConverter.cs (1)
28dict[key] = reader.GetString() ?? string.Empty;
Converters\MetadataFieldConverter.cs (1)
21return string.Empty;
Converters\MetadataFieldStjConverter.cs (2)
27return string.Empty; 53if (first is null) { return string.Empty; }
Converters\MetadataStringOrArrayConverter.cs (1)
19return string.Empty;
Events\ProtocolDiagnosticNupkgCopiedEvent.cs (1)
19: this(source, fileSize, packageId: string.Empty)
HttpSource\HttpRetryHandler.cs (1)
46return SendAsync(request, source: string.Empty, log, cancellationToken);
LegacyFeed\DownloadResourceV2Feed.cs (1)
23: this(feedParser, source: string.Empty)
LegacyFeed\V2FeedQueryBuilder.cs (3)
85filter != null ? filter + QueryDelimiter : string.Empty, 86orderBy != null ? orderBy + QueryDelimiter : string.Empty, 149builder.AppendFormat(CultureInfo.InvariantCulture, GetPackagesFormat, useParenthesis ? EndpointParenthesis : string.Empty);
Model\PackageSearchMetadataBuilder.cs (2)
149Summary = string.Empty, 150Authors = string.Empty
NullSourceCacheContext.cs (1)
25return string.Empty;
Plugins\PluginPackageReader.cs (1)
1111File.WriteAllText(filePath, string.Empty);
ResourceProvider.cs (1)
20: this(resourceType, string.Empty, null)
Resources\PackageUpdateResource.cs (2)
435Uri serviceEndpointUrl = GetServiceEndpointUrl(source, string.Empty, noServiceEndpoint); 734var sourceUri = GetServiceEndpointUrl(_source, string.Empty, noServiceEndpoint);
Resources\ReadmeUriTemplateResource.cs (1)
37return string.Empty;
Resources\RepositorySignatureResource.cs (1)
82Source = string.Empty;
Utility\CachingUtility.cs (1)
34return EncodingUtility.ToHex(hash, HashLength) + (addIdentifiableCharacters ? "$" + trailing : string.Empty);
Utility\MetadataReferenceCache.cs (1)
32return string.Empty;
NuGet.Resolver (2)
PackageResolver.cs (1)
231var dependencyString = $"{dependency.Id} {range?.ToNonSnapshotRange().PrettyPrint() ?? string.Empty}";
ResolverUtility.cs (1)
192range == null ? string.Empty : range.ToNonSnapshotRange().PrettyPrint()).Trim();
NuGet.Versioning (10)
FloatRange.cs (2)
64_releasePrefix = string.Empty; 231range = new FloatRange(NuGetVersionFloatBehavior.AbsoluteLatest, new NuGetVersion("0.0.0-0"), releasePrefix: string.Empty);
NuGetVersionFactory.cs (2)
93value.Replace(" ", string.Empty, StringComparison.Ordinal); 101metadata: buildMetadata ?? string.Empty,
SemanticVersion.cs (1)
210return string.Empty;
SemanticVersionFactory.cs (1)
84metadata: buildMetadata ?? string.Empty);
VersionComparer.cs (2)
223result = StringComparer.OrdinalIgnoreCase.Compare(x.Metadata ?? string.Empty, y.Metadata ?? string.Empty);
VersionRange.cs (2)
366var lastLabel = version.ReleaseLabels.LastOrDefault() ?? string.Empty; 373var fixedReleaseLabel = string.Empty;
Pipelines.AppHost (1)
AppHost.cs (1)
293var directoryPath = Path.GetDirectoryName(relativePath) ?? string.Empty;
PresentationBuildTasks (188)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
906private string _currentProject = String.Empty;
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (18)
264if (!_outputDir.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal)) 690codeFile = String.Empty; 691bamlFile = String.Empty; 725codeFile = String.Empty; 730bamlFile = String.Empty; 738codeFile = String.Empty; 1522string linkAlias = String.Empty; 1523string logicalName = String.Empty; 1827private string _languageSourceExtension = string.Empty; 1836private string _rootNamespace = String.Empty; 1849private string _uiCulture = String.Empty; 1851private string _applicationFile = String.Empty; 1853private string _hostInBrowser = String.Empty; 1868private string _defineConstants = String.Empty; 1871private string _pageMarkupCache = String.Empty; 1872private string _contentFilesCache = String.Empty; 1873private string _sourceCodeFilesCache = String.Empty; 1874private string _referencesCache = String.Empty;
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (4)
243if (!_outputPath.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal)) 673writer.WriteLine(String.Empty); 865private string _rootNamespace = String.Empty; 883private string _internalTypeHelperFile = String.Empty;
Microsoft\Build\Tasks\Windows\UidManager.cs (3)
576if (prefix != string.Empty) 1257Content = line ?? string.Empty; 1296return string.Empty;
MS\Internal\MarkupCompiler\CompilationUnit.cs (4)
77private string _assemblyName = string.Empty; 78private string _language = string.Empty; 79private string _sourcePath = string.Empty; 80private string _defaultNamespace = string.Empty;
MS\Internal\MarkupCompiler\FileUnit.cs (3)
50private static FileUnit _empty = new FileUnit(String.Empty, String.Empty, String.Empty);
MS\Internal\MarkupCompiler\MarkupCompiler.cs (33)
472if (!TargetPath.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal)) 1326string asmMissing = string.Empty; 1333asmMissing += $"{(asmMissing.Length > 0 ? ", " : string.Empty)}PresentationCore"; 1337asmMissing += $"{(asmMissing.Length > 0 ? ", " : string.Empty)}PresentationFramework"; 1420ns = string.Empty; 1600string parentFolderPrefix = string.Empty; 1923cdce.MethodName = eventHandler.Trim() + (subClassed ? HELPER : string.Empty); 2235string localTypeArgNamespace = string.Empty; 2236string localTypeArgClassName = string.Empty; 2450ctrBaseClass = GenerateConstructedTypeReference(baseClass, _typeArgsList, string.Empty); 2483string ns = string.Empty; 2484string baseClassName = string.Empty; 2638string uriPart = string.Empty; 2658? String.Empty 2662? String.Empty 3419private string _localElementFullName = string.Empty; 3498private string _subClass = string.Empty; 3507private string _targetPath = string.Empty; // Current Dir is default 3520private string _language = string.Empty; 3521private string _languageSourceExtension = string.Empty; 3532private string _assemblyName = string.Empty; 3533private string _assemblyVersion = string.Empty; 3534private string _assemblyPublicKeyToken = string.Empty; 3535private string _applicationFile = string.Empty; 3536private string _defaultNamespace = string.Empty; 3540private string _compilationUnitSourcePath = string.Empty; 3552private string _private = string.Empty; 3553private string _public = string.Empty; 3554private string _protected = string.Empty; 3555private string _internal = string.Empty; 3556private string _protectedInternal = string.Empty; 3557private string _privateClass = string.Empty; 3558private string _publicClass = string.Empty;
MS\Internal\MarkupCompiler\ParserExtension.cs (20)
51classFullName = _compiler.StartElement(ref _class, _subClass, ref _classModifier, xamlObjectNode.ElementType, string.Empty); 182string localElementFullName = string.Empty; 237string localTagFullName = string.Empty; 325localTagFullName = string.Empty; 419_class = string.Empty; 420_subClass = string.Empty; 437if (_class == string.Empty) 472if (_subClass == string.Empty) 487if (_classModifier == string.Empty) 640_class = string.Empty; 641_classModifier = string.Empty; 642_subClass = string.Empty; 841index >= 0 ? "fully qualified " : string.Empty, 846_class = string.Empty; 860_classModifier = string.Empty; 871index >= 0 ? "fully qualified " : string.Empty, 876_subClass = string.Empty; 924private string _class = string.Empty; 925private string _subClass = string.Empty; 935private string _classModifier = string.Empty;
MS\Internal\Tasks\CompilerLocalReference.cs (7)
32private static LocalReferenceFile _empty = new LocalReferenceFile(String.Empty, false, String.Empty, String.Empty); 75string cacheText = String.Empty; 202sw.WriteLine(String.Empty); 208sw.WriteLine(String.Empty); 336private string _internalTypeHelperFile = String.Empty;
MS\Internal\Tasks\CompilerState.cs (2)
204string cacheString = String.Empty; 232string fileNames = String.Empty;
MS\Internal\Tasks\CompilerWrapper.cs (1)
399string relPath = String.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\AppContextDefaultValues.cs (1)
19PopulateDefaultValuesPartial(".NETCoreApp", string.Empty, 30000);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (12)
69Assembly = ReflectionHelper.LoadAssembly(_frameworkAssembly, string.Empty) 111if (typeShortName == string.Empty) 953string.Empty, 954string.Empty); 1170typeClrNamespace = string.Empty; 1210if (serializerTypeFullName == string.Empty) 1224string.Empty, string.Empty); 1313string.Empty : serializerType.Assembly.FullName; 1315string.Empty : serializerType.FullName; 1414null, string.Empty, string.Empty);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (12)
266string serializerAssemblyName = string.Empty; 477string.Empty, 478string.Empty); 811string serializerAssemblyName = string.Empty; 898string.Empty, 899string.Empty); 974if (xamlProperty.AssemblyName != string.Empty && xamlProperty.TypeFullName != string.Empty) 1091string.Empty, 1092string.Empty); 1433string.Empty, 1434string.Empty);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (11)
175propName = string.Empty; 340typeName = string.Empty; 341args = string.Empty; 502if (resolvedTag && propIdName != string.Empty) 561string prefix = String.Empty; 746string prefix = String.Empty; 1266string.Empty, 1368string prefix = (nameIndex < 0) ? String.Empty : propertyName.Substring(0, nameIndex); 1506string prefix = (nameIndex < 0) ? String.Empty : name.Substring(0, nameIndex); 1567string.Empty, 1568string.Empty);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (5)
77_xmlLang = String.Empty; 78_xmlSpace = String.Empty; 279_xmlLang = (value ?? string.Empty); 816private String _xmlLang = String.Empty; 817private String _xmlSpace = String.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (4)
151string localElementFullName = string.Empty; 249string localTagFullName = string.Empty; 304localTagFullName = string.Empty; 384string prefix = string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (4)
166string localElementFullName = string.Empty; 286string localTagFullName = string.Empty; 341localTagFullName = string.Empty; 433string prefix = string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlNodes.cs (1)
1176string.Empty :
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParseException.cs (1)
423if (innerException.Message != String.Empty)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (2)
973assemblyName = string.Empty; 974typeFullName = string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (16)
561string ownerTypeFullName = string.Empty; 807string.Empty, 808string.Empty); 868string parentName = declaringType != null ? declaringType.Name : string.Empty; 1553string.Empty : 1842if (namespacePrefix != string.Empty) 1917if (contentProperty == string.Empty) 2207string prefix = string.Empty; 2343ThrowException(nameof(SR.ParserUndeclaredNS), String.Empty); 2976string parentName = parentType != null ? parentType.Name : string.Empty; 3048string prefix = string.Empty; 3058string valueAssemblyName = string.Empty; 3059string valueTypeFullName = string.Empty; 3229string parentName = parentType != null ? parentType.Name : string.Empty; 5125string.Empty); 6554textFlowData.TextNode.UpdateText(string.Empty);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (12)
188if (assemblyPath == string.Empty) 193if (assemblyName == string.Empty) 682if (value == string.Empty) 715if (propType.IsEnum && attribValue != string.Empty) 2243string prefix = String.Empty; 2848string xmlns = string.Empty; 2855xmlns = context.XmlnsDictionary[string.Empty]; 2858ThrowException(nameof(SR.ParserUndeclaredNS), string.Empty); 2925localTypeArgClassName = string.Empty; 2926localTypeArgNamespace = string.Empty; 2933string xmlns = context.XmlnsDictionary[string.Empty]; 2936ThrowException(nameof(SR.ParserUndeclaredNS), string.Empty);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (2)
425_nsDeclarations[decl].Prefix = String.Empty; 583_nsDeclarations[0].Prefix = string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (1)
36string resourceID = String.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
62string errorMessage = string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (6)
55private static string _localAssemblyName = string.Empty; 63_localAssemblyName = string.Empty; 70_localAssemblyName = string.Empty; 231return attrValue ?? string.Empty; 356attrValue = string.Empty; 487string friendAssemblyName = string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
651return LookupNamespace(string.Empty);
PresentationCore (98)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (1)
187private static readonly CanonicalFontFamilyReference _unresolved = new CanonicalFontFamilyReference((Uri)null, string.Empty);
MS\Internal\FontCache\FontResourceCache.cs (2)
117folderName = String.Empty; 142folderResourceMap[resourceFullName].Add(String.Empty);
MS\Internal\FontFace\CompositeFontParser.cs (1)
123return string.Empty;
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
335_connectionGroupName = String.Empty; // http default
MS\Internal\XpsLoadingContext.cs (2)
183string authority = uri.Authority ?? string.Empty; 218string authority = uri.Authority ?? string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\AppContextDefaultValues.cs (1)
19PopulateDefaultValuesPartial(".NETCoreApp", string.Empty, 30000);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
136string extension = String.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\PerfService.cs (1)
62return GetPerfElementID2(element, string.Empty);
System\Windows\Automation\AutomationProperties.cs (7)
18new UIPropertyMetadata(string.Empty), 51new UIPropertyMetadata(string.Empty), 84new UIPropertyMetadata(string.Empty), 117new UIPropertyMetadata(string.Empty), 150new UIPropertyMetadata(string.Empty), 183new UIPropertyMetadata(string.Empty), 216new UIPropertyMetadata(string.Empty),
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (4)
151return string.Empty; 159return string.Empty; 167return string.Empty; 247return string.Empty;
System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (2)
35if(name == string.Empty) 52name = string.Empty;
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
268return string.Empty; 351return string.Empty;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (2)
312return string.Empty; 395return string.Empty;
System\Windows\clipboard.cs (1)
138: string.Empty;
System\Windows\DataFormats.cs (1)
27if (format == string.Empty)
System\Windows\dataobject.cs (1)
333?? string.Empty;
System\Windows\DataObjectPastingEventArgs.cs (1)
53if (formatToApply == string.Empty)
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
232value = (value ?? string.Empty).Trim().ToLowerInvariant(); 233return !(value == string.Empty || value == "0" || value == "false");
System\Windows\Input\AccessKeyManager.cs (1)
724return String.Empty;
System\Windows\Input\Command\ApplicationCommands.cs (2)
226string propertyName = String.Empty; 259string uiText = String.Empty;
System\Windows\Input\Command\ComponentCommands.cs (2)
249string propertyName = String.Empty; 287string uiText = String.Empty;
System\Windows\Input\Command\KeyGesture.cs (4)
52: this(key, modifiers, String.Empty, true) 77: this(key, modifiers, String.Empty, validateGesture) 260keyGestures = String.Empty; 273displayStrings = String.Empty;
System\Windows\Input\Command\KeyGestureConverter.cs (6)
96displayString = String.Empty; 108modifiersToken = String.Empty; 147return String.Empty; 151if (strKey != String.Empty) 154if (strBinding != String.Empty) 170return String.Empty;
System\Windows\Input\Command\MediaCommands.cs (2)
214string propertyName = String.Empty; 248string uiText = String.Empty;
System\Windows\Input\Command\MouseActionConverter.cs (1)
92MouseAction.None => string.Empty,
System\Windows\Input\Command\MouseGestureConverter.cs (4)
70modifiersToken = String.Empty; 83if (modifiersToken != String.Empty) 146return String.Empty; 157if (strGesture != String.Empty)
System\Windows\Input\Command\NavigationCommands.cs (2)
165string propertyName = String.Empty; 191string uiText = String.Empty;
System\Windows\Input\Command\RoutedCommand.cs (1)
24_name = String.Empty;
System\Windows\Input\Command\RoutedUICommand.cs (1)
24_text = String.Empty;
System\Windows\Input\Cursor.cs (3)
54if ((cursorFile != String.Empty) && 322if (_fileName != String.Empty) 336private string _fileName = String.Empty;
System\Windows\Input\CursorConverter.cs (2)
102if (text != String.Empty) 220return String.Empty;
System\Windows\Input\InputScopeNameConverter.cs (1)
99if (!stringSource.Equals(String.Empty))
System\Windows\Input\Stylus\Common\StylusTraceLogger.cs (1)
76public string FunctionName { get; set; } = string.Empty;
System\Windows\Input\TextCompositionManager.cs (1)
689CompleteDeadCharComposition(String.Empty, false, false);
System\Windows\Markup\XmlLanguage.cs (2)
90_empty = GetLanguage(string.Empty); 188lowerCaseTag = String.Empty;
System\Windows\Media\FontFamily.cs (1)
190return source ?? string.Empty;
System\Windows\Media\Generated\DoubleCollection.cs (1)
683return String.Empty;
System\Windows\Media\Generated\GradientStopCollection.cs (1)
766return String.Empty;
System\Windows\Media\Generated\Int32Collection.cs (1)
683return String.Empty;
System\Windows\Media\Generated\PathFigureCollection.cs (1)
767return String.Empty;
System\Windows\Media\Generated\PointCollection.cs (1)
683return String.Empty;
System\Windows\Media\Generated\VectorCollection.cs (1)
683return String.Empty;
System\Windows\Media\GlyphsSerializer.cs (3)
117characters = string.Empty; 260return String.Empty; 282return String.Empty;
System\Windows\Media\Imaging\BitmapCodecInfo.cs (6)
103return String.Empty; 232return String.Empty; 275return String.Empty; 318return String.Empty; 361return String.Empty; 404return String.Empty;
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1280decoderMimeTypes = String.Empty;
System\Windows\Media\Imaging\BitmapDownload.cs (1)
173entry.contentType = string.Empty;
System\Windows\Media\PathGeometry.cs (1)
918string figuresString = String.Empty;
System\Windows\Media\PathSegmentCollection.cs (1)
52return String.Empty;
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
681return String.Empty;
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
681return String.Empty;
System\Windows\Media3D\Visual3DCollection.cs (1)
547duplicates.Add(visual, String.Empty);
System\Windows\Navigation\BaseUriHelper.cs (5)
198CultureInfo = new CultureInfo(String.Empty) 244assemblyName = string.Empty; 245assemblyVersion = string.Empty; 246assemblyKey = string.Empty; 250string firstSegment = String.Empty;
System\Windows\UIElement.cs (1)
2921new UIPropertyMetadata(String.Empty));
PresentationFramework (462)
Microsoft\Win32\CommonItemDialog.cs (6)
123return _defaultDirectory ?? string.Empty; 162return _initialDirectory ?? string.Empty; 181return _rootDirectory ?? string.Empty; 220return _title ?? string.Empty; 472return string.Empty; 662return String.Empty;
Microsoft\Win32\FileDialog.cs (4)
119safeFN = String.Empty; 150safeFileNames[i] = String.Empty; 265return _defaultExtension ?? string.Empty; 305return _filter ?? string.Empty;
Microsoft\Win32\OpenFolderDialog.cs (2)
106safeFN = String.Empty; 137safeFolderNames[i] = String.Empty;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
440new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior));
MS\Internal\AppModel\RequestStatusBarUpdateEventArgs.cs (2)
35_text = String.Empty; 60return new RequestSetStatusBarEventArgs(String.Empty);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (3)
188string authors = string.Empty; 607cargoName = string.Empty; 626string xmlName = string.Empty;
MS\Internal\Data\ClrBindingWorker.cs (4)
38path = new PropertyPath(String.Empty); 75pathString = String.Empty; 86pathString = String.Empty; 470string parentName = (k > 0) ? PW.GetSourceValueInfo(k - 1).name : String.Empty;
MS\Internal\Data\CollectionViewGroupInternal.cs (3)
73PropertyChangedEventManager.RemoveHandler(_groupBy, OnGroupByChanged, String.Empty); 80PropertyChangedEventManager.AddHandler(_groupBy, OnGroupByChanged, String.Empty); 231PropertyChangedEventManager.RemoveHandler(_groupBy, OnGroupByChanged, String.Empty);
MS\Internal\Data\LiveShapingItem.cs (1)
140PropertyChangedEventManager.AddHandler(inpc, OnPropertyChanged, String.Empty);
MS\Internal\Data\LiveShapingList.cs (1)
409return String.IsNullOrEmpty(path) ? String.Empty : path;
MS\Internal\Data\PathParser.cs (1)
85_path = (path != null) ? path.Trim() : string.Empty;
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
353PropertyRecord genericRecord = (PropertyRecord)_dict[String.Empty];
MS\Internal\Data\ValueTable.cs (2)
182propertyName = String.Empty; 204if (name == String.Empty)
MS\Internal\Documents\ParentUndoUnit.cs (2)
379value = String.Empty; 469description = String.Empty;
MS\Internal\Globalization\BamlTreeMap.cs (4)
358new BamlLocalizableResourceKey(string.Empty, string.Empty, string.Empty), 522return string.Empty;
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
636string.Empty, 637string.Empty 766string nameSpace = string.Empty;
MS\Internal\Globalization\LocalizableResourceBuilder.cs (2)
138content = string.Empty; 227content = string.Empty;
MS\Internal\IO\Packaging\PackageFilter.cs (1)
595if (extension == string.Empty)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
548String.Empty, // has potential text content, but no content property
MS\Internal\IO\Packaging\XpsFilter.cs (1)
357if (pszFileName == null || pszFileName == String.Empty)
MS\Internal\Markup\StaticExtension.cs (1)
71if (typeString == string.Empty)
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
290printerName = string.Empty;
MS\Internal\Printing\Win32PrintDialog.cs (1)
286string printerName = (this._printQueue != null) ? this._printQueue.FullName : string.Empty;
MS\Internal\PtsHost\Pts.cs (1)
99string message = (innerException == null) ? String.Empty : innerException.Message;
MS\Internal\PtsHost\RunClient.cs (1)
106public override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(String.Empty, 0); } }
MS\Internal\Text\InlineObject.cs (1)
104public override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(String.Empty, 0); } }
MS\Internal\Utility\BindUriHelper.cs (1)
147string fragment = String.Empty;
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (9)
70public string GetHelpFileContent() => string.Empty; 227return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 241return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 255return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 269return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty; 420description = _description != IntPtr.Zero ? Marshal.PtrToStringBSTR(_description) : string.Empty; 421restrictedDescription = _restrictedDescription != IntPtr.Zero ? Marshal.PtrToStringBSTR(_restrictedDescription) : string.Empty; 422capabilitySid = _capabilitySid != IntPtr.Zero ? Marshal.PtrToStringBSTR(_capabilitySid) : string.Empty; 438return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty;
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (1)
404stringItems[i] = string.Empty;
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
197stringItems[i] = string.Empty;
MS\Win32\UxThemeWrapper.cs (1)
296themeName = themeColor = String.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\AppContextDefaultValues.cs (1)
19PopulateDefaultValuesPartial(".NETCoreApp", string.Empty, 30000);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
62string errorMessage = string.Empty;
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (2)
21if (acceleratorKey == string.Empty) 49return result ?? string.Empty;
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
426return String.Empty;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (7)
45return string.Empty; 57return string.Empty; 75return string.Empty; 122return string.Empty; 146return string.Empty; 158return string.Empty; 170return string.Empty;
System\Windows\Automation\Peers\DataGridColumnHeaderItemAutomationPeer.cs (1)
49return String.Empty;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
73return string.Empty;
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (5)
141return String.Empty; 156return String.Empty; 176return String.Empty; 253return String.Empty; 268return String.Empty;
System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (1)
47string result = string.Empty;
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (1)
206string name = string.Empty;
System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (2)
46return result ?? string.Empty; 67return result ?? String.Empty;
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (3)
33return result ?? string.Empty; 50return result ?? string.Empty; 71return result ?? String.Empty;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (5)
178return string.Empty; 404return string.Empty; 589return string.Empty; 601return string.Empty; 613return string.Empty;
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
112return string.Empty;
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
79return result ?? string.Empty;
System\Windows\Controls\AccessText.cs (2)
133string.Empty, 718text = string.Empty;
System\Windows\Controls\Calendar.cs (1)
770return string.Empty;
System\Windows\Controls\ComboBox.cs (4)
351String.Empty, 383new FrameworkPropertyMetadata(String.Empty)); 940item = String.Empty; 1586string strValue = String.Empty;
System\Windows\Controls\ContentControl.cs (1)
112return String.Empty;
System\Windows\Controls\DataGrid.cs (1)
588NotifyPropertyChanged(d, string.Empty, e, target);
System\Windows\Controls\DataGridCell.cs (2)
209((DataGridCell)d).NotifyPropertyChanged(d, string.Empty, e, DataGridNotificationTarget.Cells); 227cell.NotifyPropertyChanged(d, string.Empty, e, DataGridNotificationTarget.Cells);
System\Windows\Controls\DataGridColumn.cs (1)
1004new FrameworkPropertyMetadata(String.Empty));
System\Windows\Controls\DataGridComboBoxColumn.cs (2)
385ComboBox.DisplayMemberPathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent)); 400ComboBox.SelectedValuePathProperty.AddOwner(typeof(DataGridComboBoxColumn), new FrameworkPropertyMetadata(string.Empty, DataGridColumn.NotifyPropertyChangeForRefreshContent));
System\Windows\Controls\DataGridRow.cs (1)
851NotifyPropertyChanged(d, string.Empty, e, target);
System\Windows\Controls\DataGridTextColumn.cs (1)
204s = String.Empty;
System\Windows\Controls\DatePicker.cs (5)
100this._defaultText = string.Empty; 571new FrameworkPropertyMetadata(string.Empty, OnTextChanged)); 747return string.Empty; 1280this.SetTextInternal(string.Empty); 1281this._defaultText = string.Empty;
System\Windows\Controls\DateTimeHelper.cs (6)
192string result = string.Empty; 206string result = string.Empty; 222string result = string.Empty; 235string result = string.Empty; 248string result = string.Empty; 265string result = string.Empty;
System\Windows\Controls\DefinitionBase.cs (1)
547if (id != string.Empty)
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
1308_commandLineDown = new RoutedUICommand(String.Empty, "FDSV_LineDown", typeof(FlowDocumentScrollViewer)); 1309_commandLineUp = new RoutedUICommand(String.Empty, "FDSV_LineUp", typeof(FlowDocumentScrollViewer)); 1310_commandLineLeft = new RoutedUICommand(String.Empty, "FDSV_LineLeft", typeof(FlowDocumentScrollViewer)); 1311_commandLineRight = new RoutedUICommand(String.Empty, "FDSV_LineRight", typeof(FlowDocumentScrollViewer));
System\Windows\Controls\Frame.cs (1)
709return String.Empty;
System\Windows\Controls\GridViewRowPresenter.cs (1)
36(Content != null) ? Content.ToString() : String.Empty,
System\Windows\Controls\HeaderedContentControl.cs (2)
386string headerText = String.Empty; 387string contentText = String.Empty;
System\Windows\Controls\HeaderedItemsControl.cs (1)
333string headerText = String.Empty;
System\Windows\Controls\ItemCollection.cs (2)
1783PropertyChangedEventManager.AddHandler(view, OnViewPropertyChanged, String.Empty); 1825PropertyChangedEventManager.RemoveHandler(view, OnViewPropertyChanged, String.Empty);
System\Windows\Controls\ItemContainerGenerator.cs (2)
1238PropertyChangedEventManager.RemoveHandler(_groupStyle, OnGroupStylePropertyChanged, String.Empty); 1245PropertyChangedEventManager.AddHandler(_groupStyle, OnGroupStylePropertyChanged, String.Empty);
System\Windows\Controls\ItemsControl.cs (1)
364string.Empty,
System\Windows\Controls\ListBox.cs (1)
417if (instance != null && (instance.GetCurrentPrefix() != String.Empty))
System\Windows\Controls\MenuItem.cs (2)
1097new FrameworkPropertyMetadata(String.Empty, 2574if (inputGestureText != String.Empty)
System\Windows\Controls\PasswordBox.cs (3)
124this.Password = String.Empty; 176value = String.Empty; 1118this.Password = String.Empty;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
367NotifyPropertyChanged(d, string.Empty, e, target);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
277NotifyPropertyChanged(d, string.Empty, e, target);
System\Windows\Controls\Primitives\Popup.cs (1)
3327HwndSourceParameters param = new HwndSourceParameters(String.Empty)
System\Windows\Controls\Primitives\Selector.cs (1)
681String.Empty,
System\Windows\Controls\Primitives\ToggleButton.cs (1)
282string contentText = String.Empty;
System\Windows\Controls\RadioButton.cs (1)
197new FrameworkPropertyMetadata(String.Empty, new PropertyChangedCallback(OnGroupNameChanged)));
System\Windows\Controls\StickyNote.cs (1)
213new FrameworkPropertyMetadata(String.Empty));
System\Windows\Controls\TextBlock.cs (5)
565string.Empty, 593value = String.Empty; 2010return String.Empty; 3365localValue as string != String.Empty) 4083text._contentCache = newText ?? string.Empty;
System\Windows\Controls\TextBox.cs (4)
659string.Empty, // default value 988Text = string.Empty; 1600newText = String.Empty; 1920return String.Empty;
System\Windows\Controls\TextSearch.cs (8)
70new FrameworkPropertyMetadata(String.Empty /* default value */)); 102new FrameworkPropertyMetadata((string)String.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault)); 444if (!firstItem && prefix != String.Empty) 501int matchedItemIndex = FindMatchingPrefix(itemsControl, GetPrimaryTextPath(itemsControl), prefix, String.Empty, 0, false, ref wasNewCharUsed); 617return (o != null) ? o.ToString() : String.Empty; 630return String.Empty; 671Prefix = String.Empty; 746if (text != null && text != String.Empty)
System\Windows\Controls\TreeView.cs (1)
121String.Empty,
System\Windows\Controls\VirtualizingStackPanel.cs (3)
3547MeasureInProgress ? "MeasureInProgress" : String.Empty); 12250return args.IsEmpty ? string.Empty : string.Format(CultureInfo.InvariantCulture, s_format[args.Length], args); 13010return String.Empty;
System\Windows\Data\BindingBase.cs (2)
149get { return (string)GetValue(Feature.BindingGroupName, String.Empty); } 150set { CheckSealed(); SetValue(Feature.BindingGroupName, value, String.Empty); }
System\Windows\Data\BindingExpression.cs (4)
62string path = (pp != null) ? pp.Path : String.Empty; 634lastChance ? " (last chance)" : String.Empty), 2303List<object> valueErrors = GetDataErrors(dataErrorValue, String.Empty); 2386if (IsReflective && RootBindingExpression.ParentBindingBase.BindingGroupName == String.Empty)
System\Windows\Data\BindingGroup.cs (1)
1064errors = BindingExpression.GetDataErrors(indei, String.Empty);
System\Windows\Data\MultiBindingExpression.cs (1)
193lastChance ? " (last chance)" : String.Empty),
System\Windows\Data\XmlDataProvider.cs (2)
510if (root != null && root.NamespaceURI == xmlReader.LookupNamespace(String.Empty)) 836private string _xPath = string.Empty;
System\Windows\Data\XmlNamespaceMappingCollection.cs (2)
226if ((prefix == string.Empty) && (ns == string.Empty))
System\Windows\Diagnostics\BindingFailedEventArgs.cs (1)
48this.Message = message ?? string.Empty;
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
110stringValue = string.Empty;
System\Windows\Documents\FixedPage.cs (2)
1114fixedPage.StartPartUriString = String.Empty; 1118if (fixedPage.StartPartUriString == String.Empty)
System\Windows\Documents\FlowPosition.cs (1)
243return String.Empty;
System\Windows\Documents\FrameworkTextComposition.cs (3)
32internal FrameworkTextComposition(InputManager inputManager, IInputElement source, object owner) : base(inputManager, source, String.Empty, TextCompositionAutoComplete.Off) 198this.CompositionText = String.Empty; 221this.Text = String.Empty;
System\Windows\Documents\Glyphs.cs (3)
748new FrameworkPropertyMetadata(string.Empty, 772new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(GlyphRunPropertyChanged))); 795new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(GlyphRunPropertyChanged)));
System\Windows\Documents\Hyperlink.cs (1)
392new FrameworkPropertyMetadata(string.Empty));
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (2)
149throw new COMException(string.Empty, uae); 158throw new COMException(string.Empty, icex);
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (1)
38string str = string.Empty;
System\Windows\Documents\RtfToXamlReader.cs (12)
959return string.Empty; 2132return string.Empty; 3719string lhs_tag = string.Empty; 3721string rhs_tag = string.Empty; 4812if (entry != null && entry.Name != null && !(entry.Name.Equals(string.Empty))) 6467dn.Xaml = string.Empty; 8099string instructionName = string.Empty; 8628contentType = string.Empty; 8634if (_wpfPayload != null && contentType != string.Empty && !skipImage) 8830dnListText.Xaml = string.Empty; 11328if (fs.IsContentDestination && !fs.IsHidden && text != string.Empty) 11475token.Text = string.Empty;
System\Windows\Documents\Run.cs (3)
96new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, 235newText = String.Empty; 294baseValue = string.Empty;
System\Windows\Documents\SpellerError.cs (1)
60correctedText = String.Empty; // Parity with TextBox.Text.
System\Windows\Documents\TextContainer.cs (1)
3293_changeBlockUndoRecord = new ChangeBlockUndoRecord(this, String.Empty);
System\windows\Documents\TextEditor.cs (2)
1177return string.Empty; 1202return string.Empty;
System\windows\Documents\TextEditorCopyPaste.cs (6)
75if (textString != String.Empty) 117if (rtfText != String.Empty) 261formatToApply = String.Empty; 303This.Selection.Text = String.Empty; 448if (xamlContent != string.Empty) 944This.Selection.Text = String.Empty;
System\windows\Documents\TextEditorDragDrop.cs (4)
250_dragSourceTextRange.Text = String.Empty; 569_dragSourceTextRange.Text = String.Empty; 783if (TextEditorCopyPaste.GetPasteApplyFormat(This, e.Data) == string.Empty) 831if (TextEditorCopyPaste.GetPasteApplyFormat(This, e.Data) == string.Empty)
System\windows\Documents\TextEditorTyping.cs (7)
271This.SetText(This.Selection, String.Empty, InputLanguageManager.Current.CurrentInputLanguage); 560This.Selection.Text = String.Empty; 705This.Selection.Text = String.Empty; 932This.Selection.Text = String.Empty; 998This.Selection.Text = String.Empty; 1090This.Selection.Text = String.Empty; 1136if (filteredText != String.Empty)
System\Windows\Documents\TextFindEngine.cs (1)
91|| findPattern == string.Empty )
System\Windows\Documents\TextMapOffsetErrorLogger.cs (1)
74TextMapText = string.Join(string.Empty, textMap.Text),
System\Windows\Documents\TextParentUndoUnit.cs (2)
39: base(String.Empty) 68: base(String.Empty)
System\Windows\Documents\TextRange.cs (1)
1571this.Text = String.Empty;
System\Windows\Documents\TextRangeBase.cs (3)
294range.Text = String.Empty; 543BeginChangeWorker(thisRange, String.Empty); 1264text = String.Empty;
System\Windows\Documents\TextRangeSerialization.cs (1)
154range.Text = String.Empty;
System\Windows\Documents\TextStore.cs (1)
4838return args.IsEmpty ? string.Empty : string.Format(CultureInfo.InvariantCulture, s_format[args.Length], args);
System\Windows\Documents\WinRTSpellerInterop.cs (6)
48throw new PlatformNotSupportedException(string.Empty, ex); 72throw new NotSupportedException(string.Empty, ex); 322throw new NotSupportedException(string.Empty, ex); 379foreach(string strSentence in new string[]{string.Join(string.Empty, text)}) 582if ((before != string.Empty) || (after != string.Empty) || (!Int32.TryParse(match, out lcid)))
System\Windows\Documents\XamlRtfConverter.cs (4)
54string rtfContent = string.Empty; 56if (xamlContent != string.Empty) 92string xamlContent = string.Empty; 94if (rtfContent != string.Empty)
System\Windows\Documents\XamlToRtfParser.cs (4)
59string name = string.Empty; 169xamlToRtfError = _xamlContent.StartElement(string.Empty, name, name, _xamlAttributes); 175xamlToRtfError = _xamlContent.EndElement(string.Empty, name, name); 203xamlToRtfError = _xamlContent.EndElement(string.Empty, name, name);
System\Windows\Documents\XamlToRtfWriter.cs (4)
2850string uri = string.Empty; 2851string newLocalName = string.Empty; 2852string newQName = string.Empty; 2853string valueString = string.Empty;
System\Windows\FrameworkContentElement.cs (1)
814new FrameworkPropertyMetadata(string.Empty));
System\Windows\FrameworkElement.cs (1)
3196string.Empty, // defaultValue
System\Windows\FrameworkElementFactory.cs (3)
142if (value == string.Empty) 559if ((_childName != null) && (_childName != String.Empty)) 597if ((_childName != null) && (_childName != String.Empty) &&
System\Windows\Input\Command\CommandConverter.cs (2)
94if ((string)source != String.Empty) 186return String.Empty;
System\Windows\Input\Command\CommandValueSerializer.cs (1)
90return string.Empty;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2076: String.Empty);
System\Windows\Markup\Baml2006\SharedStream.cs (2)
135throw new ArgumentOutOfRangeException(nameof(value), value, string.Empty); 239throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
288wpfDefaultNamespace.Add(String.Empty, Baml2006SchemaContext.WpfNamespace);
System\Windows\Markup\BamlMapTable.cs (13)
69Assembly = ReflectionHelper.LoadAssembly(_frameworkAssembly, string.Empty) 111if (typeShortName == string.Empty) 815propName = string.Empty; 953string.Empty, 954string.Empty); 1170typeClrNamespace = string.Empty; 1210if (serializerTypeFullName == string.Empty) 1224string.Empty, string.Empty); 1313string.Empty : serializerType.Assembly.FullName; 1315string.Empty : serializerType.FullName; 1414null, string.Empty, string.Empty);
System\Windows\Markup\BamlReader.cs (82)
165_value = string.Empty; 166_assemblyName = string.Empty; 167_prefix = string.Empty; 168_xmlNamespace = string.Empty; 169_clrNamespace = string.Empty; 170_name = string.Empty; 171_localName = string.Empty; 172_ownerTypeName = string.Empty; 394_ownerTypeName = string.Empty; 402_contentPropertyName = string.Empty; 431_prefix = string.Empty; 440_ownerTypeName = string.Empty; 442_xmlNamespace = string.Empty; 443_clrNamespace = string.Empty; 452_contentPropertyName = string.Empty; 453_prefix = string.Empty; 454_name = string.Empty; 455_localName = string.Empty; 456_ownerTypeName = string.Empty; 457_assemblyName = string.Empty; 458_xmlNamespace = string.Empty; 459_clrNamespace = string.Empty; 817XmlNamespace = string.Empty, 818ClrNamespace = string.Empty, 819AssemblyName = string.Empty, 821LocalName = bamlRecord.Prefix ?? string.Empty, 1052if (prefix != string.Empty) 1101AssemblyName = string.Empty, 1104ClrNamespace = string.Empty, 1130AssemblyName = string.Empty, 1133ClrNamespace = string.Empty, 1159AssemblyName = string.Empty, 1162ClrNamespace = string.Empty, 1277AssemblyName = string.Empty, 1280ClrNamespace = string.Empty, 1299if (typeExtensionPrefix != string.Empty) 1314if (prefix != string.Empty) 1328AssemblyName = string.Empty, 1331ClrNamespace = string.Empty, 1400AssemblyName = string.Empty, 1403ClrNamespace = string.Empty, 1438if (prefix != string.Empty) 1559if (prefix != string.Empty) 1688AssemblyName = string.Empty, 1691ClrNamespace = string.Empty, 1793throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty)); 1807throw new InvalidOperationException(SR.Format(SR.ParserBamlEvent, string.Empty)); 1906_ownerTypeName = string.Empty; 1963_ownerTypeName = string.Empty; 2045_ownerTypeName = string.Empty; 2089_ownerTypeName = string.Empty; 2160_ownerTypeName = string.Empty; 2201_prefix = string.Empty; 2286AssemblyName = string.Empty, 2289ClrNamespace = string.Empty, 2323_value = string.Empty; 2324_prefix = string.Empty; 2325_name = string.Empty; 2326_localName = string.Empty; 2327_ownerTypeName = string.Empty; 2328_assemblyName = string.Empty; 2329_xmlNamespace = string.Empty; 2330_clrNamespace = string.Empty; 2332_contentPropertyName = string.Empty; 2334_typeConverterAssemblyName = string.Empty; 2335_typeConverterName = string.Empty; 2372string valueString = string.Empty; 2400valuePrefix = (prefixObject == null) ? string.Empty : (string)prefixObject; 2414if (valuePrefix == string.Empty) 2429string valueString = string.Empty; 2435if (extensionPrefix != string.Empty) 2475valuePrefix = (prefixObject == null) ? string.Empty : (string)prefixObject; 2489if (valuePrefix == string.Empty) 2504string valueString = string.Empty; 2521string valueString = string.Empty; 2542string valueString = string.Empty; 2584if (typeExtensionPrefix != string.Empty) 2600if (valuePrefix == string.Empty) 2706string prefix = string.Empty; 2711if (xmlns == string.Empty) 2713xmlns = _parserContext.XmlnsDictionary[string.Empty]; 2747return String.Empty; // and error actually but old code defaulted this way.
System\Windows\Markup\BamlRecordReader.cs (9)
781String.Empty /*message*/, 2398string valueTypeName = string.Empty; 3986string message = string.Empty; 4015o = ParserContext.XamlTypeMapper.ParseProperty(null, type,string.Empty, null, 4748string typeName = parentType == null ? String.Empty : parentType.FullName; 4766string typeName = parentType == null ? String.Empty : parentType.FullName; 4893String.Empty, 4904String.Empty, 5146return string.Empty;
System\Windows\Markup\BamlRecords.cs (1)
4388string.Empty;
System\Windows\Markup\BamlRecordWriter.cs (10)
266string serializerAssemblyName = string.Empty; 477string.Empty, 478string.Empty); 811string serializerAssemblyName = string.Empty; 974if (xamlProperty.AssemblyName != string.Empty && xamlProperty.TypeFullName != string.Empty) 1091string.Empty, 1092string.Empty); 1433string.Empty, 1434string.Empty);
System\Windows\Markup\BamlWriter.cs (11)
87assemblyName = string.Empty; 88typeFullName = string.Empty; 397string.Empty, 398string.Empty); 528string prefix = string.Empty; 537string valueAssemblyName = string.Empty; 538string valueTypeFullName = string.Empty; 1187if (assemblyName == string.Empty || ownerTypeFullName == string.Empty) 1238if (assemblyName == string.Empty || ownerTypeFullName == string.Empty)
System\Windows\Markup\MarkupExtensionParser.cs (11)
175propName = string.Empty; 340typeName = string.Empty; 341args = string.Empty; 502if (resolvedTag && propIdName != string.Empty) 561string prefix = String.Empty; 746string prefix = String.Empty; 1266string.Empty, 1368string prefix = (nameIndex < 0) ? String.Empty : propertyName.Substring(0, nameIndex); 1506string prefix = (nameIndex < 0) ? String.Empty : name.Substring(0, nameIndex); 1567string.Empty, 1568string.Empty);
System\Windows\Markup\ParserContext.cs (6)
77_xmlLang = String.Empty; 78_xmlSpace = String.Empty; 102_xmlSpace = String.Empty; 279_xmlLang = (value ?? string.Empty); 816private String _xmlLang = String.Empty; 817private String _xmlSpace = String.Empty;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
454return String.Empty; 467return String.Empty;
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
654_writer.WriteString(string.Empty);
System\Windows\Markup\RoutedEventConverter.cs (1)
152string nsPrefix = string.Empty;
System\Windows\Markup\XamlNodes.cs (1)
1176string.Empty :
System\Windows\Markup\XamlParseException.cs (5)
272string bamlFilePath = string.Empty; 273string xamlFilePath = string.Empty; 291xamlFilePath = string.Empty; 356message = String.Empty; 423if (innerException.Message != String.Empty)
System\Windows\Markup\XamlTypeMapper.cs (14)
188if (assemblyPath == string.Empty) 193if (assemblyName == string.Empty) 591if( propName != string.Empty ) 632if( propName != string.Empty ) 682if (value == string.Empty) 715if (propType.IsEnum && attribValue != string.Empty) 2164string prefix = string.Empty; 2192if (prefix == string.Empty) 2243string prefix = String.Empty; 2848string xmlns = string.Empty; 2855xmlns = context.XmlnsDictionary[string.Empty]; 2858ThrowException(nameof(SR.ParserUndeclaredNS), string.Empty); 3029string nsPrefix = string.Empty; 3389return string.Empty;
System\Windows\Markup\XmlnsDictionary.cs (4)
387string defaultNs = LookupNamespace(string.Empty); 388return defaultNs ?? string.Empty; 425_nsDeclarations[decl].Prefix = String.Empty; 583_nsDeclarations[0].Prefix = string.Empty;
System\Windows\MessageBox.cs (2)
169return ShowCore(IntPtr.Zero, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 323return ShowCore((new WindowInteropHelper (owner)).Handle, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0);
System\Windows\Navigation\JournalEntry.cs (1)
222DependencyProperty.RegisterAttached("Name", typeof(string), typeof(JournalEntry), new PropertyMetadata(String.Empty));
System\Windows\PropertyPath.cs (3)
826nsPrefix = string.Empty; 964private string _path = String.Empty; // the path 968private string _lastError = String.Empty; // most recent error message
System\Windows\PropertyPathConverter.cs (1)
238if (prefix != null && prefix != string.Empty)
System\Windows\Shell\TaskbarItemInfo.cs (1)
141string.Empty,
System\Windows\Shell\ThumbButtonInfo.cs (1)
89string.Empty,
System\Windows\SystemKeyConverter.cs (3)
240return String.Empty; 266return String.Empty; 277return String.Empty;
System\Windows\TemplateContent.cs (1)
100string type = (this.Type == null) ? String.Empty : this.Type.Name;
System\Windows\TemplateNameScope.cs (1)
223if (_nameMap == null || name == null || name == String.Empty)
System\Windows\Window.cs (1)
807new FrameworkPropertyMetadata(String.Empty,
PresentationFramework-SystemXml (3)
SystemXmlExtension.cs (3)
79if (prefix != string.Empty) 137strValue = String.Empty; 146string value = String.Empty;
PresentationUI (28)
MS\Internal\Documents\Application\AddressUtility.cs (1)
40string address = string.Empty;
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (3)
144String.Empty : text; 183return String.Empty; 188string unitString = String.Empty;
MS\Internal\Documents\Application\DocumentStream.cs (3)
102string sourcePath = string.Empty; 664(_xpsFileToken != null) ? _xpsFileToken.Location.ToString() : string.Empty, 822string.Empty :
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
245string result = String.Empty;
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
474zoomString = String.Empty;
MS\Internal\Documents\DigitalSignatureProvider.cs (2)
526digitalSignature.Reason = string.Empty; 527digitalSignature.Location = string.Empty;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1830Name = String.IsNullOrEmpty(name) ? String.Empty : name,
MS\Internal\Documents\RightsManagementManager.cs (2)
1342string template = string.Empty; 1424string template = string.Empty;
MS\Internal\Documents\RightsManagementProvider.cs (3)
668string referralInfoName = string.Empty; 909string serializedSavedPublishLicense = string.Empty; 910string serializedNewPublishLicense = string.Empty;
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
52docStatusResources.Text = String.Empty;
MS\Internal\Documents\RightsManagementUser.cs (1)
136string name = string.Empty;
MS\Internal\Documents\RMPublishingDialog.cs (1)
322string path = string.Empty;
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
274return string.Empty; 464NullValue = string.Empty,
MS\Internal\Documents\SignatureResourceHelper.cs (6)
48docSigStatusResources.Text = String.Empty; 187return string.Empty; 195string result = String.Empty; 213string certSummary = String.Empty; 253string message = String.Empty; 293string message = String.Empty;
ProjectResourceExtensions.AppHost (2)
AppHost.cs (2)
80public string Mode { get; set; } = string.Empty; 83public string ProjectPath { get; set; } = string.Empty;
QuarantineTools.Tests (4)
ActiveIssueTests.cs (1)
323string ns = string.Empty;
QuarantineScriptTests.cs (3)
267string ns = string.Empty; 457text = text.Replace($"using {namespaceName};\r\n", string.Empty) 458.Replace($"using {namespaceName};\n", string.Empty);
ReachFramework (18)
AlphaFlattener\MetroDevice.cs (1)
767throw new ArgumentOutOfRangeException(nameof(maxEntries), maxEntries, string.Empty);
MS\Internal\Printing\Configuration\COMPSTUISRID.cs (1)
31throw new ArgumentOutOfRangeException(nameof(srid), srid, string.Empty);
MS\Internal\Printing\Configuration\UnsafeNativeMethods.cs (6)
62throw new PrintingNotSupportedException(String.Empty, e); 98throw new PrintingNotSupportedException(String.Empty, e); 137throw new PrintingNotSupportedException(String.Empty, e); 172throw new PrintingNotSupportedException(String.Empty, e); 213throw new PrintingNotSupportedException(String.Empty, e); 233throw new PrintingNotSupportedException(String.Empty, e);
MS\Internal\Printing\MostFrequentlyUsedCache.cs (1)
12throw new ArgumentOutOfRangeException(nameof(maxEntries), maxEntries, string.Empty);
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
144String attributeValue = String.Empty;
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
182String attributeValue = String.Empty;
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
215String attributeValue = String.Empty;
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
255String attributeValue = String.Empty;
Serialization\Manager\ReachFixedPageSerializer.cs (1)
292String attributeValue = String.Empty;
Serialization\Manager\ReachFixedPageSerializerAsync.cs (1)
264String attributeValue = String.Empty;
Serialization\Manager\ReachSerializableProperties.cs (2)
431((string)Value) != string.Empty) 776((string)Value) != string.Empty)
Serialization\Manager\XpsOMFixedPageSerializer.cs (1)
257String attributeValue = String.Empty;
RepoTasks (3)
BatchHelixWorkItems.cs (1)
63tfm = separatorIndex >= 0 ? workItem.ItemSpec.Substring(separatorIndex + 2) : string.Empty;
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 701key.ImportFromEncryptedPem(pem, string.Empty);
Roslyn.Diagnostics.Analyzers (39)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
570string relativePath = string.Empty; 880var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 884Debug.Assert(parts[toSkip - 1] == string.Empty);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
src\roslyn\src\Dependencies\Contracts\Range.cs (1)
65static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
131appendChildren(indent: string.Empty);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
228return analyzerConfigOptions.GetOptionValue(optionName, tree, rule, TryParseValue, string.Empty); 370return new SymbolNamesWithValueOption<string?>.NameParts(split[0], string.Empty); 496string optionValue = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
193: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
266=> LogBlock(functionId, string.Empty, token, logLevel);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
149if (prefix != string.Empty) 153failureReason = Prefix == string.Empty 468new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 469new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 470new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 486writer.WriteString(Prefix ?? string.Empty); 487writer.WriteString(Suffix ?? string.Empty); 488writer.WriteString(WordSeparator ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44if (symbol.IsErrorType() && symbol.Name == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
52if (info.Context.GenerateMembers && info.Context.MergeNestedNamespaces && @namespace.Name != string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
394name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
10internal sealed class CodeGenerationArrayTypeSymbol(ITypeSymbol elementType, int rank, NullableAnnotation nullableAnnotation) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, nullableAnnotation), IArrayTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationConstructorSymbol.cs (1)
22name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationDestructorSymbol.cs (1)
18name: string.Empty,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
49return this.Name == string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
9internal sealed class CodeGenerationPointerTypeSymbol(ITypeSymbol pointedAtType) : CodeGenerationTypeSymbol(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, NullableAnnotation.None), IPointerTypeSymbol
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
53var bestPath = string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
37var publicKeyToken = thisAssemblyName.GetPublicKeyToken()?.Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
135=> GenerateUniqueName(baseName, string.Empty, canUse);
Roslyn.Diagnostics.CSharp.Analyzers (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
14if (text == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (2)
131return string.Empty; 142=> SyntaxFactory.ParseLeadingTrivia(s ?? string.Empty);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
43return string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
752return string.Empty; 1052=> (argument as ArgumentSyntax)?.NameColon?.Name.Identifier.ValueText ?? string.Empty; 1055=> (argument as AttributeArgumentSyntax)?.NameEquals?.Name.Identifier.ValueText ?? string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
177return string.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
105if (name == string.Empty)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
192if (symbol.Name == string.Empty || symbol.IsAnonymousType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
38(otherSideType.Name == string.Empty || otherSideType.Name == "var"); 2426if (name != string.Empty)
Roslyn.Diagnostics.VisualBasic.Analyzers (10)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
24otherSideType.Name = String.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
883Return String.Empty 1098Return String.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (4)
112Return SyntaxFactory.StringLiteralExpression(SyntaxFactory.StringLiteralToken(s_doubleQuote & s_doubleQuote, String.Empty)) 201Dim suffix As String = String.Empty 345Dim suffix As String = String.Empty 382Dim suffix As String = String.Empty
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamespaceGenerator.vb (1)
89If name = String.Empty Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
14If text = String.Empty Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
77If symbol.Name = String.Empty OrElse symbol.IsAnonymousType Then
rzc (2)
DiscoverCommand.cs (1)
215new RazorInputFile(syntheticPath, "__rzc_discover__.cshtml", text: SourceText.From(string.Empty, Encoding.UTF8)),
PipeName.cs (1)
55.Replace("=", string.Empty);
sdk-tasks (12)
Crossgen.cs (1)
122var platformAssemblyPaths = string.Empty;
DotNetTool.cs (2)
33protected override string ToolName => $"dotnet{(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty)}"; 44return string.Empty;
GenerateGuidFromName.cs (1)
20var nameBytes = System.Text.Encoding.UTF8.GetBytes(name ?? string.Empty);
IncrementalLayout.cs (2)
168public string CompletionStampFile { get; set; } = string.Empty; 231fullPath = string.Empty;
src\sdk\src\Common\WorkloadSetVersion.cs (1)
73: string.Empty;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkFeatureBand.cs (2)
111var patch = releaseVersion.Patch > 0 ? $".{releaseVersion.Patch}" : string.Empty; 112var release = string.IsNullOrWhiteSpace(releaseVersion.Prerelease) ? string.Empty : $"-{releaseVersion.Prerelease}";
TarGzFileCreateFromDirectory.cs (1)
115var excludes = string.Empty;
WorkloadManifestLayout.cs (2)
29public string LayoutRoot { get; set; } = string.Empty; 263public string PackageRoot { get; set; } = string.Empty;
SelectTests (1)
Program.cs (1)
401error = string.Empty;
Shared (5)
Data.Validation\LengthAttribute.cs (2)
178var exclusiveString = Exclusive ? "exclusive " : string.Empty; 179var orEqualString = Exclusive ? string.Empty : "or equal ";
Data.Validation\ValidationContextExtensions.cs (1)
27return validationContext?.DisplayName ?? string.Empty;
LogBuffering\SerializedLogRecordFactory.cs (2)
42string value = attribute.Value?.ToString() ?? string.Empty; 155attributes.Add(new KeyValuePair<string, object?>(item.Key, item.Value?.ToString() ?? string.Empty));
Shared.Tests (1)
Throw\ThrowTest.cs (1)
130var value = string.Empty;
Stress.AppHost (6)
InteractionCommands.cs (6)
612message: string.Empty, 620message: string.Empty, 628message: string.Empty, 636message: string.Empty, 723var tenantId = context.AllInputs["Tenant"].Value ?? string.Empty; 789var resourceGroupName = context.AllInputs["ResourceGroup"].Value ?? string.Empty;
SuperFileCheck (6)
Program.cs (6)
119return new FileCheckResult(1, String.Empty, String.Empty); 162return new FileCheckResult(1, String.Empty, ex.Message); 225var qualifiedTypeName = String.Empty; 349var result = TryTransformDirective(lineStr, checkPrefixes, SyntaxDirectiveFullLine, String.Empty); 405tmpSrc.AppendLine(String.Empty);
System.CodeDom (37)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
2848string s = string.Empty; 3072return string.Empty;
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
2568string s = string.Empty;
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
38_baseType = string.Empty; 320return string.Empty;
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
112public string TempDir => _tempDir ?? string.Empty;
System\CodeDom\CodeArgumentReferenceExpression.cs (1)
19get => _parameterName ?? string.Empty;
System\CodeDom\CodeAttributeArgument.cs (1)
25get => _name ?? string.Empty;
System\CodeDom\CodeAttributeDeclaration.cs (1)
43get => _name ?? string.Empty;
System\CodeDom\CodeCatchClause.cs (1)
33get => _localName ?? string.Empty;
System\CodeDom\CodeChecksumPragma.cs (1)
23get => _fileName ?? string.Empty;
System\CodeDom\CodeComment.cs (1)
27get => _text ?? string.Empty;
System\CodeDom\CodeDelegateCreateExpression.cs (1)
30get => _methodName ?? string.Empty;
System\CodeDom\CodeEventReferenceExpression.cs (1)
22get => _eventName ?? string.Empty;
System\CodeDom\CodeFieldReferenceExpression.cs (1)
22get => _fieldName ?? string.Empty;
System\CodeDom\CodeLabeledStatement.cs (1)
25get => _label ?? string.Empty;
System\CodeDom\CodeLinePragma.cs (1)
20get => _fileName ?? string.Empty;
System\CodeDom\codemethodreferenceexpression.cs (1)
30get => field ?? string.Empty;
System\CodeDom\CodeNamespace.cs (1)
60get => _name ?? string.Empty;
System\CodeDom\CodeNamespaceImport.cs (1)
21get => _nameSpace ?? string.Empty;
System\CodeDom\CodeParameterDeclarationExpression.cs (1)
44get => field ?? string.Empty;
System\CodeDom\CodePropertyReferenceExpression.cs (1)
22get => _propertyName ?? string.Empty;
System\CodeDom\CodeRegionDirective.cs (1)
20get => _regionText ?? string.Empty;
System\CodeDom\CodeSnippetCompileUnit.cs (1)
19get => _value ?? string.Empty;
System\CodeDom\CodeSnippetExpression.cs (1)
19get => _value ?? string.Empty;
System\CodeDom\CodeSnippetStatement.cs (1)
19get => _value ?? string.Empty;
System\CodeDom\CodeSnippetTypeMember.cs (1)
19get => _text ?? string.Empty;
System\CodeDom\CodeTypeMember.cs (1)
10get => field ?? string.Empty;
System\CodeDom\CodeTypeParameter.cs (1)
19get => _name ?? string.Empty;
System\CodeDom\CodeVariableDeclarationStatement.cs (1)
53get => field ?? string.Empty;
System\CodeDom\CodeVariableReferenceExpression.cs (1)
19get => _variableName ?? string.Empty;
System\CodeDom\Compiler\CodeCompiler.cs (1)
223return string.Empty;
System\CodeDom\Compiler\CodeDomProvider.cs (1)
109public virtual string FileExtension => string.Empty;
System\CodeDom\Compiler\CompilerError.cs (3)
10public CompilerError() : this(string.Empty, 0, 0, string.Empty, string.Empty) { }
System\CodeDom\Compiler\CompilerParameters.cs (1)
48public string CoreAssemblyFileName { get; set; } = string.Empty;
System.CommandLine (8)
Help\HelpBuilder.cs (2)
435var symbolDescription = customizedSymbolDescription ?? symbol.Description ?? string.Empty; 441: string.Empty;
Help\HelpBuilder.Default.cs (4)
37_ when (valueType == typeof(bool) || valueType == typeof(bool?)) && value is not true => string.Empty, 39null => string.Empty, 42_ => value.ToString() ?? string.Empty 63public static string GetArgumentDescription(Argument argument) => argument.Description ?? string.Empty;
LocalizationResources.cs (1)
248return string.Empty;
RootCommand.cs (1)
107return args.Length > 0 ? args[0] : string.Empty;
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\AssociationAttribute.cs (1)
78return key.Replace(" ", string.Empty).Split(',');
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (2)
36Extensions.Replace(" ", string.Empty).Replace(".", string.Empty).ToLowerInvariant();
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (1)
35ReadOnlySpan<char> valueSpan = valueAsString.Replace("+", string.Empty).AsSpan().TrimEnd();
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (2)
110var a = UIHint ?? string.Empty; 111var b = PresentationLayer ?? string.Empty;
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\CompositionError.cs (1)
106_description = description ?? string.Empty;
System\ComponentModel\Composition\ConstraintServices.cs (1)
63Expression.Constant(contractName ?? string.Empty, typeof(string)));
System\ComponentModel\Composition\ExportMetadataAttribute.cs (1)
29Name = name ?? string.Empty;
System\ComponentModel\Composition\PartMetadataAttribute.cs (1)
27Name = name ?? string.Empty;
System\ComponentModel\Composition\Primitives\CompositionElement.cs (1)
26_displayName = displayName ?? string.Empty;
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (2)
18internal static readonly string EmptyContractName = string.Empty; 126/// return <see cref="string.Empty"/> for imports that do not require a specific
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
154errorMessage = string.Empty;
System.ComponentModel.Primitives (8)
System\ComponentModel\DescriptionAttribute.cs (1)
20public DescriptionAttribute() : this(string.Empty)
System\ComponentModel\Design\Serialization\DesignerSerializerAttribute.cs (1)
71string baseType = SerializerBaseTypeName ?? string.Empty;
System\ComponentModel\DesignerAttribute.cs (1)
102string baseType = DesignerBaseTypeName ?? string.Empty;
System\ComponentModel\DesignerCategoryAttribute.cs (1)
42public DesignerCategoryAttribute() : this(string.Empty)
System\ComponentModel\DisplayNameAttribute.cs (1)
21public DisplayNameAttribute() : this(string.Empty)
System\ComponentModel\EditorAttribute.cs (3)
22EditorTypeName = string.Empty; 23EditorBaseTypeName = string.Empty; 85string baseType = EditorBaseTypeName ?? string.Empty;
System.ComponentModel.TypeConverter (28)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (3)
398return string.Empty; 445return string.Empty; 474return string.Empty;
System\ComponentModel\CharConverter.cs (1)
32return string.Empty;
System\ComponentModel\CultureInfoConverter.cs (1)
68if (GetCultureName(CultureInfo.InvariantCulture).Equals(string.Empty))
System\ComponentModel\DateOnlyConverter.cs (1)
83return string.Empty;
System\ComponentModel\DateTimeConverter.cs (1)
88return string.Empty;
System\ComponentModel\DateTimeOffsetConverter.cs (1)
90return string.Empty;
System\ComponentModel\Design\DesignerOptionService.cs (1)
19public DesignerOptionCollection Options => field ??= new DesignerOptionCollection(this, null, string.Empty, null);
System\ComponentModel\Design\DesignerVerb.cs (2)
41return string.Empty; 59return string.Empty;
System\ComponentModel\Design\DesigntimeLicenseContext.cs (2)
75if (location == string.Empty) 96if (location != string.Empty)
System\ComponentModel\MaskedTextProvider.cs (4)
297string locSymbol = string.Empty; // the locale symbol corresponding to a separator in the mask. 2567return string.Empty; 2577return string.Empty; 2618return string.Empty;
System\ComponentModel\NullableConverter.cs (1)
119return string.Empty;
System\ComponentModel\ReferenceConverter.cs (1)
112return string.Empty;
System\ComponentModel\StringConverter.cs (1)
34return string.Empty;
System\ComponentModel\SyntaxCheck.cs (3)
24if (value.Equals(string.Empty)) 40if (value.Equals(string.Empty)) 57if (value.Equals(string.Empty))
System\ComponentModel\TimeOnlyConverter.cs (1)
83return string.Empty;
System\ComponentModel\ToolboxItemAttribute.cs (1)
102public string ToolboxItemTypeName => _toolboxItemTypeName ?? string.Empty;
System\ComponentModel\ToolboxItemFilterAttribute.cs (1)
59FilterString = filterString ?? string.Empty;
System\ComponentModel\TypeConverter.cs (1)
121return string.Empty;
System\Drawing\ColorConverter.cs (1)
58return string.Empty;
System.Composition.AttributedModel (1)
System\Composition\ExportMetadataAttribute.cs (1)
29Name = name ?? string.Empty;
System.Configuration.ConfigurationManager (74)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
112public string TempDir => _tempDir ?? string.Empty;
System\Configuration\ApplicationSettingsBase.cs (2)
27private string _settingsKey = string.Empty; 42protected ApplicationSettingsBase(IComponent owner) : this(owner, string.Empty)
System\Configuration\AppSettingsSection.cs (2)
37return fileValue ?? string.Empty; 55defaultValue: string.Empty,
System\Configuration\BaseConfigurationRecord.cs (6)
1791ScanFactoriesRecursive(xmlUtil, parentConfigKey: string.Empty, factoryList: factoryList); 2145group = string.Empty; 2313ScanSectionsRecursive(xmlUtil, string.Empty, false, null, OverrideModeSetting.s_locationDefault, false); 2798ScanSectionsRecursive(xmlUtil, string.Empty, true, null, overrideMode, !inheritInChildApp); 2844ScanSectionsRecursive(xmlUtil, string.Empty, true, locationSubPath, overrideMode, !inheritInChildApp); 3673group: string.Empty,
System\Configuration\CallbackValidatorAttribute.cs (1)
12private string _callbackMethodName = string.Empty;
System\Configuration\ClientConfigPaths.cs (2)
82ApplicationUri = string.Empty; 346ProductName ??= string.Empty;
System\Configuration\ConfigurationElement.cs (6)
275ConfigurationLockCollectionType.LockedExceptionList, string.Empty, 562ConfigurationLockCollectionType.LockedExceptionList, string.Empty, 856PropertySourceInfo p = PropertyInfoInternal(propertyName) ?? PropertyInfoInternal(string.Empty); 857return p == null ? string.Empty : p.FileName; 862PropertySourceInfo p = PropertyInfoInternal(propertyName) ?? PropertyInfoInternal(string.Empty); 1608ConfigurationLockCollectionType.LockedExceptionList, string.Empty, newCollection);
System\Configuration\ConfigurationElementCollection.cs (2)
28internal string InternalElementTagName = string.Empty; 108return string.Empty;
System\Configuration\ConfigurationException.cs (1)
110public static string GetXmlNodeFilename(XmlNode node) => (node as IConfigErrorInfo)?.Filename ?? string.Empty;
System\Configuration\ConfigurationLockCollection.cs (3)
17private string _seedList = string.Empty; 24: this(thisElement, lockType, string.Empty) 122_seedList = string.Empty;
System\Configuration\ConfigurationProperty.cs (2)
28defaultValue = string.Empty; 315defaultValue = string.Empty;
System\Configuration\ConfigurationSection.cs (1)
51return string.Empty;
System\Configuration\ConfigurationSectionGroup.cs (2)
23public string SectionGroupName { get; private set; } = string.Empty; 25public string Name { get; private set; } = string.Empty;
System\Configuration\ConnectionStringSettings.cs (1)
17new ConfigurationProperty("providerName", typeof(string), string.Empty, ConfigurationPropertyOptions.None);
System\Configuration\DefaultSection.cs (2)
13private string _rawXml = string.Empty; 45_rawXml = string.Empty;
System\Configuration\ExeConfigurationFileMap.cs (6)
10ExeConfigFilename = string.Empty; 11RoamingUserConfigFilename = string.Empty; 12LocalUserConfigFilename = string.Empty; 18ExeConfigFilename = string.Empty; 19RoamingUserConfigFilename = string.Empty; 20LocalUserConfigFilename = string.Empty;
System\Configuration\IgnoreSection.cs (2)
13private string _rawXml = string.Empty; 45_rawXml = string.Empty;
System\Configuration\Internal\InternalConfigRoot.cs (2)
49if (_isDesignTime) RootConfigRecord = MgmtConfigurationRecord.Create(this, null, string.Empty, null); 53(BaseConfigurationRecord)RuntimeConfigurationRecord.Create(this, null, string.Empty);
System\Configuration\KeyValueConfigurationElement.cs (2)
9new ConfigurationProperty("key", typeof(string), string.Empty, 13new ConfigurationProperty("value", typeof(string), string.Empty, ConfigurationPropertyOptions.None);
System\Configuration\LocalFileSettingsProvider.cs (3)
18private string _appName = string.Empty; 96value.PropertyValue = string.Empty; 458serializedValue ??= string.Empty;
System\Configuration\LocationUpdates.cs (1)
13SectionUpdates = new SectionUpdates(string.Empty);
System\Configuration\MgmtConfigurationRecord.cs (6)
56internal string ConfigurationFilePath => UpdateConfigHost.GetNewStreamname(ConfigStreamInfo.StreamName) ?? string.Empty; 863if (configKey.Length == 0) configKeyAncestor = string.Empty; 880if (configKey.Length == 0) configKeyAncestor = string.Empty; 1298SectionUpdates sectionUpdates = new SectionUpdates(string.Empty); 2267string.Empty, 2337locationUpdates, sectionUpdates, true, string.Empty, configurationElementLinePosition,
System\Configuration\NameValueConfigurationElement.cs (2)
9new ConfigurationProperty("name", typeof(string), string.Empty, ConfigurationPropertyOptions.IsKey); 12new ConfigurationProperty("value", typeof(string), string.Empty, ConfigurationPropertyOptions.None);
System\Configuration\OverrideModeSetting.cs (1)
180string result = string.Empty;
System\Configuration\PropertyInformation.cs (3)
68_thisElement.Values.GetSourceInfo(string.Empty); 69return psi == null ? string.Empty : psi.FileName; 81_thisElement.Values.GetSourceInfo(string.Empty);
System\Configuration\SectionInformation.cs (3)
49ConfigKey = string.Empty; 50Name = string.Empty; 231get { return _configSource ?? string.Empty; }
System\Configuration\SettingsPropertyValue.cs (1)
158value = string.Empty;
System\Configuration\StringUtil.cs (2)
10return string.Equals(s1 ?? string.Empty, s2 ?? string.Empty, StringComparison.Ordinal);
System\Configuration\StringValidator.cs (1)
24_invalidChars = invalidCharacters ?? string.Empty;
System\Configuration\ValidatorUtils.cs (1)
16throw new ArgumentException(SR.Validator_value_type_invalid, string.Empty);
System\Configuration\WhiteSpaceTrimStringConverter.cs (1)
15return value == null ? string.Empty : ((string)value).Trim();
System\Diagnostics\DiagnosticsConfiguration.cs (1)
38return string.Empty; // the default
System\Diagnostics\TypedElement.cs (2)
9protected static readonly ConfigurationProperty s_propTypeName = new("type", typeof(string), string.Empty, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsTypeStringTransformationRequired); 10protected static readonly ConfigurationProperty s_propInitData = new("initializeData", typeof(string), string.Empty, ConfigurationPropertyOptions.None);
System.Console (9)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
41return username ?? string.Empty; 55return username ?? string.Empty;
System\IO\StdInReader.cs (2)
215s_clearToEol ??= ConsolePal.TerminalFormatStringsInstance.ClrEol ?? string.Empty; 227s_moveLeftString = !string.IsNullOrEmpty(moveLeft) ? moveLeft + " " + moveLeft : string.Empty;
System\TerminalFormatStrings.cs (2)
193return string.Empty; 220return string.Empty;
System\TermInfo.cs (3)
362return string.Empty; 424public FormatParam(string? value) : this(0, value ?? string.Empty) { } 451public string String { get { return _string ?? string.Empty; } }
System.Data.Common (179)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
107return connectionString ?? string.Empty;
src\runtime\src\libraries\Common\src\System\Data\Common\MultipartIdentifier.cs (2)
56ary[position] = string.Empty; 99parsedNames[stringCount] = string.Empty;
System\Data\ColumnTypeConverter.cs (1)
77return value != null ? value.ToString() : string.Empty;
System\Data\Common\AdapterUtil.Common.cs (1)
799columnNameArray[i] = string.Empty;
System\Data\Common\DataColumnMapping.cs (2)
34get { return _dataSetColumnName ?? string.Empty; } 54get { return _sourceColumnName ?? string.Empty; }
System\Data\Common\DataTableMapping.cs (2)
66get { return _dataSetTableName ?? string.Empty; } 86get { return _sourceTableName ?? string.Empty; }
System\Data\Common\DBCommandBuilder.cs (11)
329private string? _quotePrefix = string.Empty; 330private string? _quoteSuffix = string.Empty; 463get { return _quotePrefix ?? string.Empty; } 480return (_quoteSuffix ?? string.Empty); 664string? baseServerName = string.Empty; 665string? baseCatalogName = string.Empty; 666string? baseSchemaName = string.Empty; 684serverName = string.Empty; 688catalogName = string.Empty; 692schemaName = string.Empty; 1000string beginNewCondition = string.Empty;
System\Data\Common\DbConnectionStringBuilder.cs (2)
32private string? _connectionString = string.Empty; 287_connectionString = string.Empty;
System\Data\Common\DbConnectionStringBuilderDescriptor.cs (1)
62if ((typeof(string) == PropertyType) && string.Empty.Equals(value))
System\Data\Common\DbDataReader.cs (1)
235return new StringReader(string.Empty);
System\Data\Common\DbProviderFactories.cs (2)
98newRow[NameColumnName] = string.Empty; 99newRow[DescriptionColumnName] = string.Empty;
System\Data\Common\DBSchemaRow.cs (6)
76return string.Empty; 106return string.Empty; 122return string.Empty; 139return string.Empty; 155return string.Empty; 171return string.Empty;
System\Data\Common\ObjectStorage.cs (2)
432retValue = string.Empty; 465return string.Empty;
System\Data\Common\StringStorage.cs (1)
16: base(column, typeof(string), string.Empty, StorageType.String)
System\Data\Constraint.cs (3)
17private string _schemaName = string.Empty; 20internal string _name = string.Empty; 35value ??= string.Empty;
System\Data\DataColumn.cs (8)
69private string _columnPrefix = string.Empty; 139_columnName = columnName ?? string.Empty; 321value ??= string.Empty; 361value ??= string.Empty; 427value ??= string.Empty; 719value ??= string.Empty; 965return string.Empty; 1270internal string? XmlDataType { get; set; } = string.Empty; // The type specified in dt:type attribute
System\Data\DataError.cs (4)
14private string _rowError = string.Empty; 71return string.Empty; 101_rowError = string.Empty; 123errorText = string.Empty;
System\Data\DataException.cs (4)
431string values = string.Empty; 434values += Convert.ToString(keys[i], null) + (i < keys.Length - 1 ? ", " : string.Empty); 443string columnNames = string.Empty; 693public static Exception MissingAttribute(string attribute) => MissingAttribute(string.Empty, attribute);
System\Data\DataRelation.cs (2)
41internal string _relationName = string.Empty; 362value ??= string.Empty;
System\Data\DataRow.cs (1)
91get { return _error == null ? string.Empty : _error.Text; }
System\Data\DataSet.cs (6)
48private string _datasetPrefix = string.Empty; 49internal string _namespaceURI = string.Empty; 66internal string _mainTableName = string.Empty; 786value ??= string.Empty; 813_datasetPrefix = string.Empty; 826value ??= string.Empty;
System\Data\DataTable.cs (9)
71private string _tableName = string.Empty; 73private string _tablePrefix = string.Empty; 263string tempDSNamespace = string.Empty; 1287internal string DisplayExpressionInternal => _displayExpression != null ? _displayExpression.Expression : string.Empty; 1779value ??= string.Empty; 1893return string.Empty; 2070value ??= string.Empty; 6514string CurrentTableNamespace = string.Empty; 6527string qTableName = string.Empty;
System\Data\DataView.cs (9)
32private string _sort = string.Empty; 156Sort ??= string.Empty; 157RowFilter ??= string.Empty; 314value ??= string.Empty; 427value ??= string.Empty; 1047Sort = string.Empty; 1111RowFilter = string.Empty; 1175return string.Empty; 1387propertyName = (null != col) ? col.ColumnName : string.Empty;
System\Data\DataViewManager.cs (2)
88return string.Empty; 279return string.Empty;
System\Data\DataViewSetting.cs (4)
14private string _sort = string.Empty; 15private string _rowFilter = string.Empty; 62value ??= string.Empty; 89value ??= string.Empty;
System\Data\Filter\FunctionNode.cs (1)
444return string.Empty;
System\Data\Filter\NameNode.cs (1)
169string charsToEscape = string.Empty;
System\Data\LinqDataView.cs (2)
92base.RowFilter = string.Empty; // INDEX rebuild twice 239base.Sort = string.Empty;
System\Data\Merger.cs (1)
496dest.ConstraintName = string.Empty;
System\Data\SimpleType.cs (10)
18private string? _name = string.Empty; 22private string? _pattern = string.Empty; 23private string _ns = string.Empty; // my ns 25private string? _maxExclusive = string.Empty; 26private string? _maxInclusive = string.Empty; 27private string? _minExclusive = string.Empty; 28private string? _minInclusive = string.Empty; 30internal string? _enumeration = string.Empty; 335return string.Empty; 353_ns = string.Empty;
System\Data\XDRSchema.cs (12)
22_schemaUri = string.Empty; 23_schemaName = string.Empty; 39_schemaUri = string.Empty; 387instanceName = string.Empty; 405strType = string.Empty; 414strType = string.Empty; 419strType = string.Empty; 426strType = string.Empty; 432strType = string.Empty; 438strType = string.Empty; 460column.Namespace = (isAttribute) ? string.Empty : _schemaUri; 552string typeName = string.Empty;
System\Data\XmlDataLoader.cs (4)
166return value ?? string.Empty; 197return value ?? string.Empty; 892string diffId = string.Empty; // Diffgram ID string 1149string text = string.Empty; // Column text. Assume empty string
System\Data\XMLDiffLoader.cs (1)
447column[record] = string.Empty;
System\Data\xmlsaver.cs (10)
276return string.Empty; 1639generatedname = string.Empty; 1879root.SetAttribute(Keywords.XSD_NILLABLE, string.Empty, Keywords.TRUE); 1989string xpathprefix = (_ds != null) ? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : string.Empty) : string.Empty; 1993xpathprefix = table.Namespace.Length != 0 ? (string)_prefixes[table.Namespace]! + ':' : string.Empty; 2441string prefix = (table.Namespace.Length != 0) ? table.Prefix : string.Empty; 2460string columnPrefix = (column.Namespace.Length != 0) ? column.Prefix : string.Empty; 2520string tablePrefix = (table.Namespace.Length != 0) ? table.Prefix : string.Empty; 2563string colPrefix = (col.Namespace.Length != 0) ? col.Prefix : string.Empty;
System\Data\XMLSchema.cs (5)
676ds._namespaceURI = ns ?? string.Empty; // see fx\Data\XDO\ReadXml\SchemaM2.xml for more info 2207strType = string.Empty; 2373strType = string.Empty; 2504column.Namespace = string.Empty; 2515column.Namespace = string.Empty;
System\Data\XmlToDatasetMap.cs (3)
43private readonly XmlNodeIdentety _id = new XmlNodeIdentety(string.Empty, string.Empty); 82_id.NamespaceURI = string.Empty;
System\Xml\DataDocumentXPathNavigator.cs (2)
74return string.Empty; //other type of nodes can't have attributes 78return _temp.MoveToAttribute(localName, namespaceURI) ? _temp.Value! : string.Empty;
System\Xml\DataPointer.cs (9)
409return string.Empty; 417return string.Empty; 424return string.Empty; 441return string.Empty; 449return string.Empty; 466return string.Empty; 475return string.Empty; 539return string.Empty; 547return string.Empty;
System\Xml\RegionIterator.cs (2)
174return string.Empty; 200return value ?? string.Empty;
System\Xml\XmlDataDocument.cs (8)
348prefix ??= string.Empty; 349namespaceURI ??= string.Empty; 467docelem = new XmlBoundElement(string.Empty, docElemName, DataSet.Namespace ?? string.Empty, this); 689newNode = new XmlBoundElement(string.Empty, col.EncodedColumnName, col.Namespace, this); 1360XmlBoundElement rowElement = new XmlBoundElement(string.Empty, table.EncodedTableName, table.Namespace, this); 1453value = string.Empty; 1553var newElem = new XmlBoundElement(string.Empty, col.EncodedColumnName, col.Namespace, this);
System\Xml\XPathNodePointer.cs (21)
186return string.Empty; 192return string.Empty; 195return string.Empty; 199return string.Empty; 215return string.Empty; 223return string.Empty; 229return string.Empty; 233return string.Empty; 251return string.Empty; 258return string.Empty; 262return string.Empty; 270return string.Empty; 286return string.Empty; 291return string.Empty; 294return string.Empty; 350return string.Empty; 360return string.Empty; 372return string.Empty; 384return string.Empty; 428return string.Empty; 1394return string.Empty;
System.Data.Odbc (19)
Common\System\Data\ProviderBase\DbConnectionPoolIdentity.cs (1)
8public static readonly DbConnectionPoolIdentity NoIdentity = new DbConnectionPoolIdentity(string.Empty, false, true);
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
107return connectionString ?? string.Empty;
src\runtime\src\libraries\Common\src\System\Data\Common\MultipartIdentifier.cs (2)
56ary[position] = string.Empty; 99parsedNames[stringCount] = string.Empty;
System\Data\Odbc\OdbcCommand.cs (1)
163return _commandText ?? string.Empty;
System\Data\Odbc\OdbcConnection.cs (4)
99return string.Empty; 118return string.Empty; 215return string.Empty; 347return new OdbcCommand(string.Empty, this);
System\Data\Odbc\OdbcDataReader.cs (2)
2475string columnname = string.Empty; 2477string currentindexname = string.Empty;
System\Data\Odbc\OdbcError.cs (2)
28return _message ?? string.Empty; 52return _source ?? string.Empty;
System\Data\Odbc\OdbcHandle.cs (2)
195sqlState = string.Empty; 215sqlState = string.Empty;
System\Data\Odbc\OdbcParameter.cs (1)
228return _parameterName ?? string.Empty;
System\Data\Odbc\OdbcParameterHelper.cs (1)
142return _sourceColumn ?? string.Empty;
System\Data\Odbc\OdbcUtils.cs (2)
399return string.Empty; 451return (_token.Length > 0) ? _token.ToString() : string.Empty;
System.Data.OleDb (23)
DbParameterHelper.cs (1)
137return _sourceColumn ?? string.Empty;
DbPropSet.cs (1)
102string message = string.Empty;
OleDbCommand.cs (2)
116return _commandText ?? string.Empty; 1037return string.Empty;
OleDbConnection.cs (5)
101object? value = (null != constr) ? constr.InitialCatalog : string.Empty; 119value = (null != constr) ? constr.InitialCatalog : string.Empty; 134object? value = (null != constr) ? constr.DataSource : string.Empty; 148value = (null != constr) ? constr.DataSource : string.Empty; 179return constr?.ConvertValueToString(ODB.Provider, null) ?? string.Empty;
OleDbConnectionString.cs (4)
133get { return base.ConvertValueToString(KEY.Data_Source, string.Empty)!; } 138get { return base.ConvertValueToString(KEY.Initial_Catalog, string.Empty)!; } 379progid = ConvertValueToString(KEY.Provider, string.Empty)!.Trim(); 391string? classid = (string?)ADP.ClassesRootRegistryValue(progid + "\\CLSID", string.Empty);
OleDbDataAdapter.cs (2)
265string message = string.Empty; 428string message = string.Empty;
OleDbError.cs (3)
95return this.message ?? string.Empty; 111return this.source ?? string.Empty; 119return this.sqlState ?? string.Empty;
OleDbParameter.cs (1)
169return _parameterName ?? string.Empty;
src\runtime\src\libraries\Common\src\System\Data\Common\MultipartIdentifier.cs (2)
56ary[position] = string.Empty; 99parsedNames[stringCount] = string.Empty;
System\Data\Common\AdapterUtil.cs (1)
1133string filename = (string)ADP.ClassesRootRegistryValue(System.Data.OleDb.ODB.DataLinks_CLSID, string.Empty)!;
System\Data\ProviderBase\DbConnectionPoolIdentity.cs (1)
23public static readonly DbConnectionPoolIdentity NoIdentity = new DbConnectionPoolIdentity(string.Empty, false, true);
System.Diagnostics.DiagnosticSource (15)
System\Diagnostics\Activity.cs (3)
67private static readonly ActivitySource s_defaultSource = new ActivitySource(string.Empty); 474OperationName = operationName ?? string.Empty; 1937return string.Empty;
System\Diagnostics\ActivityEvent.cs (2)
36Name = name ?? string.Empty; 50Name = name ?? string.Empty;
System\Diagnostics\ActivitySourceOptions.cs (1)
36public string? Version { get; set; } = string.Empty;
System\Diagnostics\DiagnosticListener.cs (1)
210return Name ?? string.Empty;
System\Diagnostics\DsesFilterAndTransform.cs (2)
902return string.Empty; 912return firstString ?? string.Empty;
System\Diagnostics\Helpers.cs (3)
17return string.Empty; 42return string.Empty; 58obj is null ? string.Empty : RuntimeHelpers.GetHashCode(obj).ToString(CultureInfo.InvariantCulture);
System\Diagnostics\Metrics\MetricsEventSource.cs (3)
394_sessionId = string.Empty; 462_sessionId = string.Empty; 684string sessionId = string.Empty;
System.Diagnostics.EventLog (23)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
140if (installRoot != null && installRoot != string.Empty)
System\Diagnostics\EventLog.cs (9)
33public EventLog() : this(string.Empty, ".", string.Empty) 37public EventLog(string logName) : this(logName, ".", string.Empty) 41public EventLog(string logName, string machineName) : this(logName, machineName, string.Empty) 751return string.Empty; 1017using (EventLogInternal log = new EventLogInternal(string.Empty, ".", CheckAndNormalizeSourceName(source), parent: null)) 1040using (EventLogInternal log = new EventLogInternal(string.Empty, ".", CheckAndNormalizeSourceName(source), parent: null)) 1048using (EventLogInternal log = new EventLogInternal(string.Empty, ".", CheckAndNormalizeSourceName(source), parent: null)) 1057source ??= string.Empty;
System\Diagnostics\EventLogEntry.cs (1)
293return string.Empty;
System\Diagnostics\EventLogInternal.cs (3)
421handleOwner: new EventLogInternal(compLogName, compMachineName, string.Empty, parent: null), 1349strings[i] = values[i]?.ToString() ?? string.Empty; 1365string s = strings[i] ??= string.Empty;
System\Diagnostics\EventLogTraceListener.cs (1)
20: base(eventLog != null ? eventLog.Source : string.Empty)
System\Diagnostics\Reader\NativeWrapper.cs (8)
318return string.Empty; 519return string.Empty; 724return string.Empty; 755return string.Empty; 980return string.Empty; 1122return string.Empty; 1259return string.Empty; 1267return string.Empty;
System.Diagnostics.FileVersionInfo (7)
System\Diagnostics\FileVersionInfo.Unix.cs (7)
104_companyName = string.Empty; 105_comments = string.Empty; 107_fileVersion = string.Empty; 109_legalTrademarks = string.Empty; 110_productName = string.Empty; 111_privateBuild = string.Empty; 112_specialBuild = string.Empty;
System.Diagnostics.PerformanceCounter (14)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
140if (installRoot != null && installRoot != string.Empty)
System\Diagnostics\CounterCreationData.cs (2)
14private string _counterName = string.Empty; 15private string _counterHelp = string.Empty;
System\Diagnostics\PerformanceCounter.cs (3)
61_categoryName = string.Empty; 62_counterName = string.Empty; 63_instanceName = string.Empty;
System\Diagnostics\PerformanceCounterCategory.cs (1)
352h.Add(counterData[i].CounterName, string.Empty);
System\Diagnostics\PerformanceCounterLib.cs (7)
115s_computerName ??= Interop.Kernel32.GetComputerName() ?? string.Empty; 403string counterName = (string)NameTable[counterIndex] ?? string.Empty; 886if (counterName != null && counterName != string.Empty) 949string counterName = (string)NameTable[counterIndex] ?? string.Empty; 963return string.Empty; 1087string nameString = names[(index * 2) + 1] ?? string.Empty; 1651if (name != null && name != string.Empty)
System.Diagnostics.Process (15)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (1)
374if (verb != string.Empty &&
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
41return username ?? string.Empty; 55return username ?? string.Empty;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
57format = string.Empty;
System\Diagnostics\Process.Unix.cs (1)
521public string MainWindowTitle => string.Empty;
System\Diagnostics\ProcessInfo.cs (1)
18internal string ProcessName { get; set; } = string.Empty;
System\Diagnostics\ProcessManager.Linux.cs (1)
114ProcessName = processName ?? Process.GetUntruncatedProcessName(procPid, ref procFsStat) ?? string.Empty,
System\Diagnostics\ProcessOutputLine.cs (3)
40/// Returns the text content of the output line, or <see cref="string.Empty"/> if the struct was default-initialized. 42/// <returns>The value of <see cref="Content"/>, or <see cref="string.Empty"/> if <see cref="Content"/> is <see langword="null"/>.</returns> 43public override string ToString() => Content ?? string.Empty;
System\Diagnostics\ProcessStartInfo.cs (5)
80get => _arguments ?? string.Empty; 335get => _fileName ?? string.Empty; 348get => _directory ?? string.Empty; 371get => _userName ?? string.Empty; 379get => _verb ?? string.Empty;
System.Diagnostics.TextWriterTraceListener (4)
System\Diagnostics\TextWriterTraceListener.cs (2)
33: this(stream, string.Empty) 54: this(writer, string.Empty)
System\Diagnostics\XmlWriterTraceListener.cs (2)
70message ??= string.Empty; 255processName = string.Empty;
System.Diagnostics.TraceSource (15)
System\Diagnostics\DefaultTraceListener.cs (1)
146message ??= string.Empty;
System\Diagnostics\DiagnosticsConfiguration.cs (1)
22internal static string LogFileName => string.Empty; // the default
System\Diagnostics\SourceSwitch.cs (2)
11public SourceSwitch(string name) : base(name, string.Empty) { } 14: base(displayName, string.Empty, defaultSwitchValue)
System\Diagnostics\Switch.cs (3)
26private volatile string? _switchValueString = string.Empty; 48_displayName = displayName ?? string.Empty; 104return _description ?? string.Empty;
System\Diagnostics\TraceInternal.cs (2)
83internal static string AppName => field ??= Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty; 200Fail(string.Empty);
System\Diagnostics\TraceListener.cs (6)
230Write(category + ": " + (message ?? string.Empty)); 303WriteLine(category + ": " + (message ?? string.Empty)); 330string? datastring = string.Empty; 345WriteLine(data != null ? string.Join(", ", data) : string.Empty); 352TraceEvent(eventCache, source, eventType, id, string.Empty); 415WriteLine(string.Empty);
System.DirectoryServices (2)
Interop\AdsValueHelper2.cs (1)
166string strValue = Marshal.PtrToStringUni(dns.pszStringValue) ?? string.Empty;
System\DirectoryServices\DirectoryVirtualListView.cs (1)
131set => _target = value ?? string.Empty;
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\common\DirectoryRequest.cs (1)
326public DsmlAuthRequest() => Principal = string.Empty;
System.Drawing.Primitives (1)
System\Drawing\ColorTranslator.cs (1)
290string colorString = string.Empty;
System.Formats.Tar (17)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
41return username ?? string.Empty; 55return username ?? string.Empty;
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
27(true, false) => string.Empty,
System\Formats\Tar\PaxTarEntry.cs (2)
40_header._prefix = string.Empty; 71_header._prefix = string.Empty;
System\Formats\Tar\PosixTarEntry.cs (6)
25_header._uName = string.Empty; 26_header._gName = string.Empty; 44_header._uName ??= string.Empty; 45_header._gName ??= string.Empty; 109get => _header._gName ?? string.Empty; 125get => _header._uName ?? string.Empty;
System\Formats\Tar\TarEntry.cs (1)
132get => _header._linkName ?? string.Empty;
System\Formats\Tar\TarHeader.cs (2)
171_ => string.Empty, 178_ => string.Empty,
System\Formats\Tar\TarWriter.Unix.cs (1)
112entry.LinkName = info.LinkTarget ?? string.Empty;
System\Formats\Tar\UstarTarEntry.cs (2)
35_header._prefix = string.Empty; 53_header._prefix = string.Empty;
System.IO.Compression (3)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
451public unsafe string GetErrorMessage() => Utf8StringMarshaller.ConvertToManaged(_zStream.msg) ?? string.Empty;
System\IO\Compression\DeflateZLib\ZLibException.cs (2)
16private readonly string? _zlibErrorContext = string.Empty; 17private readonly string? _zlibErrorMessage = string.Empty;
System.IO.Compression.ZipFile (27)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Windows.cs (1)
69string.Empty;
System\IO\Compression\ZipFile.Create.Async.cs (3)
356/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 384/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 415/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Create.cs (3)
333/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 359/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 387/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Extract.Async.cs (10)
291/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 295/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 323/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 327/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 361/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 367/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 402/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 408/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 458/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 464/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Extract.cs (10)
264/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 268/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 293/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 297/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 328/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 334/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 366/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 372/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 414/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 420/// <exception cref="IOException">The name of an entry in the archive is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
57format = string.Empty;
System.IO.FileSystem.Watcher (3)
System\IO\FileSystemWatcher.cs (2)
78_directory = string.Empty; 239value ??= string.Empty;
System\IO\FileSystemWatcher.Linux.cs (1)
926string.Empty;
System.IO.Packaging (12)
System\IO\Packaging\ContentType.cs (3)
79_contentType = string.Empty; 507private string _type = string.Empty; 508private string _subType = string.Empty;
System\IO\Packaging\PackageRelationship.cs (1)
145Debug.Assert(relationshipType.Trim() != string.Empty,
System\IO\Packaging\PackageRelationshipCollection.cs (1)
90Debug.Assert(filter.Trim() != string.Empty,
System\IO\Packaging\PackUriHelper.cs (2)
375partUriString = string.Empty; 548return string.Empty;
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (1)
311if (packageUri.Fragment != string.Empty)
System\IO\Packaging\PartBasedPackageProperties.cs (2)
639return string.Empty; 643return string.Empty;
System\IO\Packaging\XmlCompatibilityReader.cs (1)
624return LookupNamespace(string.Empty);
System\IO\Packaging\ZipPackagePartPiece.cs (1)
145string newPieceFileName = FormattableString.Invariant($"{prefixName}/[{pieceNumber:D}]{(isLastPiece ? ".last" : string.Empty)}.piece");
System.IO.Pipes (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
41return username ?? string.Empty; 55return username ?? string.Empty;
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
68return string.Empty;
System.Management (74)
System\Management\ManagementBaseObject.cs (6)
436classPath.Server = string.Empty; 437classPath.NamespacePath = string.Empty; 438classPath.ClassName = string.Empty; 712localHash = string.Empty.GetHashCode(); 717localHash = string.Empty.GetHashCode(); 780return string.Empty;
System\Management\ManagementDateTime.cs (2)
235string UtcString = string.Empty; 340string tempString = string.Empty;
System\Management\ManagementEventArgs.cs (1)
254return message ?? string.Empty;
System\Management\ManagementObject.cs (4)
381string nsPath = string.Empty; 706classPath.Server = string.Empty; 707classPath.NamespacePath = string.Empty; 708classPath.ClassName = string.Empty;
System\Management\ManagementOptions.cs (2)
1295get { return locale ?? string.Empty; } 1443get { return authority ?? string.Empty; }
System\Management\ManagementPath.cs (7)
298string pathStr = string.Empty; 501string pathStr = string.Empty; 572string newPath = string.Empty; 604string pathStr = string.Empty; 798string pathStr = string.Empty; 908string pathStr = string.Empty; 923pathStr = string.Empty;
System\Management\ManagementQuery.cs (23)
76get { return queryString ?? string.Empty; } 98get { return queryLanguage ?? string.Empty; } 846get { return className ?? string.Empty; } 865get { return condition ?? string.Empty; } 918SetQueryString(string.Empty); 1085condition = string.Empty; 1401get { return sourceObject ?? string.Empty; } 1429get { return relatedClass ?? string.Empty; } 1457get { return relationshipClass ?? string.Empty; } 1475get { return relatedQualifier ?? string.Empty; } 1493get { return relationshipQualifier ?? string.Empty; } 1511get { return relatedRole ?? string.Empty; } 1528get { return thisRole ?? string.Empty; } 1561SetQueryString(string.Empty); 2011get { return sourceObject ?? string.Empty; } 2029get { return relationshipClass ?? string.Empty; } 2047get { return relationshipQualifier ?? string.Empty; } 2065get { return thisRole ?? string.Empty; } 2096SetQueryString(string.Empty); 2759get { return eventClassName ?? string.Empty; } 2793get { return condition ?? string.Empty; } 2950get { return havingCondition ?? string.Empty; } 2964SetQueryString(string.Empty);
System\Management\Method.cs (1)
221className = string.Empty; // Interpret as an unspecified property - return ""
System\Management\Property.cs (1)
234className = string.Empty; // Interpret as an unspecified property - return ""
System\Management\WMIGenerator.cs (27)
49private string OriginalServer = string.Empty; 50private string OriginalNamespace = string.Empty; 51private string OriginalClassName = string.Empty; 52private readonly string OriginalPath = string.Empty; 55private string NETNamespace = string.Empty; 56private string arrConvFuncName = string.Empty; 57private string enumType = string.Empty; 68private readonly string genFileName = string.Empty; 561OriginalNamespace = string.Empty; 840string strClass = string.Empty; 841string strNs = string.Empty; 1178string IsValidPropName = string.Empty; 1584string description = string.Empty; 4757string strRet = string.Empty; 4759string strToAdd = string.Empty; 4763return string.Empty; 4811string strToAdd = string.Empty; 5044strTemp = string.Empty; 5067string retFunctionName = string.Empty; 5216string retFunctionName = string.Empty; 5217enumType = string.Empty; 6100cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6101cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6102cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6103cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6110cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6123cc.Comments.Add(new CodeCommentStatement(string.Empty));
System.Net.Http (25)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncoder.cs (1)
230return EncodeValueString(string.Empty, valueEncoding: null, buffer, out length);
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
20return string.Empty;
System\Net\Http\Headers\HeaderDescriptor.cs (1)
138return string.Empty;
System\Net\Http\Headers\HeaderStringValues.cs (1)
49_ => string.Empty,
System\Net\Http\Headers\HttpHeaders.cs (9)
133AddParsedValue(info, value ?? string.Empty); 169value ??= string.Empty; 239rawValues.Add(valuesList[i] ?? string.Empty); 245storeValueRef = valuesList[0] ?? string.Empty; 253TryAddWithoutValidation(descriptor, value ?? string.Empty); 383return string.Empty; 942AddInvalidValue(info, value ?? string.Empty); 960AddInvalidValue(info, value ?? string.Empty); 1010AddInvalidValue(info, value ?? string.Empty);
System\Net\Http\Headers\HttpRequestHeaders.cs (2)
95if (value == string.Empty) 112if (value == string.Empty)
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
118return _mediaType ?? string.Empty;
System\Net\Http\HttpContent.cs (1)
117return string.Empty;
System\Net\Http\MultipartContent.cs (1)
324string delim = string.Empty;
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (2)
150string content = request.Content == null ? string.Empty : await request.Content.ReadAsStringAsync().ConfigureAwait(false); 403if (value == string.Empty &&
System\Net\Http\SocketsHttpHandler\CurrentUserIdentityProvider.Unix.cs (1)
10return string.Empty;
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1607if (cookiesFromContainer != string.Empty)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
723if (cookiesFromContainer != string.Empty)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1106response.SetReasonPhraseWithoutValidation(string.Empty);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
564return defaultCredentialsUsed ? CurrentUserIdentityProvider.GetIdentity() : string.Empty;
System.Net.Http.WinHttpHandler (2)
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
20return string.Empty;
System\Net\Http\WinHttpResponseParser.cs (1)
58string.Empty;
System.Net.HttpListener (17)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (11)
61_value = string.Empty; 137string tokenString = string.Empty; 425_name = string.Empty; 430_value = string.Empty; 657InternalSetNameMethod(cookie!, string.Empty); 673InternalSetNameMethod(cookie!, string.Empty); 697InternalSetNameMethod(cookie!, string.Empty); 715InternalSetNameMethod(cookie!, string.Empty); 749cookie!.Port = string.Empty; 817InternalSetNameMethod(cookie!, string.Empty); 844cookie!.Port = string.Empty;
System\Net\HttpListenerRequest.cs (2)
399strings[0] = string.Empty; 528return string.Empty;
System\Net\HttpListenerRequestUriBuilder.cs (1)
58_cookedUriQuery = cookedUriQuery ?? string.Empty;
System\Net\HttpListenerResponse.cs (1)
151return _statusDescription ??= HttpStatusDescription.Get(StatusCode) ?? string.Empty;
System\Net\ServiceNameStore.cs (1)
281string machineName = Dns.GetHostEntry(string.Empty).HostName;
System\Net\WebSockets\HttpWebSocket.cs (1)
34acceptProtocol = string.Empty;
System.Net.Mail (20)
System\Net\Mail\AlternateView.cs (1)
66a.SetContentFromString(content, null, string.Empty);
System\Net\Mail\Attachment.cs (4)
22SetContentFromFile(fileName, string.Empty); 389if (_name != null && _name != string.Empty) 406if (_name != null && _name != string.Empty) 416a.SetContentFromString(content, null, string.Empty);
System\Net\Mail\LinkedResource.cs (1)
55a.SetContentFromString(content, null, string.Empty);
System\Net\Mail\MailAddress.cs (1)
133displayName ??= string.Empty;
System\Net\Mail\MailAddressParser.cs (1)
175displayName = string.Empty;
System\Net\Mail\MailBnfHelper.cs (1)
227return string.Empty;
System\Net\Mail\MailMessage.cs (5)
30private string? _body = string.Empty; 174return _message.Subject ?? string.Empty; 219return _body ?? string.Empty; 342_bodyView = AlternateView.CreateAlternateViewFromString(string.Empty); 480return string.Empty;
System\Net\Mail\SmtpTransport.cs (1)
156string to = smtpAddress + (_connection!.DSNEnabled ? deliveryNotify : string.Empty);
System\Net\Mime\ContentType.cs (1)
128if (value == null || value == string.Empty)
System\Net\Mime\MimeBasePart.cs (2)
50return string.Empty; 194decodedValue = string.Empty;
System\Net\Mime\MimePart.cs (2)
123if (mimeType != null && mimeType != string.Empty) 127if (name != null && name != string.Empty)
System.Net.NameResolution (3)
System\Net\Dns.cs (3)
21NameResolutionActivity activity = NameResolutionTelemetry.Log.BeforeResolution(string.Empty); 28catch (Exception ex) when (LogFailure(string.Empty, activity, ex)) 34NameResolutionTelemetry.Log.AfterResolution(string.Empty, activity, answer: name);
System.Net.NetworkInformation (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
38return string.Empty;
System\Net\NetworkInformation\StringParsingHelpers.Dns.cs (1)
29return rcr.TryGetNextValue("search", out string? dnsSuffix) ? dnsSuffix : string.Empty;
System.Net.Primitives (43)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
38return string.Empty;
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (11)
61_value = string.Empty; 137string tokenString = string.Empty; 425_name = string.Empty; 430_value = string.Empty; 657InternalSetNameMethod(cookie!, string.Empty); 673InternalSetNameMethod(cookie!, string.Empty); 697InternalSetNameMethod(cookie!, string.Empty); 715InternalSetNameMethod(cookie!, string.Empty); 749cookie!.Port = string.Empty; 817InternalSetNameMethod(cookie!, string.Empty); 844cookie!.Port = string.Empty;
System\Net\Cookie.cs (12)
50private string m_comment = string.Empty; // Do not rename (binary serialization) 54private string m_domain = string.Empty; // Do not rename (binary serialization) 57private string m_name = string.Empty; // Do not rename (binary serialization) 58private string m_path = string.Empty; // Do not rename (binary serialization) 60private string m_port = string.Empty; // Do not rename (binary serialization) 67private string m_value = string.Empty; // Do not rename (binary serialization) 129m_comment = value ?? string.Empty; 180SetDomainAndKey(value ?? string.Empty); 246m_name = string.Empty; 262m_path = value ?? string.Empty; 507m_port = string.Empty; 583m_value = value ?? string.Empty;
System\Net\CookieContainer.cs (5)
84private readonly string m_fqdnMyDomain = string.Empty; 837optCookie2 = string.Empty; 838return string.Empty; 841string delimiter = string.Empty; 856Cookie.MaxSupportedVersionString) : string.Empty;
System\Net\CredentialCache.cs (3)
343base(string.Empty, string.Empty, string.Empty)
System\Net\NetworkCredential.cs (11)
19private string _userName = string.Empty; 23: this(string.Empty, string.Empty, string.Empty) 34: this(userName, password, string.Empty) 53: this(userName, password, string.Empty) 74set { _userName = value ?? string.Empty; } 92return (string?)_password ?? string.Empty; 135set { _domain = value ?? string.Empty; } 158return string.Empty; 162string result = string.Empty;
System.Net.Quic (6)
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
22return string.Empty;
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
45authenticationOptions.TargetHost ?? string.Empty,
System\Net\Quic\Internal\MsQuicExtensions.cs (3)
22_ => string.Empty 67_ => string.Empty 92_ => string.Empty
System\Net\Quic\QuicConnection.cs (1)
467targetHost = string.Empty;
System.Net.Requests (24)
src\runtime\src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (1)
44return string.Empty;
System\Net\Cache\HttpRequestCachePolicy.cs (4)
96(_maxAge == TimeSpan.MaxValue ? string.Empty : " MaxAge:" + _maxAge.ToString()) + 97(_minFresh == TimeSpan.MinValue ? string.Empty : " MinFresh:" + _minFresh.ToString()) + 98(_maxStale == TimeSpan.MinValue ? string.Empty : " MaxStale:" + _maxStale.ToString()) + 99(CacheSyncDate == DateTime.MinValue ? string.Empty : " CacheSyncDate:" + CacheSyncDate.ToString(CultureInfo.CurrentCulture));
System\Net\CommandStream.cs (4)
161_abortReason = string.Empty; 318if (_abortReason != string.Empty) 470private string _buffer = string.Empty; 579_buffer = string.Empty;
System\Net\FtpControlStream.cs (8)
40private string _currentTypeSetting = string.Empty; 503_currentTypeSetting = string.Empty; 514string domainUserName = string.Empty; 515string password = string.Empty; 629? string.Empty : requestDirectory + "/"; 645commandList.Add(new PipelineEntry(FormatFtpCommand(request.Method, string.Empty), flags)); 795filename = string.Empty; 1050return string.Empty;
System\Net\FtpWebRequest.cs (1)
226private static readonly NetworkCredential s_defaultFtpNetworkCredential = new NetworkCredential("anonymous", "anonymous@", string.Empty);
System\Net\HttpWebResponse.cs (6)
107return string.Empty; 122return string.Empty; 174return string.IsNullOrEmpty(server) ? string.Empty : server; 255return _httpResponseMessage.ReasonPhrase ?? string.Empty; 272_characterSet = string.Empty; 359return headerValue ?? string.Empty;
System.Net.Security (21)
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
22return string.Empty;
System\Net\NegotiateAuthenticationPal.Unix.cs (3)
160GenericIdentity result = new GenericIdentity(name ?? string.Empty, protocol); 302_credentialsHandle = SafeGssCredHandle.Create(string.Empty, string.Empty, _packageType);
System\Net\Security\NegotiateAuthentication.cs (1)
207return new GenericIdentity(TargetName ?? string.Empty, Package);
System\Net\Security\NegotiateStream.cs (5)
103BeginAuthenticateAsClient((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, 138ValidateCreateContext(DefaultPackage, credential, string.Empty, policy, requiredProtectionLevel, requiredImpersonationLevel); 161AuthenticateAsClient((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 181AuthenticateAsClientAsync((NetworkCredential)CredentialCache.DefaultCredentials, binding: null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 215ValidateCreateContext(DefaultPackage, credential, string.Empty, policy, requiredProtectionLevel, requiredImpersonationLevel);
System\Net\Security\NetSecurityTelemetry.cs (2)
261arg2 ??= string.Empty; 288arg3 ??= string.Empty;
System\Net\Security\SslApplicationProtocol.cs (1)
82arr is null ? string.Empty :
System\Net\Security\SslAuthenticationOptions.cs (3)
34TargetHost = string.Empty; 70TargetHost = sslClientAuthenticationOptions.TargetHost ?? string.Empty; 97TargetHost = string.Empty;
System\Net\Security\SslStream.Protocol.cs (1)
691localCertificate = _sslAuthenticationOptions.CertSelectionDelegate(this, string.Empty, tempCollection, null, Array.Empty<string>());
System\Net\Security\TlsSession.cs (4)
71private string _sessionTargetHost = string.Empty; 246_sessionTargetHost = value ?? string.Empty; 250_options.TargetHost = value ?? string.Empty; 1693return new SslClientHelloInfo(frameInfo.TargetName ?? string.Empty, frameInfo.SupportedVersions);
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseParser_1.cs (1)
395public string LastEventId { get; private set; } = string.Empty; // Spec: "must be initialized to the empty string"
System.Net.Sockets (1)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
94_path = string.Empty;
System.Net.WebHeaderCollection (2)
src\runtime\src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (1)
44return string.Empty;
System\Net\HeaderInfoTable.cs (1)
15private static readonly HeaderInfo s_unknownHeaderInfo = new HeaderInfo(string.Empty, false, false, false, s_singleParser);
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
325password = string.Empty;
System.Net.WebSockets (5)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
451public unsafe string GetErrorMessage() => Utf8StringMarshaller.ConvertToManaged(_zStream.msg) ?? string.Empty;
System\Net\WebSockets\ManagedWebSocket.cs (2)
1095string closeStatusDescription = string.Empty; 1310await CloseOutputAsyncCore(closeStatus, string.Empty, enterReceiveMutex: false, cancellationToken: default).ConfigureAwait(false);
System\Net\WebSockets\NetEventSource.WebSockets.cs (1)
94Log.WsTrace(IdOf(obj), memberName ?? MissingMember, message ?? memberName ?? string.Empty);
System\Net\WebSockets\WebSocket.cs (1)
92string validStatesText = string.Empty;
System.ObjectModel (1)
System\ComponentModel\TypeConverterAttribute.cs (1)
27ConverterTypeName = string.Empty;
System.Private.CoreLib (205)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
68value = string.Empty;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
41return username ?? string.Empty; 55return username ?? string.Empty;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetUnixVersion.cs (1)
37return string.Empty;
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
1025ArgumentOutOfRangeException.ThrowIfNegative(groupSizeCount | bufferSize, string.Empty); // If we overflow
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (3)
133if (attributeName == string.Empty) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 369tokenString = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.AnyOS.cs (1)
30return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (1)
862return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (4)
1880return value == null ? string.Empty : value.ToString(); 2351return string.Empty; 2801return string.Empty; 2896return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\DBNull.cs (2)
29return string.Empty; 34return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (6)
84Assert(condition, string.Empty, string.Empty); 88Assert(condition, message, string.Empty); 129Fail(message, string.Empty); 313string.Empty; 408string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
50WriteCore(string.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (1)
55string paramName = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3333string msg = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (3)
724keyword = string.Empty; 729keyword = string.Empty; 799return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (1)
147value ??= string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Empty.cs (1)
16return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (2)
24string path = GetSpecialFolder(folder) ?? string.Empty; 39return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.cs (5)
85"July", "August", "September", "October", "November", "December", string.Empty ]; // month names 87"Jul", "Aug", "Sep", "Oct", "Nov", "Dec", string.Empty ]; // abbreviated month names 115this.sNativeName ??= string.Empty; // Calendar Name for the locale. 144this.sNativeName = string.Empty; 228this.saEraNames = [string.Empty];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
381callbackContext.Results.Add(string.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (6)
120source = string.Empty; 210string1 = string.Empty; 215string2 = string.Empty; 266lpStringSource = string.Empty; 433source = string.Empty; 488source = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
919internal string Name => _sName ?? string.Empty; 2104return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (2)
247return string.Empty; 326return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
186return GetLocaleInfoEx(localeName, lctype) ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
539public virtual string Name => _nonSortName ??= (_cultureData.Name ?? string.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (2)
23return string.Empty; 69return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (1)
44return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
21public StringInfo() : this(string.Empty)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (2)
309return string.Empty; 417return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (3)
536x._literals[0] = isNegative ? "-" : string.Empty; 541x._literals[5] = string.Empty; 561_literals[i] = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
256return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (2)
60return string.Empty; 185public override string ToString() => OriginalPath ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (3)
49return string.Empty; 490return path2 ?? string.Empty; 544return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
143return IsPathRooted(path) ? PathInternal.DirectorySeparatorCharAsString : string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
1010retVal = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (1)
104public string ObjectName => _objectName ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
84public string ServicePack => _servicePack ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
684return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
232s_overriddenEntryAssembly = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (4)
251return string.Empty; 292string refName = reference.Name ?? string.Empty; 293string defName = definition.Name ?? string.Empty; 301return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
58public override string Location => string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeParameterInfo.cs (1)
349scope!.GetParameter(token).Name.GetStringOrNull(scope!) ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureFunctionPointerType.cs (1)
63public override string Name => string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
155BaseNameField = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ContractHelper.cs (1)
95Debug.ContractFailure(displayMessage, string.Empty, GetFailureMessage(kind, null));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
1185return progIdAttribute.Value ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\MarshalUsingAttribute.cs (1)
23CountElementName = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.Unix.cs (1)
18errorTracker.TrackErrorMessage(message ?? string.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (3)
692/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="s" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="s" /> is <c>null</c>, <see cref="string.Empty" />, or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 724/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="s" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="s" /> is <c>null</c>, <see cref="string.Empty" />, or is not in a format compliant with <paramref name="style" />, or if <paramref name="style" /> is not a valid combination of <see cref="NumberStyles" /> enumeration constants. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 741/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="s" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="s" /> is <see cref="string.Empty" /> or is not in a format compliant with <paramref name="style" />, or if <paramref name="style" /> is not a valid combination of <see cref="NumberStyles" /> enumeration constants. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\OSPlatform.cs (1)
57return Name ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\LibraryNameVariation.Unix.cs (10)
24yield return new LibraryNameVariation(string.Empty, string.Empty); 40yield return new LibraryNameVariation(string.Empty, string.Empty); 43yield return new LibraryNameVariation(LibraryNamePrefix, string.Empty); 45yield return new LibraryNameVariation(string.Empty, LibraryNameSuffix); 53yield return new LibraryNameVariation(string.Empty, LibraryNameSuffix); 58yield return new LibraryNameVariation(string.Empty, string.Empty); 61yield return new LibraryNameVariation(LibraryNamePrefix, string.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (2)
102_profile = (profile == null) ? string.Empty : profile.Trim(); 135_profile = string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
51if (uniqueValues.Contains(string.Empty)) 53return new SingleStringSearchValuesFallback<SearchValues.FalseConst>(string.Empty, uniqueValues);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (13)
80return Empty; 107return Empty; 129return Empty; 133return Empty; 164return Empty; 190return Empty; 212return Empty; 233return Empty; 271return Empty; 297return Empty; 318return Empty; 341return Empty; 550return Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (40)
80arg0?.ToString() ?? Empty; 104Empty : 105args[0]?.ToString() ?? Empty; 125string toString = value?.ToString() ?? Empty; // We need to handle both the cases when value or value.ToString() is null 139return Empty; 179return Empty; 185return firstValue ?? Empty; 208return Empty; 313return Empty; 330return Empty; 352return Empty; 377return Empty; 416Empty : 417values[0] ?? Empty; 446return Empty; 756/// <see cref="Empty"/> if <paramref name="value"/> has zero elements. 781/// <see cref="Empty"/> if <paramref name="value"/> has zero elements. 825return Empty; 833return firstValue ?? Empty; 870/// <see cref="Empty"/> if <paramref name="values"/> has zero elements. 893/// <see cref="Empty"/> if <paramref name="values"/> has zero elements. 902return Empty; 909return firstString ?? Empty; 960return Empty; 1007return value!.ToString() ?? Empty; 1032return firstString ?? Empty; 1059Empty : 1060values[0] ?? Empty; 1085return Empty; 1193return Empty; 1353newValue ??= Empty; 1531/// is <see cref="Empty"/>, all newline sequences within the string will be removed. 1823return SplitInternal(separator ?? Empty, null, int.MaxValue, options); 1828return SplitInternal(separator ?? Empty, null, count, options); 1975splitStrings[arrIndex] = Empty; 2503return Empty; 2528return Empty; 2615return Empty; 2632return Empty; 2995len == 0 ? Empty :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
749return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (9)
125value ??= string.Empty; 200persistedString ??= string.Empty; 321return string.Empty; 1172separator ??= string.Empty; 1185separator ??= string.Empty; 1196separator ??= string.Empty; 1207separator ??= string.Empty; 1220separator ??= string.Empty; 1807s ??= string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
335if (count == 0) return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
343if (count == 0) return string.Empty; 375throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType().ToString() ?? string.Empty));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
94this.encoderFallback = new EncoderReplacementFallback(string.Empty); 379if (count == 0) return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
698return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
244s ??= string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (1)
858return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (2)
554FrameworkEventSource.Log.ThreadTransferSendObj(this, 1, string.Empty, true, (int)dueTime, (int)period); 708FrameworkEventSource.Log.ThreadTransferReceiveObj(this, 1, string.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (8)
185return _displayName ?? string.Empty; 196return _standardDisplayName ?? string.Empty; 207return _daylightDisplayName ?? string.Empty; 917standardDisplayName ??= string.Empty; 922displayName ?? string.Empty, 973displayName ?? string.Empty, 974standardDisplayName ?? string.Empty, 975daylightDisplayName ?? string.Empty,
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
527throw new SerializationException(SR.Format(SR.Serialization_InvalidEscapeSequence, string.Empty));
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeInitializationException.cs (1)
62public string TypeName => _typeName ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeLoadException.cs (1)
50public string TypeName => _className ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
31info.AddValue("AssemblyName", string.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (8)
386/// it is represented as <see cref="string.Empty"/>. 591/// it is represented as <see cref="string.Empty"/>. 788/// If any field value is <see langword="null"/>, it is represented as <see cref="string.Empty"/>. 1003/// If any field value is <see langword="null"/>, it is represented as <see cref="string.Empty"/>. 1236/// If any field value is <see langword="null"/>, it is represented as <see cref="string.Empty"/>. 1487/// If any field value is <see langword="null"/>, it is represented as <see cref="string.Empty"/>. 1756/// If any field value is <see langword="null"/>, it is represented as <see cref="string.Empty"/>. 2169/// If any field value is <see langword="null"/>, it is represented as <see cref="string.Empty"/>.
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
403rootTypeName._namespace = string.Empty;
System\Diagnostics\Debugger.cs (1)
62if (string.Empty.Length != 0)
System\GC.NativeAot.cs (1)
682configurationDictionary[nameAsString] = dataAsString ?? string.Empty;
System\Reflection\Runtime\General\ThunkedApis.cs (1)
66return System.Runtime.Loader.AssemblyLoadContext.ResolveAssemblyLocation(this, string.Empty);
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (1)
32return thisObject == null ? string.Empty : thisObject.ToString();
System\Reflection\Runtime\MethodInfos\RuntimeDummyMethodInfo.cs (1)
21public sealed override string ToString() => string.Empty;
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeGenericParameterTypeInfo.cs (1)
61return string.Empty;
System\Reflection\Runtime\TypeInfos\RuntimeFunctionPointerTypeInfo.cs (2)
107public override string Name => string.Empty; 108internal override string InternalFullNameOfAssembly => string.Empty;
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
377string result = string.Empty;
System\String.Intern.cs (1)
45internTable.AddOrGetExisting(string.Empty);
System.Private.DataContractSerialization (155)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
38_baseType = string.Empty; 320return string.Empty;
System\Runtime\Serialization\DataContract.cs (7)
99throw new SerializationException(SR.Format(SR.ErrorDeserializing, SR.Format(SR.ErrorTypeInfo, DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), SR.Format(SR.NoSetMethodForProperty, string.Empty, string.Empty))); 1438string arrayOfPrefix = string.Empty; 1543string? clrNs = type.Namespace ?? string.Empty; 1611return new Uri(Globals.DataContractXsdBaseNamespaceUri, clrNs ?? string.Empty).AbsoluteUri; 1709ns = string.Empty; 1733string clrNsInAttribute = nsAttribute.ClrNamespace ?? string.Empty;
System\Runtime\Serialization\DictionaryGlobals.cs (1)
24public static readonly XmlDictionaryString EmptyString = s_dictionary.Add(string.Empty);
System\Runtime\Serialization\ExtensionDataReader.cs (21)
61AddPrefix(string.Empty, string.Empty); 223_value = string.Empty; 305_prefix = string.Empty; 306_ns = string.Empty; 307_localName = string.Empty; 314_prefix = string.Empty; 315_ns = string.Empty; 316_localName = string.Empty; 317_value = string.Empty; 327_prefix = string.Empty; 328_ns = string.Empty; 329_localName = string.Empty; 330_value = string.Empty; 356return string.Empty; 382return string.Empty; 582SetNextElement(member.Value, member.Name, string.Empty, string.Empty); 715_value = (bytes == null) ? string.Empty : Convert.ToBase64String(bytes); 793ns ??= string.Empty; 802prefix = (ns.Length == 0) ? string.Empty : "p" + s_nsToPrefixTable.Count;
System\Runtime\Serialization\Globals.cs (1)
43public static readonly string NewObjectId = string.Empty;
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (6)
18writer.WriteAttributeString(string.Empty, JsonGlobals.typeString, string.Empty, JsonGlobals.arrayString); 21writer.WriteStartElement(JsonGlobals.itemString, string.Empty); 22writer.WriteAttributeString(string.Empty, JsonGlobals.typeString, string.Empty, JsonGlobals.numberString); 32while (actual < count && reader.IsStartElement(JsonGlobals.itemString, string.Empty))
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (3)
539_ilg.Call(_contextArg, XmlFormatGeneratorStatics.GetExistingObjectMethod, objectId, type, name, string.Empty); 571_ilg.Load(string.Empty); 815LocalBuilder pairValue = ReadValue(valueType, string.Empty);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
608string.Empty /* namespace */,
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (5)
37name = ns = string.Empty; 51ns = string.Empty; 82buffer = ByteArrayHelperWithString.Instance.ReadArray(tempDictionaryReader, JsonGlobals.itemString, string.Empty, tempDictionaryReader.Quotas.MaxArrayLength); 86buffer = ByteArrayHelperWithString.Instance.ReadArray(dictionaryReader, JsonGlobals.itemString, string.Empty, dictionaryReader.Quotas.MaxArrayLength); 245while (actual < count && reader.IsStartElement(JsonGlobals.itemString, string.Empty))
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (4)
102return string.Empty; 112return string.Empty; 238object? pairValue = ReflectionReadValue(xmlReader, context, valueType, string.Empty, string.Empty);
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
193ns: string.Empty,
System\Runtime\Serialization\Json\XmlJsonWriter.cs (5)
231return string.Empty; 588throw new XmlException(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString)); 679base.WriteQualifiedName(localName, ns ?? string.Empty); 944text ??= string.Empty; 1198throw new XmlException(SR.Format(SR.JsonMustSpecifyDataType, JsonGlobals.itemString, string.Empty, JsonGlobals.itemString));
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (2)
227name = ns = string.Empty; 241ns = string.Empty;
System\Runtime\Serialization\SchemaExporter.cs (2)
671typeNs = schema.TargetNamespace ?? string.Empty; 791any.Namespace = datasetSchema.TargetNamespace ?? string.Empty;
System\Runtime\Serialization\SchemaHelper.cs (1)
117ns ??= string.Empty;
System\Runtime\Serialization\SchemaImporter.cs (1)
481ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Empty);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
224_ilg.BeginMethod("Read" + collectionContract.XmlName.Name + "FromXml" + string.Empty, typeof(XmlFormatCollectionReaderDelegate), memberAccessFlag);
System\Runtime\Serialization\XmlObjectSerializer.cs (2)
458string typeInfo = (type == null) ? string.Empty : SR.Format(SR.ErrorTypeInfo, DataContract.GetClrTypeFullName(type)); 459string innerExceptionMessage = (innerException == null) ? string.Empty : innerException.Message;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (3)
568value = GetExistingObject(attributes.Ref, null, name, string.Empty); 577value = InternalDeserialize(xmlReader, typeof(object), name, string.Empty); 1051ns ??= string.Empty;
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
811xmlWriter.WriteStartElement(member.Name, string.Empty);
System\Runtime\Serialization\XmlReaderDelegator.cs (13)
376return isEndOfEmptyElement ? string.Empty : reader.ReadContentAsString(); 390ThrowConversionException(string.Empty, "Boolean"); 406ThrowConversionException(string.Empty, "Float"); 422ThrowConversionException(string.Empty, "Double"); 438ThrowConversionException(string.Empty, "Decimal"); 507ThrowConversionException(string.Empty, "DateTime"); 531ThrowConversionException(string.Empty, nameof(DateOnly)); 566ThrowConversionException(string.Empty, nameof(TimeOnly)); 603ThrowConversionException(string.Empty, "Int32"); 619ThrowConversionException(string.Empty, "Int64"); 708ThrowConversionException(string.Empty, "UInt64"); 718ThrowConversionException(string.Empty, "UInt64"); 857name = ns = string.Empty;
System\Runtime\Serialization\XmlSerializableWriter.cs (3)
27throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IXmlSerializableMissingEndElements, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))); 56throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))); 64throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType()))));
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
79writer.WriteAttributeString("xmlns", string.Empty, null, ns);
System\Xml\StringHandle.cs (1)
77return Equals2(string.Empty);
System\Xml\ValueHandle.cs (1)
500return string.Empty;
System\Xml\XmlBaseReader.cs (14)
408return string.Empty; 523localName = string.Empty; 527prefix = string.Empty; 561namespaceUri ??= string.Empty; 943_prefix = string.Empty; 1016prefix = string.Empty; 1189return string.Empty; 1206return string.Empty; 1530_value = string.Empty; 1884string s = string.Empty; 2719_lang = string.Empty; 2729_lang = string.Empty; 2785_lang = string.Empty; 2980private string _lang = string.Empty;
System\Xml\XmlBaseWriter.cs (22)
216prefix = string.Empty; 223localName = string.Empty; 233_attributeValue = string.Empty; 241_attributeValue = string.Empty; 438text = string.Empty; 474text ??= string.Empty; 508prefix ??= string.Empty; 521prefix = string.Empty; 522_nsMgr.AddNamespace(string.Empty, ns, xNs); 558prefix ??= string.Empty; 571prefix = string.Empty; 572_nsMgr.AddNamespace(string.Empty, ns, xNs); 831namespaceUri ??= string.Empty; 978value ??= string.Empty; 1053value ??= string.Empty; 1937_defaultNamespace.Prefix = string.Empty; 1938_defaultNamespace.Uri = string.Empty; 2103AddNamespaceIfNotDeclared(string.Empty, uri, uriDictionaryString); 2104return string.Empty; 2259return string.Empty; 2329return string.Empty; 2344return string.Empty;
System\Xml\XmlCanonicalWriter.cs (2)
74WriteXmlnsAttribute(string.Empty, string.Empty);
System\Xml\XmlConverter.cs (2)
433return string.Empty; 453prefix = string.Empty;
System\Xml\XmlDictionaryReader.cs (23)
389string result = string.Empty; 456return string.Empty; 462return string.Empty; 466return string.Empty; 469string result = string.Empty; 692value = string.Empty; 712value = XmlConverter.ToBoolean(string.Empty); 732value = XmlConverter.ToInt32(string.Empty); 752value = XmlConverter.ToInt64(string.Empty); 772value = XmlConverter.ToSingle(string.Empty); 792value = XmlConverter.ToDouble(string.Empty); 812value = XmlConverter.ToDecimal(string.Empty); 834value = DateTime.Parse(string.Empty, NumberFormatInfo.InvariantInfo); 838throw XmlExceptionHelper.CreateConversionException(string.Empty, "DateTime", exception); 842throw XmlExceptionHelper.CreateConversionException(string.Empty, "DateTime", exception); 865value = new UniqueId(string.Empty); 869throw XmlExceptionHelper.CreateConversionException(string.Empty, "UniqueId", exception); 873throw XmlExceptionHelper.CreateConversionException(string.Empty, "UniqueId", exception); 896value = new Guid(string.Empty); 900throw XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception); 904throw XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception); 908throw XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception); 929value = XmlConverter.ToTimeSpan(string.Empty);
System\Xml\XmlDictionaryString.cs (1)
92_empty = new XmlDictionaryString(this, string.Empty, 0);
System\Xml\XmlDictionaryWriter.cs (2)
116prefix = namespaceUri.Length == 0 ? string.Empty : $"d{namespaceUri.Length}"; 848prefix = string.Empty;
System.Private.Reflection.Execution (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
68value = string.Empty;
System.Private.TypeLoader (2)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
68value = string.Empty;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Instantiation.cs (1)
63return string.Empty;
System.Private.Uri (33)
System\Uri.cs (16)
549serializationInfo.AddValue("AbsoluteUri", string.Empty); // Do not rename (binary serialization) 669relativeStr = string.Empty; 1378return string.Empty; 1913rawString is null ? string.Empty : 2519host = string.Empty; 2536host = string.Empty; 3039return (idx - _info.Offset.Host == 0) ? string.Empty : _string.Substring(_info.Offset.Host, 3052return string.Empty; 3065return string.Empty; 3077return string.Empty; 3082return (_info.Offset.Path - _info.Offset.User == 0) ? string.Empty : 3114return string.Empty; 3122return string.Empty; 4546ReadOnlySpan<char> extra = string.Empty; 4665return string.Empty; 4764str is null ? string.Empty :
System\UriBuilder.cs (12)
14private string _username = string.Empty; 15private string _password = string.Empty; 19private string _query = string.Empty; 20private string _fragment = string.Empty; 97_query = string.Empty; 102_fragment = string.Empty; 113value ??= string.Empty; 145_username = value ?? string.Empty; 156_password = value ?? string.Empty; 197_host = value ?? string.Empty; 238_query = value ?? string.Empty; 254_fragment = value ?? string.Empty;
System\UriExt.cs (4)
42_string = uri ?? string.Empty; 695relativeStr = string.Empty; 774return string.Empty; 820return string.Empty;
System\UriSyntax.cs (1)
152_scheme = string.Empty;
System.Private.Windows.Core (12)
System\ExceptionExtensions.cs (1)
42ex.StackTrace ?? string.Empty);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (4)
216return string.Empty; 229return string.Empty; 267return bytes.IsEmpty ? string.Empty : encoding.GetString(bytes); 297return string.Empty;
System\Private\Windows\Ole\DragDropHelper.cs (4)
45SetDropDescription(dataObject, DROPIMAGETYPE.DROPIMAGE_INVALID, string.Empty, string.Empty); 319e.Message ??= string.Empty; 320e.MessageReplacementToken ??= string.Empty;
Windows\Win32\Foundation\BSTR.cs (1)
28string result = ToString() ?? string.Empty;
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
34return string.Empty; 51return string.Empty;
System.Private.Windows.Core.TestUtilities (11)
DebuggerAttributes.cs (1)
155reference = reference.Replace(",nq", string.Empty);
XUnit\NormalizedStringDataAttribute.cs (4)
8/// <see cref="string.Empty"/>. 16new(null, string.Empty), 17new(string.Empty, string.Empty),
XUnit\NullAndEmptyStringDataAttribute.cs (2)
7/// Generates <see cref="TheoryAttribute"/> data for <see langword="null"/> and <see cref="string.Empty"/>. 13public static ReadOnlyTheoryData TheoryData { get; } = new(null, string.Empty);
XUnit\StringDataAttribute.cs (2)
7/// Generates <see cref="TheoryAttribute"/> data with <see cref="string.Empty"/> and 14public static ReadOnlyTheoryData TheoryData { get; } = new(string.Empty, "teststring");
XUnit\StringWithNullDataAttribute.cs (2)
7/// Generates <see cref="TheoryAttribute"/> data for <see langword="null"/>, <see cref="string.Empty"/>, and 14public static ReadOnlyTheoryData TheoryData { get; } = new(null, string.Empty, "teststring");
System.Private.Xml (1012)
System\Xml\BinaryXml\XmlBinaryReader.cs (40)
77this.prefix = this.localname = this.namespaceUri = string.Empty; 230this.symtable[0] = string.Empty; 348AddInitNamespace(string.Empty, string.Empty); 507return string.Empty; 603return string.Empty; 658ns = string.Empty; 708ns = string.Empty; 1121return XmlConvert.ToBoolean(string.Empty); 1211return XmlConvert.ToDateTime(string.Empty, XmlDateTimeSerializationMode.RoundtripKind); 1306return XmlConvert.ToDouble(string.Empty); 1401return XmlConvert.ToSingle(string.Empty); 1496return XmlConvert.ToDecimal(string.Empty); 1591return XmlConvert.ToInt32(string.Empty); 1686return XmlConvert.ToInt64(string.Empty); 1729value = string.Empty; 1769value = string.Empty; 1944prefixStr = string.Empty; 1977throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 1985throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 2326return string.Empty; 2500name = new QName(string.Empty, _xmlns, _nsxmlns); 2543_attributes[0].Set(new QName(string.Empty, _xnt.Add("version"), string.Empty), ParseText()); 2548_attributes[1].Set(new QName(string.Empty, _xnt.Add("encoding"), string.Empty), ParseText()); 2559_attributes[_attrCount].Set(new QName(string.Empty, _xnt.Add("standalone"), string.Empty), (standalone == 1) ? "yes" : "no"); 2568QName xmlDeclQName = new QName(string.Empty, _xnt.Add("xml"), string.Empty); 2600PushNamespace(curDeclPrefix, string.Empty, false); 2625curDeclPrefix = string.Empty; 2630throw new XmlException(SR.Xml_PrefixForEmptyNs, string.Empty); 3124_attributes[_attrCount++].Set(new QName(string.Empty, _xnt.Add("SYSTEM"), string.Empty), ParseText()); 3129_attributes[_attrCount++].Set(new QName(string.Empty, _xnt.Add("PUBLIC"), string.Empty), ParseText()); 4014throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 4163throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty); 4361throw new XmlException(SR.XmlBin_InvalidQNameID, string.Empty);
System\Xml\Cache\XPathDocumentBuilder.cs (29)
107idx = NewNode(out page, XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty); 117_idxParent = NewNode(out _pageParent, XPathNodeType.Root, string.Empty, string.Empty, string.Empty, baseUri); 144this.WriteStartElement(prefix, localName, ns, string.Empty); 300AddSibling(XPathNodeType.Attribute, localName, namespaceName, prefix, string.Empty); 341AddSibling(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, string.Empty); 350this.WriteProcessingInstruction(name, text, string.Empty); 361AddSibling(XPathNodeType.ProcessingInstruction, name, string.Empty, string.Empty, baseUri); 447AddSibling(XPathNodeType.Text, string.Empty, string.Empty, string.Empty, string.Empty); 448_pageSibling[_idxSibling].SetValue(string.Empty); 641info = _infoTable.Create(prefix, string.Empty, string.Empty, string.Empty, 779AddSibling((XPathNodeType)textType, string.Empty, string.Empty, string.Empty, string.Empty); 936return string.Empty;
System\Xml\Cache\XPathDocumentNavigator.cs (2)
106string s = string.Empty; 230return string.Empty;
System\Xml\Cache\XPathNode.cs (2)
127get { return _info.BaseUri ?? string.Empty; } 401_value = string.Empty;
System\Xml\Core\CharEntityEncoderFallback.cs (1)
53private string _charEntity = string.Empty;
System\Xml\Core\QueryOutputWriter.cs (2)
155throw new XmlException(SR.Xml_NoMultipleRoots, string.Empty); 331throw new XmlException(SR.Xml_NoRoot, string.Empty);
System\Xml\Core\ValidatingReaderNodeData.cs (5)
177_localName = string.Empty; 178_prefix = string.Empty; 179_namespaceUri = string.Empty; 180_rawValue = string.Empty; 210_rawValue = string.Empty;
System\Xml\Core\XmlAutoDetectWriter.cs (1)
39_eventCache = new XmlEventCache(string.Empty, true);
System\Xml\Core\XmlCharCheckingReader.cs (2)
219Throw(SR.Xml_DtdIsProhibitedEx, string.Empty); 295Throw(SR.Xml_DtdIsProhibitedEx, string.Empty);
System\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
81Throw(SR.Xml_DtdIsProhibitedEx, string.Empty); 157Throw(SR.Xml_DtdIsProhibitedEx, string.Empty);
System\Xml\Core\XmlCharCheckingWriter.cs (1)
221ws ??= string.Empty;
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
167ws ??= string.Empty;
System\Xml\Core\XmlEventCache.cs (1)
305return string.Empty;
System\Xml\Core\XmlParserContext.cs (24)
16private string _docTypeName = string.Empty; 17private string _pubId = string.Empty; 18private string _sysId = string.Empty; 19private string _internalSubset = string.Empty; 20private string _xmlLang = string.Empty; 22private string _baseURI = string.Empty; 26: this(nt, nsMgr, null, null, null, null, string.Empty, xmlLang, xmlSpace) 32: this(nt, nsMgr, null, null, null, null, string.Empty, xmlLang, xmlSpace, enc) 59throw new XmlException(SR.Xml_NotSameNametable, string.Empty); 71_docTypeName = docTypeName ?? string.Empty; 72_pubId = pubId ?? string.Empty; 73_sysId = sysId ?? string.Empty; 74_internalSubset = internalSubset ?? string.Empty; 75_baseURI = baseURI ?? string.Empty; 76_xmlLang = xmlLang ?? string.Empty; 114_docTypeName = value ?? string.Empty; 127_pubId = value ?? string.Empty; 140_sysId = value ?? string.Empty; 153_baseURI = value ?? string.Empty; 166_internalSubset = value ?? string.Empty; 179_xmlLang = value ?? string.Empty; 211return (_internalSubset != string.Empty || _pubId != string.Empty || _sysId != string.Empty);
System\Xml\Core\XmlReader.cs (33)
133public virtual string XmlLang => string.Empty; 355return string.Empty; 375return XmlConvert.ToBoolean(string.Empty); 395return XmlConvert.ToDateTime(string.Empty, XmlDateTimeSerializationMode.RoundtripKind); 416return XmlConvert.ToDouble(string.Empty); 437return XmlConvert.ToSingle(string.Empty); 457return XmlConvert.ToDecimal(string.Empty); 477return XmlConvert.ToInt32(string.Empty); 497return XmlConvert.ToInt64(string.Empty); 518return string.Empty; 539return returnType == typeof(string) ? string.Empty : XmlUntypedConverter.Untyped.ChangeType(string.Empty, returnType, namespaceResolver); 690return string.Empty; 697return string.Empty; 706return string.Empty; 709string result = string.Empty; 794string result = string.Empty; 821string result = string.Empty; 854string result = string.Empty; 1107return string.Empty; 1114return string.Empty; 1210return string.Empty; 1217return string.Empty; 1467string value = string.Empty; 1539throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 1638return new XmlTextReaderImpl(input, null, 0, XmlReaderSettings.s_defaultReaderSettings, null, string.Empty, null, false); 1644return Create(input, settings, string.Empty); 1658return settings.CreateReader(input, null, string.Empty, inputContext); 1668return new XmlTextReaderImpl(input, XmlReaderSettings.s_defaultReaderSettings, string.Empty, null); 1674return Create(input, settings, string.Empty); 1688return settings.CreateReader(input, string.Empty, inputContext); 1723reader = new XmlSqlBinaryReader(input, bytes, byteCount, string.Empty, settings.CloseInput, settings); 1727reader = new XmlTextReaderImpl(input, bytes, byteCount, settings, null, string.Empty, inputContext, settings.CloseInput);
System\Xml\Core\XmlReaderAsync.cs (10)
83return string.Empty; 95return string.Empty; 107return returnType == typeof(string) ? string.Empty : XmlUntypedConverter.Untyped.ChangeType(string.Empty, returnType, namespaceResolver); 184return string.Empty; 189return string.Empty; 267return string.Empty; 272return string.Empty; 324string value = string.Empty; 394throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
System\Xml\Core\XmlReaderSettings.cs (2)
347baseUriString ??= baseUri?.ToString() ?? string.Empty; 370baseUriString ??= string.Empty;
System\Xml\Core\XmlSubtreeReader.cs (13)
107_tmpNode = new NodeData(XmlNodeType.None, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty); 1269_nsManager.AddNamespace(string.Empty, reader.Value); 1270RemoveNamespace(string.Empty, _xmlns); 1319attrPrefix = string.Empty; 1509Debug.Assert(_tmpNode.localName == string.Empty && _tmpNode.prefix == string.Empty && _tmpNode.name == string.Empty && _tmpNode.namespaceUri == string.Empty); 1511_tmpNode.value = string.Empty;
System\Xml\Core\XmlTextEncoder.cs (1)
93return string.Empty;
System\Xml\Core\XmlTextReaderImpl.cs (54)
180private readonly string _url = string.Empty; 203private string _lastPrefix = string.Empty; 213private string _reportedBaseUri = string.Empty; 323nt.Add(string.Empty); 387nt.Add(string.Empty); 449internal XmlTextReaderImpl(Stream input) : this(string.Empty, input, new NameTable()) 453internal XmlTextReaderImpl(Stream input, XmlNameTable nt) : this(string.Empty, input, nt) 481internal XmlTextReaderImpl(TextReader input) : this(string.Empty, input, new NameTable()) 485internal XmlTextReaderImpl(TextReader input, XmlNameTable nt) : this(string.Empty, input, nt) 497_reportedBaseUri = url ?? string.Empty; 531xmlFragment ??= string.Empty; 535InitStringInput(string.Empty, Encoding.Unicode, xmlFragment); 555InitStringInput((context == null) ? string.Empty : context.BaseURI, Encoding.Unicode, $"<?xml {xmlFragment}?>"); 638Task<object> t = _laterInitParam.inputUriResolver.GetEntityAsync(_laterInitParam.inputbaseUri, string.Empty, typeof(Stream)); 643stream = (Stream?)_laterInitParam.inputUriResolver.GetEntity(_laterInitParam.inputbaseUri, string.Empty, typeof(Stream)); 704_reportedBaseUri = baseUriStr ?? string.Empty; 763Debug.Assert(baseUriStr == string.Empty, "BaseURI can come either from XmlParserContext or from the constructor argument, not from both"); 813InitStringInput(string.Empty, Encoding.Unicode, xmlFragment); 888return _curNode.ns ?? string.Empty; 1050namespaceURI = (namespaceURI == null) ? string.Empty : _nameTable.Get(namespaceURI); 1105string? namespaceURIAtomized = (namespaceURI == null) ? string.Empty : _nameTable.Get(namespaceURI); 1292_curNode.SetValueNode(XmlNodeType.Text, string.Empty); 1518throw new XmlException(SR.Xml_InternalError, string.Empty); 1544throw new XmlException(SR.Xml_InternalError, string.Empty); 1850_curNode.SetValue(string.Empty); 1989_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty)!; 1998_xmlContext.defaultNamespace = string.Empty; 2054throw new XmlException(SR.Xml_WhitespaceHandling, string.Empty); 2090throw new XmlException(SR.Xml_EntityHandling, string.Empty); 2171return new StringReader(string.Empty); 2670Throw(res, string.Empty); 2676Throw(res, string.Empty); 2682Throw(new XmlException(res, string.Empty, lineNo, linePos, _ps.baseUriStr)); 2738Throw(new XmlException(res, string.Empty, _ps.baseUriStr)); 2820InitStreamInput(null, string.Empty, stream, null, 0, encoding); 2975_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty)!; 2990_ps.baseUriStr = string.Empty; 3586_reportedBaseUri = string.Empty; 5050AddNamespace(string.Empty, ns, attr); 5839_curNode.SetValue(string.Empty); 6049schemaEntity.Text = string.Empty; 6063schemaEntity.Text = string.Empty; 6747_curNode.SetNamedNode(XmlNodeType.DocumentType, _dtdInfo.Name.ToString(), string.Empty, null); 6847_curNode.SetValue(string.Empty); 7677return AddAttribute(localName, string.Empty, localName); 7945ThrowWithoutLineInfo(SR.Xml_CannotResolveExternalSubset, new string?[] { publicId ?? string.Empty, systemId }, null); 8031InitStringInput(entity.SystemId!, enc, string.Empty); 8049InitStringInput(entity.DeclaredUriString ?? string.Empty, enc, entity.Text!); 8584_curNode.SetValueNode(XmlNodeType.Text, string.Empty); 9027_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty)!; 9041throw new XmlException(SR.Xml_NametableMismatch, string.Empty); 9259prefix ??= string.Empty; 9394_curNode.SetValue(string.Empty); 9627return string.Empty;
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
77Stream stream = (Stream)(await _laterInitParam!.inputUriResolver!.GetEntityAsync(_laterInitParam.inputbaseUri!, string.Empty, typeof(Stream)).ConfigureAwait(false)); 225_curNode.SetValueNode(XmlNodeType.Text, string.Empty); 675_curNode.SetValue(string.Empty); 3598_curNode.SetValue(string.Empty); 3825schemaEntity.Text = string.Empty; 3838schemaEntity.Text = string.Empty; 4478_curNode.SetNamedNode(XmlNodeType.DocumentType, _dtdInfo.Name.ToString(), string.Empty, null); 4582_curNode.SetValue(string.Empty); 5144ThrowWithoutLineInfo(SR.Xml_CannotResolveExternalSubset, new string?[] { publicId ?? string.Empty, systemId }, null); 5228InitStringInput(entity.SystemId!, enc, string.Empty); 5392_curNode.SetValue(string.Empty);
System\Xml\Core\XmlTextReaderImplHelpers.cs (15)
80baseUriStr = string.Empty; 133xmlLang = string.Empty; 134defaultNamespace = string.Empty; 153public override string DefaultNamespace { get { return string.Empty; } } 160public override string LookupNamespace(string? prefix) { return string.Empty; } 482_value = string.Empty; 494localName = string.Empty; 495prefix = string.Empty; 496ns = string.Empty; 497nameWPrefix = string.Empty; 533SetNamedNode(type, localName, string.Empty, localName); 545this.ns = string.Empty; 546_value = string.Empty; 780throw new XmlException(SR.Xml_DefaultException, string.Empty); 799throw new XmlException(SR.Xml_DefaultException, string.Empty);
System\Xml\Core\XmlTextWriter.cs (4)
62defaultNs = string.Empty; 649prefix = string.Empty; 843ws = string.Empty; 1103s = string.Empty;
System\Xml\Core\XmlWellFormedWriter.cs (27)
264_nsStack[2].Set(string.Empty, string.Empty, NamespaceKind.Implied); 268string? defaultNs = _predefinedNamespaces.LookupNamespace(string.Empty); 269_nsStack[2].Set(string.Empty, defaultNs ?? string.Empty, NamespaceKind.Implied); 274_elemScopeStack[0].Set(string.Empty, string.Empty, string.Empty, _nsTop); 437prefix ??= string.Empty; 454ns = string.Empty; 503throw new XmlException(SR.Xml_NoStartTag, string.Empty); 554throw new XmlException(SR.Xml_NoStartTag, string.Empty); 606prefix = string.Empty; 628prefix ??= string.Empty; 636namespaceName ??= string.Empty; 647_curDeclPrefix = string.Empty; 697prefix = string.Empty; 747if (PushNamespaceExplicit(string.Empty, value)) 753_rawWriter.WriteStartNamespaceDeclaration(string.Empty); 759_rawWriter.WriteNamespaceDeclaration(string.Empty, value); 764_writer.WriteStartAttribute(string.Empty, "xmlns", XmlReservedNs.NsXmlNs); 855text ??= string.Empty; 870text ??= string.Empty; 890text ??= string.Empty; 1007ws ??= string.Empty; 1283string? prefix = string.Empty; 1684throw DupAttrException((prefix.Length == 0) ? string.Empty : "xmlns", (prefix.Length == 0) ? "xmlns" : prefix);
System\Xml\Core\XmlWellFormedWriterAsync.cs (18)
213prefix ??= string.Empty; 230ns = string.Empty; 338throw new XmlException(SR.Xml_NoStartTag, string.Empty); 417throw new XmlException(SR.Xml_NoStartTag, string.Empty); 449prefix = string.Empty; 488prefix ??= string.Empty; 497namespaceName ??= string.Empty; 508_curDeclPrefix = string.Empty; 558prefix = string.Empty; 654if (PushNamespaceExplicit(string.Empty, value)) 660await _rawWriter.WriteStartNamespaceDeclarationAsync(string.Empty).ConfigureAwait(false); 666await _rawWriter.WriteNamespaceDeclarationAsync(string.Empty, value).ConfigureAwait(false); 671await _writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false); 757text ??= string.Empty; 773text ??= string.Empty; 794text ??= string.Empty; 911ws ??= string.Empty; 1137string? prefix = string.Empty;
System\Xml\Core\XmlWellFormedWriterHelpers.cs (1)
105writer.WriteStartAttribute(string.Empty, "xmlns", XmlReservedNs.NsXmlNs);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
40await writer.WriteStartAttributeAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs).ConfigureAwait(false);
System\Xml\Core\XmlWriter.cs (3)
207public virtual string? XmlLang => string.Empty; 327throw new XmlException(SR.Xml_InvalidPosition, string.Empty); 601WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns);
System\Xml\Core\XmlWriterAsync.cs (2)
248throw new XmlException(SR.Xml_InvalidPosition, string.Empty); 569await WriteAttributeStringAsync(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns).ConfigureAwait(false);
System\Xml\Core\XsdCachingReader.cs (2)
264namespaceURI = (namespaceURI == null) ? string.Empty : _coreReaderNameTable.Get(namespaceURI); 334ns = (ns == null) ? string.Empty : _coreReaderNameTable.Get(ns);
System\Xml\Core\XsdValidatingReader.cs (15)
34localName = string.Empty; 35namespaceUri = string.Empty; 1046return typedValue as string ?? string.Empty; 1144string? atomizedNamespaceURI = (namespaceURI == null) ? string.Empty : _coreReaderNameTable.Get(namespaceURI); 1221ns = ns != null ? _coreReaderNameTable.Get(ns) : string.Empty; 2112_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value); 2224ns = string.Empty; 2269ns = string.Empty; 2396originalStringValue = string.Empty; 2398return string.Empty; 2487typedValue = string.Empty; 2488originalString = string.Empty; 2494throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 2503throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 2793return string.Empty;
System\Xml\Core\XsdValidatingReaderAsync.cs (7)
610_nsManager.AddNamespace(_coreReader.Prefix.Length == 0 ? string.Empty : _coreReader.LocalName, _coreReader.Value); 723originalStringValue = string.Empty; 725return (originalStringValue, string.Empty); 822typedValue = string.Empty; 823originalString = string.Empty; 829throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo); 841throw new XmlException(SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
System\Xml\Dom\DocumentSchemaValidator.cs (4)
192if (!dictionary.ContainsKey(string.Empty)) 194dictionary.Add(string.Empty, attr.Value); 354_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value); 703_nsManager.AddNamespace(attr.Prefix.Length == 0 ? string.Empty : attr.LocalName, attr.Value);
System\Xml\Dom\DocumentXmlWriter.cs (3)
121XmlNode node = _document.CreateXmlDeclaration("1.0", string.Empty, standalone == XmlStandalone.Yes ? "yes" : "no"); 223XmlNode node = _document.CreateTextNode(string.Empty); 273XmlNode node = _document.CreateTextNode(string.Empty);
System\Xml\Dom\DocumentXPathNavigator.cs (7)
117return string.Empty; 138return string.Empty; // xmlns declaration 144return string.Empty; 156return string.Empty; 194return string.Empty; 414return string.Empty; 1822string prefix = attribute.Prefix.Length == 0 ? string.Empty : attribute.LocalName;
System\Xml\Dom\DomNameTable.cs (4)
31prefix ??= string.Empty; 32ns ??= string.Empty; 55prefix ??= string.Empty; 56ns ??= string.Empty;
System\Xml\Dom\XmlAttribute.cs (3)
368return string.Empty; 393return string.Empty; 412if (_name.Prefix.Length == 0 && _name.LocalName == "xmlns") return string.Empty;
System\Xml\Dom\XmlCharacterData.cs (2)
49return string.Empty; 94return string.Empty;
System\Xml\Dom\XmlDeclaration.cs (2)
49set { _encoding = value ?? string.Empty; } 61_standalone = string.Empty;
System\Xml\Dom\XmlDocument.cs (14)
152baseURI = string.Empty; 269XmlName? newName = GetXmlName(eleName.Prefix, eleName.LocalName, string.Empty, null); 600string namespaceURI = string.Empty; 652return CreateElement(prefix, localName, string.Empty); 671string attrNamespaceURI = string.Empty; 1124return CreateTextNode(string.Empty); 1127return CreateCDataSection(string.Empty); 1133return CreateProcessingInstruction(name, string.Empty); 1139return CreateComment(string.Empty); 1145return CreateDocumentType(name, string.Empty, string.Empty, string.Empty); 1151return CreateSignificantWhitespace(string.Empty); 1154return CreateWhitespace(string.Empty);
System\Xml\Dom\XmlDomTextWriter.cs (2)
31prefix = string.Empty; 41prefix = string.Empty;
System\Xml\Dom\XmlElement.cs (6)
274return string.Empty; 344return string.Empty; 355attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 387attr = OwnerDocument.CreateAttribute(string.Empty, localName, namespaceURI); 639return string.Empty; 645return string.Empty;
System\Xml\Dom\XmlEntity.cs (3)
13private string _baseURI = string.Empty; 130get { return string.Empty; } 135get { return string.Empty; }
System\Xml\Dom\XmlEntityReference.cs (1)
216return string.Empty;
System\Xml\Dom\XmlLoader.cs (9)
282node.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 341node.AppendChildForLoad(direct ? new XmlText(string.Empty) : _doc!.CreateTextNode(string.Empty), _doc!); 372eref.AppendChildForLoad(_doc!.CreateTextNode(string.Empty), _doc); 594XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(_doc!.NameTable), null, null, null, null, _doc.BaseURI, string.Empty, XmlSpace.None); 614throw new XmlException(SR.Xml_InternalError, string.Empty); 667_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 668_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null)); 708mgr.AddNamespace(string.Empty, attr.Value);
System\Xml\Dom\XmlNode.cs (11)
827get { return string.Empty; } 834get { return string.Empty; } 926return string.Empty; 1033return string.Empty; 1074return namespaceName ?? string.Empty; 1163return GetPrefixOfNamespaceStrict(namespaceURI) ?? string.Empty; 1191return string.Empty; // found xmlns="namespaceURI" 1290prefix = string.Empty; 1390return string.Empty; 1406return string.Empty; 1412return string.Empty;
System\Xml\Dom\XmlNodeReader.cs (26)
133return string.Empty; //Text node's name is String.Empty 144return string.Empty; 157return string.Empty; 248StringBuilder strb = new StringBuilder(string.Empty); 270return retValue ?? string.Empty; 635return MoveToAttribute(name, string.Empty); 866prefix ??= string.Empty; 896return string.Empty; 913if (prefix == string.Empty) 915return _nameTable.Add(string.Empty); 937return string.Empty; 956if (LookupNamespace(string.Empty) == namespaceName) 958return string.Empty; 1006if (!dict.ContainsKey(string.Empty)) 1008dict.Add(_nameTable.Add(string.Empty), _nameTable.Add(a.Value!)); 1037if (dict.TryGetValue(string.Empty, out string? value) && value == string.Empty) 1039dict.Remove(string.Empty); 1180return string.Empty; 1191return string.Empty; 1203return string.Empty; 1214return string.Empty; 1237return string.Empty; 1303return string.Empty; 1350string ns = namespaceURI ?? string.Empty; 1390string ns = namespaceURI ?? string.Empty;
System\Xml\Dom\XmlNotation.cs (2)
76get { return string.Empty; } 81get { return string.Empty; }
System\Xml\Dom\XmlProcessingInstruction.cs (2)
22_data = data ?? string.Empty; 51string val = value ?? string.Empty;
System\Xml\HWStack.cs (1)
34throw new XmlException(SR.Xml_StackOverflow, string.Empty);
System\Xml\NameTable.cs (4)
61return string.Empty; 85return string.Empty; 121return string.Empty; 145return string.Empty;
System\Xml\Schema\Asttree.cs (1)
549throw new XmlSchemaException(SR.Sch_EmptyXPath, string.Empty);
System\Xml\Schema\BaseValidator.cs (4)
141throw new XmlException(SR.Xml_InternalError, string.Empty); 197SendValidationEvent(SR.Sch_InvalidTextInEmpty, string.Empty); 220SendValidationEvent(SR.Sch_InvalidWhitespaceInEmpty, string.Empty); 252SendValidationEvent(code, string.Empty);
System\Xml\Schema\ContentValidator.cs (1)
103AddWildcard(string.Empty, null); //##local is not allowed
System\Xml\Schema\DataTypeImplementation.cs (9)
387throw new XmlSchemaException(SR.Sch_ListFromNonatomic, string.Empty); 391throw new XmlSchemaException(SR.Sch_ListFromNonatomic, string.Empty); 1134return new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 1882return new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 1913return new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 1952return new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 2707return new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 3040return new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 3738throw new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty);
System\Xml\Schema\DtdParser.cs (20)
148private string? _systemId = string.Empty; 149private string? _publicId = string.Empty; 192private string _documentBaseUri = string.Empty; 193private string _externalDtdBaseUri = string.Empty; 571SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 631SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 687Throw(SR.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 727Throw(SR.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 906SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_AttListPresence, string.Empty); 1088SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1150SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1175SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1196SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1423SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1448SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1457SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 2631Throw(SR.Xml_ErrorParsingEntityName, string.Empty, e.LineNumber, e.LinePosition); 3441return (tmp != null) ? tmp.ToString() : string.Empty; 3453Throw(curPos, res, string.Empty); 3542return string.Empty;
System\Xml\Schema\DtdParserAsync.cs (12)
215SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 275SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 331Throw(SR.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 371Throw(SR.Xml_EnumerationRequired, string.Empty, attrDef.LineNumber, attrDef.LinePosition); 550SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_AttListPresence, string.Empty); 719SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 781SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 806SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 827SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1045SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1070SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty); 1079SendValidationEvent(_curPos, XmlSeverityType.Error, SR.Sch_ParEntityRefNesting, string.Empty);
System\Xml\Schema\DtdValidator.cs (3)
234textString = string.Empty; 288textString = string.Empty; 569baseUriStr ??= string.Empty;
System\Xml\Schema\FacetChecker.cs (63)
317throw new XmlSchemaException(SR.Sch_TotalDigitsMismatch, string.Empty); 344throw new XmlSchemaException(SR.Sch_FractionDigitsMismatch, string.Empty); 386throw new XmlSchemaException(SR.Sch_MaxInclusiveMismatch, string.Empty); 393throw new XmlSchemaException(SR.Sch_MaxIncExlMismatch, string.Empty); 403throw new XmlSchemaException(SR.Sch_MaxExclusiveMismatch, string.Empty); 410throw new XmlSchemaException(SR.Sch_MaxExlIncMismatch, string.Empty); 420throw new XmlSchemaException(SR.Sch_MinInclusiveMismatch, string.Empty); 427throw new XmlSchemaException(SR.Sch_MinIncExlMismatch, string.Empty); 434throw new XmlSchemaException(SR.Sch_MinIncMaxExlMismatch, string.Empty); 444throw new XmlSchemaException(SR.Sch_MinExclusiveMismatch, string.Empty); 451throw new XmlSchemaException(SR.Sch_MinExlIncMismatch, string.Empty); 458throw new XmlSchemaException(SR.Sch_MinExlMaxExlMismatch, string.Empty); 477throw new XmlSchemaException(SR.Sch_MaxInclusiveExclusive, string.Empty); 484throw new XmlSchemaException(SR.Sch_MinInclusiveExclusive, string.Empty); 491throw new XmlSchemaException(SR.Sch_LengthAndMinMax, string.Empty); 504throw new XmlSchemaException(SR.Sch_MinLengthGtMaxLength, string.Empty); 515throw new XmlSchemaException(SR.Sch_MinInclusiveGtMaxInclusive, string.Empty); 525throw new XmlSchemaException(SR.Sch_MinInclusiveGtMaxExclusive, string.Empty); 535throw new XmlSchemaException(SR.Sch_MinExclusiveGtMaxExclusive, string.Empty); 545throw new XmlSchemaException(SR.Sch_MinExclusiveGtMaxInclusive, string.Empty); 552throw new XmlSchemaException(SR.Sch_FractionDigitsGtTotalDigits, string.Empty); 877return new XmlSchemaException(SR.Sch_PatternConstraintFailed, string.Empty); 1022return new XmlSchemaException(SR.Sch_MaxInclusiveConstraintFailed, string.Empty); 1030return new XmlSchemaException(SR.Sch_MaxExclusiveConstraintFailed, string.Empty); 1038return new XmlSchemaException(SR.Sch_MinInclusiveConstraintFailed, string.Empty); 1046return new XmlSchemaException(SR.Sch_MinExclusiveConstraintFailed, string.Empty); 1053return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1109return new XmlSchemaException(SR.Sch_TotalDigitsConstraintFailed, string.Empty); 1113return new XmlSchemaException(SR.Sch_FractionDigitsConstraintFailed, string.Empty); 1138return new XmlSchemaException(SR.Sch_MaxInclusiveConstraintFailed, string.Empty); 1145return new XmlSchemaException(SR.Sch_MaxExclusiveConstraintFailed, string.Empty); 1153return new XmlSchemaException(SR.Sch_MinInclusiveConstraintFailed, string.Empty); 1161return new XmlSchemaException(SR.Sch_MinExclusiveConstraintFailed, string.Empty); 1168return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1213return new XmlSchemaException(SR.Sch_MaxInclusiveConstraintFailed, string.Empty); 1221return new XmlSchemaException(SR.Sch_MaxExclusiveConstraintFailed, string.Empty); 1229return new XmlSchemaException(SR.Sch_MinInclusiveConstraintFailed, string.Empty); 1237return new XmlSchemaException(SR.Sch_MinExclusiveConstraintFailed, string.Empty); 1244return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1284return new XmlSchemaException(SR.Sch_MaxInclusiveConstraintFailed, string.Empty); 1292return new XmlSchemaException(SR.Sch_MaxExclusiveConstraintFailed, string.Empty); 1300return new XmlSchemaException(SR.Sch_MinInclusiveConstraintFailed, string.Empty); 1308return new XmlSchemaException(SR.Sch_MinExclusiveConstraintFailed, string.Empty); 1316return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1375return new XmlSchemaException(SR.Sch_LengthConstraintFailed, string.Empty); 1382return new XmlSchemaException(SR.Sch_MinLengthConstraintFailed, string.Empty); 1389return new XmlSchemaException(SR.Sch_MaxLengthConstraintFailed, string.Empty); 1396return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1457return new XmlSchemaException(SR.Sch_EmptyAttributeValue, string.Empty); 1461return new XmlSchemaException(SR.Sch_InvalidLanguageId, string.Empty); 1509return new XmlSchemaException(SR.Sch_LengthConstraintFailed, string.Empty); 1516return new XmlSchemaException(SR.Sch_MinLengthConstraintFailed, string.Empty); 1523return new XmlSchemaException(SR.Sch_MaxLengthConstraintFailed, string.Empty); 1530return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1578return new XmlSchemaException(SR.Sch_LengthConstraintFailed, string.Empty); 1585return new XmlSchemaException(SR.Sch_MinLengthConstraintFailed, string.Empty); 1592return new XmlSchemaException(SR.Sch_MaxLengthConstraintFailed, string.Empty); 1599return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1641return new XmlSchemaException(SR.Sch_LengthConstraintFailed, string.Empty); 1649return new XmlSchemaException(SR.Sch_MinLengthConstraintFailed, string.Empty); 1657return new XmlSchemaException(SR.Sch_MaxLengthConstraintFailed, string.Empty); 1665return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty); 1710return new XmlSchemaException(SR.Sch_EnumerationConstraintFailed, string.Empty);
System\Xml\Schema\Inference\Infer.cs (1)
503if (childURI == string.Empty)
System\Xml\Schema\NamespaceList.cs (17)
49_set[string.Empty] = string.Empty; 158return string.Empty; 222nslist = new NamespaceList("##other", string.Empty); //clause 4, negations of different values, result is not(absent) 240if (o2._targetNamespace != string.Empty) 244else if (o1._set!.Contains(string.Empty)) 250nslist = new NamespaceList("##other", string.Empty); 269if (o1._targetNamespace != string.Empty) 273else if (o2._set!.Contains(string.Empty)) 279nslist = new NamespaceList("##other", string.Empty); 292if (_set.Contains(string.Empty)) 298nslist = new NamespaceList("##other", string.Empty); 301else if (_set.Contains(string.Empty)) 330nslist.RemoveNamespace(string.Empty); //remove ##local 339nslist.RemoveNamespace(string.Empty); //remove ##local 364if (o1._targetNamespace == string.Empty) 368else if (o2._targetNamespace == string.Empty)
System\Xml\Schema\Parser.cs (5)
188_namespaceManager.AddNamespace(_reader.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 354_annotationNSManager!.AddNamespace(r.Prefix.Length == 0 ? string.Empty : _reader.LocalName, _reader.Value); 370if (elemNS != string.Empty) 405attr = _dummyDocument.CreateAttribute(string.Empty, _xmlns!, XmlReservedNs.NsXmlNs); 463eref.AppendChild(_dummyDocument.CreateTextNode(string.Empty));
System\Xml\Schema\Preprocessor.cs (7)
305string importNS = import.Namespace ?? string.Empty; 491ns ??= string.Empty; 498string tns = schema.TargetNamespace ?? string.Empty; 651_targetNamespace = targetNamespace ?? string.Empty; 691string importNS = import.Namespace ?? string.Empty; 836string targetNS = schemaToUpdate.TargetNamespace ?? string.Empty; 2082name = XmlComplianceUtil.NonCDataNormalize(name ?? string.Empty);
System\Xml\Schema\SchemaAttDef.cs (2)
147get { return _defExpanded ?? string.Empty; } 201validationEventHandling.SendEvent(new XmlSchemaException(SR.Sch_XmlSpace, string.Empty), XmlSeverityType.Error);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
164string importNS = import.Namespace ?? string.Empty; 266_referenceNamespaces.Add(string.Empty, string.Empty); 429_targetNamespace = targetNamespace ?? string.Empty;
System\Xml\Schema\SchemaDeclBase.cs (2)
58get { return prefix ?? string.Empty; } 112get { return defaultValueRaw ?? string.Empty; }
System\Xml\Schema\SchemaElementDecl.cs (1)
244throw new XmlSchemaException(SR.Sch_StandAlone, string.Empty);
System\Xml\Schema\SchemaEntity.cs (2)
168get { return _baseURI ?? string.Empty; } 180get { return _declaredURI ?? string.Empty; }
System\Xml\Schema\SchemaInfo.cs (2)
34private string _internalDtdSubset = string.Empty; 296eventhandler?.Invoke(this, new ValidationEventArgs(new XmlSchemaException(SR.Sch_MixSchemaTypes, string.Empty)));
System\Xml\Schema\SchemaNamespacemanager.cs (1)
31return prefix.Length == 0 ? string.Empty : null;
System\Xml\Schema\SchemaSetCompiler.cs (1)
146tns = schema!.TargetNamespace ?? string.Empty;
System\Xml\Schema\XdrBuilder.cs (3)
479buildFunc(this, a._Datatype.ParseValue(value, _NameTable, _CurNsMgr), string.Empty); 656builder._TargetNamespace = string.Empty; 1800SendValidationEvent(code, string.Empty);
System\Xml\Schema\XdrValidator.cs (6)
187textString = string.Empty; 200LoadSchema(string.Empty); 213_nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 327textString = string.Empty; 392throw new XmlException(SR.Xml_MultipleValidationTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition); 450SendValidationEvent(new XmlSchemaException(SR.Xml_NoValidation, string.Empty), XmlSeverityType.Warning);
System\Xml\Schema\XmlAtomicValue.cs (1)
419return string.Empty;
System\Xml\Schema\XmlSchemaAny.cs (1)
82return string.Empty;
System\Xml\Schema\XmlSchemaCollection.cs (4)
197XmlSchemaCollectionNode? node = (XmlSchemaCollectionNode?)_collection[ns ?? string.Empty]; 211return _collection[ns ?? string.Empty] != null; 272XmlSchemaCollectionNode? node = (XmlSchemaCollectionNode?)_collection[ns ?? string.Empty]; 305ns = schema.TargetNamespace ?? string.Empty;
System\Xml\Schema\XmlSchemaDataType.cs (2)
87string typeCodeString = string.Empty; 175string stringValue = string.Empty;
System\Xml\Schema\XmlSchemaException.cs (1)
149return string.Format(res ?? string.Empty, args);
System\Xml\Schema\XmlSchemaObjectTable.cs (8)
287throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 291throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 346throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 350throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 362throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 366throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 378throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 382throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty));
System\Xml\Schema\XmlSchemaParticle.cs (6)
40throw new XmlSchemaException(SR.Sch_MinOccursInvalidXsd, string.Empty); 72throw new XmlSchemaException(SR.Sch_MaxOccursInvalidXsd, string.Empty); 92throw new XmlSchemaException(SR.Sch_MinOccursInvalidXsd, string.Empty); 107throw new XmlSchemaException(SR.Sch_MaxOccursInvalidXsd, string.Empty); 132return string.Empty; 155ns = string.Empty;
System\Xml\Schema\XmlSchemaSet.cs (11)
329tns = schema!.TargetNamespace ?? string.Empty; 435SendValidationEvent(new XmlSchemaException(SR.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning); 456targetNamespace ??= string.Empty; 507SendValidationEvent(new XmlSchemaException(SR.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error); 671targetNamespace ??= string.Empty; 785targetNamespace ??= string.Empty; 820tns = impSchema.TargetNamespace ?? string.Empty; 858string tns = schema.TargetNamespace ?? string.Empty; 1228targetNamespace ??= string.Empty; 1284return schema.TargetNamespace ?? string.Empty; 1384string code = string.Empty;
System\Xml\Schema\XmlSchemaValidator.cs (12)
327string? tns = schema.TargetNamespace ?? string.Empty; 352tns = impSchema.TargetNamespace ?? string.Empty; 589SendValidationEvent(SR.Sch_ValidateAttributeInvalidCall, string.Empty); 601SendValidationEvent(SR.Sch_AttrUseAndWildId, string.Empty); 610SendValidationEvent(SR.Sch_MoreThanOneWildId, string.Empty); 753SendValidationEvent(SR.Sch_InvalidTextInEmpty, string.Empty); 832SendValidationEvent(SR.Sch_InvalidWhitespaceInEmpty, string.Empty); 1034string? defaultPrefix = string.Empty; 1179string stringValue = string.Empty; 1267LoadSchema(string.Empty, xsiNoNamespaceSchemaLocation); 1634SendValidationEvent(SR.Sch_ValidateElementInvalidCall, string.Empty); 2806SendValidationEvent(code, string.Empty);
System\Xml\Schema\XsdBuilder.cs (5)
699name ??= string.Empty; 700ns ??= string.Empty; 724name ??= string.Empty; 725ns ??= string.Empty; 754_namespaces.Add(new XmlQualifiedName((name == _schemaNames.QnXmlNs.Name) ? string.Empty : name, value));
System\Xml\Schema\XsdValidator.cs (6)
152inlineNS = schema.TargetNamespace ?? string.Empty; 265LoadSchema(string.Empty, null); 285_nsManager.AddNamespace(reader.Prefix.Length == 0 ? string.Empty : reader.LocalName, reader.Value); 312LoadSchema(string.Empty, xsiNoNamespaceSchemaLocation); 565textString = string.Empty; 635throw new XmlException(SR.Xml_MultipleValidationTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
System\Xml\Serialization\_Events.cs (2)
63get { return _qnames ?? string.Empty; } 111get { return _qnames ?? string.Empty; }
System\Xml\Serialization\Mappings.cs (5)
57get { return _name ?? string.Empty; } 464get { return _xmlName ?? string.Empty; } 471get { return _name ?? string.Empty; } 949get { return _name ?? string.Empty; } 1165_namespaces = string.Empty;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
110string elementNs = element.Form == XmlSchemaForm.Qualified ? element.Namespace! : string.Empty; 346string? ns = element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty; 800string? ns = ele.Form == XmlSchemaForm.Qualified ? ele.Namespace : string.Empty; 870string? ns = e!.Form == XmlSchemaForm.Qualified ? e.Namespace : string.Empty; 887string? ns = element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty; 2047memberFound = XmlNodeEqual(Reader, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty); 2069xmlnsMember.XmlnsSource(Reader.Name.Length == 5 ? string.Empty : Reader.LocalName, Reader.Value);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (9)
86string? ns = (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty); 290string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty); 552string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty); 572WriteNullTagLiteral(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty); 1003Writer.WriteStartAttribute(null, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty); 1079string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1117string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1442WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty), mapping.IsSoap); 1527WriteRpcResult(member.Elements[0].Name, string.Empty);
System\Xml\Serialization\SchemaObjectWriter.cs (1)
276if (o == null) return string.Empty;
System\Xml\Serialization\SoapAttributeAttribute.cs (2)
28get { return _attributeName ?? string.Empty; } 41get { return _dataType ?? string.Empty; }
System\Xml\Serialization\SoapAttributeOverrides.cs (2)
19Add(type, string.Empty, attributes); 41return this[type, string.Empty];
System\Xml\Serialization\SoapElementAttribute.cs (2)
28get { return _elementName ?? string.Empty; } 35get { return _dataType ?? string.Empty; }
System\Xml\Serialization\SoapEnumAttribute.cs (1)
26get { return _name ?? string.Empty; }
System\Xml\Serialization\SoapReflectionImporter.cs (4)
41_defaultNs = defaultNamespace ?? string.Empty; 159return ImportTypeMapping(model, string.Empty, limiter); 706attribute.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(accessorType), (a.SoapAttribute == null ? string.Empty : a.SoapAttribute.DataType), limiter); 721element.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(accessorType), (a.SoapElement == null ? string.Empty : a.SoapElement.DataType), limiter);
System\Xml\Serialization\SoapSchemamember.cs (1)
24get { return _memberName ?? string.Empty; }
System\Xml\Serialization\SoapTypeAttribute.cs (1)
40get { return _typeName ?? string.Empty; }
System\Xml\Serialization\XmlAnyElementAttribute.cs (1)
52get { return _name ?? string.Empty; }
System\Xml\Serialization\XmlArrayAttribute.cs (1)
43get { return _elementName ?? string.Empty; }
System\Xml\Serialization\XmlArrayItemAttribute.cs (2)
72get { return _elementName ?? string.Empty; } 97get { return _dataType ?? string.Empty; }
System\Xml\Serialization\XmlAttributeAttribute.cs (2)
69get { return _attributeName ?? string.Empty; } 88get { return _dataType ?? string.Empty; }
System\Xml\Serialization\XmlAttributeOverrides.cs (2)
26Add(type, string.Empty, attributes); 54return this[type, string.Empty];
System\Xml\Serialization\XmlChoiceIdentifierAttribute.cs (1)
41get { return _name ?? string.Empty; }
System\Xml\Serialization\XmlElementAttribute.cs (2)
72get { return _elementName ?? string.Empty; } 91get { return _dataType ?? string.Empty; }
System\Xml\Serialization\XmlMapping.cs (2)
117return $"{type.FullName}:{(root == null ? string.Empty : root.GetKey())}:{ns ?? string.Empty}";
System\Xml\Serialization\XmlMemberMapping.cs (1)
71get { return Accessor!.Mapping != null ? Accessor.Mapping.TypeName : string.Empty; }
System\Xml\Serialization\XmlReflectionImporter.cs (8)
77_defaultNs = defaultNamespace ?? string.Empty; 126TypeMapping mapping = ImportTypeMapping(_modelScope.GetTypeModel(type), _defaultNs, ImportContext.Element, string.Empty, null, limiter); 278ElementAccessor element = CreateElementAccessor(ImportTypeMapping(model, ns, ImportContext.Element, string.Empty, a, limiter), ns); 1571accessor.ChoiceIdentifier.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(choiceIdentifierType!), ns, ImportContext.Element, string.Empty, null, limiter); 1728element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, string.Empty, null, limiter); 1971element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, string.Empty, null, false, openModel, limiter); 2311defaultNamespace ??= string.Empty; 2323string typeName = string.Empty;
System\Xml\Serialization\XmlReflectionMember.cs (1)
62get { return _memberName ?? string.Empty; }
System\Xml\Serialization\XmlRootAttribute.cs (3)
47get { return _elementName ?? string.Empty; } 66get { return _dataType ?? string.Empty; } 95get { return $"{_ns ?? string.Empty}:{ElementName}:{_nullable}"; }
System\Xml\Serialization\XmlSchemaImporter.cs (3)
254accessor = ImportElement(element, string.Empty, desiredMappingType, baseType, name.Namespace, true); 1792return string.Compare(e1.ToString(string.Empty), e2.ToString(string.Empty), StringComparison.Ordinal);
System\Xml\Serialization\XmlSerializationReader.cs (5)
443return string.Empty; 457s = string.Empty; 878XmlQualifiedName empty = new XmlQualifiedName(string.Empty, _r.LookupNamespace("")); 1187return new XmlQualifiedName(_r.NameTable.Add(value), _r.LookupNamespace(string.Empty)); 4046string qnames = string.Empty;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (8)
372ilg.LoadMember(_idNameFields[name ?? string.Empty]); 374ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1792ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1797ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1844ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1852ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 2007ilg.Ldstr(string.Empty); 2275string qnames = string.Empty;
System\Xml\Serialization\XmlSerializationWriter.cs (5)
384value = string.Empty; 1433name ??= string.Empty; 2042return GetStringForCreateInstance(escapedTypeName, useReflection, ctorInaccessible, cast, string.Empty); 3356string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 3480string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1173string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1319string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty;
System\Xml\Serialization\XmlSerializer.cs (3)
552return xmlReader.IsStartElement(typeDesc.DataType!.Name!, string.Empty); 698if (nameOrLocation == string.Empty) 858if (ns != null && ns != string.Empty)
System\Xml\Serialization\XmlTextAttribute.cs (1)
48get { return _dataType ?? string.Empty; }
System\Xml\Serialization\XmlTypeAttribute.cs (1)
59get { return _typeName ?? string.Empty; }
System\Xml\ValidateNames.cs (9)
347prefix = string.Empty; 374throw new XmlException(SR.Format(SR.Xml_EmptyName, string.Empty)); 394return new XmlException(SR.Xml_EmptyName, string.Empty); 480if (throwOnError) throw new XmlException(SR.Xdom_Empty_LocalName, string.Empty); 527if (throwOnError) throw new XmlException(SR.Xml_PrefixForEmptyNs, string.Empty); 545if (throwOnError) throw new XmlException(SR.Xml_XmlPrefix, string.Empty); 552if (throwOnError) throw new XmlException(SR.Xml_XmlnsPrefix, string.Empty); 558if (throwOnError) throw new XmlException(SR.Xml_NamespaceDeclXmlXmlns, string.Empty); 604prefix = string.Empty;
System\Xml\XmlComplianceUtil.cs (2)
20return string.Empty; 102return string.Empty;
System\Xml\XmlConvert.cs (3)
333return new XmlException(SR.Xml_EmptyName, string.Empty); 469return new XmlException(SR.Xml_EmptyName, string.Empty); 1537return new XmlException(res, string.Empty, lineNo, linePos);
System\Xml\XmlEncoding.cs (4)
535throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty); 576throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty); 618throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty); 660throw new XmlException(SR.Xml_InvalidCharInThisEncoding, string.Empty);
System\Xml\XmlException.cs (1)
44_sourceUri = string.Empty;
System\Xml\XmlNamespacemanager.cs (3)
64string emptyStr = nameTable.Add(string.Empty); 84string? defaultNs = LookupNamespace(string.Empty); 85return defaultNs ?? string.Empty;
System\Xml\XmlQualifiedName.cs (10)
18public static readonly XmlQualifiedName Empty = new(string.Empty); 23public XmlQualifiedName() : this(string.Empty, string.Empty) { } 28public XmlQualifiedName(string? name) : this(name, string.Empty) { } 35Namespace = ns ?? string.Empty; 36Name = name ?? string.Empty; 123Name = name ?? string.Empty; 124Namespace = ns ?? string.Empty; 130Namespace = ns ?? string.Empty; // Not changing hash since ns is not used to compute hashcode 161uri = string.Empty;
System\Xml\XmlResolver.FileSystemResolver.cs (2)
39throw new XmlException(SR.Xml_UnsupportedClass, string.Empty); 52throw new XmlException(SR.Xml_UnsupportedClass, string.Empty);
System\Xml\XmlUrlResolver.cs (2)
46throw new XmlException(SR.Xml_UnsupportedClass, string.Empty); 57throw new XmlException(SR.Xml_UnsupportedClass, string.Empty);
System\Xml\XPath\Internal\Axis.cs (3)
50: this(axisType, input, string.Empty, string.Empty, XPathNodeType.All) 72private string? _urn = string.Empty;
System\Xml\XPath\Internal\BaseAxisQuery.cs (4)
27_name = string.Empty; 28_prefix = string.Empty; 29_nsUri = string.Empty; 40_nsUri = string.Empty;
System\Xml\XPath\Internal\CompiledXPathExpr.cs (2)
120get { return string.Empty; } 127return string.Empty;
System\Xml\XPath\Internal\NodeFunctions.cs (1)
93return string.Empty;
System\Xml\XPath\Internal\StringFunctions.cs (7)
60_ => string.Empty, 83return value != null ? value.Value : string.Empty; 152return (idx < 1) ? string.Empty : s1.Substring(0, idx); 162return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 173return string.Empty; 180return string.Empty; 188return string.Empty;
System\Xml\XPath\Internal\XPathArrayIterator.cs (1)
58throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty));
System\Xml\XPath\Internal\XPathParser.cs (5)
406nodePrefix = string.Empty; 407nodeName = string.Empty; 439nodeName = string.Empty; 444nodePrefix = string.Empty; 445nodeName = string.Empty;
System\Xml\XPath\Internal\XPathScanner.cs (2)
29throw XPathException.Create(SR.Xp_ExprExpected, string.Empty); 215_prefix = string.Empty;
System\Xml\XPath\XPathDocument.cs (5)
83XmlTextReaderImpl reader = SetupReader(new XmlTextReaderImpl(string.Empty, textReader)); 102XmlTextReaderImpl reader = SetupReader(new XmlTextReaderImpl(string.Empty, stream)); 178Debug.Assert((object?)_nameTable.Get(string.Empty) == (object)string.Empty, "NameTable must contain atomized string.Empty"); 211builder.WriteNamespaceDeclaration(string.Empty, reader.Value);
System\Xml\XPath\XPathException.cs (1)
65public XPathException() : this(string.Empty, (Exception?)null) { }
System\Xml\XPath\XPathNavigator.cs (6)
422return string.Empty; 459if (namespaceURI == LookupNamespace(string.Empty)) 460return string.Empty; 547return string.Empty; 632return string.Empty; 1414return string.Empty;
System\Xml\XPath\XPathNavigatorReader.cs (19)
207return string.Empty; 221return string.Empty; 235return string.Empty; 315return string.Empty; 435return nav.GetNamespace(string.Empty); 438if (nav.MoveToAttribute(localname, string.Empty)) 481localName = string.Empty; 485namespaceURI = string.Empty; 569localName = string.Empty; 582namespaceName = string.Empty; 720localname = string.Empty; 733if (nav.MoveToAttribute(localname, string.Empty)) 1165get { return string.Empty; } 1170get { return string.Empty; } 1175get { return string.Empty; } 1180get { return string.Empty; } 1185get { return string.Empty; } 1190get { return string.Empty; } 1200get { return string.Empty; }
System\Xml\XPath\XPathNodeIterator.cs (2)
64throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty)); 71throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty));
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (3)
953_nsmgr.AddNamespace(string.Empty, string.Empty); 1074if (!ValidateNames.ValidateName(prefix, string.Empty, ns, nodeType, ValidateNames.Flags.CheckPrefixMapping))
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (2)
4520return Replace(XmlILOptimization.EliminateTypeAssert, local0, VisitError(f.Error(VisitLiteralString(f.LiteralString(string.Empty))))); 4535return Replace(XmlILOptimization.EliminateTypeAssert, local0, VisitConditional(f.Conditional(VisitIsEmpty(f.IsEmpty(local1)), VisitSequence(f.Sequence()), VisitError(f.Error(VisitLiteralString(f.LiteralString(string.Empty)))))));
System\Xml\Xsl\ListBase.cs (2)
245throw new InvalidOperationException(SR.Format(SR.Sch_EnumNotStarted, string.Empty)); 248throw new InvalidOperationException(SR.Format(SR.Sch_EnumFinished, string.Empty));
System\Xml\Xsl\QIL\QilFactory.cs (2)
72return LiteralQName(local, string.Empty, string.Empty);
System\Xml\Xsl\QIL\QilPatternFactory.cs (4)
58return _f.LiteralQName(local, uri, string.Empty); 63return _f.LiteralQName(local, string.Empty, string.Empty); 464return _f.LiteralString(string.Empty);
System\Xml\Xsl\Runtime\DecimalFormatter.cs (1)
130_negFormatInfo.NegativeSign = string.Empty;
System\Xml\Xsl\Runtime\RtfNavigator.cs (4)
57get { return string.Empty; } 65get { return string.Empty; } 73get { return string.Empty; } 81get { return string.Empty; }
System\Xml\Xsl\Runtime\StringConcat.cs (2)
720 => string.Empty, 731 => _s1 ?? string.Empty,
System\Xml\Xsl\Runtime\XmlQueryContext.cs (2)
107throw new XslTransformException(SR.XmlIl_NoDefaultDocument, string.Empty); 194throw new XslTransformException(SR.XmlIl_CantStripNav, string.Empty);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (18)
460WriteStartElementUnchecked(string.Empty, localName, string.Empty); 495WriteEndElementUnchecked(string.Empty, localName, string.Empty); 514WriteStartAttributeUnchecked(string.Empty, localName, string.Empty); 617WriteStartElement(string.Empty, localName, string.Empty); 625WriteStartAttribute(string.Empty, localName, string.Empty); 1147throw new XslTransformException(SR.XmlIl_NmspAfterAttr, string.Empty); 1224WriteNamespaceDeclarationUnchecked(string.Empty, string.Empty); 1507prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty; 1526prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty; 1580throw new XslTransformException(SR.XmlIl_BadXmlStateAttr, string.Empty);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
577throw new XslTransformException(SR.Xslt_ItemNull, string.Empty); 693throw new XslTransformException(SR.Xslt_ItemNull, string.Empty);
System\Xml\Xsl\Runtime\XmlRawWriterWrapper.cs (1)
227_wrapped.WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns);
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (3)
86_writer = _doc.LoadFromWriter(XPathDocument.LoadFlags.AtomizeNames | (rootType == XPathNodeType.Root ? XPathDocument.LoadFlags.None : XPathDocument.LoadFlags.Fragment), string.Empty); 141throw new XslTransformException(SR.XmlIl_TopLevelAttrNmsp, string.Empty); 167throw new XslTransformException(SR.XmlIl_TopLevelAttrNmsp, string.Empty);
System\Xml\Xsl\Runtime\XsltConvert.cs (5)
121XmlRawWriter writer = doc.LoadFromWriter(XPathDocument.LoadFlags.AtomizeNames, string.Empty); 141throw new XslTransformException(SR.Xslt_NodeSetNotNode, string.Empty); 190return string.Empty; 331throw new XslTransformException(SR.XPath_NodeSetExpected, string.Empty); 334throw new XslTransformException(SR.XPath_RtfInPathExpr, string.Empty);
System\Xml\Xsl\Runtime\XsltFunctions.cs (15)
45return (idx < 1) ? string.Empty : s1.Substring(0, idx); 53return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length); 70return string.Empty; 79return string.Empty; 97return string.Empty; 143if (idxStart == idx) return string.Empty; 232return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), string.Empty); 374return string.Empty; 388return string.Empty; 439return string.Empty; 445return string.Empty; 491return string.Empty; 510return string.Empty; 515return string.Empty; 526return string.Empty;
System\Xml\Xsl\SourceLineInfo.cs (1)
58public static readonly SourceLineInfo NoSource = new SourceLineInfo(string.Empty, NoSourceMagicNumber, 0, NoSourceMagicNumber, 0);
System\Xml\Xsl\XPath\XPathParser.cs (1)
277nodePrefix = string.Empty;
System\Xml\Xsl\XPath\XPathScanner.cs (2)
339_prefix = string.Empty; 586return string.Empty;
System\Xml\Xsl\Xslt\Compiler.cs (3)
239/*prefix:*/string.Empty, /*localName:*/name, /*ns:*/string.Empty, 313lineInfo.Uri!, lineInfo.Start.Line, lineInfo.Start.Pos, /*errorNumber:*/string.Empty,
System\Xml\Xsl\Xslt\OutputScopeManager.cs (2)
120string? defaultNs = LookupNamespace(string.Empty); 136AddRecord(string.Empty, defaultNs);
System\Xml\Xsl\Xslt\QilGenerator.cs (11)
1499varValue = _f.String(string.Empty); 1572_f.String(string.Empty), 1664select = _f.Conditional(text, _f.ConvertToString(select), _f.String(string.Empty)); 2041result = _f.String(string.Empty); 2053result = _f.String(string.Empty); 2061fwdCompat ? _f.String(string.Empty) : 2496nsDecls.Add(_f.NamespaceDecl(_f.String(string.Empty), _f.String(string.Empty))); 2687string attMode = (mode.LocalName.Length == 0) ? string.Empty : $" mode=\"{mode.QualifiedName}\""; 2768return string.Empty; 2777ns = string.Empty;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (7)
160/*lang: */2 < args.Count ? _f.ConvertToString(args[2]) : _f.String(string.Empty), 161/*options:*/3 < args.Count ? _f.ConvertToString(args[3]) : _f.String(string.Empty) 174/*format: */1 < args.Count ? _f.ConvertToString(args[1]) : _f.String(string.Empty), 175/*lang: */2 < args.Count ? _f.ConvertToString(args[2]) : _f.String(string.Empty), 264return string.Empty; 275ns = string.Empty; 569formatName = _f.String(string.Empty);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
963return string.Empty;
System\Xml\Xsl\Xslt\XsltInput.cs (13)
205rec.localName = string.Empty; 206rec.nsUri = string.Empty; 207rec.prefix = string.Empty; 247rec.localName = string.Empty; 248rec.nsUri = string.Empty; 249rec.prefix = string.Empty; 288_scopeManager.AddNsDeclaration(string.Empty, atomizedValue); 289_ctxInfo!.AddNamespace(string.Empty, atomizedValue); 297rec.value = string.Empty; 311string lastText = string.Empty; 599public bool IsNullNamespace() { return IsNs(string.Empty); } 964list[idx] = this.LookupXmlNamespace(string.Empty)!; 1104return string.Empty;
System\Xml\Xsl\Xslt\XsltLoader.cs (4)
33internal static readonly QilName nullMode = F.QName(string.Empty); 1025stylesheetNsUri = _input.LookupXmlNamespace(_input.Value == "#default" ? string.Empty : _input.Value); 1037resultPrefix = _input.Value == "#default" ? string.Empty : _input.Value; 2758namespaceName = string.Empty;
System\Xml\Xsl\XsltOld\BuilderInfo.cs (4)
34Initialize(string.Empty, string.Empty, string.Empty); 143case 0: return string.Empty;
System\Xml\Xsl\XsltOld\CommentAction.cs (3)
31if (!processor.BeginEvent(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, false))
System\Xml\Xsl\XsltOld\Compiler.cs (3)
94public static readonly XmlQualifiedName BuiltInMode = new XmlQualifiedName("*", string.Empty); 445nsList[idx] = _scopeManager.ResolveXmlNamespace(prefix == "#default" ? string.Empty : prefix); 787prefix = string.Empty;
System\Xml\Xsl\XsltOld\InputScopeManager.cs (2)
14private string _defaultNS = string.Empty; 132return string.Empty;
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (1)
45_wr.WriteNamespaceDeclaration(string.Empty, attrInfo.Value);
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
381return string.Empty;
System\Xml\Xsl\XsltOld\OutKeywords.cs (1)
22_AtomEmpty = nameTable.Add(string.Empty);
System\Xml\Xsl\XsltOld\OutputScope.cs (5)
63Init(string.Empty, string.Empty, string.Empty, XmlSpace.None, string.Empty, false); 98prefix = string.Empty;
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (4)
63rootElementScope.Init(string.Empty, string.Empty, string.Empty, /*space:*/XmlSpace.None, /*lang:*/string.Empty, /*mixed:*/false);
System\Xml\Xsl\XsltOld\PrefixQName.cs (3)
20Prefix = string.Empty; 37prefix = string.Empty; 38local = string.Empty;
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (2)
89if (!processor.BeginEvent(XPathNodeType.ProcessingInstruction, string.Empty, frame.StoredOutput, string.Empty, false))
System\Xml\Xsl\XsltOld\Processor.cs (2)
577result = n != null ? ValueOf(n) : string.Empty; 664return value ?? string.Empty;
System\Xml\Xsl\XsltOld\ReaderOutput.cs (8)
145return string.Empty; 175get { return _manager != null ? _manager.XmlLang : string.Empty; } 389string result = string.Empty; 465return string.Empty; 507return string.Empty; 624namespaceURI ??= string.Empty; 625localName ??= string.Empty; 645name ??= string.Empty;
System\Xml\Xsl\XsltOld\RecordBuilder.cs (1)
274prefix = string.Empty;
System\Xml\Xsl\XsltOld\SequentialOutput.cs (2)
242WriteName(string.Empty, "html"); 273WriteName(string.Empty, "xml");
System\Xml\Xsl\XsltOld\TextAction.cs (1)
45_text = string.Empty;
System\Xml\Xsl\XsltOld\VariableAction.cs (1)
156value = string.Empty;
System\Xml\Xsl\XsltOld\WithParamAction.cs (1)
49processor.SetParameter(this.name!, string.Empty);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (8)
56get { return string.Empty; } 386string ns = string.Empty, local = string.Empty; 506string result = string.Empty; 538return string.Empty; 661return string.Empty; 775return string.Empty; 835baseUri = string.Empty; // call to Document will fail if args[0] is reletive.
System\Xml\Xslt\XsltException.cs (1)
72public XsltException() : this(string.Empty, (Exception?)null) { }
System.Private.Xml.Linq (52)
System\Xml\Linq\XAttribute.cs (1)
693if (namespaceName.Length == 0) return string.Empty;
System\Xml\Linq\XContainer.cs (8)
984e.AppendAttributeSkipNotify(new XAttribute(_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value)); 995_currentContainer.content ??= string.Empty; 1044_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), 1056_currentContainer.content ??= string.Empty; 1120XAttribute a = new XAttribute(_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 1142_currentContainer.content ??= string.Empty; 1243_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), 1266_currentContainer.content ??= string.Empty;
System\Xml\Linq\XElement.cs (2)
307if (content == null) return string.Empty; 2071XAttribute a = new XAttribute(XNamespace.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value);
System\Xml\Linq\XLinq.cs (5)
298if (namespaceName.Length == 0) return string.Empty; 320_resolver.AddFirst(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value)); 338_resolver.Add(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value)); 563if (namespaceName.Length == 0) return string.Empty; 578_resolver.Add(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value));
System\Xml\Linq\XNamespace.cs (1)
83return EnsureNamespace(ref s_refNone, string.Empty);
System\Xml\Linq\XNodeBuilder.cs (3)
142e.Add(string.Empty); 169_attrName = XNamespace.Get(prefix.Length == 0 ? string.Empty : namespaceName!).GetName(localName); 170_attrValue = string.Empty;
System\Xml\Linq\XNodeReader.cs (17)
79return string.Empty; 202return string.Empty; 224return string.Empty; 249return string.Empty; 266return string.Empty; 317return string.Empty; 327return string.Empty; 338return string.Empty; 362return string.Empty; 379return ((XDocumentType)o).InternalSubset ?? string.Empty; 381return string.Empty; 394return string.Empty; 410return string.Empty; 527namespaceName = string.Empty; 661namespaceName = string.Empty; 1074nameTable.Add(string.Empty); 1144namespaceName = string.Empty;
System\Xml\Linq\XObject.cs (1)
40return string.Empty;
System\Xml\Schema\XNodeValidator.cs (2)
186localName = string.Empty; 213localName = string.Empty;
System\Xml\XPath\XNodeNavigator.cs (12)
76return string.Empty; 144return string.Empty; // backcompat 153return string.Empty; 186return string.Empty; // backcompat 190return string.Empty; 240return string.Empty; 247return string.Empty; // backcompat 255return string.Empty; 280return root != null ? root.Value : string.Empty; 289return string.Empty; 292return string.Empty; 742nameTable.Add(string.Empty);
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
540local.Name == null ? _pdbBuilder.GetOrAddString(string.Empty) : _pdbBuilder.GetOrAddString(local.Name));
System.Reflection.Metadata (10)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (3)
133if (attributeName == string.Empty) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 369tokenString = string.Empty;
System\Reflection\Internal\Utilities\EncodingHelper.cs (2)
28return string.Empty; 42return string.Empty;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
551string prev = string.Empty;
System\Reflection\Metadata\Internal\NamespaceCache.cs (2)
129string.Empty)); 256parentName = string.Empty;
System\Reflection\Metadata\Internal\UserStringHeap.cs (1)
22return string.Empty;
System\Reflection\Metadata\TypeName.cs (1)
403rootTypeName._namespace = string.Empty;
System.Reflection.MetadataLoadContext (10)
System\Reflection\MetadataLoadContext.Loading.cs (2)
29string location = (peStream is FileStream fs) ? (fs.Name ?? string.Empty) : string.Empty;
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
58data.CultureName = ar.Culture.GetStringOrNull(reader) ?? string.Empty;
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.GetName.cs (1)
21CultureName = ad.Culture.GetStringOrNull(reader) ?? string.Empty
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.ManifestResources.cs (1)
32internalManifestResourceInfo.FileName = underlyingManifestResourceInfo.FileName ?? string.Empty;
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (2)
45string ns = td.Namespace.GetStringOrNull(reader) ?? string.Empty; 58string ns = tr.Namespace.GetStringOrNull(reader) ?? string.Empty;
System\Reflection\TypeLoading\General\Helpers.cs (1)
202ns = string.Empty;
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
42CultureName = cultureName ?? string.Empty;
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
52protected sealed override string ComputeName() => string.Empty;
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\SerializationExtensions.cs (1)
21ex.StackTrace ?? string.Empty);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\HandleCollector.cs (1)
38Name = name ?? string.Empty;
System.Runtime.Numerics (2)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
1025ArgumentOutOfRangeException.ThrowIfNegative(groupSizeCount | bufferSize, string.Empty); // If we overflow
System\Number.BigInteger.cs (1)
912string negativeSign = value.Sign < 0 ? info.NegativeSign : string.Empty;
System.Runtime.Serialization.Schema (7)
System\Runtime\Serialization\Schema\CodeExporter.cs (6)
75string clrNamespace = pair.Value ?? string.Empty; 103string ns = codeNS.Name ?? string.Empty; 193get { return (CodeProvider == null) ? string.Empty : CodeProvider.FileExtension; } 1536return string.Empty; 1562return string.Empty; 1928loop.InitStatement = loop.IncrementStatement = new CodeSnippetStatement(string.Empty);
System\Runtime\Serialization\Schema\SchemaImportHelper.cs (1)
110return new Uri(ImportGlobals.DataContractXsdBaseNamespaceUri, clrNs ?? string.Empty).AbsoluteUri;
System.Security.Claims (2)
System\Security\Claims\GenericPrincipal.cs (2)
86private static GenericPrincipal GetDefaultInstance() => new GenericPrincipal(new GenericIdentity(string.Empty), new string[] { string.Empty });
System.Security.Cryptography (14)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (2)
107return string.Empty; 151return string.Empty; // .NET Framework compat: 0-length byte array maps to string.empty. 1-length byte array gets passed to Marshal.PtrToStringUni() with who knows what outcome.
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (1)
131return string.Empty;
System\Security\Cryptography\AsnEncodedData.cs (1)
129return string.Empty;
System\Security\Cryptography\CngAsnFormatter.cs (1)
15string oidValue = string.Empty;
System\Security\Cryptography\HashAlgorithmName.cs (1)
95return _name ?? string.Empty;
System\Security\Cryptography\RandomNumberGenerator.cs (1)
279return string.Empty;
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (3)
296return string.Empty; 305return string.Empty; 314string friendlyName = value ?? string.Empty;
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
439Algorithm = _oid.Value ?? string.Empty,
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
55/// <paramref name="registeredId" /> is <see langword="null" /> or <see cref="string.Empty" />.
System\Security\Cryptography\X509Certificates\X509ChainStatus.cs (1)
20return string.Empty;
System\Security\Cryptography\X509Certificates\X509Pal.Windows.X500DistinguishedName.cs (1)
63return string.Empty;
System.Security.Cryptography.Pkcs (3)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
51return new SubjectIdentifierOrKey(SubjectIdentifierOrKeyType.Unknown, string.Empty);
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (2)
107return string.Empty; 151return string.Empty; // .NET Framework compat: 0-length byte array maps to string.empty. 1-length byte array gets passed to Marshal.PtrToStringUni() with who knows what outcome.
System.Security.Cryptography.Xml (5)
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
16get => field ??= string.Empty; // an unspecified value for an XmlAttribute is string.Empty
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
15protected EncryptedReference() : this(string.Empty, new TransformChain())
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
190get => field ??= string.Empty; // an unspecified value for an XmlAttribute is string.Empty
System\Security\Cryptography\Xml\Utils.cs (2)
121return a.Prefix.Length == 0 ? string.Empty : a.LocalName; 403set.Add(string.Empty, true);
System.Security.Permissions (4)
System\Security\Permissions\PrincipalPermission.cs (4)
26_idArray = new IDRole[] { new IDRole(false, string.Empty, string.Empty) }; 147string newID = string.Empty; 148string newRole = string.Empty;
System.Security.Principal.Windows (7)
System\Security\Principal\WindowsIdentity.cs (7)
383return string.Empty; 389return string.Empty; // no authentication, just return an empty string 579return string.Empty; 1271c.Properties.Add(propertyValue, string.Empty); 1283c.Properties.Add(propertyValue, string.Empty); 1296c.Properties.Add(propertyValue, string.Empty); 1315c.Properties.Add(propertyValue, string.Empty);
System.ServiceModel.Http (23)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
68RemoteAddress != null ? RemoteAddress.ToString() : string.Empty);
System\ServiceModel\Channels\HttpChannelFactory.cs (6)
263connectionGroupName = connectionGroupName ?? string.Empty; 405if (credentials.UserName.UserName == string.Empty) 413if (credentials.HttpDigest.ClientCredential.UserName != string.Empty) 421if (credentials.Windows.ClientCredential.UserName != string.Empty) 630return string.Empty; 656string inputString = TransferModeHelper.IsRequestStreamed(TransferMode) ? "streamed" : string.Empty;
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
136_contentType = mediaValueContentType == null ? string.Empty : mediaValueContentType.ToString();
System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
39_method = string.Empty;
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
425LocalAddress != null && LocalAddress.Uri != null ? LocalAddress.Uri.AbsoluteUri : string.Empty,
System\ServiceModel\Channels\WebSocketHelper.cs (1)
216string errorMsg = string.Empty;
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (11)
79RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 98RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 112RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 178RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 270RemoteAddress != null ? RemoteAddress.ToString() : string.Empty); 581string.Empty); 748String.Empty); 1060WcfEventSource.Instance.WebSocketAsyncReadStop(_webSocket.GetHashCode(), receivedBytes, string.Empty); 1107string.Empty); 1148string.Empty); 1173string.Empty);
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
98if (value == string.Empty)
System.ServiceModel.Http.Tests (1)
Channels\HttpRequestMessagePropertyTest.cs (1)
20Assert.Equal(string.Empty, requestMsgProperty.QueryString);
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\ConnectionPool.cs (1)
471WcfEventSource.Instance.ConnectionPoolMiss(Key != null ? Key.ToString() : string.Empty, _busyConnections.Count);
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
370await sslStream.AuthenticateAsClientAsync(string.Empty, clientCertificates, _parent.SslProtocols, false);
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
376LocalAddress != null && LocalAddress.Uri != null ? LocalAddress.Uri.AbsoluteUri : string.Empty,
System\ServiceModel\Security\SecurityUtilsEx.cs (2)
116return String.Empty; 157return str.Length <= 0 ? String.Empty : str.ToString();
System.ServiceModel.NetNamedPipe (2)
System\ServiceModel\Channels\ApplicationContainerSettings.cs (1)
59string suffix = string.Empty;
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
81string matchPath = String.Empty;
System.ServiceModel.NetTcp (2)
System\ServiceModel\Channels\DnsCache.cs (1)
40s_machineName = Dns.GetHostEntry(string.Empty).HostName;
System\ServiceModel\Channels\SocketConnection.cs (1)
444_remoteEndpointAddress = string.Empty;
System.ServiceModel.Primitives (87)
Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
20protected static string AppDomainFriendlyName = String.Empty;
Internals\System\Runtime\Diagnostics\DictionaryTraceRecord.cs (1)
29xml.WriteElementString(key.ToString(), value == null ? string.Empty : value.ToString());
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (2)
156xml.WriteElementString(DiagnosticStrings.ValueTag, string.Empty); 329return new TracePayload(serializedException, eventSource, DiagnosticTraceBase.AppDomainFriendlyName, extendedData, string.Empty);
Internals\System\Runtime\Diagnostics\EventDescriptor.cs (2)
48throw Fx.Exception.ArgumentOutOfRange("id", id, string.Empty); 65throw Fx.Exception.ArgumentOutOfRange("task", task, string.Empty);
Internals\System\Runtime\ExceptionTrace.cs (12)
41WcfEventSource.Instance.ThrowingEtwException(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 48WcfEventSource.Instance.EtwUnhandledException(exception != null ? exception.ToString() : string.Empty, serializedException); 55WcfEventSource.Instance.ThrowingEtwExceptionVerbose(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 81WcfEventSource.Instance.ThrowingEtwException(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 88WcfEventSource.Instance.EtwUnhandledException(exception != null ? exception.ToString() : string.Empty, serializedException); 95WcfEventSource.Instance.ThrowingEtwExceptionVerbose(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 293TraceCore.HandledExceptionError(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 298TraceCore.HandledExceptionWarning(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 303TraceCore.HandledExceptionVerbose(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 308TraceCore.HandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 315TraceCore.UnhandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 329TraceCore.ThrowingException(_diagnosticTrace, eventSource, exception != null ? exception.ToString() : string.Empty, exception);
Internals\System\Runtime\UrlUtility.cs (4)
483return string.Empty; 564base.Add(null, string.Empty); 581return string.Empty; 599keyPrefix = (!string.IsNullOrEmpty(key)) ? (key + "=") : string.Empty;
Internals\System\Xml\XmlMtomReader.cs (7)
1390return string.Empty; 1599return (_readState == ReadState.Interactive) ? string.Empty : _parentReader.LocalName; 1641return (_readState == ReadState.Interactive) ? string.Empty : _parentReader.Name; 1649return (_readState == ReadState.Interactive) ? string.Empty : _parentReader.NamespaceURI; 1662return (_readState == ReadState.Interactive) ? string.Empty : _parentReader.Prefix; 1843content = string.Empty; 3143return string.Empty;
Internals\System\Xml\XmlMtomWriter.cs (1)
1102internal static string XopIncludeHrefNamespace = string.Empty;
System\IdentityModel\CanonicalizationDriver.cs (1)
70writer.WriteStartElement("a", _reader.LookupNamespace(String.Empty));
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
605return String.Empty;
System\IdentityModel\SecurityUtils.cs (1)
36s_anonymousIdentity = new GenericIdentity(string.Empty);
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
235return String.Empty;
System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (1)
42if (localId == string.Empty)
System\IdentityModel\Tokens\UserNameSecurityToken.cs (1)
29if (userName == string.Empty)
System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
99: base(string.Empty)
System\ServiceModel\Channels\CustomBinding.cs (1)
124return String.Empty;
System\ServiceModel\Channels\Message.cs (1)
1976string value = string.Empty;
System\ServiceModel\Channels\MessageHeader.cs (2)
230actor = string.Empty; 248actor = string.Empty;
System\ServiceModel\Channels\MessageProperties.cs (1)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, SRP.Format(SRP.ObjectDisposed, GetType().ToString())));
System\ServiceModel\Channels\ServiceChannel.cs (3)
653string remoteAddress = string.Empty; 1060string remoteAddress = string.Empty; 2565string listenUri = string.Empty;
System\ServiceModel\Description\ServiceReflector.cs (1)
32if (Uri.IsWellFormedUriString(path, UriKind.Absolute) || path == String.Empty)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (4)
298_keyBase = string.Empty; 618MessagePartDescription part = new MessagePartDescription(xmlName.EncodedName, string.Empty); 1179if (member.XmlAttributes.XmlArray.ElementName == String.Empty) 1212if (elementAttribute.ElementName == String.Empty)
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
113return String.Empty;
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
559(Listener != null) ? Listener.Uri.ToString() : string.Empty, Guid.Empty);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
160string ns = (style == OperationFormatStyle.Rpc || part.Namespace == null) ? string.Empty : part.Namespace; 578: base(headerPart.DictionaryName.Value, headerPart.DictionaryNamespace.Value, headerValue, headerPart.Serializer, mustUnderstand, actor ?? string.Empty, relay) 586string prefix = (Namespace == null || Namespace.Length == 0) ? string.Empty : "h";
System\ServiceModel\Dispatcher\EndpointDispatcher.cs (2)
19get { return String.Empty; } 24get { return String.Empty; }
System\ServiceModel\Dispatcher\FaultContractInfo.cs (1)
56_serializer = DataContractSerializerDefaults.CreateSerializer(Detail, KnownTypes, ElementName, _ns == null ? string.Empty : _ns, int.MaxValue /* maxItemsInObjectGraph */);
System\ServiceModel\Dispatcher\FaultFormatter.cs (2)
224string.Empty/*actor*/, 225string.Empty/*node*/)
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
574String.Empty);
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
917writer.WriteStartElement((Namespace == null || Namespace.Length == 0) ? string.Empty : "h", Name, Namespace);
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (1)
286AddToDictionary(dictionary, isRpc ? string.Empty : part.Namespace),
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
39_rootNamespace = rootNamespace == null ? string.Empty : rootNamespace;
System\ServiceModel\FaultContractAttribute.cs (1)
46if (value == string.Empty)
System\ServiceModel\FaultException.cs (1)
425return SRP.Format(SRP.SFxFaultExceptionToString3, GetType(), Message, Detail != null ? Detail.ToString() : string.Empty);
System\ServiceModel\FaultReason.cs (1)
147return string.Empty;
System\ServiceModel\MessageContractAttribute.cs (1)
54if (value == string.Empty)
System\ServiceModel\MessageContractMemberAttribute.cs (1)
53if (value == string.Empty)
System\ServiceModel\MessageParameterAttribute.cs (1)
22if (value == string.Empty)
System\ServiceModel\Security\SctClaimDictionary.cs (1)
64EmptyString = Add(string.Empty);
System\ServiceModel\Security\SecurityUtils.cs (2)
287s_anonymousIdentity = CreateIdentity(string.Empty); 769private static string s_currentUser = string.Empty;
System\ServiceModel\Security\SecurityVerifiedMessage.cs (1)
480return string.Empty;
System\ServiceModel\Security\TransportSecurityProtocol.cs (2)
30string actor = string.Empty; // message.Version.Envelope.UltimateDestinationActor; 107string actor = string.Empty; // message.Version.Envelope.UltimateDestinationActor;
System\ServiceModel\Security\WindowsSspiNegotiation.cs (1)
145return string.Empty;
System\ServiceModel\Security\WSTrustFeb2005.cs (1)
199writer.WriteElementString(DriverDictionary.RequestedTokenClosed, DriverDictionary.Namespace, String.Empty);
System\ServiceModel\Security\XmlHelper.cs (3)
295prefix = string.Empty; 390return new UniqueId(string.Empty); 404return new UniqueId(string.Empty);
System\ServiceModel\ServiceContractAttribute.cs (2)
30if (value == string.Empty) 48if (value == string.Empty)
System\ServiceModel\XmlUtil.cs (4)
99return string.Empty; 154value = DateTime.Parse(string.Empty, NumberFormatInfo.InvariantInfo); 158throw new XmlException(SRP.Format(SRP.XmlInvalidConversion, string.Empty, "DateTime"), exception); 162throw new XmlException(SRP.Format(SRP.XmlInvalidConversion, string.Empty, "DateTime"), exception);
System.ServiceModel.Primitives.Tests (18)
Channels\MessageTest.cs (1)
62Assert.Equal(string.Empty, messageBody);
IdentityModel\SecurityTokenProviderTest.cs (3)
131public string CancelTokenMethodCalled { get; set; } = string.Empty; 153public string CancelTokenMethodCalled { get; set; } = string.Empty; 214public string CancelTokenMethodCalled { get; set; } = string.Empty;
Security\SecurityUtilsTest.cs (2)
33Assert.Equal(string.Empty, credential.Domain); 55Assert.Equal(string.Empty, credential.Domain);
ServiceModel\DuplexChannelFactoryTest.cs (1)
60DuplexChannelFactory<IWcfDuplexService> factory = new DuplexChannelFactory<IWcfDuplexService>(context, binding, string.Empty);
ServiceModel\FaultExceptionTest.cs (9)
80Assert.Equal(string.Empty, faultException.Code.Namespace); 123Assert.NotEqual(string.Empty, exception.Reason.ToString()); 142exception = new FaultException<FaultDetail>(null, string.Empty); 148Assert.Equal(string.Empty, exception.Reason.ToString()); 149Assert.Equal(string.Empty, exception.Message); 173Assert.NotEqual(string.Empty, exception.Reason.ToString()); 201exception = new FaultException<FaultDetail>(null, string.Empty, null, null); 205Assert.Equal(string.Empty, exception.Reason.ToString()); 206Assert.Equal(string.Empty, exception.Message);
ServiceModel\MessageContractTest.4.4.0.cs (2)
175string headerValue = header.ToString().Replace(Environment.NewLine, String.Empty).Replace(" ", String.Empty);
System.ServiceModel.Syndication (47)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (24)
21private static readonly XmlQualifiedName s_atom10Href = new XmlQualifiedName(Atom10Constants.HrefTag, string.Empty); 22private static readonly XmlQualifiedName s_atom10Label = new XmlQualifiedName(Atom10Constants.LabelTag, string.Empty); 23private static readonly XmlQualifiedName s_atom10Length = new XmlQualifiedName(Atom10Constants.LengthTag, string.Empty); 24private static readonly XmlQualifiedName s_atom10Relative = new XmlQualifiedName(Atom10Constants.RelativeTag, string.Empty); 25private static readonly XmlQualifiedName s_atom10Scheme = new XmlQualifiedName(Atom10Constants.SchemeTag, string.Empty); 26private static readonly XmlQualifiedName s_atom10Term = new XmlQualifiedName(Atom10Constants.TermTag, string.Empty); 27private static readonly XmlQualifiedName s_atom10Title = new XmlQualifiedName(Atom10Constants.TitleTag, string.Empty); 28private static readonly XmlQualifiedName s_atom10Type = new XmlQualifiedName(Atom10Constants.TypeTag, string.Empty); 122if (reader.LocalName == Atom10Constants.TermTag && reader.NamespaceURI == string.Empty) 126else if (reader.LocalName == Atom10Constants.SchemeTag && reader.NamespaceURI == string.Empty) 130else if (reader.LocalName == Atom10Constants.LabelTag && reader.NamespaceURI == string.Empty) 201string categoryName = category.Name ?? string.Empty; 543if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 609string type = reader.GetAttribute(Atom10Constants.TypeTag, string.Empty); 620string src = reader.GetAttribute(Atom10Constants.SourceTag, string.Empty); 635if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 639else if (reader.LocalName == Atom10Constants.SourceTag && reader.NamespaceURI == string.Empty) 890else if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 894else if (reader.LocalName == Atom10Constants.RelativeTag && reader.NamespaceURI == string.Empty) 898else if (reader.LocalName == Atom10Constants.TitleTag && reader.NamespaceURI == string.Empty) 902else if (reader.LocalName == Atom10Constants.LengthTag && reader.NamespaceURI == string.Empty) 906else if (reader.LocalName == Atom10Constants.HrefTag && reader.NamespaceURI == string.Empty) 1100title ??= new TextSyndicationContent(string.Empty); 1146TextSyndicationContent title = item.Title ?? new TextSyndicationContent(string.Empty);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (5)
104string link = reader.GetAttribute(App10Constants.Href, string.Empty); 167else if (reader.LocalName == App10Constants.Fixed && reader.NamespaceURI == string.Empty) 171else if (reader.LocalName == Atom10Constants.SchemeTag && reader.NamespaceURI == string.Empty) 241else if (reader.LocalName == App10Constants.Href && reader.NamespaceURI == string.Empty) 347else if (reader.LocalName == App10Constants.Href && reader.NamespaceURI == string.Empty)
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (1)
122s_singleEmptyAccept ??= new List<string>(1) { string.Empty }.AsReadOnly();
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (10)
17private static readonly XmlQualifiedName s_rss20Domain = new XmlQualifiedName(Rss20Constants.DomainTag, string.Empty); 18private static readonly XmlQualifiedName s_rss20Length = new XmlQualifiedName(Rss20Constants.LengthTag, string.Empty); 19private static readonly XmlQualifiedName s_rss20Type = new XmlQualifiedName(Rss20Constants.TypeTag, string.Empty); 20private static readonly XmlQualifiedName s_rss20Url = new XmlQualifiedName(Rss20Constants.UrlTag, string.Empty); 821string title = Feed.Title != null ? Feed.Title.Text : string.Empty; 835string description = Feed.Description != null ? Feed.Description.Text : string.Empty; 892string imgAlternateLink = (alternateLink != null) ? FeedUtils.GetUriString(alternateLink.Uri) : string.Empty; 974string guid = item.Id ?? string.Empty; 1042summary = new TextSyndicationContent(string.Empty); 1066string title = (item.SourceFeed.Title != null) ? item.SourceFeed.Title.Text : string.Empty;
System\ServiceModel\Syndication\SyndicationContent.cs (2)
87writer.WriteAttributeString(Atom10Constants.TypeTag, string.Empty, Type); 92if (key.Name == Atom10Constants.TypeTag && key.Namespace == string.Empty)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (1)
68if (outerName == string.Empty)
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
245extensionNamespace ??= string.Empty;
System\ServiceModel\Syndication\TextSyndicationContent.cs (1)
50string val = Text ?? string.Empty;
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
37writer.WriteAttributeString(Atom10Constants.SourceTag, string.Empty, FeedUtils.GetUriString(Url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
33if (name == Atom10Constants.TypeTag && ns == string.Empty)
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
423_remoteEndpointAddress = string.Empty;
System.ServiceProcess.ServiceController (2)
System\ServiceProcess\ServiceBase.cs (2)
48ServiceName = string.Empty; 615string errorMessage = string.Empty;
System.Speech (26)
Internal\GrammarBuilding\GrammarBuilderDictation.cs (1)
63string category = _category != null ? ":" + _category : string.Empty;
Internal\ObjectToken\ObjectToken.cs (4)
135age = string.Empty; 151gender = string.Empty; 163string name = string.Empty; 200string description = string.Empty;
Internal\ObjectToken\RegistryDataKey.cs (3)
318valueName = string.Empty; 413string childKeyName = string.Empty; 480registryPath = string.Empty;
Internal\PhonemeConverter.cs (1)
69return string.Empty;
Internal\SrgsCompiler\State.cs (1)
245XmlParser.ThrowSrgsException(SRID.CircularRuleRef, _rule != null ? _rule._rule.Name : string.Empty);
Internal\SrgsParser\XmlParser.cs (1)
1671value = string.Empty;
Internal\Synthesis\AudioDeviceOut.cs (1)
311prodName = string.Empty;
Internal\Synthesis\VoiceSynthesis.cs (1)
176string text = string.Empty;
Recognition\Grammar.cs (2)
262set { _grammarName = value ?? string.Empty; } 1129private string _grammarName = string.Empty;
Recognition\RecognizerBase.cs (2)
300precedingText ??= string.Empty; 301subsequentText ??= string.Empty;
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
683private string _script = string.Empty;
Recognition\SrgsGrammar\SrgsRule.cs (1)
412private string _script = string.Empty;
Recognition\SrgsGrammar\SrgsSemanticInterpretationTag.cs (1)
98private string _script = string.Empty;
Recognition\SrgsGrammar\SrgsText.cs (1)
68private string _text = string.Empty;
Recognition\SrgsGrammar\SrgsToken.cs (1)
166private string _text = string.Empty;
Result\RecognizedPhrase.cs (1)
733propertyValue = string.Empty;
Result\SemanticValue.cs (1)
31: this(string.Empty, value, -1f)
Synthesis\TTSEngine\TTSEngineTypes.cs (1)
208private string _textToSpeak = string.Empty;
Synthesis\VoiceInfo.cs (1)
192return _description ?? string.Empty;
System.Text.Encoding.CodePages (1)
System\Text\EncodingNLS.cs (1)
286if (bytes.Length == 0) return string.Empty;
System.Text.Json (8)
System\Text\Json\Document\JsonElement.cs (3)
1623/// For <see cref="JsonValueKind.Null"/>, <see cref="string.Empty"/> is returned. 1654return string.Empty; 1674return string.Empty;
System\Text\Json\JsonEncodedText.cs (2)
30public string Value => _value ?? string.Empty; 181=> _value ?? string.Empty;
System\Text\Json\Nodes\JsonObject.cs (1)
110return item.HasValue ? item.Value.Key : string.Empty;
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (1)
349ThrowHelper.ThrowJsonException_UnmappedJsonProperty(typeof(T), fieldName ?? string.Empty);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
389info.Name = string.Empty;
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1467failedArg?.ToDisplayString() ?? string.Empty);
System.Text.RegularExpressions (29)
System\Text\RegularExpressions\Capture.cs (3)
51/// find a match, the value of the returned <c>Match.Value</c> property is <see cref="string.Empty"/>. 53/// <c>Group.Value</c> property is <see cref="string.Empty"/>. 55public string Value => Text is string text ? text.Substring(Index, Length) : string.Empty;
System\Text\RegularExpressions\GeneratedRegexAttribute.cs (3)
63/// If <paramref name="cultureName"/> is <see cref="string.Empty"/>, the invariant culture will be used. 77public GeneratedRegexAttribute([StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, int matchTimeoutMilliseconds) : this(pattern, options, matchTimeoutMilliseconds, string.Empty /* Empty string means Invariant culture */) 98/// If <paramref name="cultureName"/> is <see cref="string.Empty"/>, the invariant culture will be used.
System\Text\RegularExpressions\Group.cs (2)
21internal static readonly Group s_emptyGroup = new Group(string.Empty, [], 0, string.Empty);
System\Text\RegularExpressions\GroupCollection.cs (3)
30/// <see cref="string.Empty" />. 89/// <c>Group.Value</c> property is <see cref="string.Empty" />. 108/// <c>Group.Value</c> property is <see cref="string.Empty" />.
System\Text\RegularExpressions\Match.cs (2)
75public static Match Empty { get; } = new Match(null, 1, string.Empty, 0); 124/// property set to <see cref="string.Empty"/>.
System\Text\RegularExpressions\Regex.cs (1)
496/// group name that corresponds to the specified group number, the method returns <see cref="string.Empty" />.
System\Text\RegularExpressions\Regex.Match.cs (2)
299/// matched substring. If no match is found, its value is <see cref="string.Empty"/>. 405/// matched substring. If no match is found, its value is <see cref="string.Empty"/>.
System\Text\RegularExpressions\RegexCompilationInfo.cs (2)
35/// <exception cref="ArgumentException"><paramref name="name"/> is <see cref="string.Empty"/>.</exception> 57/// <exception cref="ArgumentException"><paramref name="name"/> is <see cref="string.Empty"/>.</exception>
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
303public string LeadingPrefix { get; } = string.Empty;
System\Text\RegularExpressions\RegexLWCGCompiler.cs (1)
50string description = string.Empty;
System\Text\RegularExpressions\RegexMatchTimeoutException.cs (4)
163/// <see cref="string.Empty"/>. 173public string Input { get; } = string.Empty; 184/// <see cref="string.Empty"/>. 186public string Pattern { get; } = string.Empty;
System\Text\RegularExpressions\RegexParser.cs (1)
2309return string.Empty;
System\Text\RegularExpressions\RegexRunner.cs (1)
367void ThrowRegexTimeout() => throw new RegexMatchTimeoutException(runtext ?? string.Empty, runregex!.pattern!, TimeSpan.FromMilliseconds(_timeout));
System\Text\RegularExpressions\Symbolic\CharKind.cs (1)
44_ => string.Empty,
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (2)
346void ThrowRegexTimeout() => throw new RegexMatchTimeoutException(string.Empty, string.Empty, TimeSpan.FromMilliseconds(_timeout));
System.Text.RegularExpressions.Generator (8)
parent\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
303public string LeadingPrefix { get; } = string.Empty;
parent\src\System\Text\RegularExpressions\RegexParser.cs (1)
2309return string.Empty;
RegexGenerator.Parser.cs (3)
83string? cultureName = string.Empty; 208ns ?? string.Empty, 235ns ?? string.Empty,
src\runtime\src\libraries\Common\src\System\Buffers\SearchValuesPolyfills.cs (1)
64_nonAscii = nonAscii?.ToString() ?? string.Empty;
UpgradeToGeneratedRegexCodeFixer.cs (2)
541callSites.Add((syntaxRef.SyntaxTree.FilePath ?? string.Empty, treeIndex, descendant.SpanStart)); 559string currentFilePath = nodeToFix.SyntaxTree.FilePath ?? string.Empty;
System.Threading.AccessControl (6)
System\Threading\EventWaitHandleAcl.cs (2)
19/// <param name="createdNew">When this method returns, this argument is always set to <see langword="true" /> if a local event is created; that is, when <paramref name="name" /> is <see langword="null" /> or <see cref="string.Empty" />. If <paramref name="name" /> has a valid, non-empty value, this argument is set to <see langword="true" /> when the system event is created, or it is set to <see langword="false" /> if an existing system event is found with that name. This parameter is passed uninitialized.</param> 28/// <remarks>If a `name` is passed and the system event already exists, the existing event is returned. If `name` is `null` or <see cref="string.Empty" />, a new local event is always created.</remarks>
System\Threading\MutexAcl.cs (2)
17/// <param name="name">The optional name of the system mutex. If this argument is set to <see langword="null" /> or <see cref="string.Empty" />, a local mutex is created.</param> 18/// <param name="createdNew">When this method returns, this argument is always set to <see langword="true" /> if a local mutex is created; that is, when <paramref name="name" /> is <see langword="null" /> or <see cref="string.Empty" />. If <paramref name="name" /> has a valid non-empty value, this argument is set to <see langword="true" /> when the system mutex is created, or it is set to <see langword="false" /> if an existing system mutex is found with that name. This parameter is passed uninitialized.</param>
System\Threading\SemaphoreAcl.cs (2)
18/// <param name="name">Optional argument to create a system semaphore. Set to <see langword="null" /> or <see cref="string.Empty" /> to create a local semaphore.</param> 19/// <param name="createdNew">When this method returns, this argument is always set to <see langword="true" /> if a local semaphore is created; that is, when <paramref name="name" /> is <see langword="null" /> or <see cref="string.Empty" />. If <paramref name="name" /> has a valid, non-empty value, this argument is set to <see langword="true" /> when the system semaphore is created, or it is set to <see langword="false" /> if an existing system semaphore is found with that name. This parameter is passed uninitialized.</param>
System.Threading.Tasks.Dataflow (2)
Internal\Common.cs (1)
123if (block == null) return string.Empty;
Internal\DataflowEtwProvider.cs (1)
136string exceptionData = string.Empty;
System.Transactions.Local (83)
System\Transactions\DtcProxyShim\DtcProxyShimFactory.cs (1)
181var xactopt = new Xactopt(timeout, string.Empty);
System\Transactions\TransactionException.cs (7)
27etwLog.TransactionExceptionTrace(TransactionExceptionType.TransactionException, message, innerException == null ? string.Empty : innerException.ToString()); 47etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, messagewithTxId, innerException == null ? string.Empty : innerException.ToString()); 57etwLog.TransactionExceptionTrace(traceSource, TransactionExceptionType.InvalidOperationException, message, innerException == null ? string.Empty : innerException.ToString()); 130etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, messagewithTxId, string.Empty); 168etwLog.TransactionExceptionTrace(TransactionExceptionType.TransactionAbortedException, message, innerException == null ? string.Empty : innerException.ToString()); 245etwLog.TransactionExceptionTrace(traceSource, TransactionExceptionType.TransactionInDoubtException, message, innerException == null ? string.Empty : innerException.ToString()); 299etwLog.TransactionExceptionTrace(TransactionExceptionType.TransactionManagerCommunicationException, message, innerException == null ? string.Empty : innerException.ToString());
System\Transactions\TransactionManager.cs (1)
178etwLog.TransactionExceptionTrace(TraceSourceType.TraceSourceBase, TransactionExceptionType.UnrecognizedRecoveryInformation, nameof(recoveryInformation), string.Empty);
System\Transactions\TransactionsEtwProvider.cs (55)
272TransactionCloneCreate(string.Empty, type); 358SetActivityId(string.Empty); 365SetActivityId(string.Empty); 380string.Empty, type, operation); 386SetActivityId(string.Empty); 539SetActivityId(string.Empty); 546SetActivityId(string.Empty); 571SetActivityId(string.Empty); 578SetActivityId(string.Empty); 603SetActivityId(string.Empty); 628SetActivityId(string.Empty); 653SetActivityId(string.Empty); 679SetActivityId(string.Empty); 704SetActivityId(string.Empty); 729SetActivityId(string.Empty); 747SetActivityId(string.Empty); 765SetActivityId(string.Empty); 805MethodEnterTraceLtm(string.Empty, methodname); 809MethodEnterTraceBase(string.Empty, methodname); 813MethodEnterTraceDistributed(string.Empty, methodname); 821SetActivityId(string.Empty); 827SetActivityId(string.Empty); 833SetActivityId(string.Empty); 873MethodExitTraceLtm(string.Empty, methodname); 877MethodExitTraceBase(string.Empty, methodname); 881MethodExitTraceDistributed(string.Empty, methodname); 889SetActivityId(string.Empty); 895SetActivityId(string.Empty); 901SetActivityId(string.Empty); 944SetActivityId(string.Empty); 950SetActivityId(string.Empty); 956SetActivityId(string.Empty); 974SetActivityId(string.Empty); 994SetActivityId(string.Empty); 1014SetActivityId(string.Empty); 1033SetActivityId(string.Empty); 1047TransactionScopeCreated(transactionID.TransactionIdentifier ?? string.Empty, transactionScopeResult); 1068string currentId = string.Empty; 1069string newId = string.Empty; 1098TransactionScopeNestedIncorrectly(transactionID.TransactionIdentifier ?? string.Empty); 1118TransactionScopeDisposed(transactionID.TransactionIdentifier ?? string.Empty); 1138TransactionScopeIncomplete(transactionID.TransactionIdentifier ?? string.Empty); 1158TransactionScopeTimeout(transactionID.TransactionIdentifier ?? string.Empty); 1178TransactionTimeout(transactionID.TransactionIdentifier ?? string.Empty); 1203TransactionstateEnlist(string.Empty, enlistmentType.ToString(), enlistmentOption.ToString()); 1210SetActivityId(string.Empty); 1223TransactionCommittedLtm(transactionID.TransactionIdentifier ?? string.Empty); 1227TransactionCommittedOleTx(transactionID.TransactionIdentifier ?? string.Empty); 1254TransactionInDoubtLtm(transactionID.TransactionIdentifier ?? string.Empty); 1258TransactionInDoubtOleTx(transactionID.TransactionIdentifier ?? string.Empty); 1286TransactionPromoted(transactionID.TransactionIdentifier ?? string.Empty, distributedTxID.TransactionIdentifier ?? string.Empty); 1306TransactionAbortedLtm(transactionID.TransactionIdentifier ?? string.Empty); 1310TransactionAbortedOleTx(transactionID.TransactionIdentifier ?? string.Empty); 1344SetActivityId(string.Empty);
System\Transactions\TransactionState.cs (19)
303etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, e.ToString()); 315etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 327etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 339etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 351etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 363etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 375etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 387etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 399etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty); 427etwLog.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, tx?.TransactionTraceId.TransactionIdentifier ?? string.Empty, string.Empty);
System.Web.HttpUtility (4)
System\Web\HttpUtility.cs (2)
149IHtmlString ihs => ihs.ToHtmlString() ?? string.Empty, 150_ => HtmlEncode(Convert.ToString(value, CultureInfo.CurrentCulture) ?? string.Empty),
System\Web\Util\HttpEncoder.cs (2)
135return addDoubleQuotes ? $"\"{value}\"" : value ?? string.Empty; 321return string.Empty;
System.Windows.Controls.Ribbon (27)
Microsoft\Windows\Automation\Peers\RibbonContextualTabGroupDataAutomationPeer.cs (1)
70return string.Empty;
Microsoft\Windows\Automation\Peers\RibbonControlDataAutomationPeer.cs (1)
41return string.Empty;
Microsoft\Windows\Automation\Peers\RibbonGroupDataAutomationPeer.cs (1)
80return string.Empty;
Microsoft\Windows\Automation\Peers\RibbonGroupHeaderAutomationPeer.cs (1)
56return string.Empty;
Microsoft\Windows\Automation\Peers\RibbonTabDataAutomationPeer.cs (1)
192return string.Empty;
Microsoft\Windows\Automation\Peers\RibbonTabHeaderDataAutomationPeer.cs (1)
49return string.Empty;
Microsoft\Windows\Controls\KeyTipControl.cs (1)
55string.Empty,
Microsoft\Windows\Controls\KeyTipService.cs (6)
940_prefixText = string.Empty; 1188_prefixText = string.Empty; 1222_autoGenerationKeyTipPrefix = string.Empty; 1238_prefixText = string.Empty; 1739private string _prefixText = string.Empty; 1746private string _autoGenerationKeyTipPrefix = string.Empty;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (7)
101String.Empty, 239new FrameworkPropertyMetadata(String.Empty)); 387string text = String.Empty; 421string text = String.Empty; 590item = String.Empty; 840string strValue = String.Empty; 1378string selectedValuePath = string.Empty;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
891String.Empty,
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
203new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.AffectsMeasure));
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
52Window.TitleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(String.Empty, new PropertyChangedCallback(OnTitleChangedCallback)));
Microsoft\Windows\Controls\TextSearchInternal.cs (4)
487return FindMatchingPrefix(itemsControl, GetPrimaryTextPath(itemsControl, doHierarchicalSearch), prefix, String.Empty, 0, false, ref wasNewCharUsed); 655return (o != null) ? o.ToString() : String.Empty; 668return String.Empty; 703Prefix = String.Empty;
System.Windows.Extensions (4)
System\Media\SoundPlayer.cs (4)
23private string _soundLocation = string.Empty; 56SetupSoundLocation(soundLocation ?? string.Empty); 92value ??= string.Empty; 416_soundLocation = string.Empty;
System.Windows.Forms (391)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
68return name.CodeBase ?? string.Empty;
System\Resources\DataNodeInfo.cs (1)
11public string ValueData { get; set; } = string.Empty;
System\Resources\ResXDataNode.cs (6)
149get => _comment ?? _nodeInfo?.Comment ?? string.Empty; 158return _name ?? _nodeInfo?.Name ?? string.Empty; 253nodeInfo.ValueData = converter.ConvertToInvariantString(value) ?? string.Empty; 269nodeInfo.ValueData = data is null ? string.Empty : ToBase64WrappedString(data); 277nodeInfo.ValueData = string.Empty; 490_nodeInfo.ValueData = FileRef?.ToString() ?? string.Empty;
System\Resources\ResXFileRef.cs (1)
80return string.Empty;
System\Resources\ResXResourceReader.cs (1)
529Name = reader[ResXResourceWriter.NameStr] ?? string.Empty
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
355internal virtual BSTR GetValueInternal() => SystemIAccessible is null ? new(string.Empty) : SystemIAccessible.TryGetValue(CHILDID_SELF); 614UIA_PROPERTY_ID.UIA_AccessKeyPropertyId => (VARIANT)(KeyboardShortcut ?? string.Empty), 636UIA_PROPERTY_ID.UIA_HelpTextPropertyId => (VARIANT)(Help ?? string.Empty), 822internal virtual string GetMultiViewProviderViewName(int viewId) => string.Empty;
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
57=> this.TryGetOwnerAs(out Control? owner) ? owner.Name : string.Empty;
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
37UIA_PROPERTY_ID.UIA_AccessKeyPropertyId => (VARIANT)string.Empty,
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
122return name ?? string.Empty;
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (2)
261public BSTR Name => new(GetControl() is { } control ? GetNameForControl(control) : string.Empty); 276get => GetControl()?.Text ?? string.Empty;
System\Windows\Forms\ActiveX\AxHost.cs (3)
113private string _text = string.Empty; 372set => _text = value ?? string.Empty; 2115return AxContainer.GetNameForControl(this) ?? string.Empty;
System\Windows\Forms\Application.cs (1)
763value ??= string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
56public override object? GetValue(object? component) => string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\COM2Enum.cs (2)
91return string.Empty; 110return string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
31return _com2Enum.ToString(value) ?? string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
30PROPCAT.Nil => string.Empty,
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
89string assemblyName = string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
34return hr.Succeeded ? GetName(dispatch) : string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (3)
86return string.Empty; 115return value.ToString() ?? string.Empty; 119return string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (2)
19string? ICustomTypeDescriptor.GetClassName() => string.Empty; 20string? ICustomTypeDescriptor.GetComponentName() => string.Empty;
System\Windows\Forms\ComponentModel\COM2Interop\GetNameItemEvent.cs (1)
14public string NameString => Name?.ToString() ?? string.Empty;
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ControlItem.cs (3)
32_error = string.Empty; 67_error = string.Empty; 112value ??= string.Empty;
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.cs (6)
312_dataMember = string.Empty; 334value ??= string.Empty; 386SetError(binding.Control, (e.ErrorText ?? string.Empty)); 423SetError(control, string.Empty); 478error ??= string.Empty; 482outputError = string.Empty;
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
93Caption = string.Empty,
System\Windows\Forms\Components\ImageList\ImageList.ImageCollection.cs (1)
48keysCollection.Add(string.Empty);
System\Windows\Forms\Control.ControlVersionInfo.cs (2)
52ns ??= string.Empty; 99ns ??= string.Empty;
System\Windows\Forms\Control.cs (7)
2877return name ?? string.Empty; 3400get => CacheTextInternal ? _text ?? string.Empty : WindowText; 3403value ??= string.Empty; 3856return _text ?? string.Empty; 3864value ??= string.Empty; 10269Text = string.Empty; 12088MarshalStringToMessage(Site?.Name ?? Name ?? string.Empty, ref m);
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (1)
17: string.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (2)
92return string.Empty; 103return string.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (2)
57get => _owner.AccessibilityObject.Name ?? string.Empty; 73return name.IsNull ? new(string.Empty) : name;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
101: string.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (12)
93private string _currentText = string.Empty; 1042get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 1050PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_REPLACESEL, (WPARAM)(-1), value ?? string.Empty); 2112MatchingText = string.Empty; 2132MatchingText = string.Empty; 2150MatchingText = string.Empty; 2278return string.Empty; 2286return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString(); 2867MatchingText = string.Empty; 2961Debug.Assert(DisplayMember.Equals(string.Empty), "if this list is sorted it means that dataSource was null when Sorted first became true. at that point DisplayMember had to be String.Empty"); 3068SelectedText = string.Empty; 3078SelectedText = string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
1891get => DataConnection is null ? string.Empty : DataConnection.DataMember; 1947DataMember = string.Empty; 3802ToolTipPrivate = string.Empty; 3854ToolTipPrivate = string.Empty; 3941ToolTipPrivate = string.Empty; 4044private string ToolTipPrivate { get; set; } = string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (4)
107public string DataMember { get; private set; } = string.Empty; 1039dataMember ??= string.Empty; 1136return errInfo is not null ? errInfo.Error : string.Empty; 1168return string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
11525DataMember = string.Empty; 14627ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 15263ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 22118ActivateToolTip(activate: false, toolTipText: string.Empty, dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
900string text = formattedString ?? string.Empty; 932string text = formattedString ?? string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
659get => GetToolTipText(RowIndex) ?? string.Empty; 1479private protected virtual string? GetDefaultToolTipText() => string.Empty; 1542string errorText = string.Empty; 2392return string.Empty; 2405toolTipText = string.Join(string.Empty, toolTipText.Split('&')); 2801DataGridView.ActivateToolTip(activate: false, string.Empty, -1, -1); 2819DataGridView?.ActivateToolTip(activate: false, string.Empty, -1, -1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (3)
40return !Owner.ReadOnly ? SR.DataGridView_AccCellDefaultAction : string.Empty; 57return string.Empty; 214return string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
245get => Properties.GetValueOrDefaultAllowNull<object?>(s_propNullValue, string.Empty); 255if (Properties.AddOrRemoveValue(s_propNullValue, value, defaultValue: string.Empty) != value)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
954string cellName = AccessibilityObject.Name ?? string.Empty; 1405string.Empty, 1454string.Empty, 1501string.Empty,
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
58return string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (6)
34private string _dataPropertyName = string.Empty; 56_name = string.Empty; 186value ??= string.Empty; 400return string.Empty; 405return string.Empty; 653_name = string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (2)
57return string.Empty; 63: Owner.OwningColumn?.HeaderText ?? string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
963displayValue = string.Empty; 1020value = string.Empty; 1039: string.Empty; 1312initialFormattedValueStr = string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.DataGridViewImageCellAccessibleObject.cs (1)
17public override string DefaultAction => string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (2)
479UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)string.Empty, 481UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)string.Empty,
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (3)
61return string.Empty; 65public override string? Name => ParentPrivate?.Name ?? string.Empty; 116public override string Value => string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
518textBox.Text = string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (5)
52return string.Empty; 72return string.Empty; 91return string.Empty; 96return string.Empty; 135return string.Empty;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (2)
42public override string Name => this.GetOwnerAccessibleName(string.Empty); 102_ => string.Empty
System\Windows\Forms\Controls\Labels\LinkLabel.Link.cs (1)
126get => _name ?? string.Empty;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
158public override string Value => string.Empty;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (1)
26return string.Empty;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
1064return GetItemText(SelectedItem) ?? string.Empty; 1068return FilterItemOnProperty(SelectedItem)?.ToString() ?? string.Empty; 1570return string.Empty; 1578return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString();
System\Windows\Forms\Controls\ListControl\ListControl.cs (8)
28private string _formatString = string.Empty; 80DisplayMember = string.Empty; 85DisplayMember = string.Empty; 216value ??= string.Empty; 304value ??= string.Empty; 521return string.Empty; 527return string.Empty; 664SetDataConnection(null, new BindingMemberInfo(string.Empty), true);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (3)
58_name = string.Empty; 280_name = string.Empty; 307_text = string.Empty;
System\Windows\Forms\Controls\ListView\ListView.cs (6)
57private string? _toolTipCaption = string.Empty; 188private string _backgroundImageFileName = string.Empty; 3114_backgroundImageFileName = string.Empty; 3273return FindItem(false, string.Empty, false, new Point(x, y), searchDirection, 0, false); 5205_backgroundImageFileName = string.Empty; 6927string text = string.Empty;
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (2)
164: string.Empty; 203return string.Empty;
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (4)
106get => _header ?? string.Empty; 149get => _footer ?? string.Empty; 230get => _subtitle ?? string.Empty; 251get => _taskLink ?? string.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (6)
51private string _toolTipText = string.Empty; 613return string.Empty; 779_subItems = [new ListViewSubItem(this, string.Empty)]; 812return string.Empty; 833value ??= string.Empty; 1346_listView.SetItemText(itemIndex, i, string.Empty);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
30public override string DefaultAction => string.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (2)
205get => text ?? string.Empty; 217get => name ?? string.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
92public override string? Name => base.Name ?? OwningSubItem?.Text ?? string.Empty;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (2)
164return string.Empty; 173_ => string.Empty,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarDayOfWeekCellAccessibleObject.cs (1)
35public override string DefaultAction => string.Empty;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarWeekNumberCellAccessibleObject.cs (1)
40public override string DefaultAction => string.Empty;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (9)
53string previousHeaderName = string.Empty; 59if (currentHeaderName == string.Empty || currentHeaderName == previousHeaderName) 283return string.Empty; 305string text = string.Empty; 451return string.Empty; 585return string.Empty; 592return string.Empty; 599return string.Empty; 604return string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
1029SetStatusBox(string.Empty, string.Empty); 3939string.Empty,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\AttributeTypeSorter.cs (2)
38return string.Empty; 42s_typeIds.AddOrUpdate(attribute, result ?? string.Empty);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
94public override string GetPropertyTextValue(object? o) => string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
541public virtual string? HelpKeyword => _parent?.HelpKeyword ?? string.Empty; 1447textValue ??= string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (2)
55=> this.TryGetOwnerAs(out GridEntry? owner) ? owner.PropertyDescription : string.Empty; 64public override string? Help => this.TryGetOwnerAs(out GridEntry? owner) ? owner.PropertyDescription : string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
153_toolTipText = string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.HelpPaneAccessibleObject.cs (1)
64: string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (2)
170return string.Empty; 175return string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (1)
265UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId => (VARIANT)string.Empty,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (8)
598ToolTip = string.Empty, 1989return gridEntry is null ? string.Empty : gridEntry.GetTestingInfo(); 2410ToolTip.ToolTip = string.Empty; 2767ToolTip.ToolTip = string.Empty; 3072ToolTip.ToolTip = string.Empty; 3094string? tip = string.Empty; 3130ToolTip.ToolTip = string.Empty; 3255ToolTip.ToolTip = string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
58Text = string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
86return string.Empty;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (11)
563return string.Empty; 646value ??= string.Empty; 1143value ??= string.Empty; 1282value ??= string.Empty; 1354return string.Empty; 1387value ??= string.Empty; 1443return string.Empty; 2421Rtf = string.Empty; 2899PInvokeCore.SendMessage(this, PInvokeCore.WM_SETTEXT, 0, string.Empty); 3038string result = string.Empty; 3278return string.Empty;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (6)
142_lastDragEventArgs.Message ?? string.Empty, 143_lastDragEventArgs.MessageReplacementToken ?? string.Empty); 150e.Message = string.Empty; 151e.MessageReplacementToken = string.Empty; 247_lastDragEventArgs.Message ?? string.Empty, 248_lastDragEventArgs.MessageReplacementToken ?? string.Empty);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
39private string? _controlTipText = string.Empty;
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
23private string _toolTipText = string.Empty; 452value ??= string.Empty;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
633return _flagState[s_isNullMask] ? string.Empty : _maskedTextProvider.Mask; 1778return string.Empty;
System\Windows\Forms\Controls\TextBox\MaskedTextBox.MaskedTextBoxAccessibleObject.cs (2)
20: base.Name ?? string.Empty; 26=> this.TryGetOwnerAs(out MaskedTextBox? owner) ? owner.WindowText : string.Empty;
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
78private string _placeholderText = string.Empty; 877value ??= string.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (8)
223SetSelectedTextInternal(string.Empty, clearUndo: false); 233SetSelectedTextInternal(string.Empty, clearUndo: false); 640list.Add(string.Empty); 650: string.Empty; 1265text ??= string.Empty; 1381value ??= string.Empty; 1409value ??= string.Empty; 2027using var textVariant = PasswordProtect ? (VARIANT)string.Empty : (VARIANT)Text;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (2)
64return name is not null ? name : string.Empty; 73=> this.TryGetOwnerAs(out Control? owner) && owner.Text is { } text ? text : string.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
273: string.Empty; 280: string.Empty;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
14private string? _lastKnownColorScheme = string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripControlHostAccessibleObject.cs (1)
36return string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (2)
216Message = string.Empty, 217MessageReplacementToken = string.Empty
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
1863get => Properties.TryGetValueOrNull(s_textProperty, out string? value) ? value : string.Empty; 1866if (Properties.AddOrRemoveValue(s_textProperty, value, defaultValue: string.Empty) != value) 1971toolText = string.Join(string.Empty, toolText.Split('&'));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
80return mnemonic == '\0' ? string.Empty : mnemonic.ToString(); 83return mnemonic == '\0' ? string.Empty : $"Alt+{mnemonic}";
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
110layoutOptions.Text = ((Owner.DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text) ? Owner.Text : string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.ToolStripLabelAccessibleObject.cs (1)
17public override string DefaultAction => _owningToolStripLabel.IsLink ? SR.AccessibleActionClick : string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
1098return string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (2)
76return string.Empty; 282return string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (1)
24ToolStripPanelName = string.Empty;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
51private string _toolTipText = string.Empty; 1068get => _text ?? string.Empty; 1097get => _name ?? string.Empty;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
50return string.Empty;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (2)
22private static readonly string s_defaultValue = string.Empty; 44Text = string.Empty;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
476using var name = (VARIANT)(replaceInHistory ? "replace" : string.Empty);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
545? string.Empty
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (5)
36internal string _statusText = string.Empty; 311return string.Empty; 320value ??= string.Empty; 376string docType = string.Empty; 545_statusText = string.Empty;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserEvent.cs (7)
58targetFrameName ??= string.Empty; 60headers ??= string.Empty; 62string urlString = urlObject is null ? string.Empty : (string)urlObject; 64new Uri(urlString), targetFrameName is null ? string.Empty : (string)targetFrameName); 94string urlString = urlObject is null ? string.Empty : urlObject.ToString()!; 115string urlString = urlObject is null ? string.Empty : (string)urlObject; 136_parent._statusText = text ?? string.Empty;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1364get => string.Empty;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
354=> ctl.Site is not null ? ctl.Site.Name ?? string.Empty : ctl.Name ?? string.Empty;
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (4)
100internal string DataErrorText { get; private set; } = string.Empty; 110return string.Empty; 116return errorInfo.Error ?? string.Empty; 124return errorInfo[FieldInfo.Name] ?? string.Empty;
System\Windows\Forms\DataBinding\Binding.cs (7)
36private string _formatString = string.Empty; 59formatString: string.Empty, 76formatString: string.Empty, 94formatString: string.Empty, 113formatString: string.Empty, 268public string PropertyName { get; } = string.Empty; 331value ??= string.Empty;
System\Windows\Forms\DataBinding\BindingCompleteEventArgs.cs (2)
28ErrorText = errorText ?? string.Empty; 64: this(binding, state, context, string.Empty, null, false)
System\Windows\Forms\DataBinding\BindingContext.cs (8)
77public BindingManagerBase this[object dataSource] => this[dataSource, string.Empty]; 112_listManagers[GetKey(dataSource, string.Empty)] = new WeakReference(listManager, false); 160public bool Contains(object dataSource) => Contains(dataSource, string.Empty); 204_listManagers.Remove(GetKey(dataSource, string.Empty)); 218dataMember ??= string.Empty; 261string dataPath = (lastDot == -1) ? string.Empty : dataMember[..lastDot]; 295if (propBinding.BindableComponent is not null && newBindingContext.Contains(propBinding.BindableComponent, string.Empty)) 299BindingManagerBase bindingManagerBase = newBindingContext.EnsureListManager(propBinding.BindableComponent, string.Empty);
System\Windows\Forms\DataBinding\BindingContext.HashKey.cs (1)
19dataMember ??= string.Empty;
System\Windows\Forms\DataBinding\BindingMemberInfo.cs (4)
13dataMember ??= string.Empty; 23_dataList = string.Empty; 28public string BindingPath => _dataList ?? string.Empty; 30public string BindingField => _dataField ?? string.Empty;
System\Windows\Forms\DataBinding\BindingSource.cs (6)
41private string _dataMember = string.Empty; 66: this(dataSource: null, dataMember: string.Empty) 202value ??= string.Empty; 259return string.Empty; 467return string.Empty; 508_dataMember = string.Empty;
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (4)
68formatString: string.Empty, 83formatString: string.Empty, 99formatString: string.Empty, 116formatString: string.Empty,
System\Windows\Forms\DataBinding\CurrencyManager.cs (2)
594return string.Empty; 604return string.Empty;
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
79return string.Empty;
System\Windows\Forms\DataBinding\PropertyManager.cs (1)
116protected internal override string GetListName(ArrayList? listAccessors) => string.Empty;
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
125return string.Empty;
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
48return string.Empty;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
222string caption = string.Empty;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (5)
120get => _defaultExtension ?? string.Empty; 165get => _fileNames is { } names && names.Length > 0 ? names[0] : string.Empty; 192get => _filter ?? string.Empty; 281get => _initialDirectory ?? string.Empty; 356get => _title ?? string.Empty;
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (6)
169get => _selectedPaths.Length > 0 ? _selectedPaths[0] : string.Empty; 191set => _initialDirectory = value ?? string.Empty; 227set => _descriptionText = value ?? string.Empty; 261_descriptionText = string.Empty; 263_initialDirectory = string.Empty; 472SelectedPath = string.Empty;
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
180public string SafeFileName => Path.GetFileName(FileName) ?? string.Empty;
System\Windows\Forms\Dialogs\MessageBox.cs (2)
342return ShowCore(null, text, string.Empty, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, 0, false); 412return ShowCore(owner, text, string.Empty, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, 0, false);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
857text ??= string.Empty;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (1)
375public override string ToString() => _text ?? base.ToString() ?? string.Empty;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogExpander.cs (1)
202public override string ToString() => _text ?? base.ToString() ?? string.Empty;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogFootnote.cs (1)
145public override string ToString() => _text ?? base.ToString() ?? string.Empty;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogRadioButton.cs (1)
264public override string ToString() => _text ?? base.ToString() ?? string.Empty;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogVerificationCheckBox.cs (1)
132public override string ToString() => _text ?? base.ToString() ?? string.Empty;
System\Windows\Forms\Help\HelpInfo.cs (3)
16Keyword = string.Empty; 34Keyword = string.Empty; 43Keyword = string.Empty;
System\Windows\Forms\ImageKeyConverter.cs (2)
70return string.Empty; 154values[nImages] = string.Empty;
System\Windows\Forms\Internal\Formatter.cs (1)
111return string.Empty;
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
222return string.Empty; 354return component.Site?.Name ?? string.Empty;
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
112text ??= string.Empty;
System\Windows\Forms\NotifyIcon.cs (5)
37private string _text = string.Empty; 43private string _balloonTipText = string.Empty; 44private string _balloonTipTitle = string.Empty; 238value ??= string.Empty; 393Text = string.Empty;
System\Windows\Forms\OLE\Clipboard.cs (1)
395return GetTypedDataIfAvailable<string>(ClipboardUtilities.ConvertToDataFormats(format)) is string text ? text : string.Empty;
System\Windows\Forms\OLE\DataObject.cs (1)
231return GetData(ConvertToDataFormats(format), autoConvert: false) is string text ? text : string.Empty;
System\Windows\Forms\OLE\DragEventArgs.cs (2)
25: this(data, keyState, x, y, allowedEffect, effect, dropImageType: DropImageType.Invalid, message: string.Empty, messageReplacementToken: string.Empty)
System\Windows\Forms\OLE\DropTarget.cs (2)
99_lastDragEventArgs.Message ?? string.Empty, 100_lastDragEventArgs.MessageReplacementToken ?? string.Empty);
System\Windows\Forms\PropertyStore.cs (3)
68/// Gets the current string value for the given key, or <see cref="string.Empty"/> if the key is not found. 77return string.Empty; 123/// Setting <see langword="null"/> or <see cref="string.Empty"/> will clear the value.
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarThumbAccessibleObject.cs (1)
17public override string? DefaultAction => string.Empty;
System\Windows\Forms\ToolTip\ToolTip.cs (6)
47private string _toolTipTitle = string.Empty; 458value ??= string.Empty; 719PInvoke.SetWindowTheme(HWND, string.Empty, string.Empty); 1020return string.Empty; 1025: string.Empty;
System\Windows\Forms\ToolTip\ToolTipBuffer.cs (1)
23text ??= string.Empty;
System\Windows\Forms\VisualStyles\VisualStyleInformation.cs (10)
51return string.Empty; 73return string.Empty; 95return string.Empty; 104: string.Empty; 111: string.Empty; 118: string.Empty; 125: string.Empty; 132: string.Empty; 139: string.Empty; 146: string.Empty;
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\ApplicationConfig.FontDescriptor.cs (1)
29string name = Regex.Replace(Name, @"[^\w\d ]", string.Empty);
System.Windows.Forms.Analyzers.CSharp (5)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationInitializeBuilder.cs (2)
15string indent = topLevelApp ? string.Empty : " "; 17topLevelApp ? string.Empty : projectNamespace,
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.cs (3)
45rawValue == string.Empty) 71rawValue == string.Empty) 105rawValue == string.Empty)
System.Windows.Forms.Design (103)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
384return (item is null) ? string.Empty : item.ToString();
System\ComponentModel\Design\CollectionEditor.cs (2)
113return string.Empty; 142return string.Empty;
System\ComponentModel\Design\DesignerActionList.cs (3)
77displayName = string.Empty; 78description = string.Empty; 79category = string.Empty;
System\ComponentModel\Design\DesignerActionPanel.cs (3)
211categoryName ??= string.Empty; 750return string.Empty; 806string focusId = string.Empty;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
117string.Empty,
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
30Text = string.Empty;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
47public override string FocusId => string.Empty;
System\ComponentModel\Design\DesignerActionPanel.SeparatorLine.cs (1)
18public override string FocusId => string.Empty;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
31public sealed override string FocusId => string.Empty;
System\ComponentModel\Design\DesignerHost.cs (3)
352((IDesignerLoaderHost)this).EndLoad(string.Empty, successful: false, new object[] { e }); 403name = string.Empty; 870: string.Empty;
System\ComponentModel\Design\DesignerHost.Site.cs (1)
225value ??= string.Empty;
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
345return value ?? string.Empty;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
334return string.Empty;
System\ComponentModel\Design\ReferenceService.cs (2)
32CreateReferences(string.Empty, component, component, references); 354_fullName ??= string.Empty;
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2200CodePropertyReferenceExpression propertyRef = new(target, string.Empty);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
438entry.Statements.Insert(0, new CodeCommentStatement(string.Empty)); 440entry.Statements.Insert(0, new CodeCommentStatement(string.Empty));
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
389? string.Empty
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
28Name = name ?? string.Empty;
System\Drawing\BitmapSelector.cs (3)
30: string.Empty; 46if (Suffix == string.Empty) 111if (Suffix != string.Empty)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (9)
115_topLeft.Text = string.Empty; 121_topCenter.Text = string.Empty; 127_topRight.Text = string.Empty; 133_middleLeft.Text = string.Empty; 139_middleCenter.Text = string.Empty; 145_middleRight.Text = string.Empty; 151_bottomLeft.Text = string.Empty; 157_bottomCenter.Text = string.Empty; 163_bottomRight.Text = string.Empty;
System\Drawing\Design\IconEditor.cs (1)
29string text = string.Empty;
System\Drawing\Design\ToolboxItem.cs (4)
180public virtual string Version => AssemblyName?.Version?.ToString() ?? string.Empty; 414value ??= string.Empty; 737public override string ToString() => DisplayName ?? string.Empty; 780return value ?? string.Empty;
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
742string typeName = string.Empty;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
748string snapLineInfo = string.Empty;
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
174navigator.CountItemFormat = navigator.CountItem.Text ?? string.Empty;
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
74componentChangeService?.OnComponentChanged(bindingSource, propertyDescriptor, previousDataMember, string.Empty);
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
85textProp.SetValue(Component, string.Empty);
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
30public override string DefaultAction => string.Empty;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
894errorString = string.Empty;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
352public override string? Name { get; set; } = string.Empty;
System\Windows\Forms\Design\DataGridViewColumnDataPropertyNameEditor.cs (1)
46dataMember = string.Empty;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
32value ??= string.Empty;
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
309componentChangeService?.OnComponentChanged(dataGridView, propertyDescriptor, previousDataMember, string.Empty);
System\Windows\Forms\Design\DataMemberFieldConverter.cs (2)
16return value is not null && value.Equals(SR.None) ? string.Empty : value; 21return destinationType == typeof(string) && (value is null || value.Equals(string.Empty))
System\Windows\Forms\Design\DataMemberFieldEditor.cs (1)
40rootDataMember: string.Empty,
System\Windows\Forms\Design\DataMemberListEditor.cs (1)
34string.Empty,
System\Windows\Forms\Design\DataSourceListEditor.cs (1)
32null, string.Empty,
System\Windows\Forms\Design\DesignBinding.cs (1)
28return string.Empty;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
534_instancesNode = new InstancesNode(string.Empty);
System\Windows\Forms\Design\DesignBindingValueUIHandler.LocalUIItem.cs (2)
25string name = string.Empty; 28name = site.Name ?? string.Empty;
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (2)
21private string _version = string.Empty; 305string? inprocServer = (string?)inprocServerKey.GetValue(string.Empty);
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (3)
13private string _descriptionText = string.Empty; 25public string DirectoryPath { get; private set; } = string.Empty; 40set => _descriptionText = value ?? string.Empty;
System\Windows\Forms\Design\FormatControl.cs (4)
41return string.Empty; 233nullValueTextBox.Text = string.Empty; 236_customStringTextBox.Text = string.Empty; 247secondRowLabel.Text = string.Empty;
System\Windows\Forms\Design\FormatControl.CurrencyFormatType.cs (1)
53return string.Empty;
System\Windows\Forms\Design\FormatControl.CustomFormatType.cs (9)
30return string.Empty; 33string label = string.Empty; 43if (label.Equals(string.Empty)) 51label = string.Empty; 57if (label.Equals(string.Empty)) 65label = string.Empty; 71if (label.Equals(string.Empty)) 79label = string.Empty; 83if (label.Equals(string.Empty))
System\Windows\Forms\Design\FormatControl.DateTimeFormatType.cs (1)
28return string.Empty;
System\Windows\Forms\Design\FormatControl.NoFormattingFormatType.cs (1)
21public override string FormatString => string.Empty;
System\Windows\Forms\Design\FormatControl.NumericFormatType.cs (1)
53return string.Empty;
System\Windows\Forms\Design\FormatControl.ScientificFormatType.cs (1)
53return string.Empty;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
115string formatType = string.Empty;
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
32return string.Empty;
System\Windows\Forms\Design\ImageListImage.cs (1)
30get => _name ?? string.Empty;
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
32string? text = string.Empty;
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (1)
27return string.Empty;
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
45return string.Empty;
System\Windows\Forms\Design\MaskDescriptor.cs (1)
61validationErrorDescription = string.Empty;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
211string exceptionMessage = string.Empty;
System\Windows\Forms\Design\SelectionUIService.cs (2)
258string? name = string.Empty; 282string? name = string.Empty;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
567return string.Empty;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (2)
82Control.Text = string.Empty; 96textProp.SetValue(Component, string.Empty);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
886string itemName = selectedItem.Site?.Name ?? string.Empty;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
684textProp.SetValue(Component, string.Empty);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
786string text = (_centerTextBox is not null) ? ((TextBox)(_centerTextBox.Control)).Text : string.Empty;
System.Windows.Forms.Primitives (10)
System\Diagnostics\TraceSwitchExtensions.cs (1)
85string s = _builder?.ToString() ?? string.Empty;
System\Windows\Forms\FileDialogCustomPlace.cs (4)
19private string _path = string.Empty; 35get => _path ?? string.Empty; 38_path = value ?? string.Empty; 48_path = string.Empty;
System\Windows\Forms\Internals\MessageDecoder.cs (2)
21static string Parenthesize(string? input) => input is null ? string.Empty : $" ({input})"; 25string lDescription = string.Empty;
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (2)
24return string.Empty; 38return string.Empty;
Windows\Win32\Pinvoke.RegLoadMUIString.cs (1)
41: string.Empty;
System.Xaml (47)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
62string errorMessage = string.Empty;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
231return attrValue ?? string.Empty; 356attrValue = string.Empty; 443Debug.Assert(!assemblyPath.EndsWith(string.Empty + Path.DirectorySeparatorChar, StringComparison.Ordinal), "the assembly path should be a full file path containing file extension");
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
651return LookupNamespace(string.Empty);
System\Xaml\Context\ObjectWriterFrame.cs (1)
71string type = (XamlType is null) ? string.Empty : XamlType.Name;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
2381exceptionMessage.Append(SR.Format(SR.LineNumberAndPosition, string.Empty, token.LineNumber, token.LinePosition)); 2384exceptionMessage.Append(SR.Format(SR.LineNumberOnly, string.Empty, token.LineNumber));
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
364newXmlNamespace = string.Empty;
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
106_rootNamespace = LoadRootNamespace() ?? string.Empty;
System\Xaml\Parser\GenericTypeNameParser.cs (5)
41error = string.Empty; 48error = string.Empty; 68error = string.Empty; 103error = string.Empty; 168string prefix = string.Empty;
System\Xaml\Parser\GenericTypeNameScanner.cs (1)
55_tokenText = string.Empty;
System\Xaml\Parser\MeScanner.cs (1)
132_tokenText = string.Empty;
System\Xaml\Parser\XamlAttribute.cs (4)
116uri = string.Empty; 117definingPrefix = string.Empty; 133definingPrefix = string.Empty; 154XamlType attachedOwnerType = new XamlType(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlName.cs (2)
18protected XamlName() : this(string.Empty) { } 28_prefix = prefix ?? string.Empty;
System\Xaml\Parser\XamlPropertyName.cs (4)
16_prefix = owner.Prefix ?? string.Empty; 19_prefix = prefix ?? string.Empty; 40string owner = string.Empty; 90string.Empty;
System\Xaml\Parser\XamlPullParser.cs (3)
288yield return new XamlNode(XamlNodeType.Value, string.Empty); 652string trimmed = string.Empty; 667trimmed = string.Empty;
System\Xaml\Parser\XamlQualifiedName.cs (2)
76prefix = string.Empty; 77name = string.Empty;
System\Xaml\Parser\XamlScanner.cs (1)
323XamlType errType = CreateErrorXamlType(name, string.Empty);
System\Xaml\Schema\Reflector.cs (1)
130return Extract<string>(cad) ?? string.Empty;
System\Xaml\XamlMarkupExtensionWriter.cs (2)
102return string.Empty; // what we return here is not important, since Failed has set to be true 119return string.Empty; // what we return here is not important, since Failed has set to be true
System\Xaml\XamlObjectReader.cs (7)
882valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, propertyValue ?? string.Empty) }; 2075value ??= string.Empty; 2094return Equals(valueInfo.XamlNode.Value, string.Empty); 2521namespaceToPrefixMap.Add(ns, string.Empty); 2522prefixToNamespaceMap.Add(string.Empty, ns); 2609if (basePrefix != XamlLanguage.PreferredPrefix && !namespaceToPrefixMap.ContainsValue(string.Empty)) 2611prefix = string.Empty;
System\Xaml\XamlSchemaContext.cs (1)
1041clrNs ??= string.Empty;
System\Xaml\XamlType.cs (1)
488_namespaces = new ReadOnlyCollection<string>(new string[] { string.Empty });
System\Xaml\XamlXmlWriter.cs (2)
466if (!IsPrefixEverUsedForAnotherNamespace(string.Empty, ns)) 468return string.Empty;
Terminals.Repl (1)
Program.cs (1)
36var rest = parts.Length > 1 ? parts[1] : string.Empty;
testhost (2)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
testhost.arm64 (2)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
testhost.x86 (2)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
TypeScriptApiCompat (1)
AtsSurfaceParser.cs (1)
278packageName = string.Empty;
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
493string accessKey = string.Empty;
MS\Internal\AutomationProxies\WindowsAltTab.cs (1)
352String localizedName = String.Empty;
vbc (6)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (4)
385var eventName = ReadLengthPrefixedString(reader) ?? string.Empty; 390var key = ReadLengthPrefixedString(reader) ?? string.Empty; 391var value = ReadLengthPrefixedString(reader) ?? string.Empty; 429Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
536environmentVariables[key] = string.Empty; 725.Replace("=", string.Empty);
VBCSCompiler (6)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (4)
385var eventName = ReadLengthPrefixedString(reader) ?? string.Empty; 390var key = ReadLengthPrefixedString(reader) ?? string.Empty; 391var value = ReadLengthPrefixedString(reader) ?? string.Empty; 429Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (2)
536environmentVariables[key] = string.Empty; 725.Replace("=", string.Empty);
vstest.console (19)
CommandLine\CommandArgumentPair.cs (1)
70Argument = string.Empty;
CommandLine\Executor.cs (1)
482Output.WriteLine(string.Empty, OutputLevel.Information);
Internal\ConsoleLogger.cs (5)
237Initialize(events, string.Empty); 273return string.Empty; 381Output.WriteLine(string.Empty, OutputLevel.Information); 687Output.WriteLine(string.Empty, OutputLevel.Information); 775? string.Empty
Internal\MSBuildLogger.cs (2)
70Initialize(events, string.Empty); 225SendMessage("test-failed", formattedError.ToString().TrimEnd(), file ?? string.Empty, line ?? "0");
Processors\CLIRunSettingsArgumentProcessor.cs (2)
130var mergedArg = string.Empty; 167mergedArg = string.Empty;
Processors\CollectArgumentProcessor.cs (1)
250AddDataCollectorToRunSettings([arguments], runSettingsManager, fileHelper, string.Empty);
Processors\EnableCodeCoverageArgumentProcessor.cs (3)
232var existingPath = string.Empty; 280xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Empty); 300var fn = dataCollectorNavigator?.GetAttribute("friendlyName", string.Empty);
Processors\EnvironmentArgumentProcessor.cs (1)
99var value = string.Empty;
Processors\HelpArgumentProcessor.cs (1)
162Output.WriteLine(string.Empty, OutputLevel.Information);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
vstest.console.arm64 (19)
parent\vstest.console\CommandLine\CommandArgumentPair.cs (1)
70Argument = string.Empty;
parent\vstest.console\CommandLine\Executor.cs (1)
482Output.WriteLine(string.Empty, OutputLevel.Information);
parent\vstest.console\Internal\ConsoleLogger.cs (5)
237Initialize(events, string.Empty); 273return string.Empty; 381Output.WriteLine(string.Empty, OutputLevel.Information); 687Output.WriteLine(string.Empty, OutputLevel.Information); 775? string.Empty
parent\vstest.console\Internal\MSBuildLogger.cs (2)
70Initialize(events, string.Empty); 225SendMessage("test-failed", formattedError.ToString().TrimEnd(), file ?? string.Empty, line ?? "0");
parent\vstest.console\Processors\CLIRunSettingsArgumentProcessor.cs (2)
130var mergedArg = string.Empty; 167mergedArg = string.Empty;
parent\vstest.console\Processors\CollectArgumentProcessor.cs (1)
250AddDataCollectorToRunSettings([arguments], runSettingsManager, fileHelper, string.Empty);
parent\vstest.console\Processors\EnableCodeCoverageArgumentProcessor.cs (3)
232var existingPath = string.Empty; 280xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Empty); 300var fn = dataCollectorNavigator?.GetAttribute("friendlyName", string.Empty);
parent\vstest.console\Processors\EnvironmentArgumentProcessor.cs (1)
99var value = string.Empty;
parent\vstest.console\Processors\HelpArgumentProcessor.cs (1)
162Output.WriteLine(string.Empty, OutputLevel.Information);
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;