10312 references to Empty
aspire (83)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
117var hash = AppHostHelper.ExtractHashFromSocketPath(socketPath) ?? string.Empty;
Backchannel\AppHostConnectionHelper.cs (1)
87.OrderBy(c => c.AppHostInfo?.AppHostPath ?? string.Empty, StringComparer.OrdinalIgnoreCase)
Certificates\CertificateGeneration\CertificateManager.cs (2)
694keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 698key.ImportFromEncryptedPem(pem, string.Empty);
Commands\AgentMcpCommand.cs (1)
178var toolName = request.Params?.Name ?? string.Empty;
Commands\GroupedHelpWriter.cs (4)
136var description = cmd.Description ?? string.Empty; 163var desc = opt.Description ?? string.Empty; 180var description = cmd.Description ?? string.Empty; 265return string.Empty;
Commands\LogsCommand.cs (5)
227ResourceName = entry.ResourcePrefix ?? string.Empty, 229Content = entry.Content ?? entry.RawContent ?? string.Empty, 319var displayName = entry.ResourcePrefix ?? string.Empty; 320var content = entry.Content ?? entry.RawContent ?? string.Empty; 321var timestampPrefix = timestamps && entry.Timestamp.HasValue ? FormatTimestamp(entry.Timestamp.Value) + " " : string.Empty;
Commands\PipelineCommandBase.cs (7)
726var header = statusText ?? string.Empty; 727var label = input.Label ?? string.Empty; 901public string Id { get; set; } = string.Empty; 902public string Title { get; set; } = string.Empty; 907public string CompletionText { get; set; } = string.Empty; 914public string Id { get; set; } = string.Empty; 915public string StatusText { get; set; } = string.Empty;
Commands\RunCommand.cs (1)
421ctrlCGrid.AddRow(new Text(string.Empty), new Markup(RunCommandStrings.PressCtrlCToStopAppHost) { Overflow = Overflow.Ellipsis });
Commands\SettingsSchemaBuilder.cs (2)
48var description = prop.GetCustomAttribute<DescriptionAttribute>()?.Description ?? string.Empty; 148var description = prop.GetCustomAttribute<DescriptionAttribute>()?.Description ?? string.Empty;
Configuration\ConfigurationService.cs (1)
169FlattenJsonObject(settings, config, string.Empty);
Diagnostics\StartupErrorWriter.cs (1)
55var prefix = emoji is not null ? ConsoleHelpers.FormatEmojiPrefix(emoji.Value, _errorConsole) : string.Empty;
DotNet\DotNetCliExecutionFactory.cs (1)
124var currentPath = startInfo.EnvironmentVariables["PATH"] ?? Environment.GetEnvironmentVariable("PATH") ?? string.Empty;
DotNet\DotNetCliRunner.cs (11)
428var noBuildSwitch = noBuild ? "--no-build" : string.Empty; 429var noRestoreSwitch = noRestore && !noBuild ? "--no-restore" : string.Empty; // --no-build implies --no-restore 430var noProfileSwitch = options.NoLaunchProfile ? "--no-launch-profile" : string.Empty; 432var nonInteractiveSwitch = watch ? "--non-interactive" : string.Empty; 434var verboseSwitch = watch && options.Debug ? "--verbose" : string.Empty; 654var noRestoreSwitch = noRestore ? "--no-restore" : string.Empty; 784return string.Empty; 789return string.Empty; 840string nugetConfigHash = string.Empty; 901string stdout = string.Empty; 902string stderr = string.Empty;
Npm\SigstoreNpmProvenanceChecker.cs (2)
400owner = string.Empty; 401repo = string.Empty;
NuGet\BundleNuGetPackageCache.cs (1)
205Source = p.Source ?? string.Empty
NuGet\NuGetPackageCache.cs (2)
34var nuGetConfigHashSuffix = nugetConfigFile is not null ? await ComputeNuGetConfigHashSuffixAsync(nugetConfigFile, cancellationToken) : string.Empty; 54var nuGetConfigHashSuffix = nugetConfigFile is not null ? await ComputeNuGetConfigHashSuffixAsync(nugetConfigFile, cancellationToken) : string.Empty;
Packaging\NuGetConfigMerger.cs (4)
209.Select(e => (string?)e.Attribute("value") ?? string.Empty), StringComparer.OrdinalIgnoreCase); 211.Select(e => (string?)e.Attribute("key") ?? string.Empty), StringComparer.OrdinalIgnoreCase); 847.Select(e => (string?)e.Attribute("value") ?? string.Empty), StringComparer.OrdinalIgnoreCase); 849.Select(e => (string?)e.Attribute("key") ?? string.Empty), StringComparer.OrdinalIgnoreCase);
Projects\DotNetBasedAppHostServerProject.cs (1)
120return string.Empty;
Projects\FallbackProjectParser.cs (1)
239Version = version ?? string.Empty
src\Shared\ConsoleLogs\LogParser.cs (1)
55return updatedText ?? string.Empty;
src\Shared\ConsoleLogs\SharedAIHelpers.cs (10)
181var traceId = span.TraceId ?? string.Empty; 216var spanId = span.SpanId ?? string.Empty; 233["trace_id"] = OtlpHelpers.ToShortenedId(link.TraceId ?? string.Empty), 234["span_id"] = OtlpHelpers.ToShortenedId(link.SpanId ?? string.Empty) 477return string.Empty; 484?? string.Empty; 591var message = GetLogMessage(logEntry.LogRecord) ?? string.Empty; 595["span_id"] = OtlpHelpers.ToShortenedId(logEntry.LogRecord.SpanId ?? string.Empty), 596["trace_id"] = OtlpHelpers.ToShortenedId(logEntry.LogRecord.TraceId ?? string.Empty), 639return string.Empty;
src\Shared\FormatHelpers.cs (1)
111return string.Empty;
src\Shared\Json\JsonFlattener.cs (1)
19FlattenJsonObjectRecursive(source, string.Empty, result);
src\Shared\PackageUpdateHelpers.cs (3)
21public string Id { get; set; } = string.Empty; 22public string Version { get; set; } = string.Empty; 23public string Source { get; set; } = string.Empty;
src\Shared\PathLookupHelper.cs (1)
50foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
src\Shared\UserSecrets\UserSecretsPathHelper.cs (1)
48return string.Empty;
Telemetry\AspireCliTelemetry.cs (2)
302return typeof(Program).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty; 311return typeof(Program).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? string.Empty;
Telemetry\MachineInformationProviderBase.cs (1)
83return BitConverter.ToString(hashInput).Replace("-", string.Empty).ToLowerInvariant();
Telemetry\WindowsMachineInformationProvider.cs (3)
65value = string.Empty; 73value = existingValue ?? string.Empty; 78value = string.Empty;
Templating\DotNetTemplateFactory.cs (1)
117var pathVariable = Environment.GetEnvironmentVariable("PATH") ?? string.Empty;
Utils\ConsoleActivityLogger.cs (3)
222summaryParts.Add($"[yellow]{WarningSymbol} {warningSteps} warning{(warningSteps == 1 ? string.Empty : "s")}[/]"); 234summaryParts.Add($"{WarningSymbol} {warningSteps} warning{(warningSteps == 1 ? string.Empty : "s")}"); 262: string.Empty;
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (1)
300var versionSuffix = clientVersion is not null ? $" (version {clientVersion})" : string.Empty;
Utils\EnvironmentChecker\EnvironmentCheckResult.cs (3)
19public string Category { get; init; } = string.Empty; 25public string Name { get; init; } = string.Empty; 38public string Message { get; init; } = string.Empty;
Utils\FirstTimeUseNoticeSentinel.cs (1)
45File.WriteAllText(_sentinelFilePath, string.Empty);
Utils\StringUtils.cs (1)
12return RemoveSpectreFormattingRegex().Replace(input, string.Empty).Trim();
Aspire.Azure.AI.Inference.Tests (4)
AspireAzureAIInferenceEmbeddingsPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
AspireAzureAIInferencePublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Azure.AI.OpenAI.Tests (5)
AIOpenAIPublicApiTests.cs (5)
32var connectionName = isNull ? null! : string.Empty; 63var connectionName = isNull ? null! : string.Empty; 91var name = isNull ? null! : string.Empty; 119var connectionName = isNull ? null! : string.Empty; 147var name = isNull ? null! : string.Empty;
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)
280var name = isNull ? null! : string.Empty; 298var name = isNull ? null! : string.Empty; 316var 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 (2)
McpDocsE2ETests.cs (2)
304return string.Empty; 310.FirstOrDefault() ?? string.Empty;
Aspire.Cli.Tests (39)
Commands\AddCommandTests.cs (4)
697var selectedPackageId = string.Empty; 759var selectedPackageVersion = string.Empty; 847var addedPackage = string.Empty; 1010var addedPackage = string.Empty;
Commands\AgentMcpCommandTests.cs (1)
578return string.Empty;
Commands\ConfigCommandTests.cs (1)
697return string.Empty;
Commands\ExtensionInternalCommandTests.cs (2)
77var allOutput = string.Join(string.Empty, capturedOutput.Logs); 119var allOutput = string.Join(string.Empty, capturedOutput.Logs);
Commands\NewCommandTests.cs (4)
785var capturedProjectNameDefault = string.Empty; 786var capturedOutputPathDefault = string.Empty; 851var scaffoldedLanguageId = string.Empty; 1536return Task.FromResult(defaultValue ?? string.Empty);
Commands\PsCommandTests.cs (4)
147var jsonOutput = string.Join(string.Empty, textWriter.Logs); 187var json = string.Join(string.Empty, textWriter.Logs); 253var jsonOutput = string.Join(string.Empty, textWriter.Logs); 315var jsonOutput = string.Join(string.Empty, textWriter.Logs);
Commands\PublishCommandPromptingIntegrationTests.cs (1)
887return Task.FromResult(defaultValue ?? string.Empty);
Commands\UpdateCommandTests.cs (1)
810var updatedWithChannel = string.Empty;
Interaction\ConsoleInteractionServiceTests.cs (2)
948Func<string, string> callerFormatter = item => string.Empty; 956Assert.Equal(string.Empty, result);
Mcp\E2E\McpDocsE2ETests.cs (2)
273return string.Empty; 279.FirstOrDefault() ?? string.Empty;
Mcp\ListConsoleLogsToolTests.cs (1)
206return match.Success ? match.Groups[1].Value : string.Empty;
Projects\GuestAppHostProjectTests.cs (1)
180["Aspire.Hosting.Redis"] = string.Empty
Projects\GuestRuntimeTests.cs (1)
416public string LastCommand { get; private set; } = string.Empty;
Telemetry\TelemetryFixture.cs (2)
81public string UserName { get; set; } = string.Empty; 82public string UserDomainName { get; set; } = string.Empty;
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
TestServices\TestConfigurationService.cs (1)
50public string SettingsFilePath { get; set; } = string.Empty;
TestServices\TestExtensionBackchannel.cs (2)
200: Task.FromResult(defaultValue ?? string.Empty); 208: Task.FromResult(string.Empty);
TestServices\TestExtensionInteractionService.cs (1)
40return Task.FromResult(defaultValue ?? string.Empty);
TestServices\TestInteractionService.cs (1)
78return Task.FromResult(defaultValue ?? string.Empty);
Utils\AspireRepositoryDetectorTests.cs (2)
39File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), string.Empty); 65File.WriteAllText(Path.Combine(repoRoot, "Aspire.slnx"), 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);
Aspire.Components.Common.TestUtilities (1)
ConformanceTests.cs (1)
51protected 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 (105)
Api\TelemetryApiService.cs (3)
55FilterText = string.Empty 126FilterText = string.Empty 176FilterText = string.Empty
Components\Controls\Chart\MetricTable.razor.cs (3)
24private string _unitColumnHeader = string.Empty; 111SecondaryAction = string.Empty, 328return value is null ? string.Empty : value.Value.ToString("F3", CultureInfo.CurrentCulture);
Components\Controls\GridValue.razor.cs (3)
164Value = ValueToVisualize ?? Value ?? string.Empty, 181_componentParameters["Value"] = Value ?? string.Empty; 182_componentParameters["HighlightText"] = HighlightText ?? string.Empty;
Components\Dialogs\ExemplarsDialog.razor.cs (1)
64return string.Empty;
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
283return vm.ToolDefinition.Name ?? string.Empty;
Components\Dialogs\ManageDataDialog.razor.cs (1)
366return string.Empty;
Components\Dialogs\SettingsDialog.razor.cs (1)
111SecondaryAction = string.Empty,
Components\Interactions\InteractionsProvider.cs (1)
565return string.Empty;
Components\Pages\Error.razor.cs (1)
41new ComponentTelemetryProperty(TelemetryPropertyKeys.ErrorRequestId, new AspireTelemetryProperty(RequestId ?? string.Empty)),
Components\Pages\Metrics.razor.cs (1)
361new ComponentTelemetryProperty(TelemetryPropertyKeys.MetricsSelectedView, new AspireTelemetryProperty(PageViewModel.SelectedViewKind?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting))
Components\Pages\Resources.razor.cs (9)
160&& IsKeyValueTrue(resource.State ?? string.Empty, PageViewModel.ResourceStatesToVisibility) 161&& IsKeyValueTrue(resource.HealthStatus?.Humanize() ?? string.Empty, PageViewModel.ResourceHealthStatusesToVisibility) 386PageViewModel.ResourceStatesToVisibility.AddOrUpdate(resource.State ?? string.Empty, stateVisible(resource.State ?? string.Empty), (_, _) => stateVisible(resource.State ?? string.Empty)); 387PageViewModel.ResourceHealthStatusesToVisibility.AddOrUpdate(resource.HealthStatus?.Humanize() ?? string.Empty, healthStatusVisible(resource.HealthStatus?.Humanize() ?? string.Empty), (_, _) => healthStatusVisible(resource.HealthStatus?.Humanize() ?? string.Empty)); 789return string.Empty;
Components\Pages\StructuredLogs.razor.cs (2)
49private string _filter = string.Empty; 628new ComponentTelemetryProperty(TelemetryPropertyKeys.StructuredLogsSelectedLogLevel, new AspireTelemetryProperty(PageViewModel.SelectedLogLevel.Id?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting)),
Components\Pages\TraceDetail.razor.cs (2)
47private string _filter = string.Empty; 383return string.Empty;
Components\Pages\Traces.razor.cs (2)
46private string _filter = string.Empty; 265return string.Empty;
DashboardWebApplication.cs (2)
570new PostConfigureDashboardOptions(builder.Configuration).PostConfigure(name: string.Empty, dashboardOptions); 571var 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 },
Mcp\AspireTelemetryMcpTools.cs (1)
113FilterText = string.Empty
Model\Assistant\AssistantChatDataContext.cs (1)
175FilterText = string.Empty
Model\Assistant\AssistantChatViewModel.cs (4)
630_currentAssistantResponse.Html = string.Empty; 853UserMessage = string.Empty; 865UserMessage = string.Empty; 995new ComponentTelemetryProperty(TelemetryPropertyKeys.AIAssistantSelectedModel, new AspireTelemetryProperty(SelectedModel?.Family ?? string.Empty)),
Model\Assistant\ChatViewModel.cs (3)
30public string PromptText { get; set; } = string.Empty; 31public string Html { get; set; } = string.Empty; 82Html = string.Empty;
Model\Assistant\InvariantStringLocalizer.cs (2)
28return new LocalizedString(name, value ?? string.Empty, value != null); 37return new LocalizedString(name, value != null ? string.Format(CultureInfo.InvariantCulture, value, arguments) : string.Empty, value != null);
Model\ConnectionStringParser.cs (1)
468return (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 (1)
97set => Input.Value = value?.ToString(CultureInfo.InvariantCulture) ?? string.Empty;
Model\Markdown\MarkdownHelpers.cs (2)
36link.Url = string.Empty; 48link.Url = string.Empty;
Model\Markdown\MarkdownProcessor.cs (1)
50return string.Empty;
Model\Otlp\TelemetryFilter.cs (1)
139return input.Where(x => func(OtlpLogEntry.GetFieldValue(x, Field) ?? string.Empty, Value));
Model\ResourceOutgoingPeerResolver.cs (2)
145var value1 = property1!.Value.TryConvertToString(out var str1) ? str1 : string.Empty; 146var value2 = property2!.Value.TryConvertToString(out var str2) ? str2 : string.Empty;
Model\ResourceViewModel.cs (1)
423public static readonly UrlDisplayPropertiesViewModel Empty = new(string.Empty, 0);
Model\StructuredLogsViewModel.cs (1)
21private string _filterText = string.Empty;
Model\TelemetryExportService.cs (1)
140.Select(e => e.RawContent is not null ? AnsiParser.StripControlSequences(e.RawContent) : string.Empty)
Model\TraceLinkHelpers.cs (1)
61PrimaryAction = string.Empty,
Model\TracesViewModel.cs (1)
17private string _filterText = string.Empty;
Otlp\Model\OtlpHelpers.cs (4)
74return string.Empty; 100return string.Empty; 112AnyValue.ValueOneofCase.None => string.Empty, 469var name = scope?.Name ?? string.Empty;
Otlp\Model\OtlpLogEntry.cs (2)
72: string.Empty; 76ParentId = 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)
146FullName = string.Empty;
Otlp\Model\OtlpUnits.cs (1)
144"1" => string.Empty,
Otlp\Storage\GetTracesRequest.cs (1)
21FilterText = string.Empty,
Otlp\Storage\TelemetryRepository.Watchers.cs (1)
64FilterText = string.Empty
src\Shared\ConsoleLogs\LogParser.cs (1)
55return updatedText ?? string.Empty;
src\Shared\ConsoleLogs\SharedAIHelpers.cs (10)
181var traceId = span.TraceId ?? string.Empty; 216var spanId = span.SpanId ?? string.Empty; 233["trace_id"] = OtlpHelpers.ToShortenedId(link.TraceId ?? string.Empty), 234["span_id"] = OtlpHelpers.ToShortenedId(link.SpanId ?? string.Empty) 477return string.Empty; 484?? string.Empty; 591var message = GetLogMessage(logEntry.LogRecord) ?? string.Empty; 595["span_id"] = OtlpHelpers.ToShortenedId(logEntry.LogRecord.SpanId ?? string.Empty), 596["trace_id"] = OtlpHelpers.ToShortenedId(logEntry.LogRecord.TraceId ?? string.Empty), 639return string.Empty;
src\Shared\FormatHelpers.cs (1)
111return string.Empty;
Telemetry\DashboardTelemetryService.cs (2)
28{ TelemetryPropertyKeys.DashboardVersion, new AspireTelemetryProperty(typeof(DashboardWebApplication).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty) }, 29{ TelemetryPropertyKeys.DashboardBuildId, new AspireTelemetryProperty(typeof(DashboardWebApplication).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? string.Empty) },
Telemetry\OperationContext.cs (1)
11public static readonly OperationContext Empty = new(name: string.Empty);
Telemetry\TelemetryErrorRecorder.cs (2)
42[TelemetryPropertyKeys.ExceptionStackTrace] = new AspireTelemetryProperty(exception.StackTrace ?? string.Empty), 43[TelemetryPropertyKeys.ExceptionRuntimeVersion] = new AspireTelemetryProperty(VersionHelpers.RuntimeVersion?.ToString() ?? string.Empty),
Aspire.Dashboard.Components.Tests (20)
Controls\GenAIVisualizerDialogTests.cs (3)
152FilterText = string.Empty, 236FilterText = string.Empty, 250FilterText = string.Empty,
Controls\PlotlyChartTests.cs (1)
66Parent = new OtlpScope("Parent-Name-<b>Bold</b>", string.Empty, []),
Controls\TextVisualizerDialogTests.cs (10)
45await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawJson, string.Empty, false), []); 66await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), []); 93await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), []); 109await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, false), []); 126await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), []); 144await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), []); 166await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), []); 188await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), []); 202await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: false, FixedFormat: DashboardUIHelpers.PropertiesFormat), []); 221await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: false, FixedFormat: DashboardUIHelpers.JsonFormat), []);
Pages\ConsoleLogsTests.cs (2)
593commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]); 657commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (2)
280Assert.Equal(string.Empty, kvp.Key); 694var collapsedResourceNamesKeyUsed = string.Empty;
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
201EventName = eventName ?? string.Empty
Aspire.Dashboard.Tests (61)
Integration\OtlpHttpJsonTests.cs (1)
436FilterText = string.Empty,
Integration\StartupTests.cs (1)
127data["Dashboard:Otlp:AllowedCertificates:0"] = string.Empty;
Middleware\ValidateTokenMiddlewareTests.cs (2)
21using var host = await SetUpHostAsync(FrontendAuthMode.Unsecured, string.Empty).DefaultTimeout(); 29using var host = await SetUpHostAsync(FrontendAuthMode.Unsecured, string.Empty).DefaultTimeout();
Model\GenAIVisualizerDialogViewModelTests.cs (6)
266message: string.Empty, 397KeyValuePair.Create(GenAIHelpers.GenAIEventContent, string.Empty), 1750message: string.Empty, 1763message: string.Empty, 1931message: string.Empty, 2018message: 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)
45new EnvironmentVariable { Name = string.Empty, Value = "Value!" }
Model\Serialization\OtlpJsonProtobufConverterTests.cs (1)
15var result = OtlpJsonToProtobufConverter.HexToByteString(string.Empty);
Model\SpanWaterfallViewModelTests.cs (2)
208var result1 = vm.MatchesFilter(string.Empty, typeFilter: spanType.Id?.Filter, a => a.Resource.ResourceName, out _); 217var result2 = vm.MatchesFilter(string.Empty, typeFilter: otherSpanType.Id?.Filter, a => a.Resource.ResourceName, out _);
Model\TelemetryExportServiceTests.cs (1)
290FilterText = string.Empty,
Telemetry\DashboardTelemetrySenderTests.cs (1)
84return Task.FromResult(new HttpResponseMessage(telemetryEnabledResponseStatusCode.Value) { Content = new StringContent(telemetryEnabledResponseBody ?? string.Empty) });
Telemetry\DashboardTelemetryServiceTests.cs (1)
110Content = new StringContent(JsonSerializer.Serialize(new TelemetryEnabledResponse(IsEnabled: true)) ?? string.Empty)
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (7)
43Assert.Empty(repository.GetTraces(new GetTracesRequest { ResourceKey = resourceKey, Count = 100, Filters = [], StartIndex = 0, FilterText = string.Empty }).PagedResult.Items); 56Assert.Single(repository.GetTraces(new GetTracesRequest { ResourceKey = resourceKey, Count = 100, Filters = [], StartIndex = 0, FilterText = string.Empty }).PagedResult.Items); 237var traces = repository.GetTraces(new GetTracesRequest { ResourceKey = null, FilterText = string.Empty, StartIndex = 0, Count = 10, Filters = [] }); 249var resource2Traces = repository.GetTraces(new GetTracesRequest { ResourceKey = resource2Key, FilterText = string.Empty, StartIndex = 0, Count = 10, Filters = [] }); 280var traces = repository.GetTraces(new GetTracesRequest { ResourceKey = null, FilterText = string.Empty, StartIndex = 0, Count = 10, Filters = [] }); 321var traces = repository.GetTraces(new GetTracesRequest { ResourceKey = null, FilterText = string.Empty, StartIndex = 0, Count = 10, Filters = [] }); 352var traces = repository.GetTraces(new GetTracesRequest { ResourceKey = null, FilterText = string.Empty, StartIndex = 0, Count = 10, Filters = [] });
TelemetryRepositoryTests\TraceTests.cs (31)
82FilterText = string.Empty, 141FilterText = string.Empty, 196FilterText = string.Empty, 251FilterText = string.Empty, 322FilterText = string.Empty, 399FilterText = string.Empty, 441FilterText = string.Empty, 496FilterText = string.Empty, 565FilterText = string.Empty, 642FilterText = string.Empty, 732FilterText = string.Empty, 748FilterText = string.Empty, 816FilterText = string.Empty, 868FilterText = string.Empty, 940FilterText = string.Empty, 1047FilterText = string.Empty, 1117FilterText = string.Empty, 1181FilterText = string.Empty, 1200FilterText = string.Empty, 1219FilterText = string.Empty, 1271FilterText = string.Empty, 1287FilterText = string.Empty, 1312FilterText = string.Empty, 1515FilterText = string.Empty, 1633FilterText = string.Empty, 1712FilterText = string.Empty, 1818FilterText = string.Empty, 1910FilterText = string.Empty, 1983FilterText = string.Empty, 2062FilterText = string.Empty, 2104FilterText = string.Empty,
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
201EventName = eventName ?? string.Empty
Aspire.EndToEnd.Tests (3)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
161DefaultBuildArgs = 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.Hosting (60)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
26if (Path.GetDirectoryName(value) != string.Empty)
ApplicationModel\ReferenceExpression.cs (2)
37public static readonly ReferenceExpression Empty = Create(string.Empty, [], [], []); 76Format = string.Empty;
ApplicationModel\ResourceExtensions.cs (3)
871var tagSuffix = string.IsNullOrEmpty(buildAnnotation.ImageTag) ? string.Empty : $":{buildAnnotation.ImageTag}"; 878var registryPrefix = string.IsNullOrEmpty(imageAnnotation.Registry) ? string.Empty : $"{imageAnnotation.Registry}/"; 882var tagSuffix = string.IsNullOrEmpty(imageAnnotation.Tag) ? string.Empty : $":{imageAnnotation.Tag}";
ApplicationModel\ResourceLoggerService.cs (1)
616var content = entry.Content ?? string.Empty;
Dashboard\DashboardEventHandlers.cs (3)
956public string Timestamp { get; set; } = string.Empty; 960public string Category { get; set; } = string.Empty; 961public string Message { get; set; } = string.Empty;
Dashboard\DashboardService.cs (1)
375ErrorMessage = errorMessage ?? string.Empty
Dashboard\DashboardServiceData.cs (2)
214if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty))
Dashboard\proto\Partials.cs (4)
91Source = volume.Source ?? string.Empty, 100resource.Commands.Add(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\DcpDependencyCheck.cs (3)
97if (output == string.Empty) 150|| dcpVersionString == string.Empty 160dcpVersionString = VersionRegex().Replace(dcpVersionString, string.Empty);
Dcp\DcpExecutor.cs (6)
1339ServerServiceNamespace = string.Empty, 1341ClientServiceNamespace = string.Empty 1888exe.Annotate(Executable.LaunchConfigurationsAnnotation, string.Empty); 2876configuration.Password ?? string.Empty, 2886tempKey.ImportFromEncryptedPem(pemKey, string.Empty); 3113var containerNames = persistentTunnelDependent.Select(td => td.ModelResource.Name).Aggregate(string.Empty, (acc, next) => acc + " '" + next + "'");
Dcp\DcpKubernetesClient.cs (1)
178return string.Empty;
Dcp\DcpLogParser.cs (2)
26message = string.Empty; 28category = string.Empty;
Dcp\Model\Container.cs (1)
576c.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)
272tp.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 (2)
262exe.Metadata.NamespaceProperty = string.Empty; 274this.Annotate(LaunchConfigurationsAnnotation, string.Empty); // Clear existing annotation, if any.
Dcp\Model\ExecutableLaunchConfiguration.cs (2)
36public string LaunchProfile { get; set; } = string.Empty; 42public string ProjectPath { get; set; } = string.Empty;
Dcp\Model\ExecutableReplicaSet.cs (1)
108ers.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\Service.cs (1)
84s.Metadata.NamespaceProperty = string.Empty;
Dcp\Process\ProcessUtil.cs (1)
27WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty,
ExecutableResourceBuilderExtensions.cs (1)
191WorkingDirectory = string.Empty
ExternalServiceBuilderExtensions.cs (1)
210var pathKey = path is not null ? $"_{path}" : string.Empty;
Pipelines\Internal\JsonFlattener.cs (1)
22FlattenJsonObjectRecursive(source, string.Empty, result);
Pipelines\PipelineActivityReporter.cs (1)
216task.CompletionMessage = completionMessage ?? string.Empty;
Pipelines\ReportingStep.cs (1)
52public string CompletionText { get; internal set; } = string.Empty;
Pipelines\ReportingTask.cs (1)
52public string CompletionMessage { get; internal set; } = string.Empty;
Publishing\ContainerRuntimeBase.cs (3)
228var result = string.Empty; 246var result = string.Empty; 272return !string.IsNullOrEmpty(stage) ? $" --target \"{stage}\"" : string.Empty;
Publishing\ManifestPublishingContext.cs (1)
876Writer.WriteString("connectionString", resolvedValue ?? string.Empty);
Publishing\ResourceContainerImageManager.cs (1)
176public string LocalImageName { get; set; } = string.Empty;
ResourceBuilderExtensions.cs (1)
41return builder.WithAnnotation(new EnvironmentAnnotation(name, value ?? string.Empty));
src\Shared\PackageUpdateHelpers.cs (3)
21public string Id { get; set; } = string.Empty; 22public string Version { get; set; } = string.Empty; 23public string Source { get; set; } = string.Empty;
src\Shared\PathLookupHelper.cs (1)
50foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
src\Shared\UserSecrets\UserSecretsPathHelper.cs (1)
48return string.Empty;
UserSecrets\NoopUserSecretsManager.cs (1)
25public string FilePath => string.Empty;
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
67private static string TrimAssemblyExtension(string fullPath) => fullPath.Replace(".dll", string.Empty);
Aspire.Hosting.Azure (9)
AzureBicepResource.cs (1)
452return string.Empty;
Provisioning\Internal\DefaultUserPrincipalProvider.cs (2)
22var oid = string.Empty; 23var upn = string.Empty;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (4)
168var tenantId = context.AllInputs[TenantName].Value ?? string.Empty; 208var subscriptionId = context.AllInputs[SubscriptionIdName].Value ?? string.Empty; 245var subscriptionId = context.AllInputs[SubscriptionIdName].Value ?? string.Empty; 246var resourceGroupName = context.AllInputs[ResourceGroupName].Value ?? string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
27WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty,
src\Shared\PathLookupHelper.cs (1)
50foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
Aspire.Hosting.Azure.AppContainers (4)
AzureContainerAppExtensions.cs (1)
69var userPrincipalId = new ProvisioningParameter(AzureBicepResource.KnownParameters.UserPrincipalId, typeof(string)) { Value = new BicepValue<string>(string.Empty) };
BaseContainerAppContext.cs (1)
316new BinaryExpression(BicepFunction.ToLower(ResolveValue(conditionVal).Compile()).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression((expr.MatchValue ?? string.Empty).ToLowerInvariant())),
ContainerAppExtensions.cs (2)
79new StringLiteralExpression(string.Empty)), 88new StringLiteralExpression(string.Empty)),
Aspire.Hosting.Azure.AppService (3)
AzureAppServiceEnvironmentExtensions.cs (1)
58var userPrincipalId = new ProvisioningParameter(AzureBicepResource.KnownParameters.UserPrincipalId, typeof(string)) { Value = new BicepValue<string>(string.Empty) };
AzureAppServiceEnvironmentResource.cs (1)
250var normalized = key.Replace("-", string.Empty, StringComparison.Ordinal);
AzureAppServiceWebsiteContext.cs (1)
225new BinaryExpression(BicepFunction.ToLower(ResolveValue(conditionVal).Compile()).Compile(), BinaryBicepOperator.Equal, new StringLiteralExpression((expr.MatchValue ?? string.Empty).ToLowerInvariant())),
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.Functions (3)
AzureFunctionsProjectResourceExtensions.cs (3)
268var commandLineArgs = CommandLineArgsParser.Parse(launchProfile.LaunchProfile.CommandLineArgs ?? string.Empty); 448public string Mode { get; set; } = string.Empty; 451public string ProjectPath { get; set; } = 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.Tests (68)
AzureDeployerTests.cs (1)
1364public override string ClientRequestId { get; set; } = string.Empty;
AzureKeyVaultTests.cs (1)
435Assert.Contains("localhost:8443", await connectionString.GetValueAsync(default) ?? string.Empty);
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)
19var name = isNull ? null! : string.Empty; 39var name = isNull ? null! : string.Empty; 60var containerName = isNull ? null! : string.Empty; 80var containerName = isNull ? null! : string.Empty; 101var partitionKeyPath = isNull ? null! : string.Empty; 153IEnumerable<string> partitionKeyPaths = [isNull ? null! : string.Empty]; 197var name = isNull ? null! : string.Empty; 216var databaseName = isNull ? null! : string.Empty; 255var name = isNull ? null! : string.Empty; 296var name = isNull ? null! : string.Empty; 387var databaseName = isNull ? null! : string.Empty; 416var name = isNull ? null! : string.Empty; 447var name = isNull ? null! : string.Empty; 467var partitionKeyPath = isNull ? null! : string.Empty; 509string[] 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 (2)
29var name = isNull ? null! : string.Empty; 86var name = 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;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Go.Tests (5)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
12public string Name { get; set; } = string.Empty; 25public string Name { get; set; } = string.Empty; 61public string Name { get; set; } = string.Empty; 90public string Id { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Java.Tests (5)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
12public string Name { get; set; } = string.Empty; 25public string Name { get; set; } = string.Empty; 61public string Name { get; set; } = string.Empty; 90public string Id { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
170var optionalSuffix = property.IsOptional ? " | None" : string.Empty; 171var defaultValue = property.IsOptional ? " = None" : string.Empty; 526return string.Empty;
Aspire.Hosting.CodeGeneration.Python.Tests (5)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
12public string Name { get; set; } = string.Empty; 25public string Name { get; set; } = string.Empty; 61public string Name { get; set; } = string.Empty; 90public 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)
12public string Name { get; set; } = string.Empty; 25public string Name { get; set; } = string.Empty; 61public string Name { get; set; } = string.Empty; 90public string Id { get; set; } = string.Empty;
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.TypeScript.Tests (5)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
TestTypes\TestTypes.cs (4)
12public string Name { get; set; } = string.Empty; 25public string Name { get; set; } = string.Empty; 61public string Name { get; set; } = string.Empty; 90public 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)
587.WithDockerfile(string.Empty); 600builder.AddDockerfile("mycontainer", string.Empty) 601.WithDockerfile(string.Empty);
Aspire.Hosting.DevTunnels (1)
DevTunnelCliClient.cs (1)
226logger?.LogTrace("Getting access details for {PortInfo}dev tunnel '{TunnelId}'.", portNumber.HasValue ? $"port '{portNumber}' on " : string.Empty, tunnelId);
Aspire.Hosting.Docker (9)
DockerComposeServiceResource.cs (1)
226env[kv.Key] = value?.ToString() ?? string.Empty;
DockerComposeServiceResourceExtensions.cs (1)
76return (await resource.ProcessValueAsync(expr.ValueProviders[0]).ConfigureAwait(false)).ToString() ?? string.Empty;
EnvFile.cs (5)
43currentComment = trimmed.Length > 1 ? trimmed[1..].Trim() : string.Empty; 71key = string.Empty; 80value = eqIndex < trimmed.Length - 1 ? trimmed[(eqIndex + 1)..] : string.Empty; 109lines.Add(string.Empty); 154lines.Add(string.Empty);
Resources\ComposeNodes\Service.cs (1)
489Environment[key] = value ?? string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
27WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty,
Aspire.Hosting.Docker.Tests (2)
EnvFileTests.cs (1)
132File.WriteAllText(envFilePath, string.Empty);
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Foundry (4)
HostedAgent\AzureHostedAgentResource.cs (2)
182resolvedEnvVars[key] = string.Empty; 188resolvedEnvVars[key] = await provider.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? string.Empty;
HostedAgent\HostedAgentBuilderExtension.cs (1)
334"--instructions", instructions ?? string.Empty,
Project\ProjectBuilderExtension.cs (1)
222var userPrincipalId = new ProvisioningParameter(AzureBicepResource.KnownParameters.UserPrincipalId, typeof(string)) { Value = new BicepValue<string>(string.Empty) };
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? 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.JavaScript (7)
BrowserLaunchConfiguration.cs (2)
12public string Url { get; set; } = string.Empty; 15public string WebRoot { get; set; } = string.Empty;
JavaScriptHostingExtensions.cs (2)
996ScriptPath = string.Empty, 1274majorVersion = string.Empty;
NodeLaunchConfiguration.cs (3)
12public string ScriptPath { get; set; } = string.Empty; 15public string RuntimeExecutable { get; set; } = string.Empty; 18public string WorkingDirectory { get; set; } = string.Empty;
Aspire.Hosting.JavaScript.Tests (8)
AddJavaScriptAppTests.cs (1)
63File.WriteAllText(Path.Combine(appDir, "pnpm-lock.yaml"), string.Empty);
NodeAppFixture.cs (1)
115public string Output => string.Empty;
NodeJsPublicApiTests.cs (6)
15var name = isNull ? null! : string.Empty; 33var command = isNull ? null! : string.Empty; 76var name = isNull ? null! : string.Empty; 94var scriptPath = isNull ? null! : string.Empty; 123var name = isNull ? null! : string.Empty; 155var runScriptName = 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; 182File.WriteAllText(filePath, string.Empty);
Aspire.Hosting.Kubernetes (16)
Extensions\ResourceExtensions.cs (2)
85?? string.Empty; 115?? string.Empty;
KubernetesPublishingContext.cs (1)
155paramValues[key.ToHelmValuesSectionName()] = value ?? string.Empty;
KubernetesResource.cs (12)
377EnvironmentVariables[key] = new(configExpression, value.ToString() ?? string.Empty); 455return (await ProcessValueAsync(context, executionContext, expr.ValueProviders[0], true).ConfigureAwait(false)).ToString() ?? string.Empty; 488var whenTrueStr = whenTrueResult.ToString() ?? string.Empty; 489var whenFalseStr = whenFalseResult.ToString() ?? string.Empty; 510var escapedMatch = (expr.MatchValue ?? string.Empty).ToLowerInvariant().Replace("\\", "\\\\").Replace("\"", "\\\""); 570? string.Empty 585? string.Empty 611var formattedName = parameter.ValueExpression.Replace(HelmExtensions.StartDelimiter, string.Empty) 612.Replace(HelmExtensions.EndDelimiter, string.Empty) 713return ValueString ?? Expression ?? string.Empty; 726return ValueString ?? string.Empty; 743_ => string.Empty
Yaml\IntOrStringConverter.cs (1)
69var val = obj.Value ?? string.Empty;
Aspire.Hosting.Kubernetes.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Maui (3)
Utilities\ProjectFileReader.cs (3)
89var targetFrameworksValue = string.Empty; 93targetFrameworksValue = targetFrameworks.GetString() ?? string.Empty; 99targetFrameworksValue = targetFramework.GetString() ?? string.Empty;
Aspire.Hosting.Maui.Tests (1)
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 (10)
MongoDBPublicApiTests.cs (10)
30var name = isNull ? null! : string.Empty; 60var name = isNull ? null! : string.Empty; 91var name = isNull ? null! : string.Empty; 156var source = isNull ? null! : string.Empty; 186var source = isNull ? null! : string.Empty; 216var source = isNull ? null! : string.Empty; 231var name = isNull ? null! : string.Empty; 249var databaseName = isNull ? null! : string.Empty; 278var name = isNull ? null! : string.Empty; 293var 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 (5)
PythonAppLaunchConfiguration.cs (3)
12public string ProgramPath { get; set; } = string.Empty; 15public string Module { get; set; } = string.Empty; 18public string InterpreterPath { get; set; } = string.Empty;
PythonAppResourceBuilderExtensions.cs (2)
939module = string.Empty; 953interpreterPath = string.Empty;
Aspire.Hosting.Python.Tests (11)
AddPythonAppTests.cs (2)
490resourceBuilder.WithVirtualEnvironment(string.Empty)); 1237resourceBuilder.WithEntrypoint(EntrypointType.Module, string.Empty));
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)
86await channel.BasicPublishAsync(exchange: string.Empty, routingKey: queueName, body: body); 154exchange: 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.Redis (1)
RedisBuilderExtensions.cs (1)
260var hostString = $"{(hostsVariableBuilder.Length > 0 ? "," : string.Empty)}{redisInstance.Name}:{redisInstance.Name}:{endpoint.TargetPort}:0";
Aspire.Hosting.Redis.Tests (6)
RedisPublicApiTests.cs (6)
29var name = isNull ? null! : string.Empty; 115var source = isNull ? null! : string.Empty; 167var source = isNull ? null! : string.Empty; 183var name = isNull ? null! : string.Empty; 198var name = isNull ? null! : string.Empty; 213var name = isNull ? null! : string.Empty;
Aspire.Hosting.RemoteHost.Tests (1)
AssemblyLoaderTests.cs (1)
100File.WriteAllText(System.IO.Path.Combine(Path, fileName), 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.Testing (2)
DistributedApplicationFactory.cs (2)
190hostBuilderOptions.ApplicationName = entryPointAssembly.GetName().Name ?? string.Empty; 191applicationOptions.AssemblyName = entryPointAssembly.GetName().Name ?? string.Empty;
Aspire.Hosting.Testing.Tests (14)
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; 229string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 273string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 316string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 376string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 407string[] args = ["arg", isNull ? null! : string.Empty, "arg2"]; 450string[] args = ["arg", isNull ? null! : string.Empty, "arg2"];
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
Aspire.Hosting.Tests (36)
AppHostSmokeTests.cs (2)
35RemoteExecutor.Invoke(RunTest, locale, expectedLocaleError ?? string.Empty, expectedCulture ?? string.Empty, environmentVariableName, remoteInvokeOptions).Dispose();
Dashboard\DashboardResourceTests.cs (1)
784public string Message { get; set; } = string.Empty;
Dashboard\TransportOptionsValidatorTests.cs (3)
133config[KnownConfigNames.AspNetCoreUrls] = string.Empty; 156config[resourceServiceEndpointUrlKey] = string.Empty; 181config[dashboardOtlpGrpcEndpointUrlKey] = string.Empty;
Dcp\DcpExecutorTests.cs (3)
1489Assert.Equal(string.Empty, plc.LaunchProfile); 1622Assert.Equal(string.Empty, plc.LaunchProfile); 1652Assert.Equal(string.Empty, plc.LaunchProfile); // nothing selected
Dcp\TestKubernetesService.cs (4)
50string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty) 127string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty)
DistributedApplicationTests.cs (5)
1566var urls = string.Empty; 1643var sslVal = redis.Resource.TlsEnabled ? ",ssl=true" : string.Empty; 1661sslVal = redisNoPort.Resource.TlsEnabled ? ",ssl=true" : string.Empty; 1716var sslVal = redis.Resource.TlsEnabled ? ",ssl=true" : string.Empty; 1734sslVal = redisNoPort.Resource.TlsEnabled ? ",ssl=true" : string.Empty;
ExecutionConfigurationGathererTests.cs (2)
482var password = string.Empty; 532loaded.Import(pkcs12Bytes, string.Empty, X509KeyStorageFlags.DefaultKeySet);
InteractionServiceTests.cs (2)
301inputs: [new InputDto("Value", string.Empty, InputType.Text)]); 325inputs: [new InputDto("Value", string.Empty, InputType.Text)]);
Publishing\DeploymentStateManagerTests.cs (1)
510public string ContentRootPath { get; set; } = string.Empty;
Publishing\PipelineActivityReporterTests.cs (3)
38Assert.Equal(string.Empty, stepInternal.CompletionText); 77Assert.Equal(string.Empty, taskInternal.CompletionMessage); 376Assert.Equal(string.Empty, taskInternal.CompletionMessage);
ResourceExtensionsTests.cs (1)
294string.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"]);
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\EnvironmentVariableNameEncoderTests.cs (1)
44Assert.Equal("", EnvironmentVariableNameEncoder.Encode(string.Empty));
Utils\Grpc\TestServerCallContext.cs (1)
24_authContext = new AuthContext(string.Empty, new Dictionary<string, List<AuthProperty>>());
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)
281AffinityKeyName = 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)
40AddAzureCosmosClient_EnsuresConnectionStringIsCorrect("this=isnt;a=valid;cosmos=connectionstring", string.Empty));
MicrosoftAzureCosmosPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var 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.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.Driver.v2.Tests (2)
tests\Aspire.MongoDB.Driver.Tests\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)
50foreach (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)
198var minMessage = minName != null ? $": {minName}" : string.Empty; 199var 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 (4)
TemplateAppFixture.cs (1)
29_dotnetNewArgs = dotnetNewArgs ?? string.Empty;
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
161DefaultBuildArgs = 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.TestUtilities (1)
src\Shared\PathLookupHelper.cs (1)
50foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries))
aspire-managed (2)
NuGet\Commands\LayoutCommand.cs (2)
130var libraryName = library.Name ?? string.Empty; 131var libraryVersion = library.Version?.ToString() ?? string.Empty;
AzureFunctionsEndToEnd.ApiService (1)
Program.cs (1)
99public string Text { get; set; } = string.Empty;
BasketService (1)
BasketService.cs (1)
84exchange: string.Empty,
Binding.WS.FederationHttp.IntegrationTests (1)
WSFederationHttpBindingTests.cs (1)
39tokenTargetAddress = 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)
134new("--non-local-generics-module") { DefaultValueFactory = _ => string.Empty, Description = SR.NonLocalGenericsModule };
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
314string prefix = input ? string.Empty : "out_"; // prefix output directories for clarity
csc (4)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (3)
511environmentVariables[key] = string.Empty; 515environmentVariables[key] = value ?? string.Empty; 697.Replace("=", string.Empty);
CSharpSyntaxGenerator (5)
AbstractFileWriter.cs (2)
205return string.Empty; 209return string.Empty;
src\roslyn\src\Compilers\CSharp\Portable\Syntax\SyntaxKindFacts.cs (1)
1887return 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 (60)
CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
44{ "commandName", commandResolverArguments is null ? string.Empty : Sha256Hasher.HashWithNormalizedCasing(commandResolverArguments.CommandName) },
Commands\Help\HelpCommand.cs (1)
41var versionString = string.IsNullOrEmpty(Product.Version) ? string.Empty : $" ({Product.Version})";
Commands\Hidden\Complete\CompleteCommand.cs (1)
55var input = complete.GetValue(definition.PathArgument) ?? string.Empty;
Commands\New\BuiltInTemplatePackageProvider.cs (2)
50var sdkPath = sdkDirectory?.FullName ?? string.Empty; 51var dotnetRootPath = sdkDirectory?.Parent?.Parent?.FullName ?? string.Empty;
Commands\Package\Add\PackageAddCommand.cs (2)
49var tempDgFilePath = string.Empty; 156args.Add(packageId.VersionRange.OriginalString ?? string.Empty);
Commands\Project\Convert\ProjectConvertCommand.cs (1)
29_file = parseResult.GetValue(Definition.FileArgument) ?? string.Empty;
Commands\Run\FileBasedAppSourceEditor.cs (3)
66: string.Empty; 196string prefix = string.Empty; 239SourceFile = SourceFile with { Text = SourceFile.Text.Replace(start: start, length: length, newText: string.Empty) };
Commands\Run\RunCommand.cs (1)
898string launchProfile = parseResult.GetValue(definition.LaunchProfileOption) ?? string.Empty;
Commands\Run\RunProperties.cs (3)
19: this(command, arguments, workingDirectory, string.Empty, string.Empty, string.Empty)
Commands\Solution\Add\SolutionAddCommand.cs (8)
23private string _solutionFileFullPath = string.Empty; 88string? relativeSolutionFolderPath = string.Empty; 105relativeSolutionFolderPath = string.Empty; 250platform => platform.Replace(" ", string.Empty) == solutionPlatform.Replace(" ", string.Empty), projectInstancePlatforms.FirstOrDefault()!); 257buildType => buildType.Replace(" ", string.Empty) == solutionBuildType.Replace(" ", string.Empty), projectInstanceBuildTypes.FirstOrDefault()!); 309string parentSolutionDirectory = Path.GetDirectoryName(parentSolutionPath) ?? string.Empty;
Commands\Test\MTP\Logger.cs (1)
28=> _stringBuilder?.ToString() ?? string.Empty;
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
234optionRows.Add(new TwoColumnHelpRow($"--{option.Name}", option.Description ?? string.Empty));
Commands\Test\MTP\SolutionAndProjectUtility.cs (4)
23projectOrSolutionFilePath = string.Empty; 115return (true, string.Empty); 120solutionFilePath = string.Empty; 140return (true, string.Empty);
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}";
Commands\Test\MTP\Terminal\HumanReadableDurationFormatter.cs (2)
56=> $"{(hasParentValue ? " " : string.Empty)}{(hasParentValue ? value.ToString(CultureInfo.InvariantCulture).PadLeft(paddingWitdh, '0') : value.ToString(CultureInfo.InvariantCulture))}{suffix}"; 62return string.Empty;
Commands\Test\MTP\Terminal\TestNodeResultsState.cs (1)
13private readonly TestDetailState _summaryDetail = new(id, stopwatch: null, text: string.Empty);
Commands\Test\MTP\TestApplication.cs (2)
317return string.Empty; 331return string.Empty;
Commands\Test\MTP\TestApplicationHandler.cs (4)
35string.Empty, 41string.Empty); 88_ => string.Empty, 280_output.HandshakeFailure(_module.TargetPath ?? _module.ProjectFullPath ?? string.Empty, _module.TargetFramework, exitCode, outputData, errorData);
Commands\Tool\Install\ProjectRestorer.cs (1)
78line ??= string.Empty;
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
171return string.Empty;
Commands\Workload\History\WorkloadHistoryCommand.cs (2)
58table.AddColumn(CliCommandStrings.GlobalJsonVersion, r => r.GlobalJsonVersion ?? string.Empty); 59table.AddColumn(CliCommandStrings.WorkloadHistoryWorkloadSetVersion, r => r.HistoryState.WorkloadSetVersion ?? string.Empty);
Commands\Workload\InstallingWorkloadCommand.cs (1)
169manifestVersionUpdates.Select(update => new WorkloadManifestInfo(update.ManifestId.ToString(), update.NewVersion.ToString(), /* We don't actually use the directory here */ string.Empty, update.NewFeatureBand))
Commands\Workload\WorkloadCommandParser.cs (2)
61Reporter.Output.WriteLine(string.Empty); 73Reporter.Output.WriteLine(string.Empty);
Commands\Workload\WorkloadInfoHelper.cs (1)
123return versionInfo.Version + (versionInfo.IsInstalled ? string.Empty : ' ' + CliCommandStrings.WorkloadVersionNotInstalledShort);
Commands\Workload\WorkloadJsonSerializerContext.cs (1)
22new(reader.GetString() ?? string.Empty);
Extensions\ParseResultExtensions.cs (1)
90.FirstOrDefault(subcommand => !string.IsNullOrEmpty(subcommand)) ?? string.Empty;
NugetPackageDownloader\NuGetPackagePathResolver.cs (1)
16return string.Empty;
Parser.cs (1)
208.Select(line => line.TrimStart().StartsWith('#') ? string.Empty : line)
SlnfFileHelper.cs (2)
71var slnfDirectory = Path.GetDirectoryName(Path.GetFullPath(slnfPath)) ?? string.Empty; 99var slnfDirectory = Path.GetDirectoryName(Path.GetFullPath(slnfPath)) ?? string.Empty;
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.8.0-1.26268.104\contentFiles\cs\net11.0\BuildProtocol.cs (1)
387Output = output ?? string.Empty;
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.8.0-1.26268.104\contentFiles\cs\net11.0\BuildServerConnection.cs (3)
511environmentVariables[key] = string.Empty; 515environmentVariables[key] = value ?? string.Empty; 697.Replace("=", string.Empty);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.8.0-1.26268.104\contentFiles\cs\net11.0\PlatformInformation.cs (1)
61public static string ExeExtension => IsWindows ? ".exe" : string.Empty;
Telemetry\MacAddressGetter.cs (1)
156macs.Add(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 (6)
Analyzers\CodeStyleInformationProvider.cs (1)
14private static readonly string s_executingPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? string.Empty;
CodeFormatter.cs (1)
61var projectPath = formatOptions.WorkspaceType == WorkspaceType.Project ? formatOptions.WorkspaceFilePath : 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-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-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)
87string targetFramework = string.Empty; 98targetFramework = 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)
93var 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-user-jwts (12)
Commands\CreateCommand.cs (8)
130string.Empty, 131string.Empty 136var optionsString = schemeNameOption.HasValue() ? $"{Resources.JwtPrint_Scheme}: {scheme}{Environment.NewLine}" : string.Empty; 142optionsString += audienceOption.HasValue() ? $"{Resources.JwtPrint_Audiences}: {string.Join(", ", audience)}{Environment.NewLine}" : string.Empty; 149optionsString += issuerOption.HasValue() ? $"{Resources.JwtPrint_Issuer}: {issuer}{Environment.NewLine}" : string.Empty; 203optionsString += rolesOption.HasValue() ? $"{Resources.JwtPrint_Roles}: [{string.Join(", ", roles)}]{Environment.NewLine}" : string.Empty; 206optionsString += scopesOption.HasValue() ? $"{Resources.JwtPrint_Scopes}: {string.Join(", ", scopes)}{Environment.NewLine}" : string.Empty; 224optionsString += 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)
155reporter.Output(fullToken is not null ? jwt.Token : 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 (64)
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\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? 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\Logger.cs (1)
160=> 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)
25public string ItemPrefix { get; set; } = string.Empty; 28public string BatchOutputDir { get; set; } = string.Empty;
ILAssembler (8)
EntityRegistry.cs (1)
1249public string ReflectionNotation { get; set; } = string.Empty;
GrammarVisitor.cs (5)
700: new Location(new SourceSpan(0, 0), new SourceText(string.Empty, keyFilePath)); 1098typeNS = string.Empty; 1109typeNS = _currentNamespace.PeekOrDefault() ?? string.Empty; 4619string attributeName = string.Empty; 4830blob.WriteSerializedString(VisitClassName(className).Value is EntityRegistry.IHasReflectionNotation reflection ? reflection.ReflectionNotation : string.Empty);
NameHelpers.cs (1)
26: string.Empty,
StringHelpers.cs (1)
23return string.Empty;
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
314string 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),
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\TypeExtensions.cs (2)
48_ => wellKnownType == WellKnownTypeExtensions.GetWellKnownType((type as MetadataType)?.GetNamespace() ?? string.Empty, ((type as MetadataType)?.GetName()) ?? string.Empty)
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\TypeProxy.cs (1)
37public string Name { get => Type is MetadataType metadataType ? metadataType.GetName() : string.Empty; }
src\runtime\src\coreclr\tools\Common\Compiler\FeatureSettings.cs (1)
46return nav.GetAttribute(attribute, string.Empty);
src\runtime\src\coreclr\tools\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;
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
68value = string.Empty;
ILCompiler.ReadyToRun (6)
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\TypeExtensions.cs (2)
48_ => wellKnownType == WellKnownTypeExtensions.GetWellKnownType((type as MetadataType)?.GetNamespace() ?? string.Empty, ((type as MetadataType)?.GetName()) ?? string.Empty)
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\TypeProxy.cs (1)
37public string Name { get => Type is MetadataType metadataType ? metadataType.GetName() : string.Empty; }
src\runtime\src\coreclr\tools\Common\Compiler\FeatureSettings.cs (1)
46return nav.GetAttribute(attribute, string.Empty);
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (1)
824@namespace = string.Empty;
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
138return string.Empty;
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
138return string.Empty;
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Instantiation.cs (1)
63return string.Empty;
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
295string unmanagedCallConvMaybe = string.Empty;
illink (18)
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 (18)
ExtractTestPartitions\ExtractTestPartitionsFixture.cs (1)
15public string ToolProjectPath { get; private set; } = string.Empty;
PowerShellScripts\PowerShellCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (14)
294AnalyzeFailedJobsResult result = await AnalyzeSingleJobAsync(job, string.Empty); 1140public string Operation { get; init; } = string.Empty; 1174public string Name { get; init; } = string.Empty; 1177public string Reason { get; init; } = string.Empty; 1183public string Name { get; init; } = string.Empty; 1184public string Conclusion { get; init; } = string.Empty; 1193public string Name { get; init; } = string.Empty; 1194public string Conclusion { get; init; } = string.Empty; 1204public string Type { get; init; } = string.Empty; 1215public string Name { get; init; } = string.Empty; 1216public string Reason { get; init; } = string.Empty; 1222public string Name { get; init; } = string.Empty; 1224public string Reason { get; init; } = string.Empty; 1235public string Route { get; init; } = string.Empty;
WorkflowScripts\NodeCommand.cs (2)
24_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] "; 237=> WorkingDirectory is null ? string.Empty : $" in pwd {WorkingDirectory}";
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.Authorization (2)
ClaimsAuthorizationRequirement.cs (1)
94? string.Empty
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
Microsoft.AspNetCore.Components (19)
BindConverter.cs (2)
1826builder.Append(JsonEncodedText.Encode(elementFormatter(value[0], culture)?.ToString() ?? string.Empty).Value); 1832builder.Append(JsonEncodedText.Encode(elementFormatter(value[i], culture)?.ToString() ?? string.Empty).Value);
EventCallbackFactoryBinderExtensions.cs (4)
1374else if (string.Empty.Equals(e.Value)) 1417else if (string.Empty.Equals(e.Value)) 1461else if (string.Empty.Equals(e.Value)) 1505else if (string.Empty.Equals(e.Value))
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.Endpoints (10)
Builder\ResourcePreloadCollection.cs (1)
27group = property.Value ?? string.Empty;
Rendering\EndpointHtmlRenderer.cs (1)
55private string _notFoundUrl = string.Empty;
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
40_ssrFramingCommentMarkup = string.Empty;
Rendering\SSRRenderModeBoundary.cs (1)
224_ => 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 (5)
ClientValidation\ClientValidationRule.cs (1)
25/// pass <see cref="string.Empty"/> only if an empty message is intentional.
ClientValidation\DefaultClientValidationService.cs (3)
144.Replace(" ", string.Empty) 145.Replace(".", string.Empty) 182_ => paramValue.ToString() ?? string.Empty,
EditContextDataAnnotationsExtensions.cs (1)
139_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!);
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
155WriteString(boolValue ? string.Empty : null, allowDeduplication: true);
Microsoft.AspNetCore.Components.Web (14)
Forms\FieldIdGenerator.cs (1)
34return string.Empty;
Forms\InputBase.cs (4)
193return AttributeUtilities.CombineClassNames(AdditionalAttributes, fieldClass) ?? string.Empty; 206return Convert.ToString(nameAttributeValue, CultureInfo.InvariantCulture) ?? string.Empty; 214return string.Empty; 231return 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)
68CurrentEditContext.GetValidationMessages(new FieldIdentifier(Model, string.Empty));
HtmlRendering\HtmlRootComponent.cs (1)
36return string.Empty;
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
21string.Empty,
Media\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.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.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.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); 79return string.Empty; 241var value1 = Value ?? string.Empty; 242var value2 = other.Value ?? string.Empty; 284var value1 = Value ?? string.Empty; 285var value2 = other.Value ?? string.Empty; 334var value1 = Value ?? string.Empty; 335var value2 = other.Value ?? string.Empty; 528? 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 (1)
Internal\HttpConnectionDispatcher.cs (1)
106var logScope = new ConnectionLogScope(connectionId: string.Empty);
Microsoft.AspNetCore.Http.Extensions (2)
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)))
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.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 (2)
PasskeyHandler.cs (1)
626var originalRpIdHash = SHA256.HashData(Encoding.UTF8.GetBytes(originalRpId ?? string.Empty));
Passkeys\BufferSource.cs (1)
121return string.Empty;
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
159if (cultureName.Equals(string.Empty))
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)
412var currentSegment = string.Empty; 579Visit(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)
2531return TryUpdateModelAsync(model, prefix: string.Empty); 2838prefix: 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.Razor (2)
RazorPageBase.cs (1)
618value?.ToString() ?? string.Empty,
RazorView.cs (1)
282var locations = string.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)
286result.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.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.SourceGenerators (12)
XmlCommentGenerator.cs (1)
53: string.Empty;
XmlCommentGenerator.Emitter.cs (1)
667_ => 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)
48return string.Empty; 53return string.Empty; 58return string.Empty; 163var header = varyByRules.HeaderNames[i] ?? string.Empty; 239var queryKey = varyByRules.QueryKeys[i] ?? string.Empty; 283var routeValueName = varyByRules.RouteValueNames[i] ?? string.Empty; 320var key = orderedKeys[i] ?? string.Empty;
Microsoft.AspNetCore.Razor (1)
TagHelpers\DefaultTagHelperContent.cs (1)
168return string.Empty;
Microsoft.AspNetCore.Razor.Runtime (1)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
30uniqueId: string.Empty,
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
FileUtilities.cs (1)
70var identifier = n > 0 ? n.ToString(CultureInfo.InvariantCulture) : string.Empty; // Make it look nice
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;
StringExtensions.cs (1)
37/// or <see cref="string.Empty"/>, or if <paramref name="value"/> consists exclusively of
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingKeyProvider.cs (2)
113var header = varyByRules!.Headers[i] ?? string.Empty; 171var 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)
38context.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 (6)
SourceBuildStubs.cs (6)
516public string QueueName { get; } = string.Empty; 521public string UrlPrefix { get; } = string.Empty; 546public string Scheme { get; } = string.Empty; 556public string Port { get; } = string.Empty; 566public string Path { get; } = string.Empty; 571public string FullPrefix { get; } = string.Empty;
Microsoft.AspNetCore.Server.Kestrel.Core (42)
Internal\Http\Http1Connection.cs (8)
455QueryString = string.Empty; 500if (ReferenceEquals(_parsedQueryString, string.Empty)) 506QueryString = string.Empty; 507_parsedQueryString = string.Empty; 598Path = string.Empty; 599QueryString = string.Empty; 618Path = string.Empty; 619QueryString = 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)
355: string.Empty);
Internal\Http\HttpProtocol.cs (2)
177return string.Empty; 1426: 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; 340QueryString = queryIndex == -1 ? string.Empty : path.Substring(queryIndex);
Internal\Http3\Http3Stream.cs (3)
1104Path = string.Empty; 1105QueryString = string.Empty; 1118QueryString = 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)
101public string HostName { get; set; } = string.Empty;
Middleware\HttpsConnectionMiddleware.cs (1)
356feature.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.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.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.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserScriptMiddleware.cs (1)
62var serverKey = Environment.GetEnvironmentVariable("ASPNETCORE_AUTO_RELOAD_WS_KEY") ?? string.Empty;
Microsoft.AspNetCore.WebUtilities (93)
FormPipeReader.cs (1)
390return string.Empty;
HttpResponseStreamWriter.cs (1)
480value ??= string.Empty;
MultipartReaderStream.cs (1)
323Debug.Assert(stream.FinalBoundaryFound || string.Equals(string.Empty, remainder, StringComparison.Ordinal), "Un-expected data found on the boundary line: " + remainder);
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 (343)
BackEnd\BuildManager\BuildManager.cs (4)
2757loggingService?.LogError(buildEventContext, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, exception); 2766loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, DebugUtils.DebugDumpPath, shutdownPacket.Exception.ToString()); 2912((IBuildComponentHost)this).LoggingService.LogError(buildEventContext, new BuildEventFileInfo(String.Empty), "UnableToCreateNode", response.RequiredNodeType.ToString("G")); 3588get => String.Empty;
BackEnd\Client\MSBuildClient.cs (2)
219MSBuildEventSource.Log.MSBuildServerBuildStop(descriptiveCommandLine, _numConsoleWritePackets, _sizeOfConsoleWritePackets, _exitResult.MSBuildClientExitType.ToString(), _exitResult.MSBuildAppExitTypeString ?? string.Empty); 509envVars[(string)envVar.Key] = (envVar.Value as string) ?? string.Empty;
BackEnd\Components\Communications\LogMessagePacket.cs (2)
277writer.Write(kvp.Key ?? string.Empty); 278writer.Write(kvp.Value ?? string.Empty);
BackEnd\Components\Logging\LoggingService.cs (1)
1052string.Empty /*No parameters needed as we are forwarding all events*/,
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
348string message = String.Empty; 373string message = String.Empty;
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
129string assemblyPath = args.LoadedAssembly.IsDynamic ? string.Empty : args.LoadedAssembly.Location;
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
418itemMetadataValues[metadataQualifiedName] = String.Empty;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
742return 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 (2)
308_projectLoggingContext.LogError(new BuildEventFileInfo(String.Empty), "FailedToReceiveTaskThreadStatus", BuildParameters.RequestBuilderShutdownTimeout); 453RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, String.Empty);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
493MSBuildEventSource.Log.TargetStop(currentTargetEntry.Name, currentTargetEntry.Result?.TargetResultCodeToString() ?? string.Empty);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
277_loggingService.LogError(_buildEventContext, new BuildEventFileInfo(String.Empty), "BuildTargetCompletely", _targetToAnalyze.Name); 295_loggingService.LogError(_buildEventContext, new BuildEventFileInfo(String.Empty), "BuildTargetPartially", _targetToAnalyze.Name);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (7)
559string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation); 560string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation); 564if (msbuildRuntime != string.Empty || msbuildArchitecture != string.Empty) 566msbuildArchitecture = msbuildArchitecture == string.Empty ? XMakeAttributes.MSBuildArchitectureValues.any : msbuildArchitecture.Trim(); 567msbuildRuntime = msbuildRuntime == string.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : msbuildRuntime.Trim(); 776ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1125_taskLoggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
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)
193ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverDllInManifestMissing", pathToManifest, string.Empty); 291MSBuildEventSource.Log.SdkResolverLoadResolversStop(manifest.DisplayName ?? string.Empty, resolvers.Count);
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
358MSBuildEventSource.Log.SdkResolverResolveSdkStop(sdkResolver.Name, sdk.Name, solutionPath ?? string.Empty, projectPath ?? string.Empty, result?.Path ?? string.Empty, result?.Success ?? false);
BackEnd\Node\OutOfProcNode.cs (1)
618buildEvent?.GetType().Name ?? string.Empty);
BackEnd\Shared\BuildResult.cs (1)
682additionalEntries.Add(SpecialKeyForVersion, String.Empty);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
455setParameters[parameter.Key] = String.Empty;
BuildCheck\API\CheckRule.cs (1)
87public string HelpLinkUri { get; } = string.Empty;
BuildCheck\Checks\ExecCliBuildCheck.cs (2)
67var execCommandValue = commandArgument.Value?.ToString() ?? string.Empty; 138knownBuildCommand = 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)
471evr.Message ?? string.Empty, 593projectFullPath = 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)
114return idElement == null ? String.Empty : Internal.Utilities.RemoveXmlNamespace(idElement.InnerXml); 145idElement.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); 396get => Link != null ? RootLink.DirectoryPath : _directory ?? String.Empty;
Construction\ProjectTaskElement.cs (1)
308return String.Empty;
Construction\Solution\ProjectInSolution.cs (2)
415string uniqueName = String.Empty; 459string projectName = String.Empty;
Construction\Solution\SolutionFile.cs (16)
687return string.Empty; 1212proj.ProjectGuid = projGuidNode?.InnerText ?? String.Empty; 1393aspNetVirtualPath = String.Empty, 1394aspNetPhysicalPath = String.Empty, 1395aspNetTargetPath = String.Empty, 1396aspNetForce = String.Empty, 1397aspNetUpdateable = String.Empty, 1398aspNetDebug = String.Empty, 1399aspNetKeyFile = String.Empty, 1400aspNetKeyContainer = String.Empty, 1401aspNetDelaySign = String.Empty, 1402aspNetAPTCA = String.Empty, 1403aspNetFixedNames = String.Empty 1781(configurationPlatformParts.Length > 1) ? configurationPlatformParts[1] : string.Empty, 1803_defaultConfigurationName = string.Empty; 1836_defaultPlatformName = string.Empty;
Construction\Solution\SolutionProjectGenerator.cs (31)
810string.Empty, 811string.Empty, 812string.Empty, 814string.Empty, 815string.Empty, 816string.Empty, 817string.Empty, 821AddProjectBuildTask(traversalInstance, null, targetElement, string.Join(";", _targetNames), "@(ProjectReference)", string.Empty, string.Empty); 1412ProjectTargetInstance target = metaprojectInstance.AddTarget(targetName ?? "Build", String.Empty, String.Empty, outputItemAsItem, null, String.Empty, String.Empty, String.Empty, String.Empty, false /* legacy target returns behaviour */); 1417AddProjectBuildTask(traversalProject, projectConfiguration, target, targetName, EscapingUtilities.Escape(project.AbsolutePath), String.Empty, outputItem); 1425ProjectTaskInstance task = target.AddTask("MSBuild", condition, String.Empty); 1447task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 1456ProjectTaskInstance task = target.AddTask("MSBuild", Strings.WeakIntern($"'%(ProjectReference.Identity)' == '{GetMetaprojectName(project)}'"), String.Empty); 1470task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 2045string dependOnTargets = batchBuildTargets ? SolutionProjectReferenceAllTargets : string.Empty; 2046ProjectTargetInstance target = traversalProject.AddTarget(correctedTargetName, string.Empty, string.Empty, outputItemAsItem, null, string.Empty, dependOnTargets, string.Empty, string.Empty, false /* legacy target returns behaviour */); 2059ProjectTaskInstance task = target.AddTask("MSBuild", String.Empty, String.Empty); 2079task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 2480string.Empty, 2485string.Empty,
Construction\UsingTaskParameterGroupElement.cs (3)
93return 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)
2095Trace.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())); 2987string originalValue = (existing == null) ? String.Empty : ((IProperty)existing).EvaluatedValueEscaped; 2997string displayValue = escapedValue.Substring(0, Math.Min(escapedValue.Length, 75)) + ((escapedValue.Length > 75) ? "..." : String.Empty); 3004string displayOriginalValue = originalValue.Substring(0, Math.Min(originalValue.Length, 75)) + ((originalValue.Length > 75) ? "..." : String.Empty); 4679string 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 (6)
600new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 604String.Empty); 611new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 866loggingContext.LogError(new BuildEventFileInfo(/* this warning truly does not involve any file it is just gathering properties */String.Empty), "TasksPropertyBagError", e.Message); 907loggingContext.LogWarning(null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 914loggingContext.LogWarning(null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage);
Definition\ToolsetConfigurationReader.cs (1)
100yield 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)
186string.Empty)); 213string.Empty)); 227string.Empty)); 583return string.Empty; 661public static readonly MSBuildExtensionsPathReferenceKind None = new MSBuildExtensionsPathReferenceKind(String.Empty);
ElementLocation\ElementLocation.cs (2)
257this.file = file ?? String.Empty; 333this.file = file ?? 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)
592string name = String.Empty;
Evaluation\Conditionals\StringExpressionNode.cs (1)
80_cachedExpandedValue = String.Empty;
Evaluation\Evaluator.cs (5)
280_streamImports.Add(string.Empty); 2044ImportedProjectFile = string.Empty, 2053ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValue", string.Empty, XMakeAttributes.project, XMakeElements.import); 2150string importedBy = importElement.ContainingProject.FullPath ?? string.Empty; 2171string parenthesizedProjectLocation = string.Empty;
Evaluation\EvaluatorMetadataTable.cs (1)
58return GetEscapedValueIfPresent(itemType, name) ?? String.Empty;
Evaluation\Expander.cs (34)
233? _builder?.ToString() ?? string.Empty 496return String.Empty; 517return String.Empty; 837return string.Empty; 1350propertyValue = String.Empty; 1365propertyValue = String.Empty; 1374propertyValue = String.Empty; 1481ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty); 1514ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty); 1554return String.Empty; 1589convertedString = string.Empty; 1665propertyValue = String.Empty; 1691return String.Empty; 1696return String.Empty; 1699string value = String.Empty; 1748return string.Empty; 1760ProjectErrorUtilities.VerifyThrowInvalidProject(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty); 1769string result = String.Empty; 1799return string.Empty; 1814result = String.Empty; 2618string baseDirectoryToUse = item.Value.ProjectDirectory ?? FileUtilities.CurrentThreadWorkingDirectory ?? String.Empty; 2698string baseDirectoryToUse = item.Value.ProjectDirectory ?? FileUtilities.CurrentThreadWorkingDirectory ?? String.Empty; 2777string baseDirectoryToUse = item.Value.ProjectDirectory ?? FileUtilities.CurrentThreadWorkingDirectory ?? String.Empty; 2850else if (metadataValue != String.Empty && includeNullEntries) 3121string.Empty, 3851ProjectErrorUtilities.VerifyThrowInvalidProject(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 3865ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 3879ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 3932ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 3985object functionResult = String.Empty; 4109string startingDirectory = String.IsNullOrWhiteSpace(elementLocation.File) ? String.Empty : Path.GetDirectoryName(elementLocation.File); 4587ProjectErrorUtilities.VerifyThrowInvalidProject(netPropertyName.Length > 0, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 4606ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 4681string parameters = String.Empty;
Evaluation\Expander\WellKnownFunctions.cs (3)
42: string.Empty; 954string projectPath = properties.GetProperty("MSBuildProjectFullPath")?.EvaluatedValue ?? string.Empty; 983returnVal = String.Empty;
Evaluation\IntrinsicFunctions.cs (3)
300return string.Empty; 669return string.Empty; 822subKeyName = 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)
161return string.Empty;
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
29new BuildEventFileInfo(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)
253return Parse(string.Empty, fileSpec); 282=> new MatchInfoResult(false, string.Empty, string.Empty, string.Empty);
Graph\ProjectGraph.cs (2)
463? string.Empty 548? string.Empty
Graph\ProjectInterpretation.cs (1)
189if (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)
1237get => _projectFileLocation?.File ?? string.Empty; 2004unescapedValue = String.Empty; 2014unescapedValue = String.Empty; 2936condition ?? String.Empty, 2937inputs ?? String.Empty, 2938outputs ?? String.Empty, 2940keepDuplicateOutputs ?? String.Empty, 2941dependsOnTargets ?? String.Empty, 2942beforeTargets ?? String.Empty, 2943afterTargets ?? String.Empty,
Instance\ProjectItemDefinitionInstance.cs (1)
175return ((IMetadataTable)this).GetEscapedValueIfPresent(specifiedItemType, name) ?? String.Empty;
Instance\ProjectItemInstance.cs (6)
579return value ?? String.Empty; 1457return value ?? String.Empty; 2000_directMetadata = DirectMetadata.SetItem(name, metadataValueEscaped ?? string.Empty); 2034_directMetadata = DirectMetadata.SetItem(name, evaluatedValueEscaped ?? string.Empty); 2102: string.Empty; 2527return value ?? String.Empty;
Instance\ProjectMetadataInstance.cs (1)
77_escapedValue = escapedValue ?? String.Empty;
Instance\ProjectPropertyInstance.cs (1)
104EnvironmentVariableReadEventArgs args = new(Name, _escapedValue, string.Empty, 0, 0);
Instance\ProjectTargetInstance.cs (6)
529ProjectTaskInstance task = AddTask(taskName, condition, continueOnError, String.Empty, String.Empty); 545ProjectTaskInstance task = new ProjectTaskInstance(taskName, _location, condition ?? String.Empty, continueOnError ?? String.Empty, msbuildRuntime ?? String.Empty, msbuildArchitecture ?? String.Empty);
Instance\ProjectTaskInstance.cs (6)
143condition == string.Empty ? null : ElementLocation.EmptyLocation, 144continueOnError == string.Empty ? null : ElementLocation.EmptyLocation, 145msbuildRuntime == string.Empty ? null : ElementLocation.EmptyLocation, 146msbuildArchitecture == string.Empty ? null : ElementLocation.EmptyLocation) 342_outputs.Add(new ProjectTaskOutputItemInstance(itemName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation)); 355_outputs.Add(new ProjectTaskOutputPropertyInstance(propertyName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation));
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
271ProjectErrorUtilities.VerifyThrowInvalidProject(_loadedType != null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
Instance\TaskFactories\TaskHostTask.cs (4)
327taskLocation = _taskType?.Assembly?.AssemblyLocation ?? string.Empty; 634string.Empty]; 661_taskLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "TaskHostExitedPrematurely", (nodeShutdown.Exception == null) ? String.Empty : nodeShutdown.Exception.ToString()); 851e is NodeFailedToLaunchException nodeFailedExc ? nodeFailedExc.ErrorCode : string.Empty,
Instance\TaskFactoryEngineContext.cs (1)
392_loggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
Instance\TaskFactoryWrapper.cs (3)
304namesOfPropertiesWithAmbiguousMatches[propertyInfo.Name] = String.Empty; 315namesOfPropertiesWithRequiredAttribute[propertyInfo.Name] = String.Empty; 326namesOfPropertiesWithOutputAttribute[propertyInfo.Name] = String.Empty;
Instance\TaskRegistry.cs (5)
426if ((runtime != string.Empty) || (architecture != string.Empty)) 429runtime == string.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime, 430architecture == string.Empty ? XMakeAttributes.MSBuildArchitectureValues.any : architecture); 1574string message = String.Empty;
Logging\BinaryLogger\BinaryLogger.cs (3)
695=> (PathParameterExpander ?? ExpandPathParameter)(string.Empty); 751return TryInterpretPathParameterCore(parameter, () => ExpandPathParameter(string.Empty), out filePath); 800return string.Empty;
Logging\BinaryLogger\BuildEventArgsReader.cs (11)
252: string.Empty); 265: string.Empty); 498string value = GetStringFromRecord(list[i].valueIndex) ?? string.Empty; 513private readonly StringReadEventArgs stringReadEventArgs = new StringReadEventArgs(string.Empty); 663var projectFile = ReadDeduplicatedString() ?? string.Empty; 679var projectFile = ReadDeduplicatedString() ?? string.Empty; 1012fields.Extended?.ExtendedType ?? string.Empty, 1107fields.Extended?.ExtendedType ?? string.Empty, 1146environmentVariableName ?? string.Empty, 1148fileName ?? string.Empty, 1706return 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)
682string projectName = startedEvent.ProjectFile ?? string.Empty; 1014string projectConfigurationDescription = String.Empty; 1263nonNullMessage ??= e.Message ?? string.Empty; 1317string targetName = string.Empty; 1433string currentProjectFile = startedEvent.ProjectFile ?? string.Empty; 1507string current = projectStartedEvent.ProjectFile ?? string.Empty; 1596string context = string.Empty; 1610prefixString = $"{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 (6)
285string tlEnvVariable = Environment.GetEnvironmentVariable("MSBUILDTERMINALLOGGER") ?? string.Empty; 688Terminal.WriteLine(string.Empty); 842Terminal.WriteLine(string.Empty); 972string.Empty; 1628indent: string.Empty, 1682message ??= string.Empty;
Logging\TerminalLogger\TerminalNodesFrame.cs (1)
70targetPrefix = target = string.Empty;
src\msbuild\src\Shared\BuildEventFileInfo.cs (2)
74_file = file ?? String.Empty; 88_file = (e.SourceUri.Length == 0) ? String.Empty : new Uri(e.SourceUri).LocalPath;
src\msbuild\src\Shared\CanonicalError.cs (1)
298string messageOverflow = String.Empty;
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
52_id = id ?? 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)}";
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
1018string responseFilePath = String.Empty;
src\msbuild\src\Shared\PlatformNegotiation.cs (3)
29return string.Empty; 42string buildProjectReferenceAs = string.Empty; 95buildProjectReferenceAs = string.Empty;
src\msbuild\src\Shared\PropertyParser.cs (2)
39string propertyName = String.Empty; 40string propertyValue = String.Empty;
src\msbuild\src\Shared\StringExtensions.cs (1)
24newValue = string.Empty;
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
90result[i]![(string)entry.Key] = entry.Value?.ToString() ?? string.Empty;
src\msbuild\src\Shared\TaskParameter.cs (6)
220return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 584_customEscapedMetadata[(string)entry.Key] = (string)entry.Value ?? string.Empty; 604_customEscapedMetadata[(string)entry.Key] = EscapingUtilities.Escape((string)entry.Value) ?? string.Empty; 652return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 741_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 868return metadataValue ?? string.Empty;
src\msbuild\src\Shared\Tracing.cs (2)
43private static string s_slot = String.Empty; 119s_slot = String.Empty;
src\msbuild\src\Shared\TypeLoader.cs (1)
627targetFramework = targetFrameworkAttr.ConstructorArguments[0].Value as string ?? string.Empty;
Utilities\EngineFileUtilities.cs (2)
192string excludeFileSpec = string.Empty; 429string.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)
36(XmlElementWithLocation)((XmlDocumentWithLocation)oldElement.OwnerDocument).CreateElement(newElementName, xmlNamespace ?? string.Empty, oldElement.Location);
Xml\ProjectXmlUtilities.cs (2)
140String.Empty, 238return returnNullForNonexistentAttributes ? null : String.Empty;
Xml\XmlReaderExtension.cs (1)
87string uri = new UriBuilder(Uri.UriSchemeFile, string.Empty) { Path = file }.ToString();
Microsoft.Build.Framework (99)
BackEnd\CommunicationsUtilities.cs (1)
308string value = Strings.WeakIntern((string?)entry.Value ?? string.Empty);
BackEnd\InterningBinaryReader.cs (1)
95return String.Empty;
BackEnd\ServerNodeHandshake.cs (1)
54.Replace("=", string.Empty);
BinaryTranslator.cs (4)
806string key = string.Empty; 854if (nullable && !TranslateNullable(string.Empty)) 893if (nullable && !TranslateNullable(string.Empty)) 1491string value = string.Empty;
BuildCheck\BuildCheckEventArgs.cs (2)
123: this(string.Empty, string.Empty)
BuildEnvironmentHelper.cs (1)
370NativeMethods.ProcessorArchitecture == NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : 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.cs (2)
1706return string.Empty; 1728return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
FileUtilities_TempFiles.cs (3)
89string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 178extension = string.Empty; 199File.WriteAllText(file, string.Empty);
GeneratedFileUsedEventArgs.cs (1)
24: base(string.Empty, null, null, MessageImportance.Low)
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)
419return string.Empty; 442return string.Empty; 482currentDirectory ??= FileUtilities.CurrentThreadWorkingDirectory ?? string.Empty; 516return string.Empty; 532return string.Empty; 585: string.Empty; 590: string.Empty; 595: string.Empty;
Loader\CoreCLRAssemblyLoader.cs (2)
153? new[] { string.Empty } 157: [assemblyName.CultureName, string.Empty])
Loader\LoadedType.cs (2)
154PropertyAssemblyQualifiedNames[i] = Properties[i]?.PropertyType?.AssemblyQualifiedName ?? string.Empty; 158PropertyAssemblyQualifiedNames[i] = string.Empty;
Loader\MSBuildLoadContext.cs (2)
72? (string[])[string.Empty] 76: [assemblyName.CultureName, string.Empty])
NativeMethods.cs (3)
607?? string.Empty; 624if (dir != string.Empty) 629s_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 },
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
27writer.Write(entry.Value.TaskFactoryName ?? string.Empty); 28writer.Write(entry.Value.TaskHostRuntime ?? string.Empty);
Utilities\EventArgsFormatting.cs (1)
340message = String.Empty;
Utilities\FileMatcher.cs (22)
486pathRoot = string.Empty; 501longParts[i - startingElement] = string.Empty; 610fixedDirectoryPart = string.Empty; 611wildcardDirectoryPart = string.Empty; 640wildcardDirectoryPart = string.Empty; 661fixedDirectoryPart = string.Empty; 1165recursionState.RemainingWildcardDirectory = indexOfNextSlash != -1 ? recursionState.RemainingWildcardDirectory.Substring(indexOfNextSlash + 1) : string.Empty; 1561fixedDirectoryPart = string.Empty; 1562wildcardDirectoryPart = string.Empty; 1563filenamePart = string.Empty; 1654internal string wildcardDirectoryPart = string.Empty; 1882wildcardDirectoryPart = string.Empty; 1883filenamePart = string.Empty; 1931return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), SearchAction.None, string.Empty, null); 1947string excludeFileSpec = string.Empty; 2399return ([], action, string.Empty, null); 2403return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), action, string.Empty, null); 2407return ([], action, string.Empty, null); 2423string trackExcludeFileSpec = string.Empty; 2554string includeFilespec = state.SearchData.Filespec ?? string.Empty; 2555string excludeFilespec = excludeState.SearchData.Filespec ?? string.Empty; 2652if (possibleParent == string.Empty)
Utilities\FrameworkLocationHelper.cs (1)
836var frameworkPath = Path.Combine(NativeMethods.FrameworkBasePath, prefix ?? 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;
XMakeAttributes.cs (9)
163FrameworkErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 207FrameworkErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 280FrameworkErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 347FrameworkErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 422string 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.Tasks.CodeAnalysis (7)
src\roslyn\src\Compilers\Core\MSBuildTask\CanonicalError.cs (1)
263string messageOverflow = String.Empty;
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
59ConfigFileContents = 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 (1)
387Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (3)
511environmentVariables[key] = string.Empty; 515environmentVariables[key] = value ?? string.Empty; 697.Replace("=", string.Empty);
Microsoft.Build.Tasks.Core (166)
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)
239imageRuntimeVersion = String.Empty; 941return string.Empty; 977return string.Empty; 990return string.Empty; 999return string.Empty; 1010return string.Empty; // There can't be more than 96 sections, something is wrong 1039return string.Empty; 1048return string.Empty; // No CLI section 1090return string.Empty; 1104return string.Empty; 1114return string.Empty; 1122return string.Empty; 1142return string.Empty;
AssemblyDependency\AssemblyResolution.cs (1)
65resolvedSearchPath = String.Empty;
AssemblyDependency\GenerateBindingRedirects.cs (1)
246var 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; 811internal string SDKName { get; private set; } = String.Empty; 830internal string ResolvedSearchPath { get; set; } = String.Empty;
AssemblyDependency\ReferenceTable.cs (5)
496reference.FullPath = String.Empty; 988: string.Empty; 1293string resolvedSearchPath = String.Empty; 1400subsetName = String.Empty; 2822yield return new KeyValuePair<string, string>(ItemMetadataNames.version, reference.ReferenceVersion == null ? string.Empty : reference.ReferenceVersion.ToString());
AssemblyDependency\ResolveAssemblyReference.cs (9)
204private string _targetedFrameworkMoniker = String.Empty; 211private string _projectTargetFrameworkAsString = String.Empty; 212private string _targetedRuntimeVersionRawValue = String.Empty; 218private string _profileName = String.Empty; 1172string details = string.Empty; 1743string message = String.Empty; 2225Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.InvalidParameter", "TargetFrameworkMoniker", _targetedFrameworkMoniker, String.Empty); 3209return String.Empty; 3254return string.Empty;
AssemblyDependency\Resolver.cs (1)
331throw new InvalidParameterValueException("SearchPaths", directory + (directory.EndsWith("\\", StringComparison.OrdinalIgnoreCase) ? String.Empty : "\\") + baseName, e.Message);
BootstrapperUtil\BootstrapperBuilder.cs (1)
1074string copyAllPackageFiles = String.Empty;
BootstrapperUtil\BuildResults.cs (1)
35public string KeyFile { get; private set; } = string.Empty;
CombinePath.cs (1)
60BasePath = String.Empty;
Copy.cs (3)
330string errorMessage = string.Empty; 924resultPathOperation = string.Empty; 1105destinationFileState.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)
33Command = string.Empty;
FileIO\WriteLinesToFile.cs (1)
95string contentsAsString = string.Empty;
FindInvalidProjectReferences.cs (1)
122platformIdentity = String.Empty;
FormatUrl.cs (1)
24OutputUrl = InputUrl != null ? PathUtil.Format(InputUrl) : String.Empty;
GenerateApplicationManifest.cs (2)
94public string TargetFrameworkSubset { get; set; } = String.Empty; 96public string TargetFrameworkProfile { get; set; } = String.Empty;
GenerateManifestBase.cs (1)
451throw new ArgumentException(String.Empty /* no message */, nameof(manifestType));
GenerateResource.cs (10)
466return String.Empty; 483return String.Empty; 505return String.Empty; 527return String.Empty; 1107_resgenPath = string.Empty; 2115Sources[i].SetMetadata("OutputResource", String.Empty); 2670string priDirectory = Path.Combine(outFileOrDir ?? String.Empty, 2673reader.cultureName ?? String.Empty); 2846string 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)
753string timestamp = String.Empty; 853string timestamp = String.Empty;
ManifestUtil\PathUtil.cs (1)
66Host = string.Empty,
Move.cs (1)
140Log.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)
1073assemblyNameVersion.CultureName != "neutral" ? assemblyNameVersion.CultureName : string.Empty,
ParserState.cs (1)
56Namespace = String.Empty;
ResolveComReference.cs (1)
189public string TargetFrameworkVersion { get; set; } = String.Empty;
ResolveKeySource.cs (4)
47public string ResolvedThumbprint { get; set; } = String.Empty; 50public string ResolvedKeyContainer { get; set; } = String.Empty; 53public string ResolvedKeyFile { get; set; } = String.Empty; 97string 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)
50String.Empty, 343log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidTaskXml", String.Empty); 570IEnumerable<string> references = taskInfo.References.Union(DefaultReferences[String.Empty]); 815string cachedAssemblyPath = _compileForOutOfProcess ? _assemblyPath : string.Empty;
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
64string exeSuffix = runningOnWindows ? ".exe" : string.Empty;
src\msbuild\src\Shared\CanonicalError.cs (1)
298string messageOverflow = String.Empty;
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
52_id = id ?? 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)}";
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
1018string responseFilePath = String.Empty;
src\msbuild\src\Shared\PlatformNegotiation.cs (3)
29return string.Empty; 42string buildProjectReferenceAs = string.Empty; 95buildProjectReferenceAs = string.Empty;
src\msbuild\src\Shared\PropertyParser.cs (2)
39string propertyName = String.Empty; 40string propertyValue = String.Empty;
src\msbuild\src\Shared\TaskParameter.cs (6)
220return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 584_customEscapedMetadata[(string)entry.Key] = (string)entry.Value ?? string.Empty; 604_customEscapedMetadata[(string)entry.Key] = EscapingUtilities.Escape((string)entry.Value) ?? string.Empty; 652return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 741_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 868return metadataValue ?? string.Empty;
src\msbuild\src\Shared\Tracing.cs (2)
43private static string s_slot = String.Empty; 119s_slot = String.Empty;
system.design\stronglytypedresourcebuilder.cs (1)
633String typeName = String.Empty;
WriteCodeFragment.cs (3)
135string itemSpec = OutputFile?.ItemSpec ?? String.Empty; 189return String.Empty; 303return haveGeneratedContent ? code : String.Empty;
XmlPoke.cs (1)
62Value = new TaskItem(string.Empty);
XslTransformation.cs (1)
253string ns = String.Empty;
ZipDirectory.cs (1)
141Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, string.Empty);
Microsoft.Build.Utilities.Core (44)
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;
src\msbuild\src\Shared\CanonicalError.cs (1)
298string messageOverflow = String.Empty;
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
52_id = id ?? 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)}";
src\msbuild\src\Shared\Tracing.cs (2)
43private static string s_slot = String.Empty; 119s_slot = String.Empty;
TaskItem.cs (6)
76_itemSpec = string.Empty; 135builder[key] = (string)singleMetadata.Value ?? string.Empty; 182get => _itemSpec == null ? string.Empty : EscapingUtilities.UnescapeAll(_itemSpec); 318_metadata = _metadata.SetItem(metadataName, metadataValue ?? string.Empty); 518return metadataValue ?? string.Empty; 565_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); 2993ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", $"RegistryRoot passed in '{registryRootLocation ?? string.Empty}'"); 2997string registryRoot = string.Empty; 3188string pathToReturn = string.Empty;
ToolTask.cs (4)
418protected virtual string GenerateResponseFileCommands() => string.Empty; // Default is nothing. This is useful for tools that don't need or support response files. 426protected virtual string GenerateCommandLineCommands() => string.Empty; // Default is nothing. This is useful for tools where all the parameters can go into a response file. 1577commandLineCommands = $"{(Traits.Instance.EscapeHatches.UseAutoRunWhenLaunchingProcessUnderCmd ? string.Empty : "/D ")}/C \"{batchFileForCommandLine}\""; 1589commandLineCommands = 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)
537Section globalSection = GetSection(string.Empty); 538_values.Remove(string.Empty);
CommandLine\CommandLineParser.cs (1)
346return string.Empty;
CommandLine\CommonCompiler.cs (2)
813string cacheKey = string.Empty; 1068analyzerConfigProvider = 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)
452return 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)
62return SourceText.From(string.Empty, encoding, checksumAlgorithm); 85return SourceText.From(string.Empty, encodingOpt, checksumAlgorithm);
Text\SourceText.cs (3)
305return string.Empty; 506return SourceText.From(string.Empty, this.Encoding, this.ChecksumAlgorithm); 942newt = 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 (40)
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\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? 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\Logger.cs (1)
160=> 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 (36)
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\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? 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\Logger.cs (1)
160=> 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 (29)
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
374: 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\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? 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\Logger.cs (1)
160=> 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)
277=> _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)
3067nameString = string.Empty;
Binder\Binder_InterpolatedString.cs (1)
47resultConstant = ConstantValue.Create(string.Empty);
Binder\Binder_Invocation.cs (3)
2084var returnType = GetCommonTypeOrReturnType(methods) ?? new ExtendedErrorTypeSymbol(this.Compilation, string.Empty, arity: 0, errorInfo: null); 2327TypeSymbol returnType = new ExtendedErrorTypeSymbol(this.Compilation, string.Empty, arity: 0, errorInfo: null); 2329MethodSymbol 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)
116get { return string.Empty; } 124get { return string.Empty; }
Compilation\CSharpCompilation.cs (2)
1877MetadataTypeName mdName = MetadataTypeName.FromNamespaceAndTypeName(HostObjectType.Namespace ?? String.Empty, 3999return 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)
555return string.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (2)
71get { return string.Empty; } 76get { return string.Empty; }
Symbols\AssemblySymbol.cs (1)
865typeInfo.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)
297return string.Empty; 344@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)
156_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)
328metadataName = 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)
72return string.Empty; 1240var 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)
1887return string.Empty;
Utilities\ValueSetFactory.StringTC.cs (1)
19var 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 (15)
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;
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
341return (firstPart.ToString(), string.Empty);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (3)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CSharpIdentifiersShouldNotContainUnderscores.Fixer.cs (1)
23return string.Empty;
Microsoft.NetCore.Analyzers\Performance\CSharpCollapseMultiplePathOperations.Fixer.cs (1)
104methodName = string.Empty;
Microsoft.NetCore.Analyzers\Performance\CSharpUseStringContainsCharOverloadWithSingleCharactersFixer.cs (1)
18argumentName = string.Empty;
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
2056UsingDirectiveSyntax usingDirective => usingDirective.Name?.ToString() ?? string.Empty, 2064_ => 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)
374: 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)
277=> _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.Razor.Compiler (115)
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)
1024return IntermediateNodeFactory.CSharpToken(string.Empty); 1029return 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)
62if (TypeName == string.Empty && TypeSpan.HasValue)
Language\Components\ComponentLoweringPass.cs (2)
642content = string.Join(string.Empty, html.Children.OfType<IntermediateToken>().Select(n => n.Content)); 798attribute.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)
101var namespaceSeparator = string.IsNullOrEmpty(@namespace.Name) ? string.Empty : ".";
Language\CSharpIdentifier.cs (1)
36return string.Empty;
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (25)
701Prefix = node.Prefix?.GetContent() ?? string.Empty, 716Prefix = node.Prefix?.GetContent() ?? string.Empty, 724Prefix = node.Prefix?.GetContent() ?? string.Empty, 740Prefix = node.Prefix?.GetContent() ?? string.Empty, 746contentFactory: static node => node.Value?.GetContent() ?? string.Empty, 755Prefix = node.Prefix?.GetContent() ?? string.Empty, 761contentFactory: static node => node.Value?.GetContent() ?? string.Empty, 989attributeBlock.Value?.GetContent() ?? string.Empty)); 994minimizedAttr.Name.GetContent(), string.Empty)); 1066var tagName = node.MarkupStartTag?.Name.Content ?? node.MarkupEndTag?.Name.Content ?? string.Empty; 1216Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1279Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1294Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1358Prefix = string.Empty, 1363contentFactory: static node => node.GetContent() ?? string.Empty, 1638var tagName = node.MarkupStartTag?.Name.Content ?? node.MarkupEndTag?.Name.Content ?? string.Empty; 1751Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1794Suffix = node.ValueSuffix?.GetContent() ?? string.Empty, 1826Prefix = string.Empty, 1831contentFactory: static node => node.GetContent() ?? string.Empty, 1904Prefix = string.Empty, 1909Prefix = string.Empty, 1915contentFactory: static node => node.GetContent() ?? string.Empty, 1986Prefix = string.Empty, 2021Prefix = string.Empty,
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (3)
1032var prefix = htmlAttr.Prefix ?? string.Empty; 1082var prefix = htmlAttr.Prefix ?? string.Empty; 1083var suffix = htmlAttr.Suffix ?? string.Empty;
Language\DefaultTagHelperResolutionPhase.cs (1)
934var 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\ExtensionIntermediateNode.cs (1)
36var documentKind = context.DocumentKind ?? string.Empty;
Language\Intermediate\HtmlAttributeIntermediateNode.cs (1)
42formatter.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)
14public 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)
1347directiveValue = string.Empty; 1456new SourceSpan(directiveLocation, Math.Max(text?.Length ?? 0, 1)), text ?? string.Empty)); 1737new 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)
635tagName = string.Empty; 858tagName = string.Empty; 868tagName = 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)
167: 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)
279item.codeDocument.Source.FilePath ?? string.Empty, item.InheritsValue!, item.codeDocument.GetUsingDirectives()))
Microsoft.CodeAnalysis.ResxSourceGenerator (31)
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\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? 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\Logger.cs (1)
160=> 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\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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
24otherSideType.Name = String.Empty
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\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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
24otherSideType.Name = String.Empty
Microsoft.CodeAnalysis.Workspaces (53)
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (2)
101=> new(string.Empty, IsComplexType: true, IsArray: false); 140? new ParameterTypeInfo(string.Empty, IsComplexType: true, IsArray: true)
Log\EtwLogger.cs (1)
49=> 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\TraceLogger.cs (1)
29var 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\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? 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\Logger.cs (1)
160=> 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 (8)
MSBuild\ProjectFile\ProjectFile.cs (2)
29=> project?.FullPath ?? string.Empty; 165=> item.Metadata.FirstOrDefault(m => string.Equals(m.Name, MetadataNames.HintPath, StringComparison.OrdinalIgnoreCase))?.EvaluatedValue ?? string.Empty;
MSBuild\ProjectFile\ProjectInstanceReader.cs (1)
74var 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;
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 (3)
ContractDescriptorParser.cs (1)
301value = string.Empty;
ContractDescriptorTarget.cs (2)
666return string.Empty; 691return string.Empty;
Microsoft.Diagnostics.DataContractReader.Contracts (8)
Contracts\Loader_1.cs (3)
455: string.Empty; 463: string.Empty; 471: string.Empty;
Contracts\Object_1.cs (1)
49return string.Empty;
Contracts\RuntimeTypeSystem_1.cs (2)
402: string.Empty; 1479methodName = string.Empty;
Contracts\StackWalk\Context\ContextHolder.cs (1)
77public override string ToString() => Context.ToString() ?? string.Empty;
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
69return string.Empty;
Microsoft.Diagnostics.DataContractReader.Legacy (7)
ClrDataAppDomain.cs (2)
44friendlyName = string.Empty; 49friendlyName = string.Empty;
ClrDataFrame.cs (3)
213OutputBufferHelpers.CopyStringToBuffer(name, bufLen, nameLen, paramName ?? string.Empty); 217OutputBufferHelpers.CopyStringToBuffer(name, bufLen, nameLen, string.Empty); 305OutputBufferHelpers.CopyStringToBuffer(name, bufLen, nameLen, string.Empty);
ClrDataModule.cs (1)
504string result = string.Empty;
MetaDataImportImpl.cs (1)
1054return 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)
47string checksum = BitConverter.ToString(hash).Replace("-", string.Empty);
src\GenerateResxSource.cs (1)
134string defaultValue = IncludeDefaultValues ? ", " + CreateStringLiteral(value, language) : string.Empty;
src\InstallDotNetCore.cs (1)
229string architecture = string.Empty;
Microsoft.DotNet.ArcadeLogging (6)
MessageBuilder.cs (1)
66return string.Empty;
PipelinesLogger.cs (5)
273return string.Empty; 278projectFile = (projectFile ?? string.Empty).TrimEnd('\\'); 303string targetFrameworkQualifier = string.Empty; 309string targetNamesQualifier = string.IsNullOrEmpty(e.TargetNames) ? string.Empty : $" ({e.TargetNames})"; 323public string this[string name] => _parameters.TryGetValue(name, out var value) ? value : string.Empty;
Microsoft.DotNet.Build.Manifest (1)
BuildModelFactory.cs (1)
228repoUri = repoUri.Replace($"{parsedUri.UserInfo}@", string.Empty);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
583string errorMessage = string.Empty;
Microsoft.DotNet.Build.Tasks.Installers (4)
src\CreateWixBuildWixpack.cs (1)
124_wixprojDir = string.Empty;
src\GenerateCurrentVersion.cs (2)
74GeneratedVersion = string.Empty; 143return string.Empty;
src\GenerateGuidFromName.cs (1)
26var nameBytes = System.Text.Encoding.UTF8.GetBytes(Name ?? string.Empty);
Microsoft.DotNet.Build.Tasks.Packaging (8)
GeneratePackageReport.cs (1)
182private static string[] s_noRids = new[] { string.Empty };
GetRuntimeJsonValues.cs (1)
64return string.Empty;
NuGetPack.cs (2)
229return string.Empty; 251return 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)
107Log.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)
94if (value == string.Empty)
Microsoft.DotNet.Cli.CoreUtils (2)
GracefulException.cs (1)
9public string VerboseMessage { get; } = string.Empty;
Product.cs (1)
21?? string.Empty;
Microsoft.DotNet.Cli.Definitions (15)
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (1)
55if (versionArgument is not null && !versionArgument.All(v => v.Contains('@')) && !WorkloadSetVersion.IsWorkloadSetPackageVersion(versionArgument.SingleOrDefault(defaultValue: string.Empty)))
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)
33null => string.Empty, 36_ => value.ToString() ?? string.Empty 43public static string GetArgumentDescription(Argument argument) => argument.Description ?? string.Empty;
Help\LocalizationResources.cs (1)
100return string.Empty;
src\sdk\src\Resolvers\Microsoft.DotNet.NativeWrapper\Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : 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)
120if (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)
34File.WriteAllText(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)
1320return $".{(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 (5)
Constants.cs (1)
14RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
NETCoreSdkResolverNativeWrapper.cs (1)
35SdkResolutionResult result = ResolveSdk(string.Empty, globalJsonStartDirectory);
PlatformString.cs (3)
26return string.Empty; 32return Marshal.PtrToStringUTF8(Value) ?? string.Empty; 36return Marshal.PtrToStringUni(Value) ?? string.Empty;
Microsoft.DotNet.PackageValidation (1)
Filtering\TargetFrameworkFilter.cs (1)
27if (targetFramework == string.Empty)
Microsoft.DotNet.ProjectTools (1)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
359return (firstPart.ToString(), string.Empty);
Microsoft.DotNet.SharedFramework.Sdk (11)
src\GeneratePlatformManifestEntriesFromFileList.cs (2)
31AssemblyVersion = FileUtilities.GetAssemblyName(file.GetMetadata("OriginalFilePath"))?.Version.ToString() ?? string.Empty, 32FileVersion = FileUtilities.GetFileVersion(file.GetMetadata("OriginalFilePath"))?.ToString() ?? string.Empty
src\GeneratePlatformManifestEntriesFromTemplate.cs (4)
42AssemblyVersion = FileUtilities.GetAssemblyName(existingFile.ItemSpec)?.Version.ToString() ?? string.Empty, 43FileVersion = FileUtilities.GetFileVersion(existingFile.ItemSpec)?.ToString() ?? string.Empty 53string assemblyVersion = string.Empty; 54string fileVersion = string.Empty;
src\GenerateSharedFrameworkDepsFile.cs (5)
50var target = new TargetInfo(TargetFrameworkMoniker, RuntimeIdentifier, string.Empty, isPortable: false); 63string fileVersion = FileUtilities.GetFileVersion(filePath)?.ToString() ?? string.Empty; 87hash: string.Empty, 88runtimeAssemblyGroups: new[] { new RuntimeAssetGroup(string.Empty, runtimeFiles) }, 89nativeLibraryGroups: new[] { new RuntimeAssetGroup(string.Empty, nativeFiles) },
Microsoft.DotNet.SourceBuild.Tasks (3)
src\WriteBuildOutputProps.cs (3)
95string overwriteCondition = string.Empty; 124?? string.Empty); 134?? string.Empty);
Microsoft.DotNet.TemplateLocator (21)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
44return _version?.ToString() ?? string.Empty;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
522return (string.Empty, string.Empty); 549return (string.Empty, 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}";
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
37string.Empty, // The version here isn't used.
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifest.cs (1)
51public static WorkloadManifest CreateForTests(string id) => new(id, new FXVersion(7, 3, 5), null, string.Empty, [], [], []);
src\sdk\src\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);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
52new(reader.GetString() ?? string.Empty);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
38string manifestVersionString = string.Empty;
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)
1735? string.Empty 1736: (currentMessage.MessageId ?? string.Empty); 1744var 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 (19)
ChatCompletion\ChatMessage.cs (1)
124private string EllipsesForDebuggerDisplay => _contents is { Count: > 1 } ? ", ..." : string.Empty;
ChatCompletion\ChatResponse.cs (1)
62public string Text => _messages?.ConcatText() ?? string.Empty;
ChatCompletion\ChatResponseUpdate.cs (2)
100public string Text => _contents is not null ? _contents.ConcatText() : string.Empty; 194private 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)
468description ?? string.Empty, 703Description = key.Description ?? key.Method.GetCustomAttribute<DescriptionAttribute>(inherit: true)?.Description ?? string.Empty; 713title: string.Empty, // Forces skipping of the title keyword 714description: string.Empty, // Forces skipping of the description keyword
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 (37)
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)
661savedPath = await content.SaveToAsync(string.Empty); 686await Assert.ThrowsAsync<ArgumentException>("path", async () => await DataContent.LoadFromAsync(string.Empty));
Contents\HostedFileContentTests.cs (2)
16Assert.Throws<ArgumentException>("fileId", () => new HostedFileContent(string.Empty)); 40Assert.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)
54Assert.Throws<ArgumentException>("callId", () => new McpServerToolCallContent(string.Empty, "name", null)); 55Assert.Throws<ArgumentException>("toolName", () => 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());
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)
190Assert.Throws<ArgumentException>("serverName", () => new HostedMcpServerTool(string.Empty, "https://localhost/")); 191Assert.Throws<ArgumentException>("serverName", () => new HostedMcpServerTool(string.Empty, new Uri("https://localhost/"))); 195Assert.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 (2)
ScenarioRunResultTests.cs (2)
55var stringMetric = new StringMetric("string", value: "A", reason: string.Empty); 147var 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 (3)
ToolReductionTests.cs (1)
232strategy.MessagesEmbeddingTextSelector = msgs => new ValueTask<string>(msgs.LastOrDefault()?.Text ?? string.Empty);
VerbatimHttpHandler.cs (1)
99return Regex.Replace(text, @"\s*", string.Empty);
VerbatimMultiPartHttpHandler.cs (1)
190Regex.Replace(text, @"\s*", string.Empty);
Microsoft.Extensions.AI.OpenAI (10)
OpenAIAssistantsChatClient.cs (2)
287textUpdate.Contents.Add(new TextContent(string.Empty)); 602(toolOutputs ??= []).Add(new(runAndCallIDs[1], frc.Result?.ToString() ?? string.Empty));
OpenAIChatClient.cs (5)
195yield return new ToolChatMessage(resultContent.CallId, result ?? string.Empty); 244new(ChatMessageContentPart.CreateTextPart(string.Empty)); 277parts.Add(ChatMessageContentPart.CreateTextPart(string.Empty)); 454fci.Arguments?.ToString() ?? string.Empty, 822name = InvalidAuthorNameRegex().Replace(name, string.Empty);
OpenAIResponsesChatClient.cs (3)
990parts.Add(ResponseContentPart.CreateInputTextPart(string.Empty)); 1091FunctionCallOutputResponseItem outputItem = new(callId, string.Empty); 1124yield return ResponseItem.CreateFunctionCallOutputItem(resultContent.CallId, result ?? string.Empty);
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIChatClientTests.cs (2)
495string responseText = string.Empty; 650string responseText = string.Empty;
OpenAIResponseClientTests.cs (4)
2519using VerbatimHttpHandler handler = new(string.Empty, string.Empty); 2762using VerbatimHttpHandler handler = new(string.Empty, 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.FileExtensions (2)
FileConfigurationExtensions.cs (1)
46return new PhysicalFileProvider(AppContext.BaseDirectory ?? string.Empty);
FileConfigurationProvider.cs (1)
58IFileInfo? 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)
75return string.Empty;
Microsoft.Extensions.Configuration.Xml (3)
XmlStreamConfigurationProvider.cs (3)
140parent.TextContent = new XmlConfigurationElementTextContent(string.Empty, linePosition, lineNumber); 195return lineInfo == null ? string.Empty : 403? 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 (2)
MarkItDownReader.cs (2)
71startInfo.Arguments = $"\"{source.FullName}\"" + (_extractImages ? " --keep-data-uris" : string.Empty); 74string outputContent = string.Empty;
Microsoft.Extensions.DataIngestion.Tests (5)
Readers\DocumentReaderConformanceTests.cs (3)
28await Assert.ThrowsAsync<ArgumentException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: string.Empty)); 32await 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.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.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)
16public 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)
53_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)
137return 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 (15)
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)
95activityTraceId = string.Empty; 96activitySpanId = string.Empty; 97activityTraceFlags = string.Empty;
LoggingEventSource.cs (7)
168EventName ??= string.Empty; 169FormattedMessage ??= string.Empty; 221EventName ??= string.Empty; 287EventName ??= string.Empty; 288FormattedMessage ??= string.Empty; 374filterSpec = string.Empty; // This means turn on everything. 425if (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); 961public string Keyword = string.Empty; 962public string Namespace = string.Empty; 963public string Name = string.Empty; 1019public string Name = string.Empty; 1020public string UniqueName = string.Empty; 1021public string Message = string.Empty; 1026public string Modifiers = string.Empty; 1027public string LoggerField = string.Empty; 1118public string Name = string.Empty; 1119public string Type = string.Empty; 1120public string CodeName = string.Empty; 1212public 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)
28return builder.FromUri(string.Empty, new Uri(uri)); 87return builder.FromUri(string.Empty, new Uri(uri), period); 158return builder.FromFile(string.Empty, filePath, true); 177return builder.FromFile(string.Empty, filePath, watchForChanges);
PredictionEnginePool.cs (3)
35var defaultOptions = _predictionEngineOptions.Create(string.Empty); 75return GetPredictionEngine(string.Empty); 125ReturnPredictionEngine(string.Empty, engine);
PredictionEnginePoolExtensions.cs (1)
25return predictionEnginePool.Predict(string.Empty, example);
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 (14)
Emitter.cs (11)
95return tryValidateValueMethod.Parameters[0].NullableAnnotation == NullableAnnotation.NotAnnotated ? "!" : string.Empty; 569return string.Empty; 592return string.Empty; 629string linesToInsert = attributeData.Value is not null ? GenerateStronglyTypedCodeForLengthAttributes((HashSet<object>)attributeData.Value) : string.Empty; 634string linesToInsert = attributeData.Value is not null ? GenerateStronglyTypedCodeForLengthAttributes((HashSet<object>)attributeData.Value) : string.Empty; 639string linesToInsert = attributeData.Value is not null ? GenerateStronglyTypedCodeForLengthAttributes((HashSet<object>)attributeData.Value) : string.Empty; 692OutLn($"public {(makeStatic ? "static " : string.Empty)}global::Microsoft.Extensions.Options.ValidateOptionsResult Validate(string? name, {modelToValidate.Name} options)"); 797attrInstantiationStatementLines.Add($"{GetPaddingString(1)}{prop.Key} = {prop.Value}{(notLast ? "," : string.Empty)}"); 834var valueAccess = (vm.IsNullable && vm.IsValueType) ? ".Value" : string.Empty; 853var valueAccess = (vm.IsValueType && vm.IsNullable) ? ".Value" : string.Empty; 854var enumeratedValueAccess = (vm.EnumeratedIsNullable && vm.EnumeratedIsValueType) ? ".Value" : string.Empty;
Parser.cs (3)
137validatorType.ContainingNamespace.IsGlobalNamespace ? string.Empty : validatorType.ContainingNamespace.ToString()!, 236genericType = string.Empty; 716mt.ContainingNamespace.IsGlobalNamespace ? string.Empty : mt.ContainingNamespace.ToString()!,
Microsoft.Extensions.Primitives (6)
StringSegment.cs (5)
18/// A <see cref="StringSegment"/> for <see cref="string.Empty"/>. 20public static readonly StringSegment Empty = string.Empty; 657/// 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. 659/// <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> 662return 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 (20)
Http\HttpRouteParser.cs (1)
226? 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)
231config.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)
33string value = attributes[i].Value?.ToString() ?? string.Empty; 43string exceptionMessage = 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 (6)
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\TagProviderAttributeTests.cs (1)
33Assert.Throws<ArgumentException>(() => new TagProviderAttribute(typeof(object), string.Empty));
Microsoft.Extensions.Telemetry.Tests (33)
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 (9)
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;
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\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 (4)
ValidatableTypeInfo.cs (3)
239context.AddOrExtendValidationError(string.Empty, errorPrefix, errorMessage, value); 278context.AddOrExtendValidationError(string.Empty, string.Empty, validationResult.ErrorMessage, value);
ValidateContext.cs (1)
44public string CurrentValidationPath { 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)
123["build_property.outputpath"] = string.Empty 128options.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 (27)
Emission\Emitter.Method.cs (6)
21string extension = lm.IsExtensionMethod ? "this " : string.Empty; 29var lvl = string.Empty; 214var question = lp.PotentiallyNull ? "?" : string.Empty; 229var question = lp.PotentiallyNull ? "?" : string.Empty; 533var atSign = p.NeedsAtSign ? "@" : string.Empty; 562var atSign = p.NeedsAtSign ? "@" : string.Empty;
Emission\Emitter.Utils.cs (2)
50string level = string.Empty; 85string level = string.Empty;
Model\LoggingMethod.cs (3)
19public string Name = string.Empty; 20public string Message = string.Empty; 27public string Modifiers = string.Empty;
Model\LoggingMethodParameter.cs (3)
15public string ParameterName = string.Empty; 16public string TagName = string.Empty; 17public string Type = 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)
62string 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)
241Assert.Equal(string.Empty, collector.LatestRecord.Message); 249Assert.Equal(string.Empty, collector.LatestRecord.Message); 273Assert.Equal(string.Empty, collector.LatestRecord.Message); 284Assert.Equal(string.Empty, logRecord.Message); 310Assert.Equal(string.Empty, collector.LatestRecord.Message); 317Assert.Equal(string.Empty, collector.LatestRecord.Message); 324Assert.Equal(string.Empty, collector.LatestRecord.Message); 380Assert.Equal(string.Empty, logRecord.Message); 553Assert.Equal(string.Empty, collector.LatestRecord.Message); 577Assert.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)
375_ => string.Empty,
ParserTests.TagProvider.cs (2)
324if (listModifier == string.Empty && valueModifier == string.Empty)
SymbolLoaderTests.cs (1)
29string.Empty,
Microsoft.Gen.MetadataExtractor (41)
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)
18public string Modifiers = string.Empty; 19public string MetricTypeModifiers = string.Empty; 20public string MetricTypeName = string.Empty; 22public 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; 296metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 301metricUnitFromAttribute = (arg.Value.Value ?? string.Empty).ToString(); 351return string.Empty; 366return string.Empty; 372return string.Empty;
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (3)
11public string MetricNameFromAttribute = string.Empty; 12public string MetricUnitFromAttribute = string.Empty; 16public 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)
148["build_property.outputpath"] = string.Empty 153options.Add("build_property.MetadataReportOutputPath", string.Empty);
Microsoft.Gen.Metrics (34)
Emitter.cs (3)
251OutLn($" _{objectName}.{recordStatement}(value{(tagListInit ? ", tagList" : string.Empty)});"); 259? string.Empty 264: string.Empty;
MetricFactoryEmitter.cs (2)
101? string.Empty 142? string.Empty
Model\MetricMethod.cs (4)
18public string Modifiers = string.Empty; 19public string MetricTypeModifiers = string.Empty; 20public string MetricTypeName = string.Empty; 22public 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; 296metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 301metricUnitFromAttribute = (arg.Value.Value ?? string.Empty).ToString(); 351return string.Empty; 366return string.Empty; 372return 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 (3)
11public string MetricNameFromAttribute = string.Empty; 12public string MetricUnitFromAttribute = string.Empty; 16public string StrongTypeObjectName = string.Empty;
Microsoft.Gen.MetricsReports (29)
MetricDefinitionEmitter.cs (1)
25return string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (4)
18public string Modifiers = string.Empty; 19public string MetricTypeModifiers = string.Empty; 20public string MetricTypeName = string.Empty; 22public 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; 296metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 301metricUnitFromAttribute = (arg.Value.Value ?? string.Empty).ToString(); 351return string.Empty; 366return string.Empty; 372return string.Empty;
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (3)
11public string MetricNameFromAttribute = string.Empty; 12public string MetricUnitFromAttribute = string.Empty; 16public 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)
104["build_property.outputpath"] = string.Empty 109options.Add("build_property.MetricsReportOutputPath", string.Empty);
Microsoft.Interop.SourceGeneration (4)
MarshallingInfoParser.cs (1)
106/// <returns>The name associated with the provided index, or <see cref="string.Empty"/> if the index does not correspond to an element.</returns>
MethodSignatureDiagnosticLocations.cs (1)
50return diagnostic.ToDiagnosticInfo(descriptor, Location.None, string.Empty);
MethodSignatureElementInfoProvider.cs (1)
27public 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)
297var 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.McpServer.ProjectTemplates.Tests (3)
test\ProjectTemplates\Infrastructure\TestCommandResult.cs (3)
25""" : string.Empty)} 31""" : string.Empty)} 37""" : 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.GenAI.Core (1)
Pipeline\CausalLMPipeline.cs (1)
235return string.Join(string.Empty, chunks);
Microsoft.ML.GenAI.LLaMA (1)
Llama3_1ChatTemplateBuilder.cs (1)
72var text = textContent.Text?.Trim() ?? string.Empty;
Microsoft.ML.GenAI.Mistral (2)
Mistral_7B_0_3ChatTemplateBuilder.cs (2)
117return string.Empty; 140return 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 (13)
Model\BPETokenizer.cs (1)
831sb.Replace(ContinuingSubwordPrefix, string.Empty);
Model\SentencePieceBaseModel.cs (1)
156return string.Empty;
Model\SentencePieceUnigramModel.cs (1)
105normalizedText = 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 (2)
93return string.Empty; 123return 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 (22)
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)
129var 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)
155return (string.Empty, string.Empty); 161return (string.Empty, string.Empty); 167return (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.Tasks (80)
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, 657new RuntimeFile(referenceProjectInfo.OutputName, string.Empty, string.Empty); 658runtimeAssemblyGroups.Add(new RuntimeAssetGroup(string.Empty, [runtimeFile])); 670runtimeAssemblyGroups.Add(new RuntimeAssetGroup(string.Empty, 676nativeLibraryGroups.Add(new RuntimeAssetGroup(string.Empty, 788hash = 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)
158if (!frameworkReference.Equals(string.Empty, StringComparison.OrdinalIgnoreCase) &&
ProcessFrameworkReferences.cs (3)
675(requiredLabelsMetadata == string.Empty ? string.Empty : ":" + requiredLabelsMetadata); 947if (knownPack.GetMetadata("ILCompilerRuntimePackNamePattern") is string runtimePackNamePattern && runtimePackNamePattern != string.Empty)
ProjectContext.cs (1)
196.Where(dg => dg.FrameworkName == string.Empty ||
ResolvePackageAssets.cs (5)
1478var version = packageVersion ?? string.Empty; 1485var resolvedPath = resolvedPackagePath ?? string.Empty; 1489string itemPath = package.Path ?? string.Empty; 1492: itemPath) ?? string.Empty; 1495string 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)
109if (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\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\ManifestVersion.cs (1)
44return _version?.ToString() ?? string.Empty;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
522return (string.Empty, string.Empty); 549return (string.Empty, 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}";
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
37string.Empty, // The version here isn't used.
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifest.cs (1)
51public static WorkloadManifest CreateForTests(string id) => new(id, new FXVersion(7, 3, 5), null, string.Empty, [], [], []);
src\sdk\src\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);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPackId.cs (1)
52new(reader.GetString() ?? string.Empty);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
38string manifestVersionString = string.Empty;
src\sdk\src\Tasks\Common\ConflictResolution\ConflictItem.cs (7)
67var assemblyVersionString = OriginalItem?.GetMetadata(nameof(AssemblyVersion)) ?? string.Empty; 75_assemblyVersion = FileUtilities.TryGetAssemblyVersion(SourcePath ?? string.Empty); 114_fileName = OriginalItem == null ? string.Empty : Path.GetFileName(OriginalItem.ItemSpec); 131var fileVersionString = OriginalItem?.GetMetadata(nameof(FileVersion)) ?? string.Empty; 170_packageId = OriginalItem?.GetMetadata(MetadataNames.NuGetPackageId) ?? string.Empty; 188var packageVersionString = OriginalItem?.GetMetadata(nameof(MetadataNames.NuGetPackageVersion)) ?? string.Empty; 210_sourcePath = ItemUtilities.GetSourcePath(OriginalItem) ?? string.Empty;
src\sdk\src\Tasks\Common\ConflictResolution\ResolvePackageFileConflicts.cs (1)
178compilePlatformWinners.Select(c => Path.GetFileNameWithoutExtension(c.FileName) ?? string.Empty)
src\sdk\src\Tasks\Common\MessageBase.cs (1)
36string message = FormattedText ?? string.Empty;
WriteAppConfigWithSupportedRuntime.cs (2)
60string runtimeVersion = string.Empty; 131string 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.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)
src\sdk\src\RazorSdk\Tool\PipeName.cs (1)
55.Replace("=", string.Empty);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (8)
DefineStaticWebAssets.cs (3)
125var relativePathCandidate = string.Empty; 281identity = Path.Combine(Path.GetDirectoryName(identity) ?? string.Empty, expanded); 419var 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 (21)
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}";
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.Sdk.WorkloadMSBuildSdkResolver (1)
CachingWorkloadResolver.cs (1)
72string sentinelPath = Path.Combine(Path.GetDirectoryName(typeof(CachingWorkloadResolver).Assembly.Location) ?? string.Empty, "DisableWorkloadResolver.sentinel");
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 (51)
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,
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)
215Reporter.Output.WriteLine(string.Format(LocalizableStrings.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow()); 420string? packageSource = string.Empty; 471$"{packageIdentity}{(string.IsNullOrWhiteSpace(packageVersion) ? string.Empty : $"@{packageVersion}")}"); 854string 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 (15)
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)
434return (searchResult.Owners ?? string.Empty, searchResult.PrefixReserved); 440string 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 (2)
85Locale = string.Empty; 91: string.Empty;
Settings\TemplateInfo.cs (1)
153return string.Empty;
Settings\TemplateInfoReader.cs (1)
99tags.Add(item.Key, item.Value?.GetValue<string>() ?? 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)
235builder.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 (9)
Json\Jsonite\Jsonite.cs (1)
1406var innerMessage = InnerException != null ? " Check inner exception for more details" : string.Empty;
JsonDataSerializer.Stj.cs (1)
189return string.Empty;
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 (2)
201_testHostProcessStdError = string.Empty; 433? friendlyName.FriendlyName : string.Empty;
DataCollection\InProcDataCollectionExtensionManager.cs (2)
302var 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 (2)
85requestData.MetricsCollection.Add(TelemetryDataConstants.TestSessionId, discoveryCriteria.TestSessionInfo?.Id.ToString() ?? string.Empty); 209requestData.MetricsCollection.Add(TelemetryDataConstants.TestSessionId, testRunCriteria.TestSessionInfo?.Id.ToString() ?? 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))
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)
133throw new FormatException(string.Format(CultureInfo.CurrentCulture, TestCaseFilterFormatException, string.Empty));
Microsoft.TestPlatform.TestHostRuntimeProvider (6)
Hosting\DefaultTestHostManager.cs (2)
275var targetFrameworkMoniker = "net" + targetFramework.Name.Replace(".NETFramework,Version=v", string.Empty).Replace(".", string.Empty);
Hosting\DotnetTestHostManager.cs (4)
267var args = string.Empty; 301string testHostPath = string.Empty; 501string message = string.Format(CultureInfo.CurrentCulture, Resources.NoDotnetMuxerFoundForArchitecture, $"dotnet{(_platformEnvironment.OperatingSystem == PlatformOperatingSystem.Windows ? ".exe" : string.Empty)}", finalTargetArchitecture.ToString()); 895string 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)
105if (!runSettingsNavigator.MoveToChild(RunSettingsNodeName, string.Empty) || 106!runSettingsNavigator.MoveToChild(RunConfigurationNodeName, string.Empty)) 492if (!runSettingsNavigator.MoveToChild(RunSettingsNodeName, string.Empty) || 493!runSettingsNavigator.MoveToChild("MSTest", string.Empty)) 543if (!runSettingsNavigator.MoveToChild(RunSettingsNodeName, string.Empty)) 552if (runSettingsNavigator.MoveToChild(RunConfigurationNodeName, string.Empty)) 660incompatibleSettingWarning = 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)
398runSettings ?? string.Empty); 469runSettings ?? string.Empty); 547runSettings ?? string.Empty); 626runSettings ?? string.Empty); 905runSettings ?? string.Empty); 976runSettings ?? string.Empty); 1054runSettings ?? string.Empty); 1133runSettings ?? string.Empty);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
1049Field = 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)
133throw 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.Trx.TestLogger (38)
ObjectModel\CollectorDataEntry.cs (1)
119helper.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)
106_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)
293private 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)); 294private 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)); 333public static readonly TestProperty Id = TestProperty.Register("TestCase.Id", IdLabel, string.Empty, string.Empty, typeof(Guid), ValidateGuid, TestPropertyAttributes.Hidden, typeof(TestCase)); 334public static readonly TestProperty FullyQualifiedName = TestProperty.Register("TestCase.FullyQualifiedName", FullyQualifiedNameLabel, string.Empty, string.Empty, typeof(string), ValidateName, TestPropertyAttributes.Hidden, typeof(TestCase)); 335public static readonly TestProperty DisplayName = TestProperty.Register("TestCase.DisplayName", NameLabel, string.Empty, string.Empty, typeof(string), ValidateDisplay, TestPropertyAttributes.None, typeof(TestCase)); 336public 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.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)
186 string.Empty, 197 reference.Namespace = type.Namespace ?? string.Empty;
Mono.Cecil\MemberReference.cs (1)
79 this.name = name ?? string.Empty;
Mono.Cecil\ModuleDefinition.cs (5)
658 return HasTypeReference (string.Empty, fullName); 673 return TryGetTypeReference (string.Empty, fullName, out type); 739 return ((TypeDefinitionCollection) this.Types).GetType (@namespace ?? string.Empty, name); 1087 module.Types.Add (new TypeDefinition (string.Empty, "<Module>", TypeAttributes.NotPublic)); 1339 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 (41)
CommandLine\CommandLineParser.cs (1)
268switchParameters = string.Empty;
CommandLine\CommandLineSwitches.cs (1)
539if (string.Empty.Equals(switchParameters) && emptyParametersAllowed)
CommandLine\CommandLineSwitchException.cs (1)
139Throw(messageResourceName, commandLineArg, String.Empty);
InitializationException.cs (1)
154errorMessage = ResourceUtilities.FormatString(errorMessage, (e == null) ? String.Empty : e.Message);
JsonOutputFormatter.cs (3)
178return string.Empty; 197return string.Empty; 216return string.Empty;
OutOfProcTaskAppDomainWrapperBase.cs (2)
143[taskName, taskLocation, String.Empty]); 362[taskName, taskLocation, String.Empty]);
OutOfProcTaskHostNode.cs (1)
1596LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentVariable", variable.Key, newValue, environmentValue ?? String.Empty);
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
52_id = id ?? 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)}";
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
1018string responseFilePath = String.Empty;
src\msbuild\src\Shared\StringExtensions.cs (1)
24newValue = string.Empty;
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
90result[i]![(string)entry.Key] = entry.Value?.ToString() ?? string.Empty;
src\msbuild\src\Shared\TaskParameter.cs (6)
220return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 584_customEscapedMetadata[(string)entry.Key] = (string)entry.Value ?? string.Empty; 604_customEscapedMetadata[(string)entry.Key] = EscapingUtilities.Escape((string)entry.Value) ?? string.Empty; 652return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 741_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 868return metadataValue ?? string.Empty;
src\msbuild\src\Shared\TypeLoader.cs (1)
627targetFramework = targetFrameworkAttr.ConstructorArguments[0].Value as string ?? string.Empty;
XMake.cs (18)
723string getResultOutputFile = string.Empty; 1046$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}"); 1054$"{e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}"); 1784EnvironmentUtilities.ProcessPath ?? string.Empty), 2237getResultOutputFile = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetResultOutputFile].FirstOrDefault() ?? string.Empty; 2498KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntent = terminalLoggerArg ?? string.Empty; 2557return terminalLoggerParameters?.Length > 0 ? MSBuildApp.AggregateParameters(string.Empty, terminalLoggerParameters) : string.Empty; 2716? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.OutputResultsCache].FirstOrDefault(p => p != null) ?? string.Empty 3441string result = anyPrefixingParameter ?? string.Empty; 3695string fileParameters = string.Empty; 3941loggerClassName = string.Empty; 4001InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4005InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4009InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4013InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4017InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]); 4153string toolsVersionList = string.Empty;
NuGet.Build.Tasks (3)
Common\MSBuildLogger.cs (2)
161logWithDetails(string.Empty, 185logWithDetails(string.Empty,
GetReferenceNearestTargetFrameworkTask.cs (1)
247string.Empty :
NuGet.Build.Tasks.Console (4)
MSBuildItemBase.cs (1)
52/// <returns>The value of the property if one is defined, otherwise <see cref="string.Empty" />.</returns>
MSBuildStaticGraphRestore.cs (2)
536projectTargetFrameworks[string.Empty] = project; 734var targetAlias = string.IsNullOrEmpty(projectInnerNode.Key) ? string.Empty : projectInnerNode.Key;
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)
710? new string[] { string.Empty }.ToList() 834sourcePath = Path.Combine(sourceProjectFile.Replace(Path.GetFileName(sourceProjectFile), string.Empty), identity); 1166var value = string.Empty;
src\nuget-client\src\NuGet.Core\NuGet.Build.Tasks\Common\MSBuildLogger.cs (2)
161logWithDetails(string.Empty, 185logWithDetails(string.Empty,
NuGet.CommandLine.XPlat (23)
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)
154: string.Empty;
NuGet.Commands (71)
ClientCertificatesCommand\ListClientCertRunner.cs (2)
36getLogger().LogInformation(string.Empty); 38var defaultIndentation = string.Empty.PadRight(PaddingWidth);
CommandRunners\PackCommandRunner.cs (8)
447treatWarningsAsErrors: _packArgs.GetPropertyValue("TreatWarningsAsErrors") ?? string.Empty, 448warningsAsErrors: _packArgs.GetPropertyValue("WarningsAsErrors") ?? string.Empty, 449noWarn: _packArgs.GetPropertyValue("NoWarn") ?? string.Empty, 450warningsNotAsErrors: _packArgs.GetPropertyValue("WarningsNotAsErrors") ?? string.Empty); 558WriteLine(string.Empty); 613WriteLine(string.Empty); 642WriteLine(string.Empty); 649WriteLine(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\ContentFiles\FileProviderGlobbingDirectory.cs (1)
41RelativePath = string.Empty;
RestoreCommand\ContentFiles\FileProviderGlobbingFile.cs (1)
35? 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)
844TelemetryEvent packageData = new TelemetryEvent(eventName: string.Empty); 1890telemetryPrefix: 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)
282var linkPath = string.Join(string.Empty + Path.DirectorySeparatorChar,
RestoreCommand\Utility\MSBuildRestoreUtility.cs (3)
446var targetAlias = string.IsNullOrEmpty(frameworkString) ? string.Empty : frameworkString; 726var tfm = item.GetProperty("TargetFramework") ?? string.Empty; 900TargetAlias = needsAlias ? tfmProperty : string.Empty
RestoreCommand\Utility\PackageSpecFactory.cs (2)
386var targetAlias = string.IsNullOrEmpty(projectInnerNode.Key) ? string.Empty : projectInnerNode.Key; 842string? 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)
51var lockPath = string.Empty; 144var 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 (12)
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\StoreClientCertItem.cs (1)
29return type.ToString().Replace("FindBy", string.Empty);
Settings\SettingElement.cs (1)
177value = value ?? string.Empty;
Settings\Settings.cs (2)
546var rootDirectory = root ?? string.Empty; 692var fullPath = Path.Combine(root ?? string.Empty, settingsPath);
Utility\SettingsUtility.cs (1)
178var elementValue = string.Empty;
NuGet.Credentials (4)
PluginCredentialProvider.cs (2)
178+ (request.IsRetry ? " -isRetry" : string.Empty) 179+ (request.NonInteractive ? " -nonInteractive" : string.Empty);
PluginException.cs (2)
102response.Password == null ? string.Empty : RedactedPassword, 103response.AuthTypes == null ? string.Empty : string.Join(", ", response.AuthTypes),
NuGet.DependencyResolver.Core (2)
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.
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)
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;
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 (37)
ContentModel\ManagedCodeConventions.cs (6)
153return string.Empty; 181return string.Empty; 191return string.Empty; 199return string.Empty; 274return string.Empty; 291return string.Empty;
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; 1091return 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 (11)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (3)
94private static readonly byte[] EmptyStringPropertyName = Encoding.UTF8.GetBytes(string.Empty); 1316string targetAlias = string.Empty; 1423string targetAlias = string.Empty;
LockFile\AssetsLogMessage.cs (1)
124: this(logLevel, errorCode, errorString, 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 (21)
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\V2FeedQueryBuilder.cs (3)
87filter != null ? filter + QueryDelimiter : string.Empty, 88orderBy != null ? orderBy + QueryDelimiter : string.Empty, 151builder.AppendFormat(CultureInfo.InvariantCulture, GetPackagesFormat, useParenthesis ? EndpointParenthesis : string.Empty);
Model\PackageSearchMetadataBuilder.cs (2)
151Summary = string.Empty, 152Authors = string.Empty
NullSourceCacheContext.cs (1)
25return string.Empty;
Plugins\PluginPackageReader.cs (1)
1113File.WriteAllText(filePath, string.Empty);
ResourceProvider.cs (1)
20: this(resourceType, string.Empty, null)
Resources\PackageUpdateResource.cs (2)
434Uri serviceEndpointUrl = GetServiceEndpointUrl(source, string.Empty, noServiceEndpoint); 734var sourceUri = GetServiceEndpointUrl(source, string.Empty, noServiceEndpoint);
Resources\ReadmeUriTemplateResource.cs (1)
37return 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)
233var dependencyString = $"{dependency.Id} {range?.ToNonSnapshotRange().PrettyPrint() ?? string.Empty}";
ResolverUtility.cs (1)
194range == 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)
295var 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 (97)
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
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)
136: 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)
1268decoderMimeTypes = String.Empty;
System\Windows\Media\Imaging\BitmapDownload.cs (1)
158entry.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\TextDecorationCollectionConverter.cs (1)
70/// The text parameter can be either be <see langword="null"/>; <see cref="string.Empty"/>; the string "None"
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)
742new FrameworkPropertyMetadata(string.Empty, 766new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(GlyphRunPropertyChanged))); 789new 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;
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 (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);
Roslyn.Diagnostics.Analyzers (40)
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\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? 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\Logger.cs (1)
160=> 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\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
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
24otherSideType.Name = String.Empty
rzc (1)
PipeName.cs (1)
55.Replace("=", string.Empty);
sdk-tasks (7)
Crossgen.cs (1)
126var 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);
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;
Shared (7)
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)
33string value = attributes[i].Value?.ToString() ?? string.Empty; 43string exceptionMessage = string.Empty;
ServerSentEvents\Helpers.cs (1)
121string.Empty :
ServerSentEvents\SseParser_1.cs (1)
469public string LastEventId { get; private set; } = string.Empty; // Spec: "must be initialized to the empty string"
Shared.Tests (1)
Throw\ThrowTest.cs (1)
130var value = string.Empty;
Stress.AppHost (4)
InteractionCommands.cs (4)
523message: string.Empty, 531message: string.Empty, 539message: string.Empty, 547message: 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 (7)
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;
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\AssociationAttribute.cs (1)
78return key.Replace(" ", string.Empty).Split(',');
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (2)
35Extensions.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)
77return this.message ?? string.Empty; 93return this.source ?? string.Empty; 101return 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)
1141string 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 (14)
System\Diagnostics\Activity.cs (3)
67private static readonly ActivitySource s_defaultSource = new ActivitySource(string.Empty); 468OperationName = operationName ?? string.Empty; 1867return string.Empty;
System\Diagnostics\ActivityEvent.cs (1)
38Name = name ?? string.Empty;
System\Diagnostics\ActivitySourceOptions.cs (1)
36public string? Version { get; set; } = string.Empty;
System\Diagnostics\DiagnosticListener.cs (1)
206return Name ?? string.Empty;
System\Diagnostics\DsesFilterAndTransform.cs (2)
910return string.Empty; 920return 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! /* Special case - EventLogInternal instance is immediately used */)) 1040using (EventLogInternal log = new EventLogInternal(string.Empty, ".", CheckAndNormalizeSourceName(source), parent: null! /* Special case - EventLogInternal instance is immediately used */)) 1048using (EventLogInternal log = new EventLogInternal(string.Empty, ".", CheckAndNormalizeSourceName(source), parent: null! /* Special case - EventLogInternal instance is immediately used */)) 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), 1347strings[i] = values[i]?.ToString() ?? string.Empty; 1363strings[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 (12)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (1)
239if (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)
434public 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\ProcessStartInfo.cs (5)
80get => _arguments ?? string.Empty; 310get => _fileName ?? string.Empty; 323get => _directory ?? string.Empty; 346get => _userName ?? string.Empty; 354get => _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.Common (3)
System\Drawing\Font.cs (1)
29private string _systemFontName = string.Empty;
System\Drawing\Printing\PaperSize.cs (1)
27_name = string.Empty;
System\Drawing\Printing\PaperSource.cs (1)
20_name = 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)
168_ => string.Empty, 175_ => string.Empty,
System\Formats\Tar\TarWriter.Unix.cs (1)
119entry.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)
433public 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 (23)
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 (8)
218/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 222/// <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. 250/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 254/// <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. 288/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 294/// <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. 329/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 335/// <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 (8)
200/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 204/// <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. 229/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 233/// <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. 264/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 270/// <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. 302/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 308/// <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)
917string.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)
374partUriString = string.Empty; 547return 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; 4723string strRet = string.Empty; 4725string strToAdd = string.Empty; 4729return string.Empty; 4777string strToAdd = string.Empty; 5010strTemp = string.Empty; 5033string retFunctionName = string.Empty; 5182string retFunctionName = string.Empty; 5183enumType = string.Empty; 6066cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6067cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6068cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6069cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6076cc.Comments.Add(new CodeCommentStatement(string.Empty)); 6089cc.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)
1552if (cookiesFromContainer != string.Empty)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
723if (cookiesFromContainer != string.Empty)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1103response.SetReasonPhraseWithoutValidation(string.Empty);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
519return 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)
161displayName = 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)
123string 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)
52return string.Empty; 55string newValue = 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)
15return 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 (7)
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
22return string.Empty;
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
44authenticationOptions.TargetHost ?? string.Empty,
System\Net\Quic\Internal\MsQuicExtensions.cs (3)
22_ => string.Empty 67_ => string.Empty 92_ => string.Empty
System\Net\Quic\QuicConnection.cs (2)
427string sni = (IPAddress.IsValid(options.ClientAuthenticationOptions.TargetHost) ? null : options.ClientAuthenticationOptions.TargetHost) ?? host ?? string.Empty; 464targetHost = 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)
159_abortReason = string.Empty; 316if (_abortReason != string.Empty) 468private string _buffer = string.Empty; 577_buffer = string.Empty;
System\Net\FtpControlStream.cs (8)
40private string _currentTypeSetting = string.Empty; 501_currentTypeSetting = string.Empty; 512string domainUserName = string.Empty; 513string password = string.Empty; 627? string.Empty : requestDirectory + "/"; 643commandList.Add(new PipelineEntry(FormatFtpCommand(request.Method, string.Empty), flags)); 793filename = string.Empty; 1048return 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 (17)
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
22return string.Empty;
System\Net\NegotiateAuthenticationPal.Unix.cs (3)
147result = new GenericIdentity(name ?? string.Empty, protocol); 209_credentialsHandle = SafeGssCredHandle.Create(string.Empty, string.Empty, _packageType);
System\Net\Security\NegotiateAuthentication.cs (1)
178return 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)
19TargetHost = string.Empty; 55TargetHost = sslClientAuthenticationOptions.TargetHost ?? string.Empty; 82TargetHost = string.Empty;
System\Net\Security\SslStream.Protocol.cs (1)
670localCertificate = _sslAuthenticationOptions.CertSelectionDelegate(this, string.Empty, tempCollection, null, Array.Empty<string>());
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseParser_1.cs (1)
452public 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.WebClient (3)
System\Net\WebClient.cs (3)
155get { return _baseAddress != null ? _baseAddress.ToString() : string.Empty; } 602string delimiter = string.Empty; 813string delimiter = 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)
433public unsafe string GetErrorMessage() => Utf8StringMarshaller.ConvertToManaged(_zStream.msg) ?? string.Empty;
System\Net\WebSockets\ManagedWebSocket.cs (2)
1082string closeStatusDescription = string.Empty; 1297await 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 (202)
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)
783ArgumentOutOfRangeException.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)
3336string 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)
920internal string Name => _sName ?? string.Empty; 2099return 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)
282return string.Empty; 390return string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (3)
480x._literals[0] = isNegative ? "-" : string.Empty; 485x._literals[5] = string.Empty; 505_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)
984retVal = 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)
82public string ServicePack => _servicePack ?? string.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
690return 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\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)
54if (uniqueValues.Contains(string.Empty)) 56return new SingleStringSearchValuesFallback<SearchValues.FalseConst>(string.Empty, uniqueValues);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (13)
79return Empty; 105return Empty; 127return Empty; 131return Empty; 162return Empty; 188return Empty; 210return Empty; 231return Empty; 269return Empty; 294return Empty; 314return Empty; 337return Empty; 546return Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (38)
69arg0?.ToString() ?? Empty; 93Empty : 94args[0]?.ToString() ?? Empty; 114string toString = value?.ToString() ?? Empty; // We need to handle both the cases when value or value.ToString() is null 128return Empty; 158return Empty; 164return firstValue ?? Empty; 187return Empty; 292return Empty; 309return Empty; 331return Empty; 356return Empty; 395Empty : 396values[0] ?? Empty; 425return Empty; 735/// <see cref="Empty"/> if <paramref name="value"/> has zero elements. 760/// <see cref="Empty"/> if <paramref name="value"/> has zero elements. 804return Empty; 812return firstValue ?? Empty; 849/// <see cref="Empty"/> if <paramref name="values"/> has zero elements. 872/// <see cref="Empty"/> if <paramref name="values"/> has zero elements. 881return Empty; 888return firstString ?? Empty; 939return Empty; 986return value!.ToString() ?? Empty; 1011return firstString ?? Empty; 1038Empty : 1039values[0] ?? Empty; 1064return Empty; 1170return Empty; 1330newValue ??= Empty; 1508/// is <see cref="Empty"/>, all newline sequences within the string will be removed. 1800return SplitInternal(separator ?? Empty, null, int.MaxValue, options); 1805return SplitInternal(separator ?? Empty, null, count, options); 1952splitStrings[arrIndex] = Empty; 2290return Empty; 2315return Empty; 2707len == 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; 1195separator ??= string.Empty; 1208separator ??= string.Empty; 1219separator ??= string.Empty; 1230separator ??= string.Empty; 1243separator ??= string.Empty; 1830s ??= 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)
878return 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; 912standardDisplayName ??= string.Empty; 917displayName ?? string.Empty, 968displayName ?? string.Empty, 969standardDisplayName ?? string.Empty, 970daylightDisplayName ?? string.Empty,
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
322throw 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 string.Empty;
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (1)
32return thisObject == null ? string.Empty : thisObject.ToString();
System\Reflection\Runtime\MethodInfos\RuntimeDummyMethodInfo.cs (1)
22public sealed override string ToString() => string.Empty;
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeGenericParameterTypeInfo.cs (1)
66return string.Empty;
System\Reflection\Runtime\TypeInfos\RuntimeFunctionPointerTypeInfo.cs (2)
108public override string Name => string.Empty; 109internal override string InternalFullNameOfAssembly => string.Empty;
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
390string 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)
98throw new SerializationException(SR.Format(SR.ErrorDeserializing, SR.Format(SR.ErrorTypeInfo, DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), SR.Format(SR.NoSetMethodForProperty, string.Empty, string.Empty))); 1437string arrayOfPrefix = string.Empty; 1542string? clrNs = type.Namespace ?? string.Empty; 1610return new Uri(Globals.DataContractXsdBaseNamespaceUri, clrNs ?? string.Empty).AbsoluteUri; 1708ns = string.Empty; 1732string 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)
130public 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)
535_ilg.Call(_contextArg, XmlFormatGeneratorStatics.GetExistingObjectMethod, objectId, type, name, string.Empty); 567_ilg.Load(string.Empty); 811LocalBuilder 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)
480ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Empty);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
224_ilg.BeginMethod("Read" + collectionContract.XmlName.Name + "FromXml" + string.Empty, Globals.TypeOfXmlFormatCollectionReaderDelegate, 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, Globals.TypeOfObject, name, string.Empty); 1050ns ??= 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)
544serializationInfo.AddValue("AbsoluteUri", string.Empty); // Do not rename (binary serialization) 664relativeStr = string.Empty; 1373return string.Empty; 1908rawString is null ? string.Empty : 2514host = string.Empty; 2531host = string.Empty; 3034return (idx - _info.Offset.Host == 0) ? string.Empty : _string.Substring(_info.Offset.Host, 3047return string.Empty; 3060return string.Empty; 3072return string.Empty; 3077return (_info.Offset.Path - _info.Offset.User == 0) ? string.Empty : 3109return string.Empty; 3117return string.Empty; 4534ReadOnlySpan<char> extra = string.Empty; 4653return string.Empty; 4752str 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)
39_string = uri ?? string.Empty; 681relativeStr = string.Empty; 760return string.Empty; 806return 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 (1011)
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)
82return string.Empty; 94return string.Empty; 106return returnType == typeof(string) ? string.Empty : XmlUntypedConverter.Untyped.ChangeType(string.Empty, returnType, namespaceResolver); 183return string.Empty; 188return string.Empty; 266return string.Empty; 271return string.Empty; 323string value = string.Empty; 393throw 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; 5057AddNamespace(string.Empty, ns, attr); 5846_curNode.SetValue(string.Empty); 6056schemaEntity.Text = string.Empty; 6070schemaEntity.Text = string.Empty; 6754_curNode.SetNamedNode(XmlNodeType.DocumentType, _dtdInfo.Name.ToString(), string.Empty, null); 6854_curNode.SetValue(string.Empty); 7684return AddAttribute(localName, string.Empty, localName); 7952ThrowWithoutLineInfo(SR.Xml_CannotResolveExternalSubset, new string?[] { publicId ?? string.Empty, systemId }, null); 8038InitStringInput(entity.SystemId!, enc, string.Empty); 8056InitStringInput(entity.DeclaredUriString ?? string.Empty, enc, entity.Text!); 8591_curNode.SetValueNode(XmlNodeType.Text, string.Empty); 9034_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty)!; 9048throw new XmlException(SR.Xml_NametableMismatch, string.Empty); 9266prefix ??= string.Empty; 9401_curNode.SetValue(string.Empty); 9634return 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)
79baseUriStr = string.Empty; 132xmlLang = string.Empty; 133defaultNamespace = string.Empty; 152public override string DefaultNamespace { get { return string.Empty; } } 159public override string LookupNamespace(string? prefix) { return string.Empty; } 481_value = string.Empty; 493localName = string.Empty; 494prefix = string.Empty; 495ns = string.Empty; 496nameWPrefix = string.Empty; 532SetNamedNode(type, localName, string.Empty, localName); 544this.ns = string.Empty; 545_value = string.Empty; 755throw new XmlException(SR.Xml_DefaultException, string.Empty); 774throw new XmlException(SR.Xml_DefaultException, string.Empty);
System\Xml\Core\XmlTextWriter.cs (4)
62defaultNs = string.Empty; 650prefix = string.Empty; 844ws = string.Empty; 1104s = 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; } 449get { return _xmlName ?? string.Empty; } 456get { return _name ?? string.Empty; } 934get { return _name ?? string.Empty; } 1150_namespaces = string.Empty;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
103string elementNs = element.Form == XmlSchemaForm.Qualified ? element.Namespace! : string.Empty; 338string? ns = element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty; 763string? ns = ele.Form == XmlSchemaForm.Qualified ? ele.Namespace : string.Empty; 813string? ns = e!.Form == XmlSchemaForm.Qualified ? e.Namespace : string.Empty; 830string? ns = element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty; 1922memberFound = XmlNodeEqual(Reader, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty); 1944xmlnsMember.XmlnsSource(Reader.Name.Length == 5 ? string.Empty : Reader.LocalName, Reader.Value);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
85string? ns = (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty); 394string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty); 414WriteNullTagLiteral(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty); 845Writer.WriteStartAttribute(null, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty); 921string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 959string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1280WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty), mapping.IsSoap); 1365WriteRpcResult(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); 1570accessor.ChoiceIdentifier.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(choiceIdentifierType!), ns, ImportContext.Element, string.Empty, null, limiter); 1713element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, string.Empty, null, limiter); 1956element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, string.Empty, null, false, openModel, limiter); 2296defaultNamespace ??= string.Empty; 2308string 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)
440return string.Empty; 454s = string.Empty; 875XmlQualifiedName empty = new XmlQualifiedName(string.Empty, _r.LookupNamespace("")); 1179return new XmlQualifiedName(_r.NameTable.Add(value), _r.LookupNamespace(string.Empty)); 4017string qnames = string.Empty;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (8)
295ilg.LoadMember(_idNameFields[name ?? string.Empty]); 297ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1715ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1720ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1767ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1775ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1930ilg.Ldstr(string.Empty); 2197string 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)
37throw new XmlException(SR.Xml_UnsupportedClass, string.Empty); 50throw 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)
911e.AppendAttributeSkipNotify(new XAttribute(_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value)); 922_currentContainer.content ??= string.Empty; 966_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), 978_currentContainer.content ??= string.Empty; 1033XAttribute a = new XAttribute(_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 1055_currentContainer.content ??= string.Empty; 1148_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), 1171_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)); 267parentName = 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 (1)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
783ArgumentOutOfRangeException.ThrowIfNegative(groupSizeCount | bufferSize, string.Empty); // If we overflow
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; } 1514return string.Empty; 1540return string.Empty; 1906loop.InitStatement = loop.IncrementStatement = new CodeSnippetStatement(string.Empty);
System\Runtime\Serialization\Schema\SchemaImportHelper.cs (1)
78return 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)
128return 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 (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
76string 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 (85)
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)
39WcfEventSource.Instance.ThrowingEtwException(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 46WcfEventSource.Instance.EtwUnhandledException(exception != null ? exception.ToString() : string.Empty, serializedException); 53WcfEventSource.Instance.ThrowingEtwExceptionVerbose(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 69WcfEventSource.Instance.ThrowingEtwException(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 76WcfEventSource.Instance.EtwUnhandledException(exception != null ? exception.ToString() : string.Empty, serializedException); 83WcfEventSource.Instance.ThrowingEtwExceptionVerbose(_eventSourceName, exception != null ? exception.ToString() : string.Empty, serializedException); 273TraceCore.HandledExceptionError(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 278TraceCore.HandledExceptionWarning(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 283TraceCore.HandledExceptionVerbose(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 288TraceCore.HandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 295TraceCore.UnhandledException(_diagnosticTrace, exception != null ? exception.ToString() : string.Empty, exception); 309TraceCore.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\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; 994string remoteAddress = string.Empty; 2488string 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)
286s_anonymousIdentity = CreateIdentity(string.Empty); 768private 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\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)
394info.Name = 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)
498/// 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)
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;
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
303public string LeadingPrefix { get; } = string.Empty;
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (1)
2309return 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)
179etwLog.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 (390)
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)
609value ??= 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\Control.ControlVersionInfo.cs (2)
52ns ??= string.Empty; 99ns ??= string.Empty;
System\Windows\Forms\Control.cs (7)
2689return name ?? string.Empty; 3212get => CacheTextInternal ? _text ?? string.Empty : WindowText; 3215value ??= string.Empty; 3668return _text ?? string.Empty; 3676value ??= string.Empty; 9482Text = string.Empty; 11301MarshalStringToMessage(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)
88private string _currentText = string.Empty; 953get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 961PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_REPLACESEL, (WPARAM)(-1), value ?? string.Empty); 2024MatchingText = string.Empty; 2044MatchingText = string.Empty; 2062MatchingText = string.Empty; 2190return string.Empty; 2198return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString(); 2739MatchingText = string.Empty; 2830Debug.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"); 2937SelectedText = string.Empty; 2947SelectedText = string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
1886get => DataConnection is null ? string.Empty : DataConnection.DataMember; 1942DataMember = string.Empty; 3797ToolTipPrivate = string.Empty; 3849ToolTipPrivate = string.Empty; 3936ToolTipPrivate = string.Empty; 4039private 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)
11466DataMember = string.Empty; 14568ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 15204ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 22045ActivateToolTip(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; 1467private protected virtual string? GetDefaultToolTipText() => string.Empty; 1530string errorText = string.Empty; 2380return string.Empty; 2393toolTipText = string.Join(string.Empty, toolTipText.Split('&')); 2789DataGridView.ActivateToolTip(activate: false, string.Empty, -1, -1); 2807DataGridView?.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)
243get => Properties.GetValueOrDefaultAllowNull<object?>(s_propNullValue, string.Empty); 253if (Properties.AddOrRemoveValue(s_propNullValue, value, defaultValue: string.Empty) != value)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
954string cellName = AccessibilityObject.Name ?? string.Empty; 1404string.Empty, 1453string.Empty, 1500string.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\ImageList\ImageList.ImageCollection.cs (1)
48keysCollection.Add(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; 1568return string.Empty; 1576return 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; 3271return FindItem(false, string.Empty, false, new Point(x, y), searchDirection, 0, false); 5188_backgroundImageFileName = string.Empty; 6910string 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)
984SetStatusBox(string.Empty, string.Empty); 3884string.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, 1983return gridEntry is null ? string.Empty : gridEntry.GetTestingInfo(); 2404ToolTip.ToolTip = string.Empty; 2761ToolTip.ToolTip = string.Empty; 3066ToolTip.ToolTip = string.Empty; 3088string? tip = string.Empty; 3124ToolTip.ToolTip = string.Empty; 3243ToolTip.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)
528return string.Empty; 611value ??= string.Empty; 1107value ??= string.Empty; 1246value ??= string.Empty; 1318return string.Empty; 1351value ??= string.Empty; 1407return string.Empty; 2323Rtf = string.Empty; 2796PInvokeCore.SendMessage(this, PInvokeCore.WM_SETTEXT, 0, string.Empty); 2935string result = string.Empty; 3175return 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)
77private string _placeholderText = string.Empty; 831value ??= string.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (8)
209SetSelectedTextInternal(string.Empty, clearUndo: false); 219SetSelectedTextInternal(string.Empty, clearUndo: false); 608list.Add(string.Empty); 622Text = string.Empty; 999text ??= string.Empty; 1106value ??= string.Empty; 1133value ??= string.Empty; 1547using 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)
544? 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)
1357get => string.Empty;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
352=> 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\ErrorProvider\ErrorProvider.ControlItem.cs (3)
32_error = string.Empty; 67_error = string.Empty; 112value ??= string.Empty;
System\Windows\Forms\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\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
93Caption = 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 (1)
323return 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>(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); 1016return string.Empty; 1021: 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)
532_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)
40: 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;
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;
tlens (2)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (2)
215yield return string.Empty; 1520return 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 (4)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (3)
511environmentVariables[key] = string.Empty; 515environmentVariables[key] = value ?? string.Empty; 697.Replace("=", string.Empty);
VBCSCompiler (4)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387Output = output ?? string.Empty;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (3)
511environmentVariables[key] = string.Empty; 515environmentVariables[key] = value ?? string.Empty; 697.Replace("=", string.Empty);
vstest.console (23)
CommandLine\CommandArgumentPair.cs (1)
70Argument = string.Empty;
CommandLine\Executor.cs (1)
455Output.WriteLine(string.Empty, OutputLevel.Information);
InProcessVsTestConsoleWrapper.cs (4)
499runSettings ?? string.Empty); 589runSettings ?? string.Empty); 684runSettings ?? string.Empty); 795runSettings ?? string.Empty);
Internal\ConsoleLogger.cs (5)
227Initialize(events, string.Empty); 263return string.Empty; 371Output.WriteLine(string.Empty, OutputLevel.Information); 676Output.WriteLine(string.Empty, OutputLevel.Information); 764? 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)
118var mergedArg = string.Empty; 155mergedArg = string.Empty;
Processors\CollectArgumentProcessor.cs (1)
244AddDataCollectorToRunSettings([arguments], runSettingsManager, fileHelper, string.Empty);
Processors\EnableCodeCoverageArgumentProcessor.cs (3)
221var existingPath = string.Empty; 269xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Empty); 289var fn = dataCollectorNavigator?.GetAttribute("friendlyName", string.Empty);
Processors\EnvironmentArgumentProcessor.cs (1)
91var 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 (23)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (2)
113executablePath = string.Empty; 114var pathString = _environmentVariableHelper.GetEnvironmentVariable("PATH") ?? string.Empty;
src\vstest\src\vstest.console\CommandLine\CommandArgumentPair.cs (1)
70Argument = string.Empty;
src\vstest\src\vstest.console\CommandLine\Executor.cs (1)
455Output.WriteLine(string.Empty, OutputLevel.Information);
src\vstest\src\vstest.console\InProcessVsTestConsoleWrapper.cs (4)
499runSettings ?? string.Empty); 589runSettings ?? string.Empty); 684runSettings ?? string.Empty); 795runSettings ?? string.Empty);
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (5)
227Initialize(events, string.Empty); 263return string.Empty; 371Output.WriteLine(string.Empty, OutputLevel.Information); 676Output.WriteLine(string.Empty, OutputLevel.Information); 764? string.Empty
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (2)
70Initialize(events, string.Empty); 225SendMessage("test-failed", formattedError.ToString().TrimEnd(), file ?? string.Empty, line ?? "0");
src\vstest\src\vstest.console\Processors\CLIRunSettingsArgumentProcessor.cs (2)
118var mergedArg = string.Empty; 155mergedArg = string.Empty;
src\vstest\src\vstest.console\Processors\CollectArgumentProcessor.cs (1)
244AddDataCollectorToRunSettings([arguments], runSettingsManager, fileHelper, string.Empty);
src\vstest\src\vstest.console\Processors\EnableCodeCoverageArgumentProcessor.cs (3)
221var existingPath = string.Empty; 269xmlText = string.Format(CultureInfo.InvariantCulture, xmlText, string.Empty); 289var fn = dataCollectorNavigator?.GetAttribute("friendlyName", string.Empty);
src\vstest\src\vstest.console\Processors\EnvironmentArgumentProcessor.cs (1)
91var value = string.Empty;
src\vstest\src\vstest.console\Processors\HelpArgumentProcessor.cs (1)
162Output.WriteLine(string.Empty, OutputLevel.Information);