14461 references to Empty
aspire (5)
DotNetCliRunner.cs (5)
169var noBuildSwitch = noBuild ? "--no-build" : string.Empty; 170var noProfileSwitch = options.NoLaunchProfile ? "--no-launch-profile" : string.Empty; 698public string Id { get; set; } = string.Empty; 699public string Version { get; set; } = string.Empty; 700public string Source { get; set; } = string.Empty;
Aspire.Azure.AI.OpenAI.Tests (5)
AIOpenAIPublicApiTests.cs (5)
31var connectionName = isNull ? null! : string.Empty; 61var connectionName = isNull ? null! : string.Empty; 89var name = isNull ? null! : string.Empty; 117var connectionName = isNull ? null! : string.Empty; 145var 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.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.Tests (2)
MessagingServiceBusPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : 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.Queues.Tests (2)
StorageQueuesPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = isNull ? null! : string.Empty;
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
31protected 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 (45)
Components\Controls\Chart\MetricTable.razor.cs (3)
23private string _unitColumnHeader = string.Empty; 107SecondaryAction = string.Empty, 317return value is null ? string.Empty : value.Value.ToString("F3", CultureInfo.CurrentCulture);
Components\Controls\GridValue.razor.cs (1)
158await TextVisualizerDialog.OpenDialogAsync(ViewportInformation, DialogService, DialogsLoc, ValueDescription, ValueToVisualize ?? Value ?? string.Empty, IsMasked || ContainsSecret);
Components\Controls\TelemetryErrorBoundary.cs (1)
25[TelemetryPropertyKeys.ExceptionStackTrace] = new AspireTelemetryProperty(ex.StackTrace ?? string.Empty)
Components\Dialogs\ExemplarsDialog.razor.cs (1)
65return string.Empty;
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
32private string _formattedText = string.Empty;
Components\Pages\Error.razor.cs (1)
38new ComponentTelemetryProperty(TelemetryPropertyKeys.ErrorRequestId, new AspireTelemetryProperty(RequestId ?? string.Empty)),
Components\Pages\Metrics.razor.cs (1)
327new ComponentTelemetryProperty(TelemetryPropertyKeys.MetricsSelectedView, new AspireTelemetryProperty(PageViewModel.SelectedViewKind?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting))
Components\Pages\Resources.razor.cs (9)
118&& IsKeyValueTrue(resource.State ?? string.Empty, PageViewModel.ResourceStatesToVisibility) 119&& IsKeyValueTrue(resource.HealthStatus?.Humanize() ?? string.Empty, PageViewModel.ResourceHealthStatusesToVisibility) 309PageViewModel.ResourceStatesToVisibility.AddOrUpdate(resource.State ?? string.Empty, stateVisible(resource.State ?? string.Empty), (_, _) => stateVisible(resource.State ?? string.Empty)); 310PageViewModel.ResourceHealthStatusesToVisibility.AddOrUpdate(resource.HealthStatus?.Humanize() ?? string.Empty, healthStatusVisible(resource.HealthStatus?.Humanize() ?? string.Empty), (_, _) => healthStatusVisible(resource.HealthStatus?.Humanize() ?? string.Empty)); 655return string.Empty;
Components\Pages\StructuredLogs.razor.cs (2)
44private string _filter = string.Empty; 498new ComponentTelemetryProperty(TelemetryPropertyKeys.StructuredLogsSelectedLogLevel, new AspireTelemetryProperty(PageViewModel.SelectedLogLevel.Id?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting)),
Components\Pages\TraceDetail.razor.cs (2)
36private string _filter = string.Empty; 237return string.Empty;
Components\Pages\Traces.razor.cs (1)
39private string _filter = string.Empty;
ConsoleLogs\LogParser.cs (1)
52return updatedText ?? string.Empty;
DashboardWebApplication.cs (2)
478new PostConfigureDashboardOptions(builder.Configuration).PostConfigure(name: string.Empty, dashboardOptions); 479var result = new ValidateDashboardOptions().Validate(name: string.Empty, dashboardOptions);
Extensions\FluentUIExtensions.cs (3)
17{ "data-text", text ?? string.Empty }, 18{ "data-precopy", precopy ?? string.Empty }, 19{ "data-postcopy", postcopy ?? string.Empty },
Model\MetricsHelpers.cs (1)
44PrimaryAction = string.Empty,
Model\ResourceViewModel.cs (1)
368public static readonly UrlDisplayPropertiesViewModel Empty = new(string.Empty, 0);
Model\StructuredLogsViewModel.cs (1)
17private string _filterText = string.Empty;
Model\TracesViewModel.cs (1)
17private string _filterText = string.Empty;
Otlp\Model\OtlpHelpers.cs (4)
71return string.Empty; 102return string.Empty; 114AnyValue.ValueOneofCase.None => string.Empty, 439var name = scope?.Name ?? string.Empty;
Otlp\Model\OtlpLogEntry.cs (2)
57: string.Empty; 61ParentId = 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)
155FullName = string.Empty;
Otlp\Model\OtlpUnits.cs (1)
144"1" => string.Empty,
Telemetry\DashboardTelemetryService.cs (2)
351{ TelemetryPropertyKeys.DashboardVersion, new AspireTelemetryProperty(typeof(DashboardWebApplication).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? string.Empty) }, 352{ 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);
Aspire.Dashboard.Components.Tests (13)
Controls\PlotlyChartTests.cs (1)
64Parent = new OtlpScope("Parent-Name-<b>Bold</b>", string.Empty, []),
Controls\TextVisualizerDialogTests.cs (8)
45await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawJson, string.Empty, false), []); 67await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), []); 94await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawXml, string.Empty, false), []); 110await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, false), []); 127await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), []); 145await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(xml, string.Empty, false), []); 167await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), []); 189await dialogService.ShowDialogAsync<TextVisualizerDialog>(new TextVisualizerDialogViewModel(rawText, string.Empty, ContainsSecret: true), []);
Pages\ConsoleLogsTests.cs (2)
294commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]); 358commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", parameter: null, isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (1)
278Assert.Equal(string.Empty, kvp.Key);
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
Aspire.Dashboard.Tests (44)
Integration\StartupTests.cs (1)
121data["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\ResourceUrlHelpersTests.cs (4)
211new("Zero-Https", new("https://localhost:8079"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 0)), 212new("Zero-Http", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 0)), 213new("Positive", new("http://localhost:8082"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 1)), 214new("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!" }
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 (2)
38Assert.Empty(repository.GetTraces(new GetTracesRequest { ApplicationKey = applicationKey, Count = 100, Filters = [], StartIndex = 0, FilterText = string.Empty }).PagedResult.Items); 51Assert.Single(repository.GetTraces(new GetTracesRequest { ApplicationKey = applicationKey, Count = 100, Filters = [], StartIndex = 0, FilterText = string.Empty }).PagedResult.Items);
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);
Aspire.EndToEnd.Tests (3)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
157DefaultBuildArgs = 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 (31)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
25if (Path.GetDirectoryName(value) != string.Empty)
ApplicationModel\ExpressionResolver.cs (1)
51return string.Empty;
ApplicationModel\ResourceExtensions.cs (2)
536var registryPrefix = string.IsNullOrEmpty(imageAnnotation.Registry) ? string.Empty : $"{imageAnnotation.Registry}/"; 540var tagSuffix = string.IsNullOrEmpty(imageAnnotation.Tag) ? string.Empty : $":{imageAnnotation.Tag}";
ApplicationModel\ResourceLoggerService.cs (1)
601var content = entry.Content ?? string.Empty;
Dashboard\DashboardLifecycleHook.cs (3)
483public string Timestamp { get; set; } = string.Empty; 487public string Category { get; set; } = string.Empty; 488public string Message { get; set; } = string.Empty;
Dashboard\DashboardService.cs (1)
177ErrorMessage = errorMessage ?? string.Empty
Dashboard\proto\Partials.cs (4)
80Source = volume.Source ?? string.Empty, 89resource.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)
95if (output == string.Empty) 147|| dcpVersionString == string.Empty 157dcpVersionString = VersionRegex().Replace(dcpVersionString, string.Empty);
Dcp\DcpKubernetesClient.cs (1)
178return string.Empty;
Dcp\Model\Container.cs (1)
523c.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\ContainerExec.cs (1)
133containerExec.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 (4)
238exe.Metadata.NamespaceProperty = string.Empty; 253this.Annotate(LaunchConfigurationsAnnotation, string.Empty); // Clear existing annotation, if any. 287public string ProjectPath { get; set; } = string.Empty; 290public string LaunchProfile { get; set; } = string.Empty;
Dcp\Model\ExecutableReplicaSet.cs (1)
108ers.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\Network.cs (1)
92c.Metadata.NamespaceProperty = string.Empty;
Dcp\Model\Service.cs (1)
82s.Metadata.NamespaceProperty = string.Empty;
Dcp\Process\ProcessUtil.cs (1)
27WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty,
Publishing\PublishingActivityProgressReporter.cs (1)
133StatusText = string.Empty,
ResourceBuilderExtensions.cs (1)
38return builder.WithAnnotation(new EnvironmentAnnotation(name, value ?? string.Empty));
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
46private static string TrimAssemblyExtension(string fullPath) => fullPath.Replace(".dll", string.Empty);
Aspire.Hosting.Azure (5)
Provisioning\Provisioners\AzureProvisioner.cs (2)
502var oid = string.Empty; 503var upn = string.Empty;
Provisioning\Provisioners\BicepProvisioner.cs (1)
381foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator))
Provisioning\UserSecretsPathHelper.cs (1)
60return string.Empty;
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
27WorkingDirectory = processSpec.WorkingDirectory ?? string.Empty,
Aspire.Hosting.Azure.AppContainers (2)
ContainerAppExtensions.cs (2)
77new StringLiteralExpression(string.Empty)), 86new StringLiteralExpression(string.Empty)),
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
149var commandLineArgs = CommandLineArgsParser.Parse(launchProfile.LaunchProfile.CommandLineArgs ?? string.Empty);
Aspire.Hosting.Azure.Tests (62)
AzureContainerAppsTests.cs (1)
1209Assert.Equal(string.Empty, param.Value);
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 (11)
19var name = isNull ? null! : string.Empty; 40var containerName = isNull ? null! : string.Empty; 61var partitionKeyPath = isNull ? null! : string.Empty; 93var name = isNull ? null! : string.Empty; 112var databaseName = isNull ? null! : string.Empty; 151var name = isNull ? null! : string.Empty; 192var name = isNull ? null! : string.Empty; 283var databaseName = isNull ? null! : string.Empty; 312var name = isNull ? null! : string.Empty; 343var name = isNull ? null! : string.Empty; 363var partitionKeyPath = 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)
16var name = isNull ? null! : string.Empty; 87var 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;
Aspire.Hosting.Containers.Tests (3)
WithDockerfileTests.cs (3)
567.WithDockerfile(string.Empty); 580builder.AddDockerfile("mycontainer", string.Empty) 581.WithDockerfile(string.Empty);
Aspire.Hosting.Docker (3)
DockerComposeEnvironmentContext.cs (1)
103serviceResource.EnvironmentVariables.Add(kv.Key, value?.ToString() ?? string.Empty);
DockerComposeServiceResourceExtensions.cs (1)
67return (await resource.ProcessValueAsync(context, executionContext, expr.ValueProviders[0]).ConfigureAwait(false)).ToString() ?? string.Empty;
Resources\ComposeNodes\Service.cs (1)
477Environment[key] = value ?? string.Empty;
Aspire.Hosting.Garnet.Tests (3)
GarnetPublicApiTests.cs (3)
30var name = isNull ? null! : string.Empty; 70var source = isNull ? null! : string.Empty; 112var name = isNull ? null! : string.Empty;
Aspire.Hosting.Kafka.Tests (4)
KafkaPublicApiTests.cs (4)
30var name = isNull ? null! : string.Empty; 93var source = isNull ? null! : string.Empty; 108var name = isNull ? null! : string.Empty; 123var name = isNull ? null! : string.Empty;
Aspire.Hosting.Keycloak.Tests (5)
KeycloakPublicApiTests.cs (5)
17var name = isNull ? null! : string.Empty; 60var name = isNull ? null! : string.Empty; 100var source = isNull ? null! : string.Empty; 129var import = isNull ? null! : string.Empty; 194File.WriteAllText(filePath, string.Empty);
Aspire.Hosting.Kubernetes (4)
KubernetesPublishingContext.cs (1)
117paramValues[key] = helmExpressionWithValue.Value ?? string.Empty;
KubernetesResource.cs (1)
310EnvironmentVariables[key] = new(configExpression, value.ToString() ?? string.Empty);
KubernetesServiceResourceExtensions.cs (1)
69return (await resource.ProcessValueAsync(context, executionContext, expr.ValueProviders[0]).ConfigureAwait(false)).ToString() ?? string.Empty;
Yaml\IntOrStringConverter.cs (1)
63var val = obj.Value ?? string.Empty;
Aspire.Hosting.Milvus.Tests (8)
MilvusPublicApiTests.cs (8)
17var name = isNull ? null! : string.Empty; 45var name = isNull ? null! : string.Empty; 74var name = isNull ? null! : string.Empty; 125var source = isNull ? null! : string.Empty; 154string configurationFilePath = isNull ? null! : string.Empty; 169var name = isNull ? null! : string.Empty; 188var databaseName = isNull ? null! : string.Empty; 218var name = isNull ? null! : string.Empty;
Aspire.Hosting.MongoDB.Tests (9)
MongoDBPublicApiTests.cs (9)
31var name = isNull ? null! : string.Empty; 61var name = isNull ? null! : string.Empty; 92var name = isNull ? null! : string.Empty; 157var source = isNull ? null! : string.Empty; 185var source = isNull ? null! : string.Empty; 200var name = isNull ? null! : string.Empty; 218var databaseName = isNull ? null! : string.Empty; 247var name = isNull ? null! : string.Empty; 262var name = isNull ? null! : string.Empty;
Aspire.Hosting.MySql.Tests (8)
MySqlPublicApiTests.cs (8)
30var name = isNull ? null! : string.Empty; 59var name = isNull ? null! : string.Empty; 124var source = isNull ? null! : string.Empty; 153var source = isNull ? null! : string.Empty; 169var name = isNull ? null! : string.Empty; 191var databaseName = isNull ? null! : string.Empty; 225var name = isNull ? null! : string.Empty; 254var name = isNull ? null! : string.Empty;
Aspire.Hosting.Nats.Tests (5)
NatsPublicApiTests.cs (5)
34var name = isNull ? null! : string.Empty; 70var name = isNull ? null! : string.Empty; 138var source = isNull ? null! : string.Empty; 153var name = isNull ? null! : string.Empty; 174var name = isNull ? null! : string.Empty;
Aspire.Hosting.NodeJs.Tests (7)
NodeAppFixture.cs (1)
117public string Output => string.Empty;
NodeJsPublicApiTests.cs (6)
16var name = isNull ? null! : string.Empty; 34var command = isNull ? null! : string.Empty; 77var name = isNull ? null! : string.Empty; 95var scriptPath = isNull ? null! : string.Empty; 124var name = isNull ? null! : string.Empty; 156var scriptName = isNull ? null! : string.Empty;
Aspire.Hosting.Oracle.Tests (8)
OraclePublicApiTests.cs (8)
30var name = isNull ? null! : string.Empty; 59var name = isNull ? null! : string.Empty; 99var source = isNull ? null! : string.Empty; 128var source = isNull ? null! : string.Empty; 157var source = isNull ? null! : string.Empty; 174var name = isNull ? null! : string.Empty; 194var databaseName = isNull ? null! : string.Empty; 223var name = isNull ? null! : string.Empty;
Aspire.Hosting.PostgreSQL.Tests (9)
PostgrePublicApiTests.cs (9)
18var name = isNull ? null! : string.Empty; 33var name = isNull ? null! : string.Empty; 61var name = isNull ? null! : string.Empty; 90var name = isNull ? null! : string.Empty; 176var source = isNull ? null! : string.Empty; 205var source = isNull ? null! : string.Empty; 220var name = isNull ? null! : string.Empty; 241var databaseName = isNull ? null! : string.Empty; 273var name = isNull ? null! : string.Empty;
Aspire.Hosting.Python.Tests (22)
PythonPublicApiTests.cs (22)
16var name = isNull ? null! : string.Empty; 34var executablePath = isNull ? null! : string.Empty; 82var name = isNull ? null! : string.Empty; 106var appDirectory = isNull ? null! : string.Empty; 130var scriptPath = isNull ? null! : string.Empty; 173string[] scriptArgs = ["arg", isNull ? null! : string.Empty, "arg2"]; 218var name = isNull ? null! : string.Empty; 244var appDirectory = isNull ? null! : string.Empty; 270var scriptPath = isNull ? null! : string.Empty; 296var virtualEnvironmentPath = isNull ? null! : string.Empty; 322string[] scriptArgs = ["arg", isNull ? null! : string.Empty, "arg2"]; 347var name = isNull ? null! : string.Empty; 366var executablePath = isNull ? null! : string.Empty; 417var name = isNull ? null! : string.Empty; 442var projectDirectory = isNull ? null! : string.Empty; 467var scriptPath = isNull ? null! : string.Empty; 512string[] scriptArgs = ["arg", isNull ? null! : string.Empty, "arg2"]; 559var name = isNull ? null! : string.Empty; 586var projectDirectory = isNull ? null! : string.Empty; 613var scriptPath = isNull ? null! : string.Empty; 640var virtualEnvironmentPath = isNull ? null! : string.Empty; 667string[] scriptArgs = ["arg", isNull ? null! : string.Empty, "arg2"];
Aspire.Hosting.Qdrant.Tests (3)
QdrantPublicApiTests.cs (3)
30var name = isNull ? null! : string.Empty; 70var source = isNull ? null! : string.Empty; 112var name = isNull ? null! : string.Empty;
Aspire.Hosting.RabbitMQ.Tests (5)
RabbitMQFunctionalTests.cs (2)
87await channel.BasicPublishAsync(exchange: string.Empty, routingKey: queueName, body: body); 153exchange: string.Empty,
RabbitMQPublicApiTests.cs (3)
30var name = isNull ? null! : string.Empty; 70var source = isNull ? null! : string.Empty; 109var name = isNull ? null! : string.Empty;
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
179var hostString = $"{(hostsVariableBuilder.Length > 0 ? "," : string.Empty)}{redisInstance.Name}:{redisInstance.Name}:{redisInstance.PrimaryEndpoint.TargetPort}:0";
Aspire.Hosting.Redis.Tests (6)
RedisPublicApiTests.cs (6)
30var name = isNull ? null! : string.Empty; 116var source = isNull ? null! : string.Empty; 168var source = isNull ? null! : string.Empty; 184var name = isNull ? null! : string.Empty; 199var name = isNull ? null! : string.Empty; 214var name = isNull ? null! : string.Empty;
Aspire.Hosting.SqlServer.Tests (6)
SqlServerPublicApiTests.cs (6)
30var name = isNull ? null! : string.Empty; 59var name = isNull ? null! : string.Empty; 99var source = isNull ? null! : string.Empty; 115var name = isNull ? null! : string.Empty; 137var databaseName = isNull ? null! : string.Empty; 170var 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 (15)
Dashboard\DashboardResourceTests.cs (1)
569public string Message { get; set; } = string.Empty;
Dashboard\TransportOptionsValidatorTests.cs (3)
133config[KnownConfigNames.AspNetCoreUrls] = string.Empty; 156config[resourceServiceEndpointUrlKey] = string.Empty; 181config[dashboardOtlpGrpcEndpointUrlKey] = string.Empty;
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 (1)
1008var urls = string.Empty;
ExpressionResolverTests.cs (2)
22var resolvedValue = await ExpressionResolver.ResolveAsync(testData.SourceIsContainer, testData.ValueProvider, string.Empty, CancellationToken.None); 28async Task<ResolvedValue> ResolveAsync() => await ExpressionResolver.ResolveAsync(testData.SourceIsContainer, testData.ValueProvider, string.Empty, CancellationToken.None);
ResourceExtensionsTests.cs (2)
286string.Empty, 319RunTest(builder.AddExecutable("myExecutable", "nginx", string.Empty));
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? 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)
30var name = isNull ? null! : string.Empty; 70var source = isNull ? null! : string.Empty; 96var name = isNull ? null! : 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.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 (3)
AspireSqlServerSqlClientExtensions.cs (1)
105ConnectionString = settings.ConnectionString ?? string.Empty
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (2)
190var minMessage = minName != null ? $": {minName}" : string.Empty; 191var maxMessage = maxName != null ? $": {maxName}" : 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.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 (2)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (2)
190var minMessage = minName != null ? $": {minName}" : string.Empty; 191var maxMessage = maxName != null ? $": {maxName}" : 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.v3.Tests (2)
tests\Aspire.MongoDB.Driver.Tests\MongoDBDriverPublicApiTests.cs (2)
29var connectionName = isNull ? null! : string.Empty; 57var name = 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)
31var connectionName = isNull ? null! : string.Empty; 76var serviceKey = isNull ? null! : string.Empty; 119var serviceKey = isNull ? null! : string.Empty; 147var connectionName = isNull ? null! : string.Empty; 175var name = isNull ? null! : string.Empty;
Aspire.Oracle.EntityFrameworkCore.Tests (1)
OracleEntityFrameworkCorePublicApiTests.cs (1)
30var connectionName = isNull ? null! : string.Empty;
Aspire.Playground.Tests (2)
tests\Aspire.TestUtilities\FileUtil.cs (1)
42foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator))
tests\Shared\Logging\XunitLoggerProvider.cs (1)
76messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
AspireEFMySqlExtensions.cs (1)
102var 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)
157DefaultBuildArgs = 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)
FileUtil.cs (1)
42foreach (var directory in (pathVariable ?? string.Empty).Split(pathSeparator))
AutobahnTestApp (1)
Program.cs (1)
45webHostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Empty);
AzureFunctionsEndToEnd.ApiService (1)
Program.cs (1)
99public string Text { get; set; } = string.Empty;
BasicWebSite (2)
Controllers\CustomServiceApiController.cs (1)
47return string.Empty;
Controllers\RemoteAttribute_VerifyController.cs (1)
36value = string.Empty;
BasketService (1)
BasketService.cs (1)
84exchange: string.Empty,
Binding.WS.FederationHttp.IntegrationTests (1)
WSFederationHttpBindingTests.cs (1)
38tokenTargetAddress = Endpoints.Https_SecModeTransWithMessCred_ClientCredTypeIssuedTokenSaml2 + endpointSuffix + (useSecureConversation ? "/sc" : string.Empty) + "/" + Enum.GetName(typeof(WSMessageEncoding), encoding);
BlazorUnitedApp (5)
Data\Address.cs (4)
8public string Street { get; set; } = string.Empty; 9public string City { get; set; } = string.Empty; 10public string State { get; set; } = string.Empty; 11public string Zip { get; set; } = string.Empty;
Data\Customer.cs (1)
8public string Name { get; set; } = string.Empty;
BoundTreeGenerator (4)
BoundNodeClassWriter.cs (4)
1768return string.Empty; 1772return string.Empty; 1782return string.Empty; 1786return string.Empty;
BuildActionTelemetryTable (1)
Program.cs (1)
275var description = 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));
CodeGenerator (1)
HttpUtilities\HttpUtilities.cs (1)
207var tmpReturn = string.Empty;
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;
csc (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
385Output = output ?? string.Empty;
src\Compilers\Shared\BuildServerConnection.cs (1)
581.Replace("=", string.Empty);
CSharpSyntaxGenerator (4)
AbstractFileWriter.cs (2)
205return string.Empty; 209return string.Empty;
TestWriter.cs (2)
154var leadingTrivia = isGreen ? "null, " : string.Empty; 155var trailingTrivia = isGreen ? ", null" : string.Empty;
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
32string name = string.Empty;
DesignSurfaceExt (1)
NameCreationServiceImp.cs (1)
21return string.Empty;
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
dotnet-razorpagegenerator (1)
Program.cs (1)
39var physicalPathPrefix = args.Length > 2 ? args[2] : 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 (1141)
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)
482var paramsFilePath = string.Empty; 483var fileRelPath = string.Empty; 494if (this.UpdateServiceReferenceFolder == string.Empty) 686var 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\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)
221name = 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); 997var depsFile = string.Empty; 1035return 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)
79var 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);
FormatterWebSite (1)
ValidateBodyParameterAttribute.cs (1)
25context.ModelState[string.Empty]?.Errors;
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 (26)
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; 1169commentEnd: string.Empty, 1636var afterTargets = string.Empty; 1637var trimmedPackageName = packageName.Replace(".", string.Empty, StringComparison.Ordinal); 1705var propertyStr = string.Empty; 1753return string.Empty; 1914_ => string.Empty,
HealthChecksSample (1)
Program.cs (1)
38var scenario = config["scenario"] ?? string.Empty;
http2cat (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
Identity.ExternalClaims (14)
Pages\Account\ExternalLogin.cshtml.cs (1)
140ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\Login.cshtml.cs (2)
57ModelState.AddModelError(string.Empty, ErrorMessage); 93ModelState.AddModelError(string.Empty, "Invalid login attempt.");
Pages\Account\LoginWith2fa.cshtml.cs (3)
76var authenticatorCode = Input.TwoFactorCode.Replace(" ", string.Empty).Replace("-", string.Empty); 93ModelState.AddModelError(string.Empty, "Invalid authenticator code.");
Pages\Account\LoginWithRecoveryCode.cshtml.cs (2)
69var recoveryCode = Input.RecoveryCode.Replace(" ", string.Empty); 86ModelState.AddModelError(string.Empty, "Invalid recovery code entered.");
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
93ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (2)
88var verificationCode = Input.Code.Replace(" ", string.Empty).Replace("-", string.Empty);
Pages\Account\Manage\SetPassword.cshtml.cs (1)
85ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\Register.cshtml.cs (1)
86ModelState.AddModelError(string.Empty, error.Description);
Pages\Account\ResetPassword.cshtml.cs (1)
85ModelState.AddModelError(string.Empty, error.Description);
IdentitySample.DefaultUI (1)
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
116ModelState.AddModelError(string.Empty, error.Description);
IdentitySample.Mvc (8)
Controllers\AccountController.cs (6)
77ModelState.AddModelError(string.Empty, "Invalid login attempt."); 159ModelState.AddModelError(string.Empty, $"Error from external provider: {remoteError}"); 444ModelState.AddModelError(string.Empty, "Invalid code."); 491ModelState.AddModelError(string.Empty, "Invalid code."); 530ModelState.AddModelError(string.Empty, "Invalid code."); 541ModelState.AddModelError(string.Empty, error.Description);
Controllers\ManageController.cs (2)
201ModelState.AddModelError(string.Empty, "Failed to verify phone number"); 355ModelState.AddModelError(string.Empty, error.Description);
IIS.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
75deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = string.Empty;
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
71parameters.TransformArguments((args, _) => string.Empty);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
573Assert.Equal(body ?? string.Empty, await response.Content.ReadAsStringAsync());
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
IIS.LongTests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
IIS.NewHandler.FunctionalTests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
IIS.NewShim.FunctionalTests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
IIS.ShadowCopy.Tests (2)
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
IISExpress.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
75deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = string.Empty;
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
71parameters.TransformArguments((args, _) => string.Empty);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
573Assert.Equal(body ?? string.Empty, await response.Content.ReadAsStringAsync());
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
illink (18)
ILLink.RoslynAnalyzer (4)
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
23 missingMemberTypesString = string.Empty;
src\tools\illink\src\ILLink.Shared\MessageFormat.cs (2)
16 return string.Empty; 24 return string.Empty;
TrimAnalysis\TrimAnalysisVisitor.cs (1)
167 return 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;
InMemory.FunctionalTests (18)
ChunkedRequestTests.cs (8)
273Assert.Equal(string.Empty, request.GetDeclaredTrailers().ToString()); 274Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString()); 289Assert.Equal(string.Empty, request.GetDeclaredTrailers().ToString()); 290Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString()); 404Assert.Equal(string.Empty, request.GetDeclaredTrailers().ToString()); 405Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString()); 420Assert.Equal(string.Empty, request.GetDeclaredTrailers().ToString()); 421Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString());
Http2\Http2ConnectionTests.cs (2)
5100_pair.Application.Output.Complete(new ConnectionResetException(string.Empty)); 5113_pair.Application.Output.Complete(new ConnectionResetException(string.Empty));
Http3\Http3StreamTests.cs (1)
3110var trailerValue = string.Empty;
RequestTargetProcessingTests.cs (1)
113: string.Empty;
RequestTests.cs (2)
48Assert.Equal(string.Empty, await server.HttpClientSlim.GetStringAsync($"http://localhost:{server.Port}/")); 49Assert.Equal(string.Empty, await server.HttpClientSlim.GetStringAsync($"http://localhost:{server.Port}/"));
ResponseTests.cs (1)
1722var expectedResponse = string.Empty;
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
186name = name.Replace("_", string.Empty);
src\Servers\Kestrel\shared\test\StringExtensions.cs (1)
14: string.Empty;
TestTransport\InMemoryConnection.cs (1)
23TransportConnection.Input.Complete(new ConnectionResetException(string.Empty));
installer.tasks (4)
GenerateFileVersionProps.cs (2)
142var assemblyVersion = versions.AssemblyVersion?.ToString() ?? String.Empty; 143var fileVersion = versions.FileVersion?.ToString() ?? String.Empty;
GenerateTestSharedFrameworkDepsFile.cs (2)
67runtimeAssemblyGroups: new[] { new RuntimeAssetGroup(string.Empty, managedFileNames.Select(f => $"runtimes/{rid}/lib/{tfm}/{f}")) }, 68nativeLibraryGroups: new[] { new RuntimeAssetGroup(string.Empty, nativeFileNames.Select(f => $"runtimes/{rid}/native/{f}")) },
Interop.FunctionalTests (9)
H2SpecCommands.cs (9)
105var groupName = string.Empty; // http2, generic, or hpack 106var sectionId = string.Empty; // 3 or 3.5 108var line = string.Empty; 175section = string.Empty; 186section = string.Empty; 197testNumber = string.Empty; 198description = string.Empty; 210testNumber = string.Empty; 211description = string.Empty;
InteropWebsite (1)
TestServiceImpl.cs (1)
142throw new RpcException(new Status(StatusCode.InvalidArgument, string.Empty));
IOperationGenerator (3)
IOperationClassWriter.cs (3)
451writeProperty(property, propExtensibility: string.Empty); 526var typeParameterString = hasType ? "ITypeSymbol? type, " : string.Empty; 527var constantValueString = hasConstantValue ? "ConstantValue? constantValue, " : string.Empty;
Metrics (4)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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;
Metrics.Legacy (4)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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;
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, 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.Arcade.Test.Common (2)
MockEngine.cs (2)
65_output?.WriteLine(e.Message ?? string.Empty); 72_output?.WriteLine($"telemetry {eventName}: {properties.Aggregate(string.Empty, (sum, piece) => $"{sum}, {piece.Key} = {piece.Value}")}");
Microsoft.AspNetCore.Antiforgery (8)
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; 49_username = value ?? string.Empty;
Internal\DefaultAntiforgeryAdditionalDataProvider.cs (1)
16return string.Empty;
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
139var currentUsername = string.Empty; 148currentUsername = authenticatedIdentity.Name ?? string.Empty;
Microsoft.AspNetCore.Antiforgery.Test (5)
DefaultAntiforgeryTokenGeneratorTest.cs (3)
475Username = String.Empty, 512Username = String.Empty, 616get { return String.Empty; }
DefaultAntiforgeryTokenStoreTest.cs (1)
37var httpContext = GetHttpContext(_cookieName, string.Empty);
DefaultClaimUidExtractorTest.cs (1)
58identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, 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.Analyzers.Test (4)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (2)
131spanStartStack.Push((matchIndexInOutput, string.Empty)); 214var builder = GetOrAdd(dictionary, string.Empty, _ => new List<TextSpan>());
RouteEmbeddedLanguage\RoutePatternParserTests_ConformanceTests.cs (1)
845var qualifier = string.Join(string.Empty, routeParameter.Policies);
Verifiers\CSharpAnalyzerVerifier.cs (1)
106static string TrimAssemblyExtension(string fullPath) => fullPath.Replace(".dll", string.Empty);
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)
83var authenticationType = identity.AuthenticationType ?? string.Empty; 136writer.Write(property.Key ?? string.Empty); 137writer.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\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
128return string.Join(string.Empty, chunks); 155responseCookies.Append(key, string.Empty, options); 159var templateLength = options.CreateCookieHeader(key, string.Empty).ToString().Length; 297keyValuePairs[0] = KeyValuePair.Create(key, string.Empty); 301keyValuePairs[i] = KeyValuePair.Create(string.Concat(key, "C", i.ToString(CultureInfo.InvariantCulture)), string.Empty); 327keyValuePairs.Add(KeyValuePair.Create(subkey, string.Empty));
Microsoft.AspNetCore.Authentication.Core.Test (4)
AuthenticationPropertiesTests.cs (4)
97props.SetString("bar", string.Empty); 98Assert.Equal(string.Empty, props.GetString("bar")); 99Assert.Equal(string.Empty, props.Items["bar"]); 173Assert.Equal(string.Empty, props.Items.First().Value);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
41public TextReader In { get; set; } = new StringReader(string.Empty);
UserJwtsTestFixture.cs (1)
67var prop = hasSecret ? $"<UserSecretsId>{TestSecretsId}</UserSecretsId>" : string.Empty;
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
229IssuerAddress = _configuration?.EndSessionEndpoint ?? string.Empty, 402IssuerAddress = _configuration?.AuthorizationEndpoint ?? string.Empty,
Microsoft.AspNetCore.Authentication.Test (15)
FacebookTests.cs (1)
315var finalUserInfoEndpoint = string.Empty;
JwtBearerTests.cs (5)
581Assert.Equal(string.Empty, response.ResponseText); 653Assert.Equal(string.Empty, response.ResponseText); 725Assert.Equal(string.Empty, response.ResponseText); 786Assert.Equal(string.Empty, response.ResponseText); 909var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty));
JwtBearerTests_Handler.cs (5)
543Assert.Equal(string.Empty, response.ResponseText); 611Assert.Equal(string.Empty, response.ResponseText); 677Assert.Equal(string.Empty, response.ResponseText); 734Assert.Equal(string.Empty, response.ResponseText); 854var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, string.Empty));
OpenIdConnect\OpenIdConnectChallengeTests.cs (1)
204Assert.Equal(userState ?? string.Empty, actualProperties.Items[OpenIdConnectDefaults.UserstatePropertiesKey]);
TicketSerializerTests.cs (1)
121Assert.Equal(string.Empty, property2);
TwitterTests.cs (2)
453var finalVerifyCredentialsEndpoint = string.Empty; 454var finalAuthorizationParameter = string.Empty;
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
350string.IsNullOrEmpty(tokenSecret) ? string.Empty : Uri.EscapeDataString(tokenSecret)));
Microsoft.AspNetCore.Authentication.WsFederation (2)
WsFederationHandler.cs (2)
100IssuerAddress = _configuration.TokenEndpoint ?? string.Empty, 427IssuerAddress = _configuration.TokenEndpoint ?? string.Empty,
Microsoft.AspNetCore.Authorization (2)
ClaimsAuthorizationRequirement.cs (1)
91? string.Empty
src\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
Microsoft.AspNetCore.Components (17)
BindConverter.cs (2)
1817builder.Append(JsonEncodedText.Encode(elementFormatter(value[0], culture)?.ToString() ?? string.Empty).Value); 1823builder.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 (2)
84_entries.AppendMarkup(sequence, markupContent ?? string.Empty); 95_entries.AppendText(sequence, textContent ?? string.Empty);
src\Http\Routing\src\Patterns\RouteParameterParser.cs (2)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>()); 52var parameterName = string.Empty;
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
499var found = RouteValueEqualityComparer.Default.Equals(string.Empty, kvp.Value);
src\Http\Routing\src\Patterns\RoutePatternParser.cs (1)
205context.Error = Resources.FormatTemplateRoute_InvalidParameterName(string.Empty);
src\Http\Routing\src\Patterns\RoutePatternPathSegment.cs (1)
49return string.Join(string.Empty, parts.Select(p => p.DebuggerToString()));
src\Http\Routing\src\RouteValueEqualityComparer.cs (1)
52return StringComparer.OrdinalIgnoreCase.GetHashCode(string.Empty);
src\Http\Routing\src\Template\RoutePrecedence.cs (1)
267!RouteValueEqualityComparer.Default.Equals(requiredValue, string.Empty))
Microsoft.AspNetCore.Components.Endpoints (4)
Builder\ResourcePreloadCollection.cs (2)
31group = property.Value ?? string.Empty; 52_storage[group.Key ?? string.Empty] = group.Value.OrderBy(h => h.Order).Select(h => h.Value).ToArray();
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
40_ssrFramingCommentMarkup = string.Empty;
Rendering\SSRRenderModeBoundary.cs (1)
197var formattedComponentKey = (componentKey as IFormattable)?.ToString(null, CultureInfo.InvariantCulture) ?? string.Empty;
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
Binding\PrefixResolverTests.cs (2)
28var result = prefixResolver.HasPrefix(string.Empty.AsMemory()); 42var result = prefixResolver.HasPrefix(string.Empty.AsMemory());
Buffering\BufferedTextWriterTest.cs (1)
76public string FlushedOutput { get; private set; } = string.Empty;
Buffering\TextChunkTest.cs (4)
17await chunk.WriteToAsync(_writer, string.Empty, ref _tempBuffer); 25await chunk.WriteToAsync(_writer, string.Empty, ref _tempBuffer); 46await new TextChunk(123).WriteToAsync(_writer, string.Empty, ref _tempBuffer); 47await new TextChunk(456).WriteToAsync(_writer, string.Empty, ref _tempBuffer);
Builder\TestFileProvider\TestFileProvider.cs (1)
18public TestFileProvider() : this(string.Empty)
FormMapping\Converters\NullableConverterTests.cs (3)
21var returnValue = nullableConverter.TryConvertValue(ref reader, string.Empty, out var result); 87{ new FormKey(prefixName.AsMemory()), (StringValues)string.Empty } 160var returnValue = nullableConverter.TryConvertValue(ref reader, string.Empty, out var result);
Microsoft.AspNetCore.Components.Forms (1)
EditContextDataAnnotationsExtensions.cs (1)
136_messages.Add(new FieldIdentifier(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!);
Microsoft.AspNetCore.Components.Forms.Tests (7)
FieldIdentifierTest.cs (4)
37var fieldIdentifier = new FieldIdentifier(new object(), string.Empty); 38Assert.Equal(string.Empty, fieldIdentifier.FieldName); 83var fieldIdentifier1 = new FieldIdentifier(model, fieldName: string.Empty); 84var fieldIdentifier2 = new FieldIdentifier(model, fieldName: string.Empty);
ReverseStringBuilderTest.cs (3)
19Assert.Equal(string.Empty, result); 33Assert.Equal(string.Empty, result); 140var expected = string.Empty;
Microsoft.AspNetCore.Components.QuickGrid (1)
QuickGrid.razor.cs (1)
421return AttributeUtilities.CombineClassNames(AdditionalAttributes, gridClass) ?? string.Empty;
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
155WriteString(boolValue ? string.Empty : null, allowDeduplication: true);
Microsoft.AspNetCore.Components.Tests (13)
EventCallbackFactoryBinderExtensionsTest.cs (1)
40await binder.InvokeAsync(new ChangeEventArgs() { Value = string.Empty, });
NavigationManagerTest.cs (1)
206[string.Empty] = "value2",
ParameterViewTest.Assignment.cs (1)
665get => string.Empty;
Rendering\RenderTreeBuilderTest.cs (7)
41frame => AssertFrame.Text(frame, string.Empty), 54builder.AddMarkupContent(2, string.Empty); 62frame => AssertFrame.Markup(frame, string.Empty)); 82frame => AssertFrame.Markup(frame, string.Empty)); 104frame => AssertFrame.Markup(frame, string.Empty)); 119frame => AssertFrame.Markup(frame, string.Empty)); 137frame => AssertFrame.Text(frame, string.Empty));
Routing\QueryParameterValueSupplierTest.cs (3)
253Assert.Equal(string.Empty, _supplier.GetQueryParameterValue(typeof(string), "StringVal")); 266Assert.Equal(new[] { "a", string.Empty, string.Empty, "b" }, _supplier.GetQueryParameterValue(typeof(string[]), "StringVals"));
Microsoft.AspNetCore.Components.Web (11)
Forms\InputBase.cs (4)
192return AttributeUtilities.CombineClassNames(AdditionalAttributes, fieldClass) ?? string.Empty; 205return Convert.ToString(nameAttributeValue, CultureInfo.InvariantCulture) ?? string.Empty; 216return _formattedValueExpression ?? string.Empty; 219return string.Empty;
Forms\InputDate.cs (2)
40[Parameter] public string ParsingErrorMessage { get; set; } = string.Empty; 106_ => 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)
66CurrentEditContext.GetValidationMessages(new FieldIdentifier(Model, string.Empty));
HtmlRendering\HtmlRootComponent.cs (1)
36return string.Empty;
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
21string.Empty,
Microsoft.AspNetCore.Components.Web.Tests (3)
Forms\Mapping\SupplyParameterFromFormTest.cs (2)
89return IncomingScopeQualifiedFormName == (formName ?? string.Empty); 93return IncomingScopeQualifiedFormName == $"[{mappingScopeName}]{formName ?? string.Empty}";
HtmlRendering\HtmlRendererTest.cs (1)
1209=> AssertHtmlContentEquals(string.Join(string.Empty, expected), actual);
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\WebAssemblyConsoleLogger.cs (1)
24: this(string.Empty, (WebAssemblyJSRuntime)jsRuntime) // Cast for DI
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (1)
317? string.Empty
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
41if (requestPath == string.Empty)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
TestInternalJSImportMethods.cs (4)
40=> string.Empty; 43=> string.Empty; 46=> string.Empty; 52=> string.Empty;
Microsoft.AspNetCore.Components.WebView (2)
src\Components\Shared\src\RenderBatchWriter.cs (1)
155WriteString(boolValue ? string.Empty : null, allowDeduplication: true);
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
290public string PhysicalPath => _source.PhysicalPath ?? string.Empty;
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
16 return string.Empty;
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindow.cs (1)
54_pathBase = (pathBase ?? 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.CookiePolicy.Test (6)
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.Cors (2)
Infrastructure\CorsPolicyExtensions.cs (1)
32return new Uri(origin.Replace(_WildcardSubdomain, string.Empty), UriKind.Absolute);
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.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
Microsoft.AspNetCore.Diagnostics (7)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
319Function = 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\Shared\Diagnostics\BaseView.cs (1)
289return string.Empty;
src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
118var prefix = string.Empty;
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
src\Shared\Diagnostics\BaseView.cs (1)
289return string.Empty;
src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (1)
HealthCheckMiddlewareTests.cs (1)
367Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
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 (6)
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.Diagnostics.Tests (14)
ExceptionHandlerTest.cs (14)
61var response = await client.GetAsync(string.Empty); 116var response = await client.GetAsync(string.Empty); 182var response = await client.GetAsync(string.Empty); 238var response = await client.GetAsync(string.Empty); 293var response = await client.GetAsync(string.Empty); 365var response = await client.GetAsync(string.Empty); 435var response = await client.GetAsync(string.Empty); 492await server.CreateClient().GetAsync(string.Empty); 601Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 650Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 820var response = await client.GetAsync(string.Empty); 874var response = await client.GetAsync(string.Empty); 926var response = await client.GetAsync(string.Empty); 984var response = await client.GetAsync(string.Empty);
Microsoft.AspNetCore.FunctionalTests (14)
WebApplicationFunctionalTests.cs (6)
38return string.Empty; 45return string.Empty; 81return string.Empty; 88return string.Empty; 135return string.Empty; 164return string.Empty;
WebHostFunctionalTests.cs (8)
18await ExecuteStartOrStartWithTest(deploymentResult => deploymentResult.HttpClient.GetAsync(string.Empty), "StartRequestDelegateUrlApp"); 30await ExecuteStartOrStartWithTest(deploymentResult => deploymentResult.HttpClient.GetAsync(string.Empty), "StartWithIApplicationBuilderUrlApp"); 39var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), logger, deploymentResult.HostShutdownToken, retryCount: 5); 64var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), logger, deploymentResult.HostShutdownToken, retryCount: 5); 91var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), logger, deploymentResult.HostShutdownToken); 130return string.Empty; 137return string.Empty; 165var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), Logger, deploymentResult.HostShutdownToken, retryCount: 5);
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Internal\Json\JsonConverterHelper.cs (1)
197return (string)value == string.Empty;
Internal\JsonTranscodingRouteAdapter.cs (2)
91var catchAllSuffix = string.Empty; 122var constraint = suffix.Length > 0 ? $":regex({Regex.Escape(suffix)}$)" : string.Empty;
Internal\JsonTranscodingServerCallContext.cs (1)
64protected override string HostCore => HttpContext.Request.Host.Value ?? string.Empty;
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
202var identifier = string.Empty;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
615var result = string.Empty;
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ServerStreamingServerCallHandlerTests.cs (1)
82return new RouteParameter(descriptorPath, new HttpRouteVariable(), string.Empty);
UnaryServerCallHandlerTests.cs (1)
40return new RouteParameter(descriptorPath, new HttpRouteVariable(), string.Empty);
Microsoft.AspNetCore.Grpc.Swagger (4)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
120DefaultValue = string.Empty 162DefaultValue = string.Empty
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
202var identifier = string.Empty;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
615var result = string.Empty;
Microsoft.AspNetCore.HeaderParsing.Tests (7)
HostHeaderValueTests.cs (1)
84Assert.False(HostHeaderValue.TryParse(string.Empty, out var _));
ParserTests.cs (6)
53var sv = new StringValues(string.Empty); 101var sv = new StringValues(string.Empty); 194var sv = new StringValues(string.Empty); 214var sv = new StringValues(string.Empty); 233var sv = new StringValues(string.Empty); 264var sv = new StringValues(string.Empty);
Microsoft.AspNetCore.Hosting (10)
GenericHost\GenericWebHostService.cs (2)
79var httpPorts = Configuration[WebHostDefaults.HttpPortsKey] ?? string.Empty; 80var httpsPorts = Configuration[WebHostDefaults.HttpsPortsKey] ?? string.Empty;
Internal\WebHostOptions.cs (1)
20ApplicationName = environment?.ApplicationName ?? GetConfig(WebHostDefaults.ApplicationKey) ?? Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty;
src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
58var location = string.Empty;
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
25var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName!).Version?.ToString() ?? string.Empty;
src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
118var prefix = string.Empty;
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
290public string PhysicalPath => _source.PhysicalPath ?? string.Empty;
WebHostExtensions.cs (2)
50using (var lifetime = new WebHostLifetime(cts, done, shutdownMessage: string.Empty)) 92var shutdownMessage = host.Services.GetRequiredService<WebHostOptions>().SuppressStatusMessages ? string.Empty : "Application is shutting down...";
Microsoft.AspNetCore.Hosting.FunctionalTests (2)
ShutdownTests.cs (1)
69var output = string.Empty;
WebHostBuilderTests.cs (1)
40var output = string.Empty;
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\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 (21)
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\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
114sb.Append(CultureInfo.InvariantCulture, $"{scheme}://{host}{request.PathBase.Value}{request.Path.Value}{(includeQueryString ? request.QueryString.Value : string.Empty)}");
Validation\ValidatableTypeInfo.cs (1)
119context.AddOrExtendValidationError(string.Empty, validationResult.ErrorMessage);
Validation\ValidateContext.cs (1)
23public string CurrentValidationPath { get; set; } = string.Empty;
Microsoft.AspNetCore.Http.Abstractions.Tests (21)
HostStringTest.cs (5)
101Assert.Equal(default(HostString), new HostString(string.Empty)); 102Assert.Equal(default(HostString), new HostString(string.Empty)); 104Assert.True(new HostString(string.Empty) == default(HostString)); 105Assert.True(default(HostString) == new HostString(string.Empty)); 125Assert.NotEqual(hostString, new HostString(string.Empty));
MapPathMiddlewareTests.cs (9)
190HttpContext context = CreateRequest(string.Empty, "/route1"); 193context = CreateRequest(string.Empty, "/route1/subroute1"); 196Assert.Equal(string.Empty, context.Request.PathBase.Value); 199context = CreateRequest(string.Empty, "/route2"); 202Assert.Equal(string.Empty, context.Request.PathBase.Value); 205context = CreateRequest(string.Empty, "/route2/subroute2"); 208Assert.Equal(string.Empty, context.Request.PathBase.Value); 211context = CreateRequest(string.Empty, "/route2/subroute2/subsub2"); 214Assert.Equal(string.Empty, context.Request.PathBase.Value);
QueryStringTests.cs (2)
29query = new QueryString(string.Empty); 31Assert.Equal(string.Empty, query.Value);
Validation\ValidatableTypeInfoTests.cs (5)
520Assert.Equal(string.Empty, globalError.Key); 656public string Name { get; set; } = string.Empty; 663public string SKU { get; set; } = string.Empty; 668public string? Password { get; set; } = string.Empty; 683public string Name { get; set; } = string.Empty;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
105var logScope = new ConnectionLogScope(connectionId: string.Empty);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\ConnectionLogScope.cs (1)
66return _cachedToString ?? string.Empty;
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (1)
1781Assert.Equal(string.Empty, GetContentAsString(context1.Response.Body));
ServerSentEventsTests.cs (4)
28var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory); 72var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory); 94var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory); 120var sse = new ServerSentEventsServerTransport(connection.Application.Input, connectionId: string.Empty, LoggerFactory);
TestWebSocketConnectionFeature.cs (1)
226CloseStatusDescription = 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.Extensions.Tests (51)
ProblemDetailsServiceTest.cs (1)
110Assert.Equal(string.Empty, Encoding.UTF8.GetString(stream.ToArray()));
QueryBuilderTests.cs (3)
14Assert.Equal(string.Empty, builder.ToString()); 76new KeyValuePair<string, StringValues>("key1", new StringValues(new [] { "value1", string.Empty, "value3" })), 77new KeyValuePair<string, StringValues>("key2", string.Empty),
RequestDelegateFactoryTests.cs (4)
2391Assert.Equal(String.Empty, decodedResponseBody); 2428Assert.Equal(string.Empty, decodedResponseBody); 3541builder.Metadata.Add(new RoutePatternMetadata { RoutePattern = reb.RoutePattern?.RawText ?? string.Empty }); 3564public string RoutePattern { get; init; } = String.Empty;
RequestDelegateFactoryTests.FormMapping.cs (1)
320public string Description { get; set; } = String.Empty;
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
412message = string.Empty;
RequestDelegateGenerator\RequestDelegateCreationTests.cs (6)
190new object[] { fromHeaderRequiredSource, null, 400, string.Empty }, 192new object[] { fromHeaderWithNameRequiredSource, null, 400, string.Empty }, 194new object[] { fromHeaderWithNullNameRequiredSource, null, 400, string.Empty }, 196new object[] { fromHeaderNullableSource, null, 200, string.Empty }, 198new object[] { fromHeaderDefaultValueSource, null, 200, string.Empty }, 279await VerifyResponseBodyAsync(httpContext, hasService ? "Produced from service!" : string.Empty);
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (2)
39await VerifyResponseBodyAsync(httpContext, string.Empty, StatusCodes.Status400BadRequest); 529await VerifyResponseBodyAsync(httpContext, string.Empty);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (12)
53new object[] { fromBodyRequiredSource, null, 400, string.Empty }, 56new object[] { fromBodyEmptyBodyBehaviorSource, null, 200, string.Empty }, 58new object[] { fromBodyAllowEmptySource, null, 200, string.Empty }, 60new object[] { fromBodyNullableSource, null, 200, string.Empty }, 62new object[] { fromBodyDefaultValueSource, null, 200, string.Empty }, 64new object[] { fromBodyRequiredWithFilterSource, null, 400, string.Empty }, 66new object[] { fromBodyEmptyBehaviorWithFilterSource, null, 200, string.Empty }, 68new object[] { fromBodyAllowEmptyWithFilterSource, null, 200, string.Empty }, 70new object[] { fromBodyNullableWithFilterSource, null, 200, string.Empty }, 72new object[] { fromBodyDefaultValueSource, null, 200, string.Empty }, 110await VerifyResponseBodyAsync(httpContext, string.Empty, expectedStatusCode: 400); 153await VerifyResponseBodyAsync(httpContext, string.Empty);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (3)
34new object[] { implicitRequiredServiceSource, false, null, false, 400, string.Empty }, 36new object[] { implicitRequiredJsonBodySource, true, null, false, 400, string.Empty }, 38new object[] { implicitRequiredJsonBodyViaAsParametersSource, true, null, false, 400, string.Empty },
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (2)
253await VerifyResponseBodyAsync(httpContext, string.Empty); 257await VerifyResponseBodyAsync(httpContext, string.Empty);
RequestDelegateGenerator\RequestDelegateCreationTests.RouteParameter.cs (11)
30new object[] { fromRouteRequiredSource, null, 400, string.Empty }, 32new object[] { fromRouteWithNameRequiredSource, null, 400, string.Empty }, 34new object[] { fromRouteWithNullNameRequiredSource, null, 400, string.Empty }, 36new object[] { fromRouteNullableSource, null, 200, string.Empty }, 38new object[] { fromRouteDefaultValueSource, null, 200, string.Empty }, 86new object[] { implicitRouteRequiredSource, false, false, 400, string.Empty }, 88new object[] { implicitQueryRequiredSource, false, false, 400, string.Empty }, 91new object[] { implicitRouteNullableSource, false, false, 200, string.Empty }, 93new object[] { implicitQueryNullableSource, false, false, 200, string.Empty }, 96new object[] { implicitRouteDefaultValueSource, false, false, 200, string.Empty }, 98new object[] { implicitQueryDefaultValueSource, false, false, 200, string.Empty },
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
214var source = string.Empty;
RequestDelegateGenerator\SharedTypes.cs (2)
940public string RoutePattern { get; init; } = String.Empty; 952builder.Metadata.Add(new RoutePatternMetadata { RoutePattern = reb.RoutePattern?.RawText ?? string.Empty });
ResponseExtensionTests.cs (1)
21Assert.Equal(string.Empty, context.Response.Headers["custom"].ToString());
UriHelperTests.cs (1)
28var result = UriHelper.BuildAbsolute("http", new HostString(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.Microbenchmarks (3)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
412message = string.Empty;
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
940public string RoutePattern { get; init; } = String.Empty; 952builder.Metadata.Add(new RoutePatternMetadata { RoutePattern = reb.RoutePattern?.RawText ?? string.Empty });
Microsoft.AspNetCore.Http.RequestDelegateGenerator (11)
RequestDelegateGenerator.cs (6)
108codeWriter.WriteLineNoTabs(string.Empty); 126codeWriter.WriteLineNoTabs(string.Empty); 128codeWriter.WriteLineNoTabs(string.Empty); 130codeWriter.WriteLineNoTabs(string.Empty); 289helperMethods: helperMethods ?? string.Empty, 290helperTypes: helperTypes ?? string.Empty,
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (5)
28var parameterTypeList = string.Join(", ", endpoint.Parameters.Select((p, i) => $"{EmitUnwrappedParameterType(p)} arg{i}{(p.HasDefaultValue ? $"= {p.DefaultValue}" : string.Empty)}")); 172var argumentList = endpoint.Parameters.Length == 0 ? string.Empty : $", {endpoint.EmitArgumentList()}"; 178: string.Empty; 445return string.Empty; 471return string.Empty;
Microsoft.AspNetCore.Http.Results (2)
HttpResultsHelper.cs (1)
102fileDownloadName ??= string.Empty;
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.Http.Results.Tests (11)
ResultsTests.cs (4)
686var result = Results.Created(string.Empty, null) as Created; 723var result = Results.Created(string.Empty, value) as Created<object>; 1083Assert.Throws<ArgumentException>("localUrl", () => Results.LocalRedirect(string.Empty)); 1466Assert.Throws<ArgumentException>("url", () => Results.Redirect(string.Empty));
TypedResultsTests.cs (7)
360Assert.Throws<ArgumentException>("path", () => TypedResults.PhysicalFile(string.Empty)); 372Assert.Throws<ArgumentException>("path", () => TypedResults.VirtualFile(string.Empty)); 650var result = TypedResults.Created(string.Empty); 676var result = TypedResults.Created(string.Empty, default(object)); 905var ex = Assert.Throws<InvalidOperationException>(() => TypedResults.Json(string.Empty, context: ObjectJsonContext.Default)); 927Assert.Throws<ArgumentException>("localUrl", () => TypedResults.LocalRedirect(string.Empty)); 1248Assert.Throws<ArgumentException>("url", () => TypedResults.Redirect(string.Empty));
Microsoft.AspNetCore.Http.Tests (5)
Features\QueryFeatureTests.cs (3)
57Assert.Equal(string.Empty, queryCollection[emptyParam]); 131Assert.Equal(string.Empty, queryCollection["key1"].FirstOrDefault()); 132Assert.Equal(string.Empty, queryCollection["key2"].FirstOrDefault());
Internal\DefaultHttpRequestTests.cs (2)
122Assert.Equal(string.Empty, request.Scheme); 139Assert.Equal(string.Empty, requestFeature.QueryString);
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
231value ??= string.Empty;
Microsoft.AspNetCore.HttpLogging.Tests (1)
W3CLoggerTests.cs (1)
103value ??= string.Empty;
Microsoft.AspNetCore.HttpOverrides.Tests (1)
IPNetworkTest.cs (1)
160string.Empty,
Microsoft.AspNetCore.Identity.UI (34)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
222ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (2)
107ModelState.AddModelError(string.Empty, ErrorMessage); 147ModelState.AddModelError(string.Empty, "Invalid login attempt.");
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (3)
124var authenticatorCode = Input.TwoFactorCode.Replace(" ", string.Empty).Replace("-", string.Empty); 143ModelState.AddModelError(string.Empty, "Invalid authenticator code.");
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (2)
107var recoveryCode = Input.RecoveryCode.Replace(" ", string.Empty); 126ModelState.AddModelError(string.Empty, "Invalid recovery code entered.");
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
131ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (1)
100ModelState.AddModelError(string.Empty, "Incorrect password.");
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (2)
131var verificationCode = Input.Code.Replace(" ", string.Empty).Replace("-", string.Empty);
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
119ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
162ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (2)
82ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email."); 96ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email.");
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
128ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
222ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (2)
107ModelState.AddModelError(string.Empty, ErrorMessage); 147ModelState.AddModelError(string.Empty, "Invalid login attempt.");
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (3)
124var authenticatorCode = Input.TwoFactorCode.Replace(" ", string.Empty).Replace("-", string.Empty); 143ModelState.AddModelError(string.Empty, "Invalid authenticator code.");
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (2)
107var recoveryCode = Input.RecoveryCode.Replace(" ", string.Empty); 126ModelState.AddModelError(string.Empty, "Invalid recovery code entered.");
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
131ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (1)
100ModelState.AddModelError(string.Empty, "Incorrect password.");
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (2)
131var verificationCode = Input.Code.Replace(" ", string.Empty).Replace("-", string.Empty);
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
119ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
162ModelState.AddModelError(string.Empty, error.Description);
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (2)
82ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email."); 96ModelState.AddModelError(string.Empty, "Verification email sent. Please check your email.");
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
128ModelState.AddModelError(string.Empty, error.Description);
Microsoft.AspNetCore.InternalTesting (5)
AssemblyTestLog.cs (2)
107normalizedTestName = string.Empty; 108logOutputDirectory = string.Empty;
Logging\XunitLoggerProvider.cs (1)
78messageBuilder.AppendLine(firstLinePrefix + lines.FirstOrDefault() ?? string.Empty);
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
24if (argument is null || argument == string.Empty)
TestFileOutputContext.cs (1)
88return string.Empty;
Microsoft.AspNetCore.InternalTesting.Tests (1)
EnvironmentVariableSkipConditionTest.cs (1)
170return string.Empty;
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
159if (cultureName.Equals(string.Empty))
Microsoft.AspNetCore.Localization.Tests (10)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
51var response = await client.GetAsync(string.Empty); 92var response = await client.GetAsync(string.Empty); 132var response = await client.GetAsync(string.Empty); 178var response = await client.GetAsync(string.Empty);
CookieRequestCultureProviderTest.cs (5)
67var response = await client.GetAsync(string.Empty); 117var response = await client.GetAsync(string.Empty); 164var response = await client.GetAsync(string.Empty); 217var response = await client.GetAsync(string.Empty); 277var response = await client.GetAsync(string.Empty);
RequestLocalizationMiddlewareTest.cs (1)
69var response = await client.GetAsync(string.Empty);
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisBuilder.cs (1)
65var middlewareName = string.Empty; // UseMiddleware doesn't work with null params.
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
45await server.CreateClient().GetAsync(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.Abstractions.Test (10)
ModelBinding\ModelStateDictionaryTest.cs (8)
769var error = Assert.Single(dictionary[string.Empty].Errors); 798var error = Assert.Single(dictionary[string.Empty].Errors); 839var error = Assert.Single(dictionary[string.Empty].Errors); 870var error = Assert.Single(dictionary[string.Empty].Errors); 903var error = Assert.Single(dictionary[string.Empty].Errors); 929var error = Assert.Single(copy[string.Empty].Errors); 1687var invalidException = Assert.Throws<InvalidOperationException>(() => dictionary.SetModelValue(key, string.Empty, string.Empty));
ModelBinding\ValueProviderResultTest.cs (2)
143new ValueProviderResult(new string[] { "Hi", string.Empty }), 154new ValueProviderResult(new string[] { "Hi", string.Empty }),
Microsoft.AspNetCore.Mvc.ApiExplorer (14)
DefaultApiDescriptionProvider.cs (2)
408var currentSegment = string.Empty; 575Visit(context, source, containerName: string.Empty);
EndpointMetadataApiDescriptionProvider.cs (12)
97controllerName = _environment.ApplicationName ?? string.Empty; 203var parameterName = parameter.Name ?? string.Empty; 257var parameterName = parameter.Name ?? string.Empty; 263return (BindingSource.Query, queryAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 267return (BindingSource.Header, headerAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 271return (BindingSource.Body, parameter.Name ?? string.Empty, fromBodyAttribute.AllowEmpty, parameterType); 275return (BindingSource.FormFile, fromFormAttribute.Name ?? parameter.Name ?? string.Empty, false, parameterType); 286return (BindingSource.Services, parameter.Name ?? string.Empty, false, parameterType); 300return (BindingSource.Query, parameter.Name ?? string.Empty, false, displayType); 305return (BindingSource.FormFile, parameter.Name ?? string.Empty, false, parameterType); 312return (BindingSource.Query, parameter.Name ?? string.Empty, false, parameterType); 316return (BindingSource.Body, parameter.Name ?? string.Empty, false, parameterType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
806public string NonNullableStringMember { get; set; } = string.Empty;
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)
70var path = jsonException.Path ?? string.Empty; 85context.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\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\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
29: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length)
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.Mvc.Core.Test (132)
ContentResultTest.cs (1)
150{ string.Empty, "text/plain; charset=utf-8" },
ControllerBaseTest.cs (9)
1676Assert.Equal(string.Empty, result.FileDownloadName); 1694Assert.Equal(string.Empty, result.FileDownloadName); 1718Assert.Equal(string.Empty, result.FileDownloadName); 1782Assert.Equal(string.Empty, result.FileDownloadName); 1806Assert.Equal(string.Empty, result.FileDownloadName); 1875Assert.Equal(string.Empty, result.FileDownloadName); 1904Assert.Equal(string.Empty, result.FileDownloadName); 3091new ModelValidationResult(string.Empty, "Out of range!") 3128new ModelValidationResult(string.Empty, "Out of range!")
Formatters\InputFormatterTest.cs (11)
41modelName: string.Empty, 75modelName: string.Empty, 106modelName: string.Empty, 140modelName: string.Empty, 171modelName: string.Empty, 208modelName: string.Empty, 238modelName: string.Empty, 276modelName: string.Empty, 305modelName: string.Empty, 387string.Empty, 416string.Empty,
Formatters\JsonInputFormatterTestBase.cs (1)
659modelName: modelName ?? string.Empty,
Infrastructure\AsyncEnumerableReaderTest.cs (1)
223yield return string.Empty;
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
210context.SetEndpoint(new Endpoint(null, metadata, string.Empty));
ModelBinding\Binders\BodyModelBinderTests.cs (8)
71Assert.Equal(string.Empty, entry.Key); 276Assert.Equal(string.Empty, entry.Key); 319Assert.Equal(string.Empty, entry.Key); 350Assert.Equal(string.Empty, entry.Key); 390Assert.Equal(string.Empty, entry.Key); 421Assert.Equal(string.Empty, entry.Key); 501Assert.Equal(string.Empty, entry.Key); 557Assert.Equal(string.Empty, entry.Key);
ModelBinding\Binders\ByteArrayModelBinderTests.cs (1)
33Assert.Equal(string.Empty, modelState.Value.RawValue);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (8)
291ModelName = string.Empty, 317Assert.Equal(string.Empty, keyValuePair.Key); 343ModelName = string.Empty, 361Assert.Equal(string.Empty, keyValuePair.Key); 387ModelName = string.Empty, 405Assert.Equal(string.Empty, keyValuePair.Key); 728Assert.Equal(string.Empty, modelError.ErrorMessage); 1352get { return new BindingSource("Special", string.Empty, isGreedy: true, isFromRequest: true); }
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (9)
303ModelName = string.Empty, 351ModelName = string.Empty, 377Assert.Equal(string.Empty, keyValuePair.Key); 403ModelName = string.Empty, 421Assert.Equal(string.Empty, keyValuePair.Key); 447ModelName = string.Empty, 465Assert.Equal(string.Empty, keyValuePair.Key); 872Assert.Equal(string.Empty, modelError.ErrorMessage); 1527get { return new BindingSource("Special", string.Empty, isGreedy: true, isFromRequest: true); }
ModelBinding\Binders\DictionaryModelBinderTest.cs (3)
114{ string.Empty, "[{0}]", dictionaryWithOne }, 115{ string.Empty, "[{0}]", dictionaryWithThree }, 679valueProvider.Add(kvp.Key, string.Empty);
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
57bindingContext.ModelName = string.Empty;
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
118{ "theModelName", string.Empty }
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
67{ "theModelName", string.Empty }
ModelBinding\EnumerableValueProviderTest.cs (5)
36var result = valueProvider.ContainsPrefix(string.Empty); 49var result = valueProvider.ContainsPrefix(string.Empty); 97var result = valueProvider.GetKeysFromPrefix(string.Empty); 240{ string.Empty, "some-value" }, 245var result = valueProvider.GetValue(string.Empty);
ModelBinding\JQueryFormValueProviderFactoryTest.cs (1)
78string.Empty,
ModelBinding\JQueryFormValueProviderTest.cs (2)
39{ string.Empty, "some-value" }, 44var result = valueProvider.GetValue(string.Empty);
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (1)
44string.Empty,
ModelBinding\JQueryQueryStringValueProviderTest.cs (2)
42{ string.Empty, "some-value" }, 47var result = valueProvider.GetValue(string.Empty);
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (1)
781public RecordTypeWithMultipleConstructors(int age) : this(string.Empty, age) { }
ModelBinding\ModelBindingHelperTest.cs (6)
34string.Empty, 139string.Empty, 219string.Empty, 676dictionary.AddModelError(string.Empty, "MyProperty invalid."); 683Assert.Empty(dictionary[string.Empty].Errors); 684Assert.Equal(ModelValidationState.Unvalidated, dictionary[string.Empty].ValidationState);
ModelBinding\ParameterBinderTest.cs (8)
44{ null, null, "parameterName", string.Empty }, 45{ emptyBindingInfo, null, "parameterName", string.Empty }, 48{ null, null, "parameterName", string.Empty }, 130BinderModelName = string.Empty, 134Name = string.Empty, 143Name = string.Empty, 192var expectedKey = string.Empty; 600modelState.AddModelError(string.Empty, "This is also not valid.");
ModelBinding\PrefixContainerTest.cs (3)
16var result = container.ContainsPrefix(string.Empty); 30var result = container.ContainsPrefix(string.Empty); 207var result = container.GetKeysFromPrefix(prefix: string.Empty);
ModelBinding\RouteValueProviderTests.cs (1)
97Assert.Equal(string.Empty, (string)result);
ModelBinding\Validation\DefaultObjectValidatorTests.cs (25)
96AssertKeysEqual(modelState, string.Empty, "parameter"); 228validationState.Add(model, new ValidationStateEntry() { Key = string.Empty }); 231validator.Validate(actionContext, validationState, string.Empty, model); 335validationState.Add(model, new ValidationStateEntry() { Key = string.Empty }); 338validator.Validate(actionContext, validationState, string.Empty, model); 367validationState.Add(model, new ValidationStateEntry() { Key = string.Empty }); 370validator.Validate(actionContext, validationState, string.Empty, model); 740AssertKeysEqual(modelState, string.Empty, "key1", "user.ConfirmPassword", "user.Password"); 742var entry = modelState[string.Empty]; 794validationState.Add(model, new ValidationStateEntry() { Key = string.Empty }); 797validator.Validate(actionContext, validationState, string.Empty, model); 837validationState.Add(model, new ValidationStateEntry() { Key = string.Empty }); 840validator.Validate(actionContext, validationState, string.Empty, model); 1036validationState.Add(model, new ValidationStateEntry() { Key = string.Empty }); 1039validator.Validate(actionContext, validationState, string.Empty, model); 1098validator.Validate(actionContext, validationState, string.Empty, model); 1120validator.Validate(actionContext, validationState, string.Empty, model); 1238validator.Validate(actionContext, validationState, prefix: string.Empty, model); 1279var ex = Assert.Throws<InvalidOperationException>(() => validator.Validate(actionContext, validationState, prefix: string.Empty, model)); 1299validator.Validate(actionContext, validationState, prefix: string.Empty, model); 1328validator.Validate(actionContext, validationState, prefix: string.Empty, model); 1351validator.Validate(actionContext, validationState, prefix: string.Empty, model); 1374validator.Validate(actionContext, validationState, string.Empty, model); 1405validator.Validate(actionContext, validationState, string.Empty, model); 1435validator.Validate(actionContext, validationState, string.Empty, model);
Routing\ActionEndpointFactoryTest.cs (2)
42var route = CreateRoute(routeName: string.Empty, pattern: "{controller}/{action}"); 50Assert.Equal(string.Empty, routeNameMetadata.RouteName);
Routing\UrlHelperBaseTest.cs (2)
47UrlHelperBase.AppendPathAndFragment(builder, httpContext.Request.PathBase, virtualPath, string.Empty); 120appRoot = string.IsNullOrEmpty(appRoot) ? string.Empty : appRoot;
Routing\UrlHelperTest.cs (1)
107string.Empty,
Routing\UrlHelperTestBase.cs (16)
146var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 161var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 175var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 192var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 210var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 229var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 246var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 265var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 280var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 298var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 317var helper = CreateUrlHelper(appRoot: string.Empty, host: "www.mysite.com", protocol: null); 363host: string.Empty); 385protocol: string.Empty, 862string.Empty, 1125appRoot = string.IsNullOrEmpty(appRoot) ? string.Empty : appRoot; 1147appRoot = string.IsNullOrEmpty(appRoot) ? string.Empty : appRoot;
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
LinkBuilder.cs (1)
16{ "link", string.Empty }
SimpleValueProvider.cs (1)
54var stringValue = rawValue as string ?? Convert.ToString(rawValue, _culture) ?? string.Empty;
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsAuthorizationFilterTest.cs (1)
125PolicyName = string.Empty
CorsHttpMethodActionConstraintTest.cs (1)
93if (accessControlMethod != string.Empty)
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.DataAnnotations.Test (76)
DataAnnotationsMetadataProviderTest.cs (67)
217Name = string.Empty 228Assert.Equal(string.Empty, context.DisplayMetadata.DisplayName()); 820new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Zero", string.Empty), "0"), 821new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), 822new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "dos value"), "2"), 823new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "tres value"), "3"), 824new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), 873new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Zero", string.Empty), "0"), 874new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), 875new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "dos"), "2"), 876new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "tres"), "3"), 877new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), 885new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName("Zero", string.Empty), "0"), 886new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), 887new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "dos"), "2"), 888new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "tres"), "3"), 889new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), 899new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Zero)), "0"), 900new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.None)), "0"), 901new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.One)), "1"), 902new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Two)), "2"), 903new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Duece)), "2"), 904new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Three)), "3"), 905new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.MoreThanTwo)), "3"), 912new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Zero)), "0"), 913new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.None)), "0"), 914new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.One)), "1"), 915new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Two)), "2"), 916new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Duece)), "2"), 917new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Three)), "3"), 918new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.MoreThanTwo)), "3"), 925new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"), 926new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"), 927new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"), 928new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"), 929new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), 936new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"), 937new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"), 938new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"), 939new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"), 940new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), 947new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"), 948new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"), 949new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"), 950new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"), 951new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), 952new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), 959new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"), 960new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"), 961new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"), 962new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"), 963new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), 964new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), 1000new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.Three)), "2"), 1001new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.Two)), "1"), 1002new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.One)), "0"), 1003new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayOrder.Null)), "3"), 1745using (new CultureReplacer(string.Empty, string.Empty)) 1754using (new CultureReplacer(string.Empty, string.Empty)) 1930public string Property1 { get; set; } = string.Empty; 1935public string Property2 { get; set; } = string.Empty; 1940public string? Property2 { get; set; } = string.Empty; 1955public string Property2 { get; set; } = string.Empty; 1960public new string Property1 { get; set; } = string.Empty; 1970public override string Property { get; set; } = string.Empty;
DataAnnotationsModelValidatorTest.cs (9)
65new ModelValidationResult(memberName: string.Empty, message: string.Empty), 272new[] { new ModelValidationResult(memberName: string.Empty, message: errorMessage) } }, 276new[] { new ModelValidationResult(memberName: string.Empty, message: errorMessage) } 281new[] { new ModelValidationResult(memberName: string.Empty, message: errorMessage) } 285new[] { string.Empty }, 286new[] { new ModelValidationResult(memberName: string.Empty, message: errorMessage) } 292new[] { new ModelValidationResult(memberName: string.Empty, message: errorMessage) } 481string.Empty,
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.Formatters.Xml.Test (10)
SerializableErrorWrapperTests.cs (2)
75Assert.Equal(string.Empty, kvp.Key); 100modelState.AddModelError(string.Empty, "Test error 0");
XmlDataContractSerializerInputFormatterTest.cs (4)
79modelName: string.Empty, 517modelName: string.Empty, 581modelName: string.Empty, 728modelName: string.Empty,
XmlSerializerInputFormatterTest.cs (4)
258modelName: string.Empty, 538modelName: string.Empty, 602modelName: string.Empty, 664modelName: string.Empty,
Microsoft.AspNetCore.Mvc.FunctionalTests (36)
AntiforgeryMiddlewareTest.cs (2)
248public string Name { get; set; } = string.Empty; 286public override string Name { get; } = string.Empty;
AntiforgeryTestHelper.cs (1)
12=> RetrieveAntiforgeryToken(htmlContent, actionUrl: string.Empty);
ApiBehaviorTest.cs (1)
207var response = await Client.PostAsync(url, new StringContent(string.Empty));
ApiExplorerTest.cs (6)
1333new StringContent(string.Empty)); 1364new StringContent(string.Empty)); 1399new StringContent(string.Empty)); 1434new StringContent(string.Empty)); 1515new StringContent(string.Empty)); 1577var testGroupName = nameof(ApiExplorerWithTypedResultController).Replace("Controller", string.Empty);
ControllerFromServicesTests.cs (2)
81new StringContent(string.Empty)); 97new StringContent(string.Empty));
CorsTestsBase.cs (1)
147Assert.Equal(string.Empty, content);
FileResultTests.cs (4)
294Assert.Equal(string.Empty, body); 513Assert.Equal(string.Empty, body); 719Assert.Equal(string.Empty, body); 923Assert.Equal(string.Empty, body);
HtmlGenerationTest.cs (11)
327new KeyValuePair<string,string>("Number", string.Empty), 328new KeyValuePair<string,string>("Name", string.Empty), 329new KeyValuePair<string,string>("Email", string.Empty), 330new KeyValuePair<string,string>("PhoneNumber", string.Empty), 331new KeyValuePair<string,string>("Password", string.Empty) 379new KeyValuePair<string,string>("Number", string.Empty), 380new KeyValuePair<string,string>("Name", string.Empty), 381new KeyValuePair<string,string>("Email", string.Empty), 382new KeyValuePair<string,string>("PhoneNumber", string.Empty), 383new KeyValuePair<string,string>("Password", string.Empty), 384new KeyValuePair<string,string>("Address", string.Empty),
InputFormatterTests.cs (2)
135var response = await Client.PostAsJsonAsync("PolymorphicBinding/InputFormatted", string.Empty); 167var response = await Client.PostAsJsonAsync("PolymorphicPropertyBinding/Action", string.Empty);
InputParentValidationTests.cs (1)
97result.Add(string.Empty, new string[] { "The model is not valid." });
KeyedServicesTests.cs (1)
86Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
RazorBuildTest.cs (1)
186var response = await Client.PostAsync($"/UpdateableViews/UpdateRazorPages", new StringContent(string.Empty));
RazorRuntimeCompilationHostingStartupTest.cs (1)
131var response = await Client.PostAsync($"/UpdateableViews/UpdateRazorPages", new StringContent(string.Empty));
TempDataInCookiesTest.cs (2)
100Assert.Equal(string.Empty, setCookieHeaderValue.Value.AsSpan()); 156Assert.Equal(string.Empty, setCookieHeader.Value.AsSpan());
Microsoft.AspNetCore.Mvc.IntegrationTests (45)
ActionParametersIntegrationTest.cs (1)
836var entry = modelState[string.Empty];
BodyValidationIntegrationTests.cs (6)
371request.Body = new MemoryStream(Encoding.UTF8.GetBytes(string.Empty)); 413request.Body = new MemoryStream(Encoding.UTF8.GetBytes(string.Empty)); 447request.Body = new MemoryStream(Encoding.UTF8.GetBytes(string.Empty)); 620request.Body = new MemoryStream(Encoding.UTF8.GetBytes(string.Empty)); 665request.Body = new MemoryStream(Encoding.UTF8.GetBytes(string.Empty)); 898var errorMessage = string.Empty;
ByteArrayModelBinderIntegrationTest.cs (1)
31var prefix = fallBackScenario ? string.Empty : "Parameter1";
CollectionModelBinderIntegrationTest.cs (5)
848{ string.Empty, new[] { "hello", "world" } }, 864{ string.Empty, new[] { "hello", "world" } }, 880{ string.Empty, new[] { "hello", "world" } }, 896{ string.Empty, new[] { "hello", "world" } }, 912{ string.Empty, new[] { "hello", "world" } },
ComplexRecordIntegrationTest.cs (3)
2566Assert.Equal(string.Empty, entry.AttemptedValue); 2567Assert.Equal(string.Empty, entry.RawValue); 2617Assert.Equal(string.Empty, entry.Value.AttemptedValue);
ComplexTypeIntegrationTestBase.cs (3)
2739Assert.Equal(string.Empty, entry.AttemptedValue); 2740Assert.Equal(string.Empty, entry.RawValue); 2790Assert.Equal(string.Empty, entry.Value.AttemptedValue);
ModelPrefixSelectionIntegrationTest.cs (2)
177{ "parameter", string.Empty }, 223{ "parameter", string.Empty },
SimpleTypeModelBinderIntegrationTest.cs (6)
530request.QueryString = QueryString.Create("Parameter1", string.Empty); 558Assert.Equal(string.Empty, modelState[key].AttemptedValue); 559Assert.Equal(string.Empty, modelState[key].RawValue); 582request.QueryString = QueryString.Create("Parameter1", string.Empty); 601Assert.Equal(string.Empty, modelState[key].AttemptedValue); 602Assert.Equal(string.Empty, modelState[key].RawValue);
TryUpdateModelIntegrationTest.cs (17)
38var result = await TryUpdateModelAsync(model, string.Empty, testContext); 73var result = await TryUpdateModelAsync(model, string.Empty, testContext); 131var result = await TryUpdateModelAsync(model, string.Empty, testContext); 181var result = await TryUpdateModelAsync(model, string.Empty, testContext); 222var result = await TryUpdateModelAsync(model, string.Empty, testContext); 262var result = await TryUpdateModelAsync(model, string.Empty, testContext); 324var result = await TryUpdateModelAsync(model, string.Empty, testContext); 365var result = await TryUpdateModelAsync(model, string.Empty, testContext); 428var result = await TryUpdateModelAsync(model, string.Empty, testContext); 475var result = await TryUpdateModelAsync(model, string.Empty, testContext); 517var result = await TryUpdateModelAsync(model, string.Empty, testContext); 558var result = await TryUpdateModelAsync(model, string.Empty, testContext); 605var result = await TryUpdateModelAsync(model, string.Empty, testContext); 1115var result = await TryUpdateModelAsync(model, string.Empty, testContext); 1159var ex = await Assert.ThrowsAsync<NotSupportedException>(() => TryUpdateModelAsync(model, string.Empty, testContext)); 1183var result = await TryUpdateModelAsync(model, string.Empty, testContext); 1235var result = await TryUpdateModelAsync(model, string.Empty, testContext);
TryValidateModelIntegrationTest.cs (1)
229var errorMessage = string.Empty;
Microsoft.AspNetCore.Mvc.Localization.Test (1)
TestStringLocalizer.cs (1)
47string argument = string.Empty;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchExtensions.cs (1)
29patchDoc.ApplyTo(objectToApplyTo, modelState, prefix: string.Empty);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (7)
NewtonsoftJsonInputFormatterTest.cs (4)
303Assert.True(formatterContext.ModelState.ContainsKey(string.Empty)); 305var modelError = formatterContext.ModelState[string.Empty].Errors.Single(); 336Assert.True(formatterContext.ModelState.ContainsKey(string.Empty)); 338var modelError = formatterContext.ModelState[string.Empty].Errors.Single();
NewtonsoftJsonPatchInputFormatterTest.cs (1)
248modelName: string.Empty,
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (1)
659modelName: modelName ?? string.Empty,
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (1)
223yield return string.Empty;
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPageBase.cs (1)
618value?.ToString() ?? string.Empty,
RazorView.cs (1)
282var locations = string.Empty;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (7)
CompilationFailedExceptionFactory.cs (2)
39compiledContent: string.Empty, 114return string.Empty;
FileProviderRazorProjectFileSystem.cs (2)
37return new FileProviderRazorProjectItem(fileInfo, basePath: string.Empty, filePath: path, root: _hostingEnvironment.ContentRootPath, fileKind); 43return EnumerateFiles(FileProvider.GetDirectoryContents(path), path, prefix: string.Empty);
FileProviderRazorProjectItem.cs (1)
64public override string PhysicalPath => FileInfo.PhysicalPath ?? string.Empty;
PageDirectiveFeature.cs (1)
83return new NotFoundProjectItem(string.Empty, path, fileKind);
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
73string.Empty :
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
FileProviderRazorProjectFileSystemTest.cs (2)
198Assert.Equal(string.Empty, item.BasePath); 220Assert.Equal(string.Empty, item.BasePath);
TestInfrastructure\VirtualRazorProjectFileSystem.cs (1)
28return _root.GetItem(path) ?? new NotFoundProjectItem(string.Empty, path);
Microsoft.AspNetCore.Mvc.Razor.Test (20)
RazorPageTest.cs (19)
28private readonly Func<TextWriter, Task> NullAsyncWrite = writer => writer.WriteAsync(string.Empty); 951string.Empty, 9, (object)"Hello", 9, true, "Hello" 958" ", 9, (object)null, 10, false, string.Empty 984uniqueId: string.Empty, 1026uniqueId: string.Empty, 1062Tuple.Create(string.Empty, 9, (object)"prefix", 9, true), 1072uniqueId: string.Empty, 1115uniqueId: string.Empty, 1122page.AddHtmlAttributeValue(string.Empty, 9, attributeValue, 9, valueLength: 0, isLiteral: false); 1145uniqueId: string.Empty, 1152page.AddHtmlAttributeValue(string.Empty, 9, true, 9, valueLength: 0, isLiteral: false); 1176string.Empty, 9, (object)true, 9, false, "someattr=HtmlEncode[[someattr]]" 1179string.Empty, 9, (object)false, 9, false, string.Empty 1182string.Empty, 9, (object)null, 9, false, string.Empty 1208var suffix = string.Empty; 1242var suffix = string.Empty; 1359var buffer = new ViewBuffer(new TestViewBufferScope(), string.Empty, pageSize: 32);
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
52return value?.ToString() ?? 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.RazorPages.Test (16)
ApplicationModels\PageRouteTransformerConventionTest.cs (4)
18var model = new PageRouteModel(string.Empty, string.Empty); 34var model = new PageRouteModel(string.Empty, string.Empty);
DependencyInjection\PageConventionCollectionExtensionsTest.cs (4)
594Assert.Equal(string.Empty, authorizeData.Policy); 623Assert.Equal(string.Empty, authorizeData.Policy); 691Assert.Equal(string.Empty, authorizeData.Policy); 698Assert.Equal(string.Empty, authorizeData.Policy);
Filters\PageSaveTempDataPropertyFilterTest.cs (2)
136var filter = CreatePageSaveTempDataPropertyFilter(tempData, string.Empty); 174var filter = CreatePageSaveTempDataPropertyFilter(tempData, string.Empty);
PageModelTest.cs (3)
1385Assert.Equal(string.Empty, result.FileDownloadName); 1419Assert.Equal(string.Empty, result.FileDownloadName); 1463Assert.Equal(string.Empty, result.FileDownloadName);
PageTest.cs (3)
1375Assert.Equal(string.Empty, result.FileDownloadName); 1409Assert.Equal(string.Empty, result.FileDownloadName); 1453Assert.Equal(string.Empty, result.FileDownloadName);
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)
312output.Content.SetContent(string.Empty);
TagHelperOutputExtensions.cs (1)
281var currentClassValue = extractedClassValue ?? string.Empty;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (146)
AnchorTagHelperTest.cs (16)
106output.Content.SetContent(string.Empty); 112string.Empty, 156output.Content.SetContent(string.Empty); 162string.Empty, 208output.Content.SetContent(string.Empty); 216string.Empty, 266output.Content.SetContent(string.Empty); 274string.Empty, 325output.Content.SetContent(string.Empty); 328var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } }; 333string.Empty, 347Area = string.Empty, 383output.Content.SetContent(string.Empty); 389string.Empty, 434output.Content.SetContent(string.Empty); 440string.Empty,
FormActionTagHelperTest.cs (4)
323{ string.Empty, null, string.Empty }, 324{ string.Empty, new Dictionary<string, string> { { "area", "Home" } }, string.Empty },
FormTagHelperTest.cs (4)
255{ "action", string.Empty }, 286Assert.Equal(string.Empty, attribute.Value); 701var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } }; 718Area = string.Empty,
GlobbingUrlBuilderTest.cs (1)
464fileProvider.Setup(fp => fp.GetDirectoryContents(string.Empty))
ImageTagHelperTest.cs (1)
189return pathBase == null ? value.Replace("~/", string.Empty) : value.Replace("~/", pathBase + "/");
InputTagHelperTest.cs (23)
210var isChecked = (bool.Parse(possibleBool) ? isCheckedAttr : string.Empty); 265var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 308var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 360var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 416var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 472var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 521var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 590string.Empty }, 593string.Empty }, 598new NameAndId("NestedModel.Text", "NestedModel_Text"), string.Empty }, 603new NameAndId("[0].Text", "z0__Text"), string.Empty }, 608new NameAndId("[0].NestedModel.Text", "z0__NestedModel_Text"), string.Empty }, 847var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 880: string.Empty; 922var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 981var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 1041var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 1101var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 1343var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 1811Assert.Equal(string.Empty, output.Content.GetContent()); 1880Assert.Equal(string.Empty, output.Content.GetContent()); 1949Assert.Equal(string.Empty, output.Content.GetContent()); 2043Assert.Equal(string.Empty, output.Content.GetContent());
LabelTagHelperTest.cs (51)
43new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "Text") }, 45new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "Text") }, 48new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "Text") }, 50new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "Text") }, 54new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "Text") }, 56new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "Text") }, 60new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "Text") }, 62new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "Text") }, 64new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "Text") }, 66new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "Text") }, 73new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "NestedModel_Text") }, 77new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "NestedModel_Text") }, 79new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "NestedModel_Text") }, 83new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "NestedModel_Text") }, 85new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "NestedModel_Text") }, 87new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "NestedModel_Text") }, 89new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "NestedModel_Text") }, 91new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "NestedModel_Text") }, 98new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z0__Text") }, 102new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z0__Text") }, 104new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z1__Text") }, 108new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z1__Text") }, 110new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "z0__Text") }, 112new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "z1__Text") }, 114new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "z0__Text") }, 116new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "z1__Text") }, 123new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z0__NestedModel_Text") }, 127new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z0__NestedModel_Text") }, 129new TagHelperOutputContent(Environment.NewLine, string.Empty, "HtmlEncode[[Text]]", "z1__NestedModel_Text") }, 133new TagHelperOutputContent(string.Empty, Environment.NewLine, Environment.NewLine, "z1__NestedModel_Text") }, 135new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "z0__NestedModel_Text") }, 137new TagHelperOutputContent(string.Empty, "Hello World", "Hello World", "z1__NestedModel_Text") }, 139new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "z0__NestedModel_Text") }, 141new TagHelperOutputContent("Hello World", string.Empty, "Hello World", "z1__NestedModel_Text") }, 237null, string.Empty, string.Empty, $"HtmlEncode[[{nameof(NestedModel.Text)}]]", nameof(NestedModel.Text) 240string.Empty, string.Empty, string.Empty, string.Empty, nameof(NestedModel.Text) 243"a label", string.Empty, string.Empty, "HtmlEncode[[a label]]", nameof(NestedModel.Text) 246null, "original label", string.Empty, "original label", nameof(NestedModel.Text) 249string.Empty, "original label", string.Empty, "original label", nameof(NestedModel.Text) 252"a label", "original label", string.Empty, "original label", nameof(NestedModel.Text) 255null, string.Empty, "prefix", $"HtmlEncode[[{nameof(NestedModel.Text)}]]", $"prefix_{nameof(NestedModel.Text)}" 258string.Empty, string.Empty, "prefix", string.Empty, $"prefix_{nameof(NestedModel.Text)}" 261"a label", string.Empty, "prefix", "HtmlEncode[[a label]]", $"prefix_{nameof(NestedModel.Text)}"
OptionTagHelperTest.cs (27)
32null, string.Empty, "value", null, 62null, null, "value", new HashSet<string>(new [] { string.Empty, }), 72null, string.Empty, "value", new HashSet<string>(new [] { string.Empty, }), 92null, null, "value", new HashSet<string>(new [] { string.Empty, "value", }), 102string.Empty, null, null, null, 112string.Empty, string.Empty, null, null, 122string.Empty, "selected", null, null, 132string.Empty, null, null, new HashSet<string>(), 142string.Empty, null, null, new HashSet<string>(new [] { string.Empty, }), 152string.Empty, string.Empty, null, 153new HashSet<string>(new [] { string.Empty, }), 163string.Empty, null, null, new HashSet<string>(new [] { "text", }), 173string.Empty, null, null, 174new HashSet<string>(new [] { string.Empty, "text", }), 194"text", string.Empty, null, null, 224"text", null, null, new HashSet<string>(new [] { string.Empty, }), 244"text", string.Empty, null, new HashSet<string>(new [] { "text", }), 255new HashSet<string>(new [] { string.Empty, "text", }), 265"text", string.Empty, "value", null, 295"text", null, "value", new HashSet<string>(new [] { string.Empty, }), 305"text", string.Empty, "value", 306new HashSet<string>(new [] { string.Empty, }), 337new HashSet<string>(new [] { string.Empty, "value", }),
PartialTagHelperTest.cs (1)
609var expected = string.Empty;
RenderAtEndOfFormTagHelperTest.cs (1)
93uniqueId: string.Empty,
SelectTagHelperTest.cs (8)
111{ "mUltiple", string.Empty }, 149{ typeof(object), string.Empty, false }, 466var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 580var modelExpression = new ModelExpression(string.Empty, modelExplorer); 588string.Empty, // expression 597string.Empty, // expression 715var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 747var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
52return value?.ToString() ?? string.Empty;
TextAreaTagHelperTest.cs (2)
170var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer); 203var modelExpression = new ModelExpression(name: string.Empty, modelExplorer: modelExplorer);
ValidationMessageTagHelperTest.cs (2)
98var modelExpression = CreateModelExpression(string.Empty); 140var modelExpression = CreateModelExpression(string.Empty);
ValidationSummaryTagHelperTest.cs (4)
150{ string.Empty, emptyModelState }, 151{ string.Empty, modelState }, 154{ string.Empty, invalidModelState }, 248modelState.AddModelError(string.Empty, expectedError);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
273{ HostDefaults.ApplicationKey, typeof(TEntryPoint).Assembly.GetName()?.Name ?? string.Empty }
Microsoft.AspNetCore.Mvc.ViewFeatures (38)
DefaultDisplayTemplates.cs (6)
66new SelectListItem(Resources.Common_TriState_NotSet, string.Empty, !value.HasValue), 104htmlHelper.ViewData.TemplateInfo.HtmlFieldPrefix = string.Empty; 162string.Empty : 165string.Empty : 279var uriString = (htmlHelper.ViewData.Model == null) ? string.Empty : htmlHelper.ViewData.Model.ToString(); 281string.Empty :
DefaultEditorTemplates.cs (2)
86viewData.TemplateInfo.HtmlFieldPrefix = string.Empty; 221expression: 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.Mvc.ViewFeatures.Test (221)
Buffers\ViewBufferTextWriterTest.cs (1)
134Assert.Equal<object>(new[] { string.Empty }, actual);
ControllerUnitTestabilityTests.cs (2)
139Assert.Equal(fileName ?? string.Empty, fileContentResult.FileDownloadName); 172Assert.Equal(fileName ?? string.Empty, fileStreamResult.FileDownloadName);
CookieTempDataProviderTest.cs (2)
92Assert.Equal(string.Empty, setCookieHeader.Value.ToString()); 288Assert.Equal(string.Empty, cookie.Value.AsSpan());
DefaultDisplayTemplatesTest.cs (15)
127.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 130.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 262.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 265.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 284.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 287.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 306.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 309.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 329.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 332.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 340Assert.Equal(string.Empty, HtmlContentUtilities.HtmlContentToString(result)); 358.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 377.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 380.Returns(ViewEngineResult.Found(string.Empty, new Mock<IView>().Object)) 385html.Display(expression: string.Empty, templateName: null, htmlFieldName: null, additionalViewData: null);
DefaultEditorTemplatesTest.cs (54)
28{ string.Empty, "__TextBox__ class='text-box single-line'" }, 99.Returns(string.Empty); 118writer.Write(string.Empty); 131.Returns(string.Empty); 149{ HtmlString.Empty, string.Empty }, 156{ new StringHtmlContent(string.Empty), string.Empty }, 159{ noopContentWithEmptyToString.Object, string.Empty }, 160{ noopContentWithNonEmptyToString.Object, string.Empty }, 161{ busyNoopContentWithNonEmptyToString.Object, string.Empty }, 227.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 357.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 575.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 578.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 608.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 611.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 640.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 643.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 683.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 686.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 725.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 728.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 768.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 771.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 809.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 812.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 847.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 850.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 863string.Empty, 913.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 916.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 934var result = helper.Editor(string.Empty); 984.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 987.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1006var result = helper.Editor(string.Empty); 1054.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1057.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1075var result = helper.Editor(string.Empty); 1123.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1126.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1145var result = helper.Editor(string.Empty); 1189.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1192.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1212var result = helper.Editor(string.Empty); 1226.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1229.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1250.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1253.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1275.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1278.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1306.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1325.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1328.Returns(ViewEngineResult.Found(string.Empty, new Mock<IView>().Object)) 1333html.Editor(expression: string.Empty, templateName: null, htmlFieldName: null, additionalViewData: null);
DefaultHtmlGeneratorTest.cs (22)
552{ new string[] { null }, true, new [] { string.Empty } }, 553{ new [] { string.Empty }, false, new [] { string.Empty } }, 554{ new [] { string.Empty }, true, new [] { string.Empty } }, 558new [] { string.Empty, "some string", "some other string" } 564new [] { string.Empty, "some string", "some other string" } 647{ new string[] { string.Empty }, new [] { string.Empty } }, 737{ new string[] { null }, new [] { string.Empty } }, 738{ new [] { string.Empty }, new [] { string.Empty } }, 743new [] { string.Empty, "some string", "some other string" } 748new [] { string.Empty, "some string", "some other string" } 854{ nameof(Model.FlagsEnum), string.Empty, new [] { string.Empty } }, 872{ nameof(Model.Id), string.Empty, new [] { string.Empty } }, 889{ nameof(Model.NullableEnum), string.Empty, new [] { string.Empty } }, 909{ nameof(Model.RegularEnum), string.Empty, new [] { string.Empty } },
ExpressionHelperTest.cs (7)
49string.Empty 131string.Empty 136string.Empty 147string.Empty 166data.Add((Expression<Func<TestModel, string>>)(m => model), string.Empty); 172data.Add((Expression<Func<TestModel, TestModel>>)(m => Model), string.Empty); 173data.Add((Expression<Func<TestModel, TestModel>>)(model => Model), string.Empty);
Filters\AntiforgeryMiddlewareAuthorizationFilterTest.cs (2)
21httpContext.Features.Set<IAntiforgeryValidationFeature>(new AntiforgeryValidationFeature(false, new AntiforgeryValidationException(string.Empty))); 56httpContext.Features.Set<IAntiforgeryValidationFeature>(new AntiforgeryValidationFeature(false, new AntiforgeryValidationException(string.Empty)));
ModelExplorerExtensionsTest.cs (1)
32string.Empty
RemoteAttributeTest.cs (2)
28string.Empty, 44string.Empty,
Rendering\HtmlHelperCheckboxTest.cs (1)
535var html = helper.CheckBox(string.Empty, isChecked: false, htmlAttributes: attributes);
Rendering\HtmlHelperDisplayExtensionsTest.cs (19)
26.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 29.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 33var displayResult = helper.Display(expression: string.Empty); 57.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 78.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 140.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 166.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 192.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 220.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 248.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 269.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 295.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 326.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 367.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 392.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 420.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 441.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 467.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 494.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
Rendering\HtmlHelperDisplayNameExtensionsTest.cs (2)
22var displayNameResult = helper.DisplayName(expression: string.Empty); 102var displayNameResult = helper.DisplayName(expression: string.Empty);
Rendering\HtmlHelperDisplayTextTest.cs (5)
22var result = helper.DisplayText(expression: string.Empty); 54var result = helper.DisplayText(expression: string.Empty); 87var result = helper.DisplayText(expression: string.Empty); 141var result = helper.DisplayText(expression: string.Empty); 307var result = helper.DisplayText(expression: string.Empty);
Rendering\HtmlHelperEditorExtensionsTest.cs (2)
24.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 50.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
Rendering\HtmlHelperFormTest.cs (1)
812string.Empty,
Rendering\HtmlHelperHiddenTest.cs (3)
360var result = helper.Hidden(string.Empty, "fooValue", htmlAttributes: null); 435() => helper.Hidden(expression: string.Empty, value: null, htmlAttributes: attributes), 454var result = helper.Hidden(expression: string.Empty, value: null, htmlAttributes: attributes);
Rendering\HtmlHelperLabelExtensionsTest.cs (28)
22var labelResult = helper.Label(expression: string.Empty); 42var labelResult = helper.Label(expression: string.Empty, labelText: "a label"); 63var labelResult = helper.Label(expression: string.Empty, labelText: string.Empty); 64var labelNullResult = helper.Label(expression: null, labelText: string.Empty); 65var labelForResult = helper.LabelFor(m => m, labelText: string.Empty); 66var labelForModelResult = helper.LabelForModel(labelText: string.Empty); 123var labelResult = helper.Label(expression: string.Empty); 157.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 162var labelResult = helper.Label(expression: string.Empty); 185.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 191var labelResult = helper.Label(expression: string.Empty); 211.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 216var labelResult = helper.Label(expression: string.Empty, labelText: "a label"); 237.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 242var labelResult = helper.Label(expression: string.Empty, labelText: string.Empty); 243var labelNullResult = helper.Label(expression: null, labelText: string.Empty); 244var labelForResult = helper.LabelFor(m => m, labelText: string.Empty); 245var labelForModelResult = helper.LabelForModel(labelText: string.Empty); 268var labelResult = helper.Label(expression: string.Empty); 289.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 298var labelResult = helper.Label(expression: string.Empty); 319.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 340.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 364.DisplayDetails(dd => dd.DisplayName = () => string.Empty); 371labelText: string.Empty); 372var labelForResult = helper.LabelFor(m => m.Property1, labelText: string.Empty);
Rendering\HtmlHelperLinkGenerationTest.cs (4)
58expectedLink = expectedLink.Replace("HtmlEncode[[]]", string.Empty); 127expectedLink = expectedLink.Replace("HtmlEncode[[]]", string.Empty); 160return string.Join(string.Empty, dict.Select(kvp => string.Format(CultureInfo.InvariantCulture, "{0}={1}", kvp.Key, kvp.Value.ToString()))); 166return string.Join(string.Empty, dict.Select(kvp => string.Format(CultureInfo.InvariantCulture, " {0}=\"HtmlEncode[[{1}]]\"", kvp.Key, kvp.Value.ToString())));
Rendering\HtmlHelperNameExtensionsTest.cs (7)
24private readonly string _string = string.Empty; 45var idResult = helper.Id(expression: string.Empty); 49var nameResult = helper.Name(expression: string.Empty); 78var idResult = helper.Id(expression: string.Empty); 81var nameResult = helper.Name(expression: string.Empty); 173var idResult = helper.Id(expression: string.Empty); 176var nameResult = helper.Name(expression: string.Empty);
Rendering\HtmlHelperPasswordTest.cs (3)
134var name = string.Empty; 148var expression = string.Empty; 166var expression = string.Empty;
Rendering\HtmlHelperSelectTest.cs (6)
1098expression: string.Empty, 1126expression: string.Empty, 1194var html = helper.ListBox(expression: string.Empty, selectList: selectList, htmlAttributes: null); 1220var html = helper.ListBox(expression: string.Empty, selectList: selectList, htmlAttributes: null); 1539return allowMultiple ? " multiple=\"HtmlEncode[[multiple]]\"" : string.Empty; 1549return optionSource == source ? " selected=\"HtmlEncode[[selected]]\"" : string.Empty;
Rendering\HtmlHelperTest.cs (12)
51{ null, string.Empty }, 53{ string.Empty, string.Empty }, 71{ null, string.Empty }, 72{ string.Empty, string.Empty }, 90{ null, string.Empty }, 92{ string.Empty, string.Empty }, 126{ null, string.Empty }, 127{ string.Empty, string.Empty },
Rendering\HtmlHelperValidationSummaryTest.cs (12)
85{ true, false, divWithError, string.Empty }, 86{ true, true, divWithError, string.Empty }, 117{ false, string.Empty, divWithAllErrors }, 120{ true, string.Empty, divWithRootError }, 122{ true, "some.unrelated.prefix", string.Empty }, 209html.ViewData.ModelState.AddModelError(string.Empty, "This is my validation message"); 565helper.ViewData.ModelState.AddModelError(string.Empty, "Error for root"); 623helper.ViewData.ModelState.AddModelError(string.Empty, "Error for root"); 643helper.ViewData.ModelState.AddModelError(string.Empty, "Error for root"); 681modelState.AddModelError(string.Empty, "This is an error for the model root."); 682modelState.AddModelError(string.Empty, "This is another error for the model root."); 683modelState.AddModelError(string.Empty, new InvalidOperationException("Another ignored Exception."), metadata);
Rendering\HtmlHelperValueTest.cs (1)
189Assert.Equal(expectedModelValue, helper.Value(expression: string.Empty, format: null));
Rendering\HtmlStringTest.cs (1)
47Assert.Equal(string.Empty, content.ToString());
Rendering\TagBuilderTest.cs (1)
78tagBuilder.Attributes.Add("ID", string.Empty);
ViewDataDictionaryTest.cs (1)
738var formattedValue = viewData.Eval("foo", string.Empty);
ViewDataOfTTest.cs (4)
69Assert.Equal(string.Empty, viewData.TemplateInfo.FormattedModelValue); 70Assert.Equal(string.Empty, viewData.TemplateInfo.HtmlFieldPrefix); 87Assert.Equal(string.Empty, viewData.TemplateInfo.FormattedModelValue); 88Assert.Equal(string.Empty, viewData.TemplateInfo.HtmlFieldPrefix);
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
18public TestFileProvider() : this(string.Empty)
Microsoft.AspNetCore.OpenApi (3)
Schemas\OpenApiJsonSchema.Helpers.cs (2)
318schema.Metadata.Add(OpenApiConstants.SchemaId, reader.GetString() ?? string.Empty); 330schema.Metadata[OpenApiConstants.RefId] = reader.GetString() ?? string.Empty;
Services\OpenApiGenerator.cs (1)
359controllerName = _environment?.ApplicationName ?? string.Empty;
Microsoft.AspNetCore.OpenApi.SourceGenerators (12)
XmlCommentGenerator.cs (1)
53: string.Empty;
XmlCommentGenerator.Emitter.cs (1)
524_ => string.Empty // Effectively no-op for AddOpenApi invocations that do not conform to a variant
XmlComments\XmlComment.cs (1)
87.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.OpenApi.Tests (14)
Services\OpenApiGeneratorTests.cs (1)
977public string NonNullableStringMember { get; set; } = string.Empty;
Shared\SharedTypes.cs (5)
69public string Make { get; set; } = string.Empty; 172public string Title { get; set; } = string.Empty; 175public string Assignee { get; set; } = string.Empty; 214public string Name { get; set; } = string.Empty; 220public string Name { get; set; } = string.Empty;
Shared\SharedTypes.Polymorphism.cs (1)
11public string Color { get; set; } = string.Empty;
Transformers\CustomSchemaTransformerTests.cs (7)
512public string Value { get; set; } = string.Empty; 518public string Name { get; set; } = string.Empty; 526public string Name { get; set; } = string.Empty; 532public string Name { get; set; } = string.Empty; 540public string FirstName { get; set; } = string.Empty; 541public string LastName { get; set; } = string.Empty; 545public string TemporaryData { get; set; } = 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.OutputCaching.Tests (4)
OutputCacheMiddlewareTests.cs (2)
504new StringValues(string.Empty), 508new StringValues(new string[] { string.Empty })
OutputCacheTests.cs (2)
71var initialResponse = await client.PostAsync("", new StringContent(string.Empty)); 72var subsequentResponse = await client.PostAsync("", new StringContent(string.Empty));
Microsoft.AspNetCore.Owin (14)
OwinEnvironment.cs (6)
52{ OwinConstants.RequestProtocol, new FeatureMap<IHttpRequestFeature>(feature => feature.Protocol, () => string.Empty, (feature, value) => feature.Protocol = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 53{ OwinConstants.RequestScheme, new FeatureMap<IHttpRequestFeature>(feature => feature.Scheme, () => string.Empty, (feature, value) => feature.Scheme = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 54{ OwinConstants.RequestMethod, new FeatureMap<IHttpRequestFeature>(feature => feature.Method, () => string.Empty, (feature, value) => feature.Method = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 55{ OwinConstants.RequestPathBase, new FeatureMap<IHttpRequestFeature>(feature => feature.PathBase, () => string.Empty, (feature, value) => feature.PathBase = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 56{ OwinConstants.RequestPath, new FeatureMap<IHttpRequestFeature>(feature => feature.Path, () => string.Empty, (feature, value) => feature.Path = Convert.ToString(value, CultureInfo.InvariantCulture)) }, 57{ OwinConstants.RequestQueryString, new FeatureMap<IHttpRequestFeature>(feature => Utilities.RemoveQuestionMark(feature.QueryString), () => string.Empty,
OwinFeatureCollection.cs (1)
113get { return string.Empty; }
WebSockets\OwinWebSocketAdapter.cs (2)
191throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 206throw new ArgumentOutOfRangeException(nameof(webSocketMessageType), webSocketMessageType, string.Empty);
WebSockets\WebSocketAdapter.cs (5)
83_environment[OwinConstants.WebSocket.ClientCloseDescription] = nativeResult.CloseStatusDescription ?? string.Empty; 101return CloseAsync(1000, string.Empty, cancel); 129_webSocket.CloseStatusDescription ?? string.Empty, _cancellationToken); 151throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 166throw new ArgumentOutOfRangeException(nameof(webSocketMessageType), webSocketMessageType, string.Empty);
Microsoft.AspNetCore.Razor (1)
TagHelpers\DefaultTagHelperContent.cs (1)
168return string.Empty;
Microsoft.AspNetCore.Razor.Runtime (1)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
30uniqueId: string.Empty,
Microsoft.AspNetCore.Razor.Runtime.Test (16)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (13)
22uniqueId: string.Empty, 45uniqueId: string.Empty, 70uniqueId: string.Empty, 105uniqueId: string.Empty, 124uniqueId: string.Empty, 219uniqueId: string.Empty, 273uniqueId: string.Empty, 301uniqueId: string.Empty, 323uniqueId: string.Empty, 350uniqueId: string.Empty, 377uniqueId: string.Empty, 407uniqueId: string.Empty, 434uniqueId: string.Empty,
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (1)
238uniqueId: string.Empty,
Runtime\TagHelpers\TestTagHelpers\CommonTagHelpers.cs (1)
23public string InvalidNoSetAttribute { get { return string.Empty; } }
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
52return value?.ToString() ?? string.Empty;
Microsoft.AspNetCore.Razor.Test (28)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
52return value?.ToString() ?? string.Empty;
TagHelpers\DefaultTagHelperContentTest.cs (8)
24Assert.Equal(string.Empty, tagHelperContent.GetContent()); 165Assert.Equal(string.Empty, source.GetContent()); 192Assert.Equal(string.Empty, source.GetContent()); 193Assert.Equal(string.Empty, nested.GetContent()); 310tagHelperContent.SetContent(string.Empty); 323tagHelperContent.Append(string.Empty); 363string.Empty, 623Assert.Equal(string.Empty, tagHelperContent.GetContent());
TagHelpers\TagHelperContextTest.cs (2)
57uniqueId: string.Empty); 81uniqueId: string.Empty);
TagHelpers\TagHelperOutputTest.cs (17)
424tagName: string.Empty, 734tagName: string.Empty, 746tagName: string.Empty, 782tagName: string.Empty, 794tagName: string.Empty, 845tagName: string.Empty, 857tagName: string.Empty, 893tagName: string.Empty, 965tagName: string.Empty, 989tagName: string.Empty, 1001tagName: string.Empty, 1013tagName: string.Empty, 1080Assert.Equal(string.Empty, output.PreElement.GetContent()); 1081Assert.Equal(string.Empty, output.PreContent.GetContent()); 1082Assert.Equal(string.Empty, output.Content.GetContent()); 1083Assert.Equal(string.Empty, output.PostContent.GetContent()); 1084Assert.Equal(string.Empty, output.PostElement.GetContent());
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingKeyProvider.cs (2)
109var header = varyByRules!.Headers[i] ?? string.Empty; 163var queryKey = varyByRules.QueryKeys[i] ?? string.Empty;
Microsoft.AspNetCore.ResponseCaching.Tests (9)
ResponseCachingFeatureTests.cs (5)
17new string[] { string.Empty } 37new string[] { null, string.Empty }, 38new string[] { string.Empty, null }, 39new string[] { string.Empty, "Valid" }, 40new string[] { "Valid", string.Empty },
ResponseCachingMiddlewareTests.cs (2)
586new StringValues(string.Empty), 590new StringValues(new string[] { string.Empty })
ResponseCachingTests.cs (2)
75var initialResponse = await client.PostAsync("", new StringContent(string.Empty)); 76var subsequentResponse = await client.PostAsync("", new StringContent(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.Rewrite.Tests (11)
ApacheModRewrite\CookieActionFactoryTest.cs (1)
47Assert.Equal(string.Empty, action.Path);
ApacheModRewrite\FlagParserTest.cs (7)
15dict.Add(FlagType.NoCase, string.Empty); 26dict.Add(FlagType.NoCase, string.Empty); 27dict.Add(FlagType.Forbidden, string.Empty); 28dict.Add(FlagType.Last, string.Empty); 39dict.Add(FlagType.NoCase, string.Empty); 40dict.Add(FlagType.Forbidden, string.Empty); 62Assert.Throws<ArgumentException>(() => FlagParser.Parse(string.Empty));
ApacheModRewrite\RuleBuilderTest.cs (1)
30flags.SetFlag(FlagType.Redirect, string.Empty);
ApacheModRewrite\RuleRegexParserTest.cs (1)
19Assert.Throws<FormatException>(() => RuleRegexParser.ParseRuleRegex(string.Empty));
IISUrlRewrite\ServerVariableTests.cs (1)
180Assert.Equal(string.Empty, lookup);
Microsoft.AspNetCore.Routing (34)
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)
274edges.Add(string.Empty, anyEndpoints); 279edges.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\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\Shared\Debugger\DebuggerHelpers.cs (1)
32return prefix ?? string.Empty;
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.Routing.Tests (58)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (3)
567builder.Metadata.Add(new ParameterNameMetadata { Name = parameter.Name ?? string.Empty }); 578public string Name { get; init; } = string.Empty; 583public string Data { get; init; } = string.Empty;
Constraints\FileNameRouteConstraintTest.cs (1)
51string.Empty,
Constraints\RequiredRouteConstraintTests.cs (1)
65new RouteValueDictionary(new { controller = "Home", action = "Index", area = string.Empty }),
DefaultLinkGeneratorProcessTemplateTest.cs (38)
34Assert.Equal(string.Empty, result.query.ToUriComponent()); 59Assert.Equal(string.Empty, result.query.ToUriComponent()); 91Assert.Equal(string.Empty, result.query.ToUriComponent()); 114Assert.Equal(string.Empty, result.query.ToUriComponent()); 206Assert.Equal(string.Empty, result.query.ToUriComponent()); 252Assert.Equal(string.Empty, result.query.ToUriComponent()); 280Assert.Equal(string.Empty, result.query.ToUriComponent()); 309Assert.Equal(string.Empty, result.query.ToUriComponent()); 333Assert.Equal(string.Empty, result.query.ToUriComponent()); 365Assert.Equal(string.Empty, result.query.ToUriComponent()); 434Assert.Equal(string.Empty, result.query.ToUriComponent()); 502Assert.Equal(string.Empty, result.query.ToUriComponent()); 535Assert.Equal(string.Empty, result.query.ToUriComponent()); 641Assert.Equal(string.Empty, result.query.ToUriComponent()); 691Assert.Equal(string.Empty, result.query.ToUriComponent()); 741Assert.Equal(string.Empty, result.query.ToUriComponent()); 778Assert.Equal(string.Empty, result.query.ToUriComponent()); 812Assert.Equal(string.Empty, result.query.ToUriComponent()); 845Assert.Equal(string.Empty, result.query.ToUriComponent()); 877Assert.Equal(string.Empty, result.query.ToUriComponent()); 911Assert.Equal(string.Empty, result.query.ToUriComponent()); 941Assert.Equal(string.Empty, result.query.ToUriComponent()); 993Assert.Equal(string.Empty, result.query.ToUriComponent()); 1019Assert.Equal(string.Empty, result.query.ToUriComponent()); 1071Assert.Equal(string.Empty, result.query.ToUriComponent()); 1124Assert.Equal(string.Empty, result.query.ToUriComponent()); 1147Assert.Equal(string.Empty, result.query.ToUriComponent()); 1170Assert.Equal(string.Empty, result.query.ToUriComponent()); 1195Assert.Equal(string.Empty, result.query.ToUriComponent()); 1220Assert.Equal(string.Empty, result.query.ToUriComponent()); 1267Assert.Equal(string.Empty, result.query.ToUriComponent()); 1289Assert.Equal(string.Empty, result.query.ToUriComponent()); 1312Assert.Equal(string.Empty, result.query.ToUriComponent()); 1335Assert.Equal(string.Empty, result.query.ToUriComponent()); 1358Assert.Equal(string.Empty, result.query.ToUriComponent()); 1381Assert.Equal(string.Empty, result.query.ToUriComponent()); 1485Assert.Equal(string.Empty, result.query.ToUriComponent()); 1513Assert.Equal(string.Empty, result.query.ToUriComponent());
Internal\DfaGraphWriterTest.cs (3)
27var endpointsDataSource = new DefaultEndpointDataSource(new Endpoint((context) => null, EndpointMetadataCollection.Empty, string.Empty)); 50string.Empty)); 73string.Empty));
Matching\AcceptsMatcherPolicyTest.cs (3)
181Assert.Equal(string.Empty, e.State); 239Assert.Equal(string.Empty, e.State); 289new PolicyJumpTableEdge(string.Empty, 0),
PathTokenizerTest.cs (1)
17{ string.Empty, new StringSegment[] { } },
Patterns\DefaultRoutePatternTransformerTest.cs (5)
40kvp => Assert.Equal(new KeyValuePair<string, object>("b", string.Empty), kvp)); 53var requiredValues = new { controller = string.Empty, }; 98var requiredValues = new { area = string.Empty, }; 117var requiredValues = new { area = string.Empty, }; 302var requiredValues = new { controller = string.Empty, action = (string)null, };
RouteOptionsTests.cs (2)
37var endpoint1 = new Endpoint((c) => Task.CompletedTask, EndpointMetadataCollection.Empty, string.Empty); 38var endpoint2 = new Endpoint((c) => Task.CompletedTask, EndpointMetadataCollection.Empty, string.Empty);
Template\TemplateBinderTests.cs (1)
539values.Add("year", String.Empty);
Microsoft.AspNetCore.Server.HttpSys (27)
RequestProcessing\Request.cs (7)
60QueryString = cookedUrl.GetQueryString() ?? string.Empty; 65PathBase = string.Empty; 72PathBase = string.Empty; 73Path = string.Empty; 86Path = string.Empty; 92Path = string.Empty; 174SniHostName = string.Empty;
RequestProcessing\RequestStream.cs (2)
158Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 279Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\RequestStreamAsyncResult.cs (2)
79asyncResult.Fail(new IOException(string.Empty, new HttpSysException((int)errorCode))); 89asyncResult.Fail(new IOException(string.Empty, e));
RequestProcessing\Response.cs (4)
551headerValue = headerValues[headerValueIndex] ?? string.Empty; 560headerValue = headerValues[0] ?? string.Empty; 590headerValue = headerValues[headerValueIndex] ?? string.Empty; 645var headerValue = headerValues[headerValueIndex] ?? string.Empty;
RequestProcessing\ResponseBody.cs (5)
176var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 392Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 647throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 651throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty); 715var exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\ResponseStreamAsyncResult.cs (1)
245var exception = new IOException(string.Empty, new HttpSysException((int)errorCode));
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
623headerValue = string.Empty;
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
UrlPrefix.cs (2)
23PathWithoutTrailingSlash = Path.Length > 1 ? Path[0..^1] : string.Empty; 106var whole = prefix ?? string.Empty;
ValidationHelper.cs (1)
14return string.Empty;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (72)
DelegateTests.cs (1)
278CommonSecurityDescriptor securityDescriptor = new CommonSecurityDescriptor(false, false, string.Empty);
HttpsTests.cs (6)
33Assert.Equal(string.Empty, response); 90Assert.Equal(string.Empty, response); 124Assert.Equal(string.Empty, response); 146Assert.Equal(string.Empty, response); 238Assert.Equal(string.Empty, response); 268Assert.Equal(string.Empty, response);
Listener\RequestBodyTests.cs (3)
65Assert.Equal(string.Empty, response); 89Assert.Equal(string.Empty, response); 114Assert.Equal(string.Empty, response);
Listener\ServerOnExistingQueueTests.cs (17)
30Assert.Equal(string.Empty, response); 86Assert.Equal(string.Empty, response); 104Assert.Equal(string.Empty, response); 116Assert.Equal(string.Empty, context.Request.PathBase); 121Assert.Equal(string.Empty, response); 146Assert.Equal(string.Empty, response); 166Assert.Equal(string.Empty, response); 180Assert.Equal(string.Empty, context.Request.PathBase); 185Assert.Equal(string.Empty, response); 199Assert.Equal(string.Empty, response); 221Assert.Equal(string.Empty, response); 229Assert.Equal(string.Empty, context.Request.PathBase); 234Assert.Equal(string.Empty, response); 267Assert.Equal(string.Empty, response); 287Assert.Equal(string.Empty, response); 307Assert.Equal(string.Empty, response); 315Assert.Equal(string.Empty, response);
Listener\ServerTests.cs (8)
68Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 124Assert.Equal(string.Empty, response); 152Assert.Equal(string.Empty, context.Request.PathBase); 157Assert.Equal(string.Empty, response); 170Assert.Equal(string.Empty, response); 190Assert.Equal(string.Empty, response); 197Assert.Equal(string.Empty, context.Request.PathBase); 202Assert.Equal(string.Empty, response);
Listener\Utilities.cs (2)
28return CreateDynamicHttpServer(string.Empty, out root, out baseAddress); 74return CreateServer("https", "localhost", 9090, string.Empty);
OpaqueUpgradeTests.cs (2)
43Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 71Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
RequestBodyLimitTests.cs (8)
175Assert.Equal(string.Empty, response); 200Assert.Equal(string.Empty, response); 225Assert.Equal(string.Empty, response); 251Assert.Equal(string.Empty, response); 275Assert.Equal(string.Empty, response); 301Assert.Equal(string.Empty, response); 328Assert.Equal(string.Empty, response); 353Assert.Equal(string.Empty, response);
RequestBodyTests.cs (3)
139Assert.Equal(string.Empty, response); 161Assert.Equal(string.Empty, response); 181Assert.Equal(string.Empty, response);
RequestHeaderTests.cs (2)
34Assert.Equal(string.Empty, response); 98Assert.Equal(string.Empty, response);
RequestTests.cs (6)
65Assert.Equal(string.Empty, response); 129Assert.Equal(string.Empty, response); 192Assert.Equal(string.Empty, response); 220Assert.Equal(string.Empty, requestInfo.QueryString); 236Assert.Equal(string.Empty, response); 333Assert.Equal(string.Empty, response);
ResponseSendFileTests.cs (1)
45await sendFile.SendFileAsync(string.Empty, 0, null, CancellationToken.None);
ResponseTests.cs (5)
37Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 56Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 76Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync()); 92Assert.Equal(string.Empty, response.ReasonPhrase); 93Assert.Equal(string.Empty, await response.Content.ReadAsStringAsync());
ServerTests.cs (3)
35Assert.Equal(string.Empty, response); 350Assert.Equal(string.Empty, response); 409Assert.Equal(string.Empty, responseText);
Utilities.cs (5)
46return CreateDynamicHttpServer(string.Empty, out root, out baseAddress, options => { }, app, loggerFactory); 52return CreateDynamicHttpServer(string.Empty, out root, out baseAddress, configureOptions, app, loggerFactory); 64return CreateDynamicHttpServer(string.Empty, out root, out baseAddress, options => 73return CreateDynamicHost(string.Empty, out root, out var baseAddress, options => 82return CreateDynamicHost(string.Empty, out var root, out baseAddress, configureOptions, app, loggerFactory);
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
Utilities.cs (1)
30return CreateDynamicHttpServer(string.Empty, out root, out baseAddress, options => { }, app);
Microsoft.AspNetCore.Server.IIS (29)
Core\IISConfigurationData.cs (3)
72pwzFullApplicationPath = native.pwzFullApplicationPath == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzFullApplicationPath), 73pwzVirtualApplicationPath = native.pwzVirtualApplicationPath == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzVirtualApplicationPath), 77pwzBindings = native.pwzBindings == IntPtr.Zero ? string.Empty : Marshal.PtrToStringBSTR(native.pwzBindings),
Core\IISEnvironmentFeature.cs (7)
37AppPoolId = configuration["IIS_APP_POOL_ID"] ?? string.Empty; 38AppPoolConfigFile = configuration["IIS_APP_POOL_CONFIG_FILE"] ?? string.Empty; 39AppConfigPath = configuration["IIS_APP_CONFIG_PATH"] ?? string.Empty; 40ApplicationPhysicalPath = configuration["IIS_PHYSICAL_PATH"] ?? string.Empty; 41ApplicationVirtualPath = configuration["IIS_APPLICATION_VIRTUAL_PATH"] ?? string.Empty; 42ApplicationId = configuration["IIS_APPLICATION_ID"] ?? string.Empty; 43SiteName = configuration["IIS_SITE_NAME"] ?? string.Empty;
Core\IISHttpContext.cs (12)
158Method = GetVerb() ?? string.Empty; 160RawTarget = GetRawUrl() ?? string.Empty; 167var originalPath = GetOriginalPath() ?? string.Empty; 168var pathBase = _server.VirtualPath ?? string.Empty; 176PathBase = string.Empty; 177Path = string.Empty; 181PathBase = string.Empty; 188Path = string.Empty; 194Path = string.Empty; 269QueryString = cookedUrl.GetQueryString() ?? string.Empty; 277SniHostName = string.Empty; 555ReasonPhrase = string.Empty;
src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
58var location = string.Empty;
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
25var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName!).Version?.ToString() ?? string.Empty;
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
623headerValue = string.Empty;
src\Shared\RazorViews\BaseView.cs (1)
279return string.Empty;
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
118var prefix = string.Empty;
Microsoft.AspNetCore.Server.IISIntegration.Tests (2)
IISMiddlewareTests.cs (2)
356var requestPathBase = string.Empty; 357var requestPath = string.Empty;
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Common\DeploymentResult.cs (1)
43: this(loggerFactory, deploymentParameters: deploymentParameters, applicationBaseUri: applicationBaseUri, contentRoot: string.Empty, hostShutdownToken: CancellationToken.None)
Deployers\SelfHostDeployer.cs (3)
82var executableName = string.Empty; 83var executableArgs = string.Empty; 84var workingDirectory = string.Empty;
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
72var executableArgs = string.Empty;
Microsoft.AspNetCore.Server.Kestrel.Core (42)
Internal\Http\Http1Connection.cs (8)
352QueryString = string.Empty; 397if (ReferenceEquals(_parsedQueryString, string.Empty)) 403QueryString = string.Empty; 404_parsedQueryString = string.Empty; 495Path = string.Empty; 496QueryString = string.Empty; 515Path = string.Empty; 516QueryString = 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)
601: string.Empty);
Internal\Http\HttpProtocol.cs (2)
177return string.Empty; 1409: string.Empty);
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
43_methodText = HttpUtilities.MethodToString(Method) ?? string.Empty;
Internal\Http2\Http2Stream.cs (3)
327Path = string.Empty; 328QueryString = string.Empty; 341QueryString = queryIndex == -1 ? string.Empty : path.Substring(queryIndex);
Internal\Http3\Http3Stream.cs (3)
1068Path = string.Empty; 1069QueryString = string.Empty; 1082QueryString = 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)
46public string HostName { get; set; } = string.Empty;
Middleware\HttpsConnectionMiddleware.cs (1)
326feature.HostName = name ?? string.Empty;
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
src\Shared\Hpack\DynamicHPackEncoder.cs (2)
32Head.Initialize(-1, string.Empty, string.Empty, 0, int.MaxValue, null);
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (1)
230return EncodeValueString(string.Empty, valueEncoding: null, buffer, out length);
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (24)
Http1\Http1ConnectionTests.cs (1)
852Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(string.Empty), exception.Message);
HttpParserTests.cs (2)
543Assert.Equal(CoreStrings.FormatBadRequest_UnrecognizedHTTPVersion(string.Empty), exception.Message); 557Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestHeader_Detail(string.Empty), exception.Message);
HttpRequestHeadersTests.cs (7)
484Assert.Equal(string.Empty, values.NextHeaderValue); 755Assert.NotEqual(string.Empty, prevHeaderValue); 768Assert.Equal(string.Empty, nextHeaderValue); 780Assert.Equal(string.Empty, nextHeaderValue); 806Assert.NotEqual(string.Empty, prevHeaderValue.ToString()); 817Assert.Equal(string.Empty, nextHeaderValue); 828Assert.Equal(string.Empty, nextHeaderValue);
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
186name = name.Replace("_", string.Empty);
src\Servers\Kestrel\shared\test\StringExtensions.cs (1)
14: string.Empty;
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (6)
278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 290TestDecodeWithoutIndexing(encoded, _headerNameString, string.Empty); 302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 349TestDecodeWithoutIndexing(encoded, _headerNameString, string.Empty); 372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
StartLineTests.cs (6)
57var path = string.Empty; 58var query = string.Empty; 112var path = string.Empty; 113var query = string.Empty; 360var path = string.Empty; 361var query = string.Empty;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
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.Session.Tests (18)
SessionTests.cs (18)
55var response = await client.GetAsync(string.Empty); 92var response = await client.GetAsync(string.Empty); 362var response = await client.GetAsync(string.Empty); 457string responseData = string.Empty; 546var response = await client.GetAsync(string.Empty); 596var response = await client.GetAsync(string.Empty); 632var response = await client.GetAsync(string.Empty); 656Assert.Equal(string.Empty, context.Session.Id); 677var response = await client.GetAsync(string.Empty); 706Assert.Equal(string.Empty, context.Session.Id); 726var response = await client.GetAsync(string.Empty); 775var response = await client.GetAsync(string.Empty); 823var response = await client.GetAsync(string.Empty); 875var response = await client.GetAsync(string.Empty); 938var response = await client.GetAsync(string.Empty); 1004var response = await client.GetAsync(string.Empty); 1069var response = await client.GetAsync(string.Empty); 1121var response = await client.GetAsync(string.Empty);
Microsoft.AspNetCore.Shared.Tests (22)
CommandLineApplicationTests.cs (1)
1151var inputOption = String.Empty;
PropertyHelperTest.cs (1)
821get { return string.Empty; }
QueryStringEnumerableTest.cs (7)
41kvp => AssertKeyValuePair("key1", string.Empty, kvp), 42kvp => AssertKeyValuePair("key2", string.Empty, kvp)); 49kvp => AssertKeyValuePair(string.Empty, "value1", kvp), 50kvp => AssertKeyValuePair(string.Empty, string.Empty, kvp)); 57kvp => AssertKeyValuePair("fields+%5BtodoItems%5D", string.Empty, kvp)); 64kvp => AssertKeyValuePair(string.Empty, "fields+%5BtodoItems%5D", kvp));
runtime\Http2\HPackDecoderTest.cs (6)
278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 290TestDecodeWithoutIndexing(encoded, _headerNameString, string.Empty); 302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 349TestDecodeWithoutIndexing(encoded, _headerNameString, string.Empty); 372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message);
src\Shared\Hpack\DynamicHPackEncoder.cs (2)
32Head.Initialize(-1, string.Empty, string.Empty, 0, int.MaxValue, null);
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
623headerValue = string.Empty;
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (1)
230return EncodeValueString(string.Empty, valueEncoding: null, buffer, out length);
src\Shared\ServerInfrastructure\StringUtilities.cs (2)
23return string.Empty; 72return string.Empty;
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
118var prefix = string.Empty;
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.Log.cs (2)
31var argsList = args == null ? string.Empty : string.Join(", ", args.Select(a => a?.GetType().FullName ?? "(null)")); 88var argsList = args == null ? string.Empty : string.Join(", ", args.Select(a => a?.GetType().FullName ?? "(null)"));
Internal\ConnectionLogScope.cs (1)
67return _cachedToString ?? string.Empty;
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Emitter.cs (2)
51var methodName = $"Register{typeSpec.FullyQualifiedTypeName.Replace(".", string.Empty)}"; 138private static System.IDisposable[] Register{typeSpec.FullyQualifiedTypeName.Replace(".", string.Empty)}(HubConnection connection, {typeSpec.FullyQualifiedTypeName} provider)
Microsoft.AspNetCore.SignalR.Client.Tests (7)
HttpConnectionTests.cs (1)
93httpOptions.Cookies.Add(new Cookie("Name", "Value", string.Empty, "fakeuri.org"));
HttpConnectionTests.Negotiate.cs (1)
37return RunInvalidNegotiateResponseTest<FormatException>(ResponseUtils.CreateNegotiationContent(connectionId: string.Empty), "Invalid connection id.");
ResponseUtils.cs (1)
18CreateResponse(statusCode, string.Empty);
ServerSentEventsTransportTests.cs (2)
366return new HttpResponseMessage { Content = new StringContent(string.Empty) }; 393return new HttpResponseMessage { Content = new StringContent(string.Empty) };
WebSocketsTransportTests.cs (2)
47public override string CloseStatusDescription => string.Empty; 51public override string SubProtocol => string.Empty;
Microsoft.AspNetCore.SignalR.Common (4)
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()));
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
24if (argument is null || argument == string.Empty)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
17private static readonly string _exeSuffix = OperatingSystem.IsWindows() ? ".exe" : string.Empty;
Microsoft.AspNetCore.SignalR.Tests (13)
ClientProxyTests.cs (4)
31var proxy = new UserProxy<FakeHub>(o.Object, string.Empty); 73var proxy = new GroupProxy<FakeHub>(o.Object, string.Empty); 115var proxy = new GroupExceptProxy<FakeHub>(o.Object, string.Empty, new List<string>()); 178var proxy = new SingleClientProxy<FakeHub>(o.Object, string.Empty);
HubConnectionHandlerTests.cs (7)
2026HubConnectionHandlerTestUtils.AssertHubMessage(new StreamItemMessage(string.Empty, "0"), messages[0]); 2027HubConnectionHandlerTestUtils.AssertHubMessage(new StreamItemMessage(string.Empty, "1"), messages[1]); 2028HubConnectionHandlerTestUtils.AssertHubMessage(new StreamItemMessage(string.Empty, "2"), messages[2]); 2029HubConnectionHandlerTestUtils.AssertHubMessage(new StreamItemMessage(string.Empty, "3"), messages[3]); 2030HubConnectionHandlerTestUtils.AssertHubMessage(CompletionMessage.Empty(string.Empty), messages[4]); 4493HubConnectionHandlerTestUtils.AssertHubMessage(new StreamItemMessage(string.Empty, argument.Value), messages[0]); 4494HubConnectionHandlerTestUtils.AssertHubMessage(CompletionMessage.Empty(string.Empty), messages[1]);
HubConnectionHandlerTestUtils\Hubs.cs (1)
1466string id = Context.GetHttpContext()?.Request.Query["client"] ?? string.Empty;
WebSocketsTransportTests.cs (1)
33httpOptions.Cookies.Add(new Cookie("Name", "Value", string.Empty, "fakeuri.org"));
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (2)
32var completeArguments = $"run {scriptName} -- {arguments ?? string.Empty}"; 121=> AnsiColorRegex.Replace(line, string.Empty);
Microsoft.AspNetCore.StaticAssets (2)
src\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\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.StaticFiles.FunctionalTests (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.StaticFiles.Tests (9)
RangeHeaderTests.cs (9)
53Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 125Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 159Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 197Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 243Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 251Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 332Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 407Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync()); 447Assert.Equal(string.Empty, await resp.Content.ReadAsStringAsync());
Microsoft.AspNetCore.TestHost (6)
ResponseBodyPipeWriter.cs (1)
47_pipe.Writer.Complete(new IOException(string.Empty, innerException));
ResponseBodyReaderStream.cs (1)
133throw new IOException(string.Empty, _abortException);
TestWebSocket.cs (4)
126_closeStatusDescription = receiveMessage.CloseStatusDescription ?? string.Empty; 160throw new ArgumentOutOfRangeException(nameof(messageType), messageType, string.Empty); 202throw new ArgumentOutOfRangeException(nameof(buffer), buffer.Offset, string.Empty); 206throw new ArgumentOutOfRangeException(nameof(buffer), buffer.Count, string.Empty);
Microsoft.AspNetCore.TestHost.Tests (1)
ResponseFeatureTests.cs (1)
52return Task.FromResult(string.Empty);
Microsoft.AspNetCore.Tests (10)
WebApplicationTests.cs (10)
1691var chosenEndpoint = string.Empty; 1717var chosenEndpoint = string.Empty; 1891var chosenRoute = string.Empty; 1925var chosenRoute = string.Empty; 1954var chosenRoute = string.Empty; 2175Assert.Equal(string.Empty, responseBody); 2543var chosenRoute = string.Empty; 2569var chosenRoute = string.Empty; 2622var chosenRoute = string.Empty; 2652var chosenRoute = string.Empty;
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\Executable.cs (1)
11private static readonly string _exeSuffix = OperatingSystem.IsWindows() ? ".exe" : string.Empty;
Microsoft.AspNetCore.WebSockets.Tests (3)
BufferStream.cs (3)
276throw new ArgumentOutOfRangeException(nameof(offset), offset, string.Empty); 281throw new ArgumentOutOfRangeException(nameof(count), count, string.Empty); 321throw new IOException(string.Empty, _abortException);
Microsoft.AspNetCore.WebUtilities (5)
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 (2)
182/// <returns>The reason phrase, or <see cref="string.Empty"/> if the status code is unknown.</returns> 194return string.Empty;
Microsoft.AspNetCore.WebUtilities.Tests (7)
HttpRequestStreamReaderTest.cs (2)
204Assert.Equal(string.Empty, data); 263Assert.Equal(string.Empty, empty);
QueryHelpersTests.cs (5)
42Assert.Equal(string.Empty, collection["key1"].FirstOrDefault()); 43Assert.Equal(string.Empty, collection["key2"].FirstOrDefault()); 162{ "another", string.Empty }, 193{ "param1", new StringValues(new [] { "value1", string.Empty, "value3" }) }, 194{ "param2", string.Empty },
Microsoft.Build (392)
BackEnd\BuildManager\BuildManager.cs (4)
2543loggingService?.LogError(buildEventContext, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, exception); 2552loggingService?.LogError(BuildEventContext.Invalid, new BuildEventFileInfo(string.Empty) /* no project file */, "ChildExitedPrematurely", node, ExceptionHandling.DebugDumpPath, shutdownPacket.Exception.ToString()); 2698((IBuildComponentHost)this).LoggingService.LogError(buildEventContext, new BuildEventFileInfo(String.Empty), "UnableToCreateNode", response.RequiredNodeType.ToString("G")); 3359get => String.Empty;
BackEnd\Client\MSBuildClient.cs (2)
228MSBuildEventSource.Log.MSBuildServerBuildStop(descriptiveCommandLine, _numConsoleWritePackets, _sizeOfConsoleWritePackets, _exitResult.MSBuildClientExitType.ToString(), _exitResult.MSBuildAppExitTypeString ?? string.Empty); 507envVars[(string)envVar.Key] = (envVar.Value as string) ?? string.Empty;
BackEnd\Components\Logging\LoggingService.cs (1)
1022string.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)
151string assemblyPath = args.LoadedAssembly.IsDynamic ? string.Empty : args.LoadedAssembly.Location;
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
404itemMetadataValues[metadataQualifiedName] = String.Empty;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
702return 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)
305_projectLoggingContext.LogError(new BuildEventFileInfo(String.Empty), "FailedToReceiveTaskThreadStatus", BuildParameters.RequestBuilderShutdownTimeout); 449RaiseOnBlockedRequest(_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)
533string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation); 534string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation); 540if (msbuildRuntime != String.Empty || msbuildArchitecture != String.Empty) 544msbuildArchitecture = msbuildArchitecture == String.Empty ? XMakeAttributes.MSBuildArchitectureValues.any : msbuildArchitecture.Trim(); 545msbuildRuntime = msbuildRuntime == String.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : msbuildRuntime.Trim(); 758ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1122_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)
36? factory.IndicateSuccess(sdkPath, string.Empty)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (2)
193ProjectFileErrorUtilities.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverDllInManifestMissing", pathToManifest, string.Empty); 264MSBuildEventSource.Log.SdkResolverLoadResolversStop(manifest.DisplayName ?? string.Empty, resolvers.Count);
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
357MSBuildEventSource.Log.SdkResolverResolveSdkStop(sdkResolver.Name, sdk.Name, solutionPath ?? string.Empty, projectPath ?? string.Empty, result?.Path ?? string.Empty, result?.Success ?? false);
BackEnd\Node\OutOfProcNode.cs (1)
610buildEvent?.GetType().Name ?? string.Empty);
BackEnd\Shared\BuildResult.cs (1)
663additionalEntries.Add(SpecialKeyForVersion, String.Empty);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
398setParameters[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)
50while (editorConfigFilePath != string.Empty)
BuildEnvironmentHelper.cs (1)
374NativeMethodsShared.ProcessorArchitecture == Framework.NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
BuildEventFileInfo.cs (2)
74_file = file ?? String.Empty; 88_file = (e.SourceUri.Length == 0) ? String.Empty : new Uri(e.SourceUri).LocalPath;
CanonicalError.cs (1)
298string messageOverflow = String.Empty;
Collections\LookasideStringInterner.cs (1)
106EmptyStringIndex => String.Empty,
CommunicationsUtilities.cs (1)
193.Replace("=", string.Empty);
Construction\ProjectElementContainer.cs (2)
582return string.Empty; 591return 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)
688return string.Empty; 1213proj.ProjectGuid = projGuidNode?.InnerText ?? String.Empty; 1394aspNetVirtualPath = String.Empty, 1395aspNetPhysicalPath = String.Empty, 1396aspNetTargetPath = String.Empty, 1397aspNetForce = String.Empty, 1398aspNetUpdateable = String.Empty, 1399aspNetDebug = String.Empty, 1400aspNetKeyFile = String.Empty, 1401aspNetKeyContainer = String.Empty, 1402aspNetDelaySign = String.Empty, 1403aspNetAPTCA = String.Empty, 1404aspNetFixedNames = String.Empty 1782(configurationPlatformParts.Length > 1) ? configurationPlatformParts[1] : string.Empty, 1804_defaultConfigurationName = string.Empty; 1837_defaultPlatformName = string.Empty;
Construction\Solution\SolutionProjectGenerator.cs (34)
763string.Empty, 764string.Empty, 765string.Empty, 767string.Empty, 768string.Empty, 769string.Empty, 770string.Empty, 774AddProjectBuildTask(traversalInstance, null, targetElement, string.Join(";", _targetNames), "@(ProjectReference)", string.Empty, string.Empty); 1355ProjectTargetInstance target = metaprojectInstance.AddTarget(targetName ?? "Build", String.Empty, String.Empty, outputItemAsItem, null, String.Empty, String.Empty, String.Empty, String.Empty, false /* legacy target returns behaviour */); 1360AddProjectBuildTask(traversalProject, projectConfiguration, target, targetName, EscapingUtilities.Escape(project.AbsolutePath), String.Empty, outputItem); 1368ProjectTaskInstance task = target.AddTask("MSBuild", condition, String.Empty); 1390task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 1399ProjectTaskInstance task = target.AddTask("MSBuild", Strings.WeakIntern($"'%(ProjectReference.Identity)' == '{GetMetaprojectName(project)}'"), String.Empty); 1413task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 1747string outDirValue = String.Empty; 1821ProjectTargetInstance frameworkPathAndRedistListTarget = metaprojectInstance.AddTarget("GetFrameworkPathAndRedistList", String.Empty, null, null, null, null, null, null, null, false /* legacy target returns behaviour */); 1823ProjectTaskInstance getFrameworkPathTask = frameworkPathAndRedistListTarget.AddTask("GetFrameworkPath", String.Empty, null); 1988string dependOnTargets = batchBuildTargets ? SolutionProjectReferenceAllTargets : string.Empty; 1989ProjectTargetInstance target = traversalProject.AddTarget(correctedTargetName, string.Empty, string.Empty, outputItemAsItem, null, string.Empty, dependOnTargets, string.Empty, string.Empty, false /* legacy target returns behaviour */); 2002ProjectTaskInstance task = target.AddTask("MSBuild", String.Empty, String.Empty); 2022task.AddOutputItem("TargetOutputs", outputItem, String.Empty); 2423string.Empty, 2428string.Empty,
Construction\UsingTaskParameterGroupElement.cs (3)
93return AddParameter(name, String.Empty, String.Empty, String.Empty);
Definition\BuiltInMetadata.cs (2)
103return String.Empty; 117return 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())); 2973string originalValue = (existing == null) ? String.Empty : ((IProperty)existing).EvaluatedValueEscaped; 2983string displayValue = escapedValue.Substring(0, Math.Min(escapedValue.Length, 75)) + ((escapedValue.Length > 75) ? "..." : String.Empty); 2990string displayOriginalValue = originalValue.Substring(0, Math.Min(originalValue.Length, 75)) + ((originalValue.Length > 75) ? "..." : String.Empty); 4636string 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)
515return value ?? String.Empty; 753return value ?? String.Empty; 1128return value ?? String.Empty;
Definition\ProjectItemDefinition.cs (1)
225return ((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)
719new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 723String.Empty); 730new BuildEventFileInfo(/* this warning truly does not involve any file */ String.Empty), 978loggingContext.LogError(new BuildEventFileInfo(/* this warning truly does not involve any file it is just gathering properties */String.Empty), "TasksPropertyBagError", e.Message); 1014loggingContext.LogWarning(null, new BuildEventFileInfo(String.Empty /* this warning truly does not involve any file*/), "OverrideTasksFileFailure", rootedPathMessage); 1021loggingContext.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)
33yield 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);
Definition\ToolsetRegistryReader.cs (1)
95yield return new ToolsetPropertyDefinition(toolsVersionName, string.Empty, location);
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)
240text = String.Empty; 256text = String.Empty; 281data = String.Empty;
ElementLocation\XmlElementWithLocation.cs (1)
97if (!String.Equals(_elementLocation.File, ownerDocumentWithLocation.FullPath ?? String.Empty, StringComparison.OrdinalIgnoreCase))
EscapingUtilities.cs (1)
89return String.Empty;
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
127string expandedValue = String.Empty;
Evaluation\Conditionals\Scanner.cs (1)
591string name = String.Empty;
Evaluation\Conditionals\StringExpressionNode.cs (1)
80_cachedExpandedValue = String.Empty;
Evaluation\Evaluator.cs (5)
280_streamImports.Add(string.Empty); 2015ImportedProjectFile = string.Empty, 2024ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValue", String.Empty, XMakeAttributes.project, XMakeElements.import); 2121string importedBy = importElement.ContainingProject.FullPath ?? String.Empty; 2142string parenthesizedProjectLocation = String.Empty;
Evaluation\EvaluatorMetadataTable.cs (1)
65return GetEscapedValueIfPresent(itemType, name) ?? String.Empty;
Evaluation\Expander.cs (32)
223? _builder?.ToString() ?? string.Empty 489return String.Empty; 510return String.Empty; 1263propertyValue = String.Empty; 1278propertyValue = String.Empty; 1287propertyValue = String.Empty; 1399ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty); 1432ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty); 1472return String.Empty; 1507convertedString = string.Empty; 1583propertyValue = String.Empty; 1609return String.Empty; 1614return String.Empty; 1617string value = String.Empty; 1678ProjectErrorUtilities.VerifyThrowInvalidProject(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty); 1687string result = String.Empty; 1717return string.Empty; 1732result = String.Empty; 2426string baseDirectoryToUse = item.Value.ProjectDirectory ?? String.Empty; 2504string baseDirectoryToUse = item.Value.ProjectDirectory ?? String.Empty; 2581string baseDirectoryToUse = item.Value.ProjectDirectory ?? String.Empty; 2654else if (metadataValue != String.Empty && includeNullEntries) 2771string.Empty, 3362ProjectErrorUtilities.VerifyThrowInvalidProject(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 3376ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 3390ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 3443ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 3464object functionResult = String.Empty; 3568string startingDirectory = String.IsNullOrWhiteSpace(elementLocation.File) ? String.Empty : Path.GetDirectoryName(elementLocation.File); 4047ProjectErrorUtilities.VerifyThrowInvalidProject(netPropertyName.Length > 0, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 4066ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 4141string parameters = String.Empty;
Evaluation\Expander\WellKnownFunctions.cs (3)
42: string.Empty; 905string projectPath = properties.GetProperty("MSBuildProjectFullPath")?.EvaluatedValue ?? string.Empty; 934returnVal = String.Empty;
Evaluation\IntrinsicFunctions.cs (3)
300return string.Empty; 649return string.Empty; 802subKeyName = string.Empty;
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
109MSBuildEventSource.Log.ExpandGlobStart(_rootDirectory ?? string.Empty, glob, string.Join(", ", excludePatternsForGlobs)); 126MSBuildEventSource.Log.ExpandGlobStop(_rootDirectory ?? string.Empty, glob, string.Join(", ", excludePatternsForGlobs));
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
160return 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)
224string.Empty, 298location == null ? GetPropertySourceName(source) : string.Empty, 458propertySource: string.Empty,
Evaluation\StringMetadataTable.cs (1)
51return GetEscapedValueIfPresent(itemType, name) ?? String.Empty;
EventArgsFormatting.cs (1)
340message = String.Empty;
FileMatcher.cs (22)
475pathRoot = string.Empty; 490longParts[i - startingElement] = string.Empty; 599fixedDirectoryPart = string.Empty; 600wildcardDirectoryPart = string.Empty; 629wildcardDirectoryPart = string.Empty; 650fixedDirectoryPart = string.Empty; 1152recursionState.RemainingWildcardDirectory = indexOfNextSlash != -1 ? recursionState.RemainingWildcardDirectory.Substring(indexOfNextSlash + 1) : string.Empty; 1531fixedDirectoryPart = string.Empty; 1532wildcardDirectoryPart = string.Empty; 1533filenamePart = string.Empty; 1624internal string wildcardDirectoryPart = string.Empty; 1852wildcardDirectoryPart = string.Empty; 1853filenamePart = string.Empty; 1901return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), SearchAction.None, string.Empty, null); 1917string excludeFileSpec = string.Empty; 2369return ([], action, string.Empty, null); 2373return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), action, string.Empty, null); 2377return ([], action, string.Empty, null); 2393string trackExcludeFileSpec = string.Empty; 2524string includeFilespec = state.SearchData.Filespec ?? string.Empty; 2525string excludeFilespec = excludeState.SearchData.Filespec ?? string.Empty; 2622if (possibleParent == string.Empty)
FileUtilities.cs (2)
1501return string.Empty; 1523return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
FrameworkLocationHelper.cs (1)
781var frameworkPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, prefix ?? string.Empty);
Globbing\MSBuildGlob.cs (4)
252return Parse(string.Empty, fileSpec); 281=> 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)
286if (_projectAffinities.TryGetValue(String.Empty, out affinity))
Instance\ProjectInstance.cs (10)
1198get => _projectFileLocation?.File ?? string.Empty; 1896unescapedValue = String.Empty; 1906unescapedValue = String.Empty; 2821condition ?? String.Empty, 2822inputs ?? String.Empty, 2823outputs ?? String.Empty, 2825keepDuplicateOutputs ?? String.Empty, 2826dependsOnTargets ?? String.Empty, 2827beforeTargets ?? String.Empty, 2828afterTargets ?? String.Empty,
Instance\ProjectItemDefinitionInstance.cs (1)
166return ((IMetadataTable)this).GetEscapedValueIfPresent(specifiedItemType, name) ?? String.Empty;
Instance\ProjectItemInstance.cs (4)
562return value ?? String.Empty; 1351return value ?? String.Empty; 1930string value = String.Empty; 2279return value ?? String.Empty;
Instance\ProjectMetadataInstance.cs (1)
76_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)
279ProjectErrorUtilities.VerifyThrowInvalidProject(_loadedType != null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
Instance\TaskFactories\TaskHostTask.cs (2)
500string.Empty]; 527_taskLoggingContext.LogError(new BuildEventFileInfo(_taskLocation), "TaskHostExitedPrematurely", (nodeShutdown.Exception == null) ? String.Empty : nodeShutdown.Exception.ToString());
Instance\TaskFactoryLoggingHost.cs (1)
348_loggingContext.LogWarning(null, new BuildEventFileInfo(string.Empty), "ExpectedEventToBeSerializable", e.GetType().Name);
Instance\TaskFactoryWrapper.cs (3)
311namesOfPropertiesWithAmbiguousMatches[propertyInfo.Name] = String.Empty; 322namesOfPropertiesWithRequiredAttribute[propertyInfo.Name] = String.Empty; 333namesOfPropertiesWithOutputAttribute[propertyInfo.Name] = String.Empty;
Instance\TaskRegistry.cs (5)
435if ((runtime != String.Empty) || (architecture != String.Empty)) 439taskFactoryParameters.Add(XMakeAttributes.runtime, runtime == String.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime); 440taskFactoryParameters.Add(XMakeAttributes.architecture, architecture == String.Empty ? XMakeAttributes.MSBuildArchitectureValues.any : architecture); 1605string message = String.Empty;
InterningBinaryReader.cs (1)
100return String.Empty;
LoadedType.cs (1)
105PropertyAssemblyQualifiedNames[i] = Properties[i]?.PropertyType?.AssemblyQualifiedName?? string.Empty;
Logging\BinaryLogger\BinaryLogger.cs (1)
511=> (PathParameterExpander ?? ExpandPathParameter)(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; 1013string projectConfigurationDescription = String.Empty; 1262nonNullMessage ??= e.Message ?? string.Empty; 1316string targetName = string.Empty; 1432string currentProjectFile = startedEvent.ProjectFile ?? string.Empty; 1506string current = projectStartedEvent.ProjectFile ?? string.Empty; 1595string context = string.Empty; 1609prefixString = $"{ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildEventContext", context, string.Empty)} ";
Logging\ParallelLogger\ParallelLoggerHelpers.cs (1)
546_targetName = targetName ?? string.Empty;
Logging\SerialConsoleLogger.cs (1)
522: e.Message ?? String.Empty;
Logging\SimpleErrorLogger.cs (1)
40get => string.Empty;
Logging\TerminalLogger\TerminalLogger.cs (8)
245string tlEnvVariable = Environment.GetEnvironmentVariable("MSBUILDTERMINALLOGGER") ?? string.Empty; 246string tlArg = string.Empty; 247string? verbosityArg = string.Empty; 254tlArg = tlMatches.OfType<Match>().LastOrDefault()?.Groups["value"].Value ?? string.Empty; 543Terminal.WriteLine(string.Empty); 703Terminal.WriteLine(string.Empty); 733string.Empty; 1238message ??= string.Empty;
Logging\TerminalLogger\TerminalNodesFrame.cs (2)
68targetPrefix = target = string.Empty; 85return $"{TerminalLogger.Indentation}{project}{(targetFramework is null ? string.Empty : " ")}{AnsiCodes.Colorize(targetFramework, TerminalLogger.TargetFrameworkColor)} {AnsiCodes.SetCursorHorizontal(MaxColumn)}{AnsiCodes.MoveCursorBackward(targetWithoutAnsiLength + durationString.Length + 1)}{renderedTarget} {durationString}".AsSpan();
LogMessagePacketBase.cs (3)
1129writer.Write(kvp.Key ?? string.Empty); 1130writer.Write(kvp.Value ?? string.Empty); 1300string responseFilePath = String.Empty;
Modifiers.cs (8)
401currentDirectory = String.Empty; 432modifiedItemSpec = String.Empty; 447modifiedItemSpec = String.Empty; 498modifiedItemSpec = String.Empty; 519modifiedItemSpec = String.Empty; 535modifiedItemSpec = String.Empty; 551modifiedItemSpec = String.Empty; 559modifiedItemSpec = String.Empty;
PlatformNegotiation.cs (3)
29return string.Empty; 42string buildProjectReferenceAs = string.Empty; 95buildProjectReferenceAs = string.Empty;
PrintLineDebugger.cs (1)
52_id = id ?? string.Empty;
PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
PropertyParser.cs (2)
39string propertyName = String.Empty; 40string propertyValue = String.Empty;
SolutionConfiguration.cs (1)
106public static SolutionConfiguration Empty { get; } = new SolutionConfiguration(string.Empty);
StringExtensions.cs (1)
24newValue = string.Empty;
TaskParameter.cs (6)
217return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 305escapedMetadata[(string)key] = (string)nonGenericEscapedMetadata[key] ?? String.Empty; 326escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 773return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 854_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 968return metadataValue ?? String.Empty;
TempFileUtilities.cs (3)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 171extension = string.Empty; 192File.WriteAllText(file, string.Empty);
ToolsetElement.cs (4)
277string locationString = String.Empty; 295_previouslySeenOS.Add(os, string.Empty); 465_previouslySeenPropertyNames.Add(propertyName, string.Empty); 636_previouslySeenToolsVersions.Add(toolsVersion, string.Empty);
Tracing.cs (2)
43private static string s_slot = String.Empty; 119s_slot = String.Empty;
Utilities\EngineFileUtilities.cs (2)
192string excludeFileSpec = string.Empty; 429string.Empty,
Utilities\RegistryKeyWrapper.cs (2)
85return Exists() ? WrappedKey.Name : string.Empty; 215throw new RegistryException(ex.Message, _wrappedKey == null ? string.Empty : Name, ex);
Utilities\Utilities.cs (5)
195return String.Empty; 311return XmlnsPattern.Replace(xml, String.Empty); 538string localAppData = String.Empty; 649yield return new(property.Name, property.EvaluatedValue ?? string.Empty); 653yield return new(key, dictionaryEntry.Value as string ?? string.Empty);
XMakeAttributes.cs (9)
170ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 214ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 287ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 354ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 430string currentArchitecture = string.Empty;
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();
XmlUtilities.cs (1)
36(XmlElementWithLocation)((XmlDocumentWithLocation)oldElement.OwnerDocument).CreateElement(newElementName, xmlNamespace ?? string.Empty, oldElement.Location);
Microsoft.Build.BuildCheck.UnitTests (6)
EndToEndTests.cs (4)
546(checkRequested ? " -check" : string.Empty), out bool success, false, _env.Output, timeoutMilliseconds: 120_000); 584$"{Path.GetFileName(projectFile.Path)} /m:1 -nr:False -restore {(checkRequested ? "-check" : string.Empty)} -bl:{logFile}", 704$"{logFile} -flp:logfile={Path.Combine(projectDirectory!, "logFile.log")};verbosity=diagnostic {(checkRequested ? "-check" : string.Empty)}", 981string checksPackagesPath = Path.Combine(Directory.GetParent(AssemblyLocation)?.Parent?.FullName ?? string.Empty, "CustomChecks");
ExecCliBuildCheck_Tests.cs (1)
56string.Empty,
TestAssemblyInfo.cs (1)
87contents: string.Empty);
Microsoft.Build.CommandLine.UnitTests (8)
CommandLineSwitches_Tests.cs (2)
269Assert.False(CommandLineSwitches.IsParameterizedSwitch(String.Empty, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed)); 1384env.SetEnvironmentVariable("ENVIRONMENTVARIABLE", string.Empty);
TestAssemblyInfo.cs (1)
87contents: string.Empty);
XMake_Tests.cs (5)
208sa[1].ShouldBe(string.Empty); 209sa[2].ShouldBe(string.Empty); 1272string output = RunnerUtilities.ExecMSBuild(string.Empty, out var successfulExit, _output); 1479directory.CreateFile("solutionFile.sln", string.Empty); 1660string[] extensionsToIgnore = { ".phantomextension", string.Empty };
Microsoft.Build.Engine.OM.UnitTests (125)
AssemblyResources.cs (1)
20return String.Empty;
BuildEnvironmentHelper.cs (1)
374NativeMethodsShared.ProcessorArchitecture == Framework.NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
Construction\ConstructionEditing_Tests.cs (1)
395target.Inputs = String.Empty;
Construction\ProjectChooseElement_Tests.cs (1)
284Assert.Equal(String.Empty, project.GetPropertyValue("p"));
Construction\ProjectExtensionsElement_Tests.cs (4)
123extensions["a"] = String.Empty; 125Assert.Equal(String.Empty, content); 126extensions["a"] = String.Empty; // make sure it doesn't die or something 154Assert.Equal(String.Empty, content);
Construction\ProjectFormatting_Tests.cs (1)
682string content = xmlDeclaration ? declaration : string.Empty;
Construction\ProjectImportElement_Tests.cs (2)
148import.Project = String.Empty; 226Assert.Equal(String.Empty, project.GetPropertyValue("p"));
Construction\ProjectImportGroupElement_Tests.cs (1)
362import.Project = String.Empty;
Construction\ProjectItemElement_Tests.cs (12)
668item.Include = String.Empty; 670Assert.Equal(String.Empty, item.Include); 685Assert.Equal(String.Empty, item.Include); 713item.Exclude = String.Empty; 715Assert.Equal(String.Empty, item.Exclude); 730Assert.Equal(String.Empty, item.Exclude); 790item.Remove = String.Empty; 792Assert.Equal(String.Empty, item.Remove); 807Assert.Equal(String.Empty, item.Remove); 884item.Update = String.Empty; 886Assert.Equal(String.Empty, item.Update); 901Assert.Equal(String.Empty, item.Update);
Construction\ProjectMetadataElement_Tests.cs (2)
350metadatum.Value = String.Empty; 351Assert.Equal(String.Empty, metadatum.Value);
Construction\ProjectOnErrorElement_Tests.cs (3)
84Assert.Equal(String.Empty, onError.ExecuteTargetsAttribute); 110Assert.Equal(String.Empty, onError.ExecuteTargetsAttribute); 249onError.ExecuteTargetsAttribute = String.Empty;
Construction\ProjectOutputElement_Tests.cs (2)
31Assert.Equal(String.Empty, output.PropertyName); 47Assert.Equal(String.Empty, output.ItemType);
Construction\ProjectPropertyElement_Tests.cs (2)
232property.Value = String.Empty; 233Assert.Equal(String.Empty, property.Value);
Construction\ProjectRootElement_Tests.cs (7)
105Assert.Equal(string.Empty, project.DefaultTargets); 106Assert.Equal(string.Empty, project.InitialTargets); 508Assert.Equal(string.Empty, root1.DefaultTargets); 509Assert.Equal(string.Empty, root2.DefaultTargets); 1161pg.AddProperty("c", string.Empty); 1692(initial, reload, actualFile) => { Assert.Equal(String.Empty, actualFile); }); 1780private static string EmptyIfNull(string aString) => aString ?? string.Empty;
Construction\ProjectTargetElement_Tests.cs (3)
156Assert.Equal(String.Empty, target.Condition); 326target.Returns = String.Empty; 328Assert.Equal(String.Empty, target.Returns);
Construction\ProjectTaskElement_Tests.cs (2)
37Assert.Equal(String.Empty, task.ContinueOnError); 145Assert.Equal(String.Empty, task.GetParameter("xxxx"));
Construction\ProjectUsingTaskElement_Tests.cs (5)
194Assert.Equal(String.Empty, usingTask.AssemblyName); 195Assert.Equal(String.Empty, usingTask.Condition); 207Assert.Equal(String.Empty, usingTask.AssemblyFile); 221Assert.Equal(String.Empty, usingTask.AssemblyFile); 239value = String.Empty;
Construction\UsingTaskBodyElement_Tests.cs (2)
94body.TaskBody = String.Empty; 95Assert.Equal(String.Empty, body.TaskBody);
Construction\UsingTaskParameterElement_Tests.cs (3)
147parameter.ParameterType = String.Empty; 161parameter.Output = String.Empty; 175parameter.Required = String.Empty;
Definition\DefinitionEditing_Tests.cs (3)
232project.AddItem("i", String.Empty); 1830Assert.Equal(String.Empty, instance.GetPropertyValue("p1")); 2156project.AddItemFast("i", String.Empty);
Definition\EditingElementsReferencedByOrReferences_Tests.cs (1)
304Assert.Equal(String.Empty, metadata.EvaluatedValue); // "Evaluated value is wrong"
Definition\Project_Tests.cs (12)
246XmlReader reader = XmlReader.Create(new StringReader(String.Empty)); 259XmlReader reader = XmlReader.Create(new StringReader(String.Empty)); 292XmlReader reader = XmlReader.Create(new StringReader(String.Empty)); 862project.GetPropertyValue("p").ShouldBe(string.Empty); 902project.GetPropertyValue("p1").ShouldBe(string.Empty); 967project.GetPropertyValue("pp").ShouldBe(string.Empty); 996project.GetPropertyValue("pp").ShouldBe(string.Empty); 1033project.GetPropertyValue("p").ShouldBe(string.Empty); 1085xml.ToolsVersion = string.Empty; 1090project.Xml.ToolsVersion.ShouldBe(string.Empty); 1737File.WriteAllText(filePath, string.Empty); 4088eventArgs.ImportedProjectFile.ShouldBe(string.Empty);
Definition\ProjectCollection_Tests.cs (3)
1075ProjectCollection.GlobalProjectCollection.RemoveToolset(String.Empty); 1123ProjectCollection.GlobalProjectCollection.DefaultToolsVersion = String.Empty; 1340TestOutput.WriteLine(e.Reason ?? String.Empty);
Definition\ProjectItem_Tests.cs (15)
223Assert.Equal(String.Empty, item.GetMetadataValue("m0")); 305Assert.Equal(String.Empty, item.GetMetadataValue("RecursiveDir")); 323File.WriteAllText(path, String.Empty); 365File.WriteAllText(file, String.Empty); 412File.WriteAllText(file, String.Empty); 450TransientTestFile file = env.CreateFile(directory, "a.cs", String.Empty); 1596Assert.Equal(String.Empty, item.GetMetadataValue("m")); 1619Assert.Equal(String.Empty, item.GetMetadataValue("n")); 1687Assert.Equal(String.Empty, items[1].GetMetadataValue("m")); 1835Assert.Equal(String.Empty, items[1].GetMetadataValue("m2")); 1860Assert.Equal(String.Empty, items[0].GetMetadataValue("m2")); 1878Assert.Equal(String.Empty, item.GetMetadataValue("m")); 3140{"m1", string.Empty} 3214{ "m1", string.Empty }, 3215{ "m2", string.Empty },
Definition\ProjectMetadata_Tests.cs (4)
165Assert.Equal(String.Empty, metadatum.EvaluatedValue); 218Assert.Equal(String.Empty, metadatum.EvaluatedValue); 341Assert.Equal(String.Empty, metadatum.EvaluatedValue); 437Assert.Equal(String.Empty, metadatum.EvaluatedValue);
Definition\ProjectProperty_Tests.cs (1)
191globalProperties["g"] = String.Empty;
EscapingUtilities.cs (1)
89return String.Empty;
FileUtilities.cs (2)
1501return string.Empty; 1523return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
Instance\ProjectInstance_Tests.cs (5)
69Assert.Equal(String.Empty, items[0].GetMetadataValue("m")); 169p.AddItem(String.Empty, "i1"); 290File.WriteAllText(file1, String.Empty); 291File.WriteAllText(file2, String.Empty); 292File.WriteAllText(file3, String.Empty);
Instance\ProjectItemInstance_Tests.cs (13)
151Assert.Equal(String.Empty, item.GetMetadataValue("X")); 224item.EvaluatedInclude = String.Empty; 252Assert.Equal(String.Empty, item.GetMetadataValue("m")); 273item.SetMetadata("m", String.Empty); 274Assert.Equal(String.Empty, item.GetMetadataValue("m")); 286Assert.Equal(String.Empty, item.GetMetadataValue("m")); 310item.SetMetadata(String.Empty, "m1"); 420Assert.Equal(String.Empty, taskItem.GetMetadata("m")); 697Assert.Equal(String.Empty, item.GetMetadataValue("m")); 720Assert.Equal(String.Empty, item.GetMetadataValue("n")); 788Assert.Equal(String.Empty, items[1].GetMetadataValue("m")); 936Assert.Equal(String.Empty, items[1].GetMetadataValue("m2")); 961Assert.Equal(String.Empty, items[0].GetMetadataValue("m2"));
Instance\ProjectPropertyInstance_Tests.cs (2)
59property.EvaluatedValue = String.Empty; 60Assert.Equal(String.Empty, property.EvaluatedValue);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (1)
351pair.ValidatePropertyValue("fooProp", string.Empty);
PrintLineDebugger.cs (1)
52_id = id ?? string.Empty;
PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
TempFileUtilities.cs (3)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 171extension = string.Empty; 192File.WriteAllText(file, string.Empty);
TestAssemblyInfo.cs (1)
87contents: string.Empty);
Microsoft.Build.Engine.UnitTests (300)
BackEnd\AssemblyTaskFactory_Tests.cs (22)
59taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 71taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 83taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 95taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 109taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 123taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 134Assert.True(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 143Assert.False(_taskFactory.TaskNameCreatableByFactory("NotInAssembly", null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 154Assert.False(_taskFactory.TaskNameCreatableByFactory(String.Empty, null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 165Assert.False(_taskFactory.TaskNameCreatableByFactory(null, null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 185Assert.True(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", taskIdentityParameters, String.Empty, null, ElementLocation.Create(".", 1, 1))); 205Assert.False(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", taskIdentityParameters, String.Empty, null, ElementLocation.Create(".", 1, 1))); 691_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\BatchingEngine_Tests.cs (1)
87Assert.Equal(String.Empty, buckets[0].Expander.ExpandIntoStringAndUnescape("%(Extension)", ExpanderOptions.ExpandAll, MockElementLocation.Instance));
BackEnd\BuildManager_Logging_Tests.cs (2)
86var testFiles = _env.CreateTestProjectWithFiles(string.Empty, ["main", "child1"], string.Empty);
BackEnd\BuildManager_Tests.cs (7)
3693var testFiles = env.CreateTestProjectWithFiles(string.Empty, new[] { "p2p", "main" }); 3776var testFiles = _env.CreateTestProjectWithFiles(string.Empty, new[] { "main", "p2p" }, string.Empty); 3844var testFiles = _env.CreateTestProjectWithFiles(string.Empty, new[] { "main", "import" }, string.Empty); 3931var testFiles = _env.CreateTestProjectWithFiles(string.Empty, new[] { "main", "child1", "child2" }, string.Empty);
BackEnd\IntrinsicTask_Tests.cs (13)
470Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 472Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 497Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 498Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 499Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 525Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 554Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 601Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 626Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 627Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 655Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 656Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 1069Assert.Equal(String.Empty, i2Group.ElementAt(1).GetMetadataValue("n"));
BackEnd\LoggingServicesLogMethod_Tests.cs (35)
118service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 275service.LogFatalError(s_buildEventContext, new Exception("SuperException"), fileInfo, string.Empty, null); 358GenerateMessageFromExceptionAndResource(exception, resourceName, out errorCode, out helpKeyword, out message, String.Empty); 360service.LogFatalTaskError(s_buildEventContext, exception, fileInfo, string.Empty); 418TestLogErrorFromText(String.Empty, helpKeyword, subcategoryKey, message); 422TestLogErrorFromText(warningCode, String.Empty, subcategoryKey, message); 428TestLogErrorFromText(warningCode, helpKeyword, subcategoryKey, String.Empty); 582service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 593TestLogWarning(String.Empty, "SubCategoryForSolutionParsingErrors"); 651TestLogWarningFromText(String.Empty, helpKeyword, subcategoryKey, message); 654TestLogWarningFromText(warningCode, String.Empty, subcategoryKey, message); 657TestLogWarningFromText(warningCode, String.Empty, subcategoryKey, message); 661TestLogWarningFromText(warningCode, helpKeyword, subcategoryKey, String.Empty); 692service.LogComment(s_buildEventContext, MessageImportance.Low, String.Empty, null); 743service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, string.Empty); 989TestProjectFinishedEvent(String.Empty, true); 1013string message = onlyLogCriticalEvents ? string.Empty : ResourceUtilities.GetResourceString("BuildStarted"); 1046buildEvent = new BuildFinishedEventArgs(string.Empty, null /* no help keyword */, true, service.ProcessedBuildEvent.Timestamp); 1107TestTaskStartedEvent(String.Empty, "ProjectFile", "ProjectFileOfTaskNode"); 1110TestTaskStartedEvent("TaskName", String.Empty, "ProjectFileOfTaskNode"); 1113TestTaskStartedEvent("TaskName", "ProjectFile", String.Empty); 1142TestTaskFinished(String.Empty, "ProjectFile", "ProjectFileOfTaskNode", true); 1145TestTaskFinished("TaskName", String.Empty, "ProjectFileOfTaskNode", true); 1148TestTaskFinished("TaskName", "ProjectFile", String.Empty, true); 1182TestTargetStartedEvent(String.Empty, "ProjectFile", "projectFileOfTarget"); 1184TestTargetStartedEvent("TargetName", String.Empty, "projectFileOfTarget"); 1186TestTargetStartedEvent("Good", "ProjectFile", String.Empty); 1198TestTargetStartedWithParentTargetEvent(String.Empty, "ProjectFile", "projectFileOfTarget"); 1200TestTargetStartedWithParentTargetEvent("TargetName", String.Empty, "projectFileOfTarget"); 1202TestTargetStartedWithParentTargetEvent("Good", "ProjectFile", String.Empty); 1230TestTargetFinished(String.Empty, "ProjectFile", "ProjectFileOfTarget", true); 1233TestTargetFinished("TargetName", String.Empty, "ProjectFileOfTarget", true); 1236TestTargetFinished("TargetName", "ProjectFile", String.Empty, true); 1524service.LogTargetStarted(s_targetBuildEventContext, targetName, projectFile, projectFileOfTarget, String.Empty, TargetBuiltReason.None); 1601String.Empty,
BackEnd\Lookup_Tests.cs (35)
422Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 423Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 437Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 438Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 449Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 450Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 502Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 503Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 504Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 512Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 513Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 514Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 547Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 548Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 565Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 566Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 567Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 578Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 579Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 580Assert.Equal(String.Empty, group.First().GetMetadataValue("m3")); 618Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 619Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 636Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 637Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 648Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 649Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 688Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 699Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 710Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 739Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 740Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 748Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 749Assert.Equal(String.Empty, group.First().GetMetadataValue("m2")); 757Assert.Equal(String.Empty, group.First().GetMetadataValue("m1")); 758Assert.Equal(String.Empty, group.First().GetMetadataValue("m2"));
BackEnd\MSBuild_Tests.cs (3)
1622string target1 = String.Empty; 1623string target2 = String.Empty; 1624string target3 = String.Empty;
BackEnd\Scheduler_Tests.cs (1)
816hostServices.SetNodeAffinity(String.Empty, nodeAffinity);
BackEnd\SdkResolverLoader_Tests.cs (10)
72File.WriteAllText(f1, string.Empty); 73File.WriteAllText(f2, string.Empty); 74File.WriteAllText(f3, string.Empty); 75File.WriteAllText(f4, string.Empty); 101File.WriteAllText(wrongResolverDll, string.Empty); 102File.WriteAllText(assemblyToLoad, string.Empty); 373File.WriteAllText(Path.Combine(testRoot, resolver1, $"{resolver1}.dll"), string.Empty); 375File.WriteAllText(resolver1Path, string.Empty); 379File.WriteAllText(resolver2Path, string.Empty); 383File.WriteAllText(resolver3Path, string.Empty);
BackEnd\SdkResolverService_Tests.cs (1)
1001return factory.IndicateSuccess("defaultpath", string.Empty);
BackEnd\TargetBuilder_Tests.cs (4)
1422var project = CreateTestProject(projectContents, string.Empty, "Build"); 1450var project = CreateTestProject(projectContents, string.Empty, "Build"); 1649return CreateTestProject(projectBodyContents, String.Empty, String.Empty);
BackEnd\TargetUpToDateChecker_Tests.cs (4)
885File.WriteAllText(input1, String.Empty); 892File.WriteAllText(input2, String.Empty); 899File.WriteAllText(output1, String.Empty); 906File.WriteAllText(output2, String.Empty);
BackEnd\TaskBuilderTestTask.cs (1)
1005return String.Empty;
BackEnd\TaskExecutionHost_Tests.cs (3)
771ValidateOutputProperty("EmptyStringOutput", String.Empty); 781ValidateOutputProperty("EmptyStringArrayOutput", String.Empty); 1086ml.AssertLogDoesntContain(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("UnhandledMSBuildError", string.Empty));
BackEnd\TaskHost_Tests.cs (1)
1249return String.Empty;
BackEnd\TaskHostConfiguration_Tests.cs (1)
92taskName: String.Empty,
BackEnd\TaskRegistry_Tests.cs (2)
1732element.AddUsingTaskBody("$(FalseString)", String.Empty); 1756element.AddUsingTaskBody("@(ItemWithTrueItem)", String.Empty);
BinaryLogger_Tests.cs (1)
482string errorMessage = string.Empty;
BuildEnvironmentHelper_Tests.cs (7)
477File.WriteAllText(Path.Combine(BuildDirectory, file), string.Empty); 483File.WriteAllText(Path.Combine(BuildDirectory64, file), string.Empty); 487File.WriteAllText(DevEnvPath, string.Empty); 522File.WriteAllText(MSBuildExePath, string.Empty); 523File.WriteAllText($"{MSBuildExePath}.config", string.Empty); 528File.WriteAllText(Path.Combine(BuildDirectory, "amd64", msBuildExeName), string.Empty); 529File.WriteAllText(Path.Combine(BuildDirectory, "amd64", $"{MSBuildExePath}.config"), string.Empty);
ChangeWaves_Tests.cs (1)
105SetChangeWave(string.Empty, env);
ConsoleLogger_Tests.cs (7)
620string context = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildEventContext", string.Empty, 0) + ">"; 1664items.Add("type", (ITaskItem2)new TaskItem("spec", String.Empty)); 1665items.Add("type2", (ITaskItem2)new TaskItem("spec2", String.Empty)); 1668ITaskItem2 taskItem3 = new TaskItem("%28spec%3b3", String.Empty); 1681string item3metadatum = string.Empty; 1722if (!String.Equals(item3metadatum, String.Empty, StringComparison.OrdinalIgnoreCase)) 1736if (!String.Equals(item3metadatum, String.Empty, StringComparison.OrdinalIgnoreCase))
ConsoleOutputAlignerTests.cs (3)
268output.ShouldBe((prefixAlreadyWritten ? string.Empty : prefix) + input + Environment.NewLine); 283output.ShouldBe((prefixAlreadyWritten ? string.Empty : prefix) + input + Environment.NewLine); 298string expected = (prefixAlreadyWritten ? string.Empty : prefix) + input + Environment.NewLine +
Construction\ElementLocation_Tests.cs (4)
133string longstring = String.Empty; 235Assert.Equal(location.File, String.Empty); 429string locations = String.Empty; 440locations += ((XmlNode)node).Name + "==" + ((XmlNode)node).Value ?? String.Empty + ": " + value.LocationString + "\r\n";
Construction\ProjectRootElement_Tests.cs (2)
116Assert.Equal(string.Empty, children[0].ChildNodes[0].Value); 117Assert.Equal(string.Empty, children[0].ChildNodes[1].Value);
Construction\SolutionFile_OldParser_Tests.cs (2)
668"someproj.etp", String.Empty); 703"someproj.etp", String.Empty);
Construction\SolutionProjectGenerator_Tests.cs (3)
80instances[0].Targets["Build"].AfterTargets.ShouldBe(string.Empty); 489Assert.Equal(String.Empty, instances[0].GetPropertyValue("VisualStudioVersion")); 2815Assert.Equal(enable ? expectedPropertyValue : string.Empty, projectInstance.GetPropertyValue("PropertyA"));
CopyOnWriteDictionary_Tests.cs (3)
47object value = dictionary[string.Empty]; 79bool result = dictionary.TryGetValue(string.Empty, out v); 83Assert.False(dictionary.ContainsKey(string.Empty));
Definition\Project_Internal_Tests.cs (3)
286project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 314project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 344project.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase);
Definition\ProjectItem_Tests.cs (1)
35Assert.Equal(String.Empty, item2.GetMetadataValue("n"));
Definition\Toolset_Tests.cs (1)
44Toolset t = new Toolset(String.Empty, "x", new ProjectCollection(), null);
Definition\ToolsVersion_Tests.cs (2)
247String.Empty); 253String.Empty);
EscapingInProjects_Tests.cs (3)
1805File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "a.weirdo"), String.Empty); 1806File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "b.weirdo"), String.Empty); 1807File.WriteAllText(Path.Combine(ObjectModelHelpers.TempProjectDir, "c.weirdo"), String.Empty);
Evaluation\Evaluator_Tests.cs (6)
2059Assert.Equal(String.Empty, project.AllEvaluatedItems.ElementAt(0).GetMetadataValue("m")); 2824Assert.Equal(string.Empty, project.GetPropertyValue("MSBuildProjectDirectoryNoRoot")); 2842Assert.Equal(string.Empty, project.GetPropertyValue("MSBuildProjectDirectoryNoRoot")); 4868propertyInitialValueMap["Prop"].PropertyValue.ShouldBe(string.Empty); 4988propertyInitialValueMap["Prop"].PropertyValue.ShouldBe(string.Empty); 5111"PropertyReassignment", propertyName, propertyNewValue, propertyOldValue, string.Empty)}"));
Evaluation\Expander_Tests.cs (11)
165Assert.Equal(String.Empty, result); 1732Assert.Equal(String.Empty, result); 1748Assert.Equal(String.Empty, result); 3403Assert.Equal(String.Empty, result); 3437Assert.Equal(String.Empty, result); 3564pg["DifferentTargetsPath"] = ProjectPropertyInstance.Create("DifferentTargetsPath", String.Empty); 3804Assert.Equal(String.Empty, result); 3844key.SetValue(String.Empty, "%" + envVar + "%", RegistryValueKind.ExpandString); 3868key.SetValue(String.Empty, "%" + envVar + "%", RegistryValueKind.ExpandString); 3892key.SetValue(String.Empty, "%" + envVar + "%", RegistryValueKind.ExpandString); 4320result = String.Empty;
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (5)
487String.Format(extnTargetsFileContentTemplate, String.Empty, "FromExtn2", "<Import Project='$(MSBuildExtensionsPath32)\\bar\\extn2.proj' />")); 491String.Format(extnTargetsFileContentTemplate, 3, String.Empty, String.Empty)); 804extnDir1 = GetNewExtensionsPathAndCreateFile("extensions1", Path.Combine("file.props"), string.Empty); 950string combinedExtnDirs = extnDirs != null ? String.Join(";", extnDirs) : String.Empty;
Evaluation\ItemEvaluation_Tests.cs (1)
625Assert.Equal(string.Empty, project.GetConcatenatedItemsOfType("RecursiveDir"));
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
325string content = string.Format(projectFormatString, string.Empty, projectInnerContents); 558ExpectedMinimumVersion = expectedMinimumVersionIsNull ? null : string.Empty;
ExpressionTree_Tests.cs (3)
336String.Empty, 445String.Empty, 481String.Empty,
FileMatcher_Tests.cs (9)
1286var testProject = env.CreateTestProjectWithFiles(string.Empty, new[] { "a.cs", "b.cs", "c.cs" }); 1356string.Empty, 1361excludeFileSpec.ShouldBe(string.Empty); 1365string.Empty, 1397string.Empty, 1401excludeFileSpec.ShouldBe(string.Empty); 1405string.Empty, 1957: string.Empty; 2400String.Empty, /* we don't need project directory as we use mock filesystem */
FileUtilities_Tests.cs (20)
34string modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, "foo", String.Empty, FileUtilities.ItemSpecModifiers.RecursiveDir, ref cache); 35Assert.Equal(String.Empty, modifier); 38modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, "foo", String.Empty, FileUtilities.ItemSpecModifiers.ModifiedTime, ref cache); 39Assert.Equal(String.Empty, modifier); 42modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, @"foo\goo", String.Empty, FileUtilities.ItemSpecModifiers.RelativeDir, ref cache); 46modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, @"foo\goo", String.Empty, FileUtilities.ItemSpecModifiers.RelativeDir, ref cache); 52modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, itemSpec, String.Empty, FileUtilities.ItemSpecModifiers.FullPath, ref cache); 56modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, itemSpec, String.Empty, FileUtilities.ItemSpecModifiers.RootDir, ref cache); 59modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, itemSpec, String.Empty, FileUtilities.ItemSpecModifiers.Filename, ref cache); 62modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, itemSpec, String.Empty, FileUtilities.ItemSpecModifiers.Extension, ref cache); 65modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, itemSpec, String.Empty, FileUtilities.ItemSpecModifiers.Directory, ref cache); 66Assert.Equal(String.Empty, modifier); 68modifier = FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, itemSpec, String.Empty, FileUtilities.ItemSpecModifiers.Identity, ref cache); 177FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, @"http://www.microsoft.com", String.Empty, FileUtilities.ItemSpecModifiers.RootDir, ref cache); 234Assert.False(FileUtilities.EndsWithSlash(String.Empty)); 258Assert.Equal(String.Empty, FileUtilities.GetDirectory("foo")); 443Assert.Equal(@"c:\", FileUtilities.ItemSpecModifiers.GetItemSpecModifier(currentDirectory, fullPath, String.Empty, FileUtilities.ItemSpecModifiers.RootDir, ref cache)); 460Assert.Null(FileUtilities.NormalizePath(String.Empty)); 900string filePath = ObjectModelHelpers.CreateFileInTempProjectDirectory("first/second/file.txt", String.Empty); 931string filePath = ObjectModelHelpers.CreateFileInTempProjectDirectory("first/second/file.txt", String.Empty);
FileUtilitiesRegex_Tests.cs (5)
533UncPattern.IsMatch(string.Empty).ShouldBeFalse(); 534StartsWithUncPattern.IsMatch(string.Empty).ShouldBeFalse(); 540FileUtilitiesRegex.IsUncPattern(string.Empty).ShouldBeFalse(); 541FileUtilitiesRegex.StartsWithUncPattern(string.Empty).ShouldBeFalse(); 542FileUtilitiesRegex.StartsWithUncPatternMatchLength(string.Empty).ShouldBe(-1);
Globbing\MSBuildGlob_Tests.cs (9)
49var glob = MSBuildGlob.Parse(string.Empty, "*"); 146Assert.Equal(string.Empty, glob.FixedDirectoryPart); 147Assert.Equal(string.Empty, glob.WildcardDirectoryPart); 148Assert.Equal(string.Empty, glob.FilenamePart); 171Assert.Equal(string.Empty, glob.WildcardDirectoryPart); 261var glob = MSBuildGlob.Parse(globRoot, string.Empty); 263Assert.True(glob.IsMatch(string.Empty)); 273Assert.True(glob.IsMatch(string.Empty)); 283Assert.False(glob.IsMatch(string.Empty));
Graph\GraphLoadedFromSolution_tests.cs (3)
40files[i] = _env.CreateFile(files[i], string.Empty).Path; 68var solutionFile = _env.CreateFile("solutionReference.sln", string.Empty).Path; 230{"1", _env.CreateFile("1.csproj", string.Empty).Path}
Graph\IsolateProjects_Tests.cs (2)
526: string.Empty, 529: string.Empty)
Graph\ProjectGraph_Tests.cs (2)
1040TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: string.Empty); 1063TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { " ; ; " } } }, defaultTargets: string.Empty);
Graph\ResultCacheBasedBuilds_Tests.cs (2)
533: string.Empty)} 556var existingFile = _env.CreateFile("FileExists", string.Empty).Path;
Instance\HostServices_Tests.cs (7)
164hostServices.SetNodeAffinity(String.Empty, NodeAffinity.InProc); 168hostServices.SetNodeAffinity(String.Empty, NodeAffinity.OutOfProc); 172hostServices.SetNodeAffinity(String.Empty, NodeAffinity.Any); 185hostServices.SetNodeAffinity(String.Empty, NodeAffinity.InProc); 204hostServices.SetNodeAffinity(String.Empty, NodeAffinity.OutOfProc); 316hostServices.SetNodeAffinity(String.Empty, NodeAffinity.InProc); 371hostServices.SetNodeAffinity(String.Empty, NodeAffinity.OutOfProc);
Instance\ProjectInstance_Internal_Tests.cs (15)
183properties[1].Condition.ShouldBe(String.Empty); 184properties[1].Value.ShouldBe(String.Empty); 220items[0].Remove.ShouldBe(String.Empty); 223items[1].Include.ShouldBe(String.Empty); 224items[1].Exclude.ShouldBe(String.Empty); 226items[1].Condition.ShouldBe(String.Empty); 228items[2].Include.ShouldBe(String.Empty); 229items[2].Exclude.ShouldBe(String.Empty); 230items[2].Remove.ShouldBe(String.Empty); 231items[2].Condition.ShouldBe(String.Empty); 243metadata1[1].Condition.ShouldBe(String.Empty); 246metadata3[0].Condition.ShouldBe(String.Empty); 906projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 934projectInstance.GetPropertyValue(ReservedPropertyNames.interactive).ShouldBe(interactive ? bool.TrueString : string.Empty, StringCompareShould.IgnoreCase); 996string toolsVersionSubstring = toolsVersion != null ? "ToolsVersion=\"" + toolsVersion + "\" " : String.Empty;
MockTask.cs (3)
238return String.Empty; 360return new TaskItem("foo", String.Empty); 372return new TaskItem[] { new TaskItem("foo", String.Empty) };
ProjectCache\ProjectCacheTests.cs (2)
642? string.Empty 647? string.Empty
TerminalLogger_Tests.cs (1)
183return new TargetStartedEventArgs("", "", targetName, projectFile, targetFile: projectFile, String.Empty, TargetBuiltReason.None, _targetStartTime)
TestAssemblyInfo.cs (1)
87contents: string.Empty);
TestData\ProjectInstanceTestObjects.cs (1)
198return counter?.ToString() ?? string.Empty;
XmlUtilities_Tests.cs (1)
50string actual = String.Empty;
Microsoft.Build.Framework (37)
BinaryTranslator.cs (4)
776string key = string.Empty; 823if (nullable && !TranslateNullable(string.Empty)) 862if (nullable && !TranslateNullable(string.Empty)) 1408string value = string.Empty;
BuildCheck\BuildCheckEventArgs.cs (2)
124: this(string.Empty, string.Empty)
CriticalTaskException.cs (1)
18: base(string.Empty, innerException)
EnvironmentVariableReadEventArgs.cs (1)
78File = reader.ReadOptionalString() ?? string.Empty;
GeneratedFileUsedEventArgs.cs (1)
24: base(string.Empty, null, null, MessageImportance.Low)
IItemData.cs (1)
68EvaluatedInclude = value.ToString() ?? 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;
NativeMethods.cs (3)
891?? string.Empty; 908if (dir != string.Empty) 913s_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)
143this.targetNames = targetNames ?? String.Empty;
ReuseableStringBuilder.cs (1)
72return String.Empty;
Sdk\SdkResultItem.cs (1)
23ItemSpec = string.Empty;
TargetStartedEventArgs.cs (1)
48: this(message, helpKeyword, targetName, projectFile, targetFile, String.Empty, TargetBuiltReason.None, DateTime.UtcNow)
XamlTypes\Argument.cs (1)
28Separator = String.Empty;
XamlTypes\BaseProperty.cs (5)
59SwitchPrefix = String.Empty; 60Separator = String.Empty; 62Subcategory = String.Empty; 65HelpFile = String.Empty; 66HelpUrl = String.Empty;
XamlTypes\DataSource.cs (1)
47Label = String.Empty;
XamlTypes\EnumValue.cs (1)
39SwitchPrefix = String.Empty;
XamlTypes\Rule.cs (2)
82SwitchPrefix = String.Empty; 83Separator = String.Empty;
XamlTypes\ValueEditor.cs (1)
60return _displayName ?? String.Empty;
Microsoft.Build.Framework.UnitTests (63)
CustomEventArgSerialization_Tests.cs (61)
78genericEvent = new GenericBuildEventArg(string.Empty, string.Empty, string.Empty); 144genericEvent = new BuildErrorEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty); 227genericEvent = new BuildFinishedEventArgs(string.Empty, string.Empty, true); 278genericEvent = new BuildMessageEventArgs(string.Empty, string.Empty, string.Empty, MessageImportance.Low); 347messageEvent = new BuildMessageEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty, MessageImportance.Low); 401criticalMessageEvent = new CriticalBuildMessageEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty); 454genericEvent = new BuildWarningEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty); 540genericEvent = new ProjectFinishedEventArgs(string.Empty, string.Empty, string.Empty, true); 587propertyList.Add(new DictionaryEntry("IAmBlank", string.Empty)); 670genericEvent = new ProjectStartedEventArgs(-1, string.Empty, string.Empty, string.Empty, string.Empty, null, null, null); 738genericEvent = new TargetStartedEventArgs(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, TargetBuiltReason.AfterTargets, DateTime.Now); 803genericEvent = new TargetFinishedEventArgs(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, true); 867genericEvent = new TaskStartedEventArgs(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty); 933genericEvent = new TaskFinishedEventArgs(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, true);
EscapingUtilities.cs (1)
89return String.Empty;
TestAssemblyInfo.cs (1)
87contents: string.Empty);
Microsoft.Build.Tasks.CodeAnalysis (4)
CanonicalError.cs (1)
263string messageOverflow = String.Empty;
GenerateMSBuildEditorConfig.cs (1)
59ConfigFileContents = string.Empty;
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
385Output = output ?? string.Empty;
src\Compilers\Shared\BuildServerConnection.cs (1)
581.Replace("=", string.Empty);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (16)
CscTests.cs (1)
136Assert.Equal(string.Empty, csc.GenerateResponseFileContents());
GenerateMSBuildEditorConfigTests.cs (2)
246string executingLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)?.Replace('\\', '/') ?? string.Empty; 280string executingLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)?.Replace('\\', '/') ?? string.Empty;
TargetTests.cs (10)
588Assert.Equal(string.Empty, dir); 634Assert.Equal(string.Empty, dir); 671Assert.Equal(string.Empty, dir); 712return string.Empty; 779return string.Empty; 855return string.Empty; 918.Value ?? string.Empty; 958var task = proj.Xml.AddUsingTask(taskName, string.Empty, Assembly.GetExecutingAssembly().FullName); 964taskParams.AddParameter(kvp.Key, string.Empty, string.Empty, kvp.Value);
TestUtilities\DotNetSdkTestBase.cs (2)
152var testBinDirectory = Path.GetDirectoryName(typeof(DotNetSdkTests).Assembly.Location) ?? string.Empty; 153var sdksDir = Path.Combine(s_dotnetSdkPath ?? string.Empty, "Sdks");
TestUtilities\MSBuildUtil.cs (1)
36_ => metadata.TryGetValue(s, out var value) ? value : string.Empty
Microsoft.Build.Tasks.Core (206)
AddToWin32Manifest.cs (3)
28private string _outputDirectory = string.Empty; 29private string _supportedArchitectures = string.Empty; 30private string _generatedManifestFullPath = string.Empty;
AppConfig\AppConfigException.cs (1)
21private 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)
240imageRuntimeVersion = String.Empty; 974return string.Empty; 1010return string.Empty; 1023return string.Empty; 1032return string.Empty; 1043return string.Empty; // There can't be more than 96 sections, something is wrong 1072return string.Empty; 1081return string.Empty; // No CLI section 1123return string.Empty; 1137return string.Empty; 1147return string.Empty; 1155return string.Empty; 1175return 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)
485reference.FullPath = String.Empty; 977: string.Empty; 1282string resolvedSearchPath = String.Empty; 1389subsetName = String.Empty; 2730referenceItem.SetMetadata(ItemMetadataNames.version, reference.ReferenceVersion == null ? string.Empty : reference.ReferenceVersion.ToString());
AssemblyDependency\ResolveAssemblyReference.cs (9)
203private string _targetedFrameworkMoniker = String.Empty; 210private string _projectTargetFrameworkAsString = String.Empty; 211private string _targetedRuntimeVersionRawValue = String.Empty; 217private string _profileName = String.Empty; 1154string details = string.Empty; 1725string message = String.Empty; 2207Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.InvalidParameter", "TargetFrameworkMoniker", _targetedFrameworkMoniker, String.Empty); 3191return String.Empty; 3236return string.Empty;
AssemblyDependency\Resolver.cs (1)
330throw 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;
BuildEnvironmentHelper.cs (1)
374NativeMethodsShared.ProcessorArchitecture == Framework.NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
CanonicalError.cs (1)
298string messageOverflow = String.Empty;
CombinePath.cs (1)
59BasePath = String.Empty;
Copy.cs (3)
327string errorMessage = string.Empty; 870resultPathOperation = string.Empty; 1049destinationFileState.Name, 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;
Delete.cs (1)
149string lockedFileMessage = LockCheck.GetLockedFileMessage(file?.ItemSpec ?? string.Empty);
EscapingUtilities.cs (1)
89return String.Empty;
Exec.cs (1)
35Command = string.Empty;
FileMatcher.cs (22)
475pathRoot = string.Empty; 490longParts[i - startingElement] = string.Empty; 599fixedDirectoryPart = string.Empty; 600wildcardDirectoryPart = string.Empty; 629wildcardDirectoryPart = string.Empty; 650fixedDirectoryPart = string.Empty; 1152recursionState.RemainingWildcardDirectory = indexOfNextSlash != -1 ? recursionState.RemainingWildcardDirectory.Substring(indexOfNextSlash + 1) : string.Empty; 1531fixedDirectoryPart = string.Empty; 1532wildcardDirectoryPart = string.Empty; 1533filenamePart = string.Empty; 1624internal string wildcardDirectoryPart = string.Empty; 1852wildcardDirectoryPart = string.Empty; 1853filenamePart = string.Empty; 1901return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), SearchAction.None, string.Empty, null); 1917string excludeFileSpec = string.Empty; 2369return ([], action, string.Empty, null); 2373return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), action, string.Empty, null); 2377return ([], action, string.Empty, null); 2393string trackExcludeFileSpec = string.Empty; 2524string includeFilespec = state.SearchData.Filespec ?? string.Empty; 2525string excludeFilespec = excludeState.SearchData.Filespec ?? string.Empty; 2622if (possibleParent == string.Empty)
FileUtilities.cs (2)
1501return string.Empty; 1523return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
FindInvalidProjectReferences.cs (1)
121platformIdentity = String.Empty;
FormatUrl.cs (1)
24OutputUrl = InputUrl != null ? PathUtil.Format(InputUrl) : String.Empty;
GenerateApplicationManifest.cs (2)
92public string TargetFrameworkSubset { get; set; } = String.Empty; 94public string TargetFrameworkProfile { get; set; } = String.Empty;
GenerateManifestBase.cs (1)
447throw 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); 2848string shorterPath = Path.Combine(outputDirectory ?? String.Empty, cultureName ?? String.Empty);
GetCompatiblePlatform.cs (2)
47CurrentProjectPlatform = string.Empty; 48PlatformLookupTable = string.Empty;
GetInstalledSDKLocations.cs (2)
54private string _targetPlatformVersion = String.Empty; 59private 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;
InterningBinaryReader.cs (1)
100return String.Empty;
ManifestUtil\ApplicationIdentity.cs (2)
72string dname = string.Empty; 78string aname = string.Empty;
ManifestUtil\AssemblyReference.cs (1)
165return String.Empty;
ManifestUtil\BaseReference.cs (2)
88return string.Empty; 164return String.Empty;
ManifestUtil\Manifest.cs (1)
212string defaultDir = String.Empty;
ManifestUtil\mansign2.cs (2)
750string timestamp = String.Empty; 850string timestamp = String.Empty;
ManifestUtil\PathUtil.cs (1)
66Host = string.Empty,
Modifiers.cs (8)
401currentDirectory = String.Empty; 432modifiedItemSpec = String.Empty; 447modifiedItemSpec = String.Empty; 498modifiedItemSpec = String.Empty; 519modifiedItemSpec = String.Empty; 535modifiedItemSpec = String.Empty; 551modifiedItemSpec = String.Empty; 559modifiedItemSpec = String.Empty;
Move.cs (1)
137Log.LogErrorWithCodeFromResources("Move.Error", SourceFiles[i].ItemSpec, DestinationFolder.ItemSpec, e.Message, string.Empty);
MSBuildInternalMessage.cs (2)
37public string ResourceName { get; set; } = string.Empty; 48public string Severity { set; get; } = string.Empty;
NativeMethods.cs (1)
1470assemblyNameVersion.CultureName != "neutral" ? assemblyNameVersion.CultureName : string.Empty,
ParserState.cs (1)
56Namespace = String.Empty;
PlatformNegotiation.cs (3)
29return string.Empty; 42string buildProjectReferenceAs = string.Empty; 95buildProjectReferenceAs = string.Empty;
PrintLineDebugger.cs (1)
52_id = id ?? string.Empty;
PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
PropertyParser.cs (2)
39string propertyName = String.Empty; 40string propertyValue = String.Empty;
ResolveComReference.cs (1)
188public string TargetFrameworkVersion { get; set; } = String.Empty;
ResolveKeySource.cs (4)
48public string ResolvedThumbprint { get; set; } = String.Empty; 51public string ResolvedKeyContainer { get; set; } = String.Empty; 54public string ResolvedKeyFile { get; set; } = String.Empty; 98string 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)
137value = string.Empty;
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
50String.Empty, 318log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidTaskXml", String.Empty); 537IEnumerable<string> references = taskInfo.References.Union(DefaultReferences[String.Empty]);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
63string exeSuffix = runningOnWindows ? ".exe" : string.Empty;
SolutionConfiguration.cs (1)
106public static SolutionConfiguration Empty { get; } = new SolutionConfiguration(string.Empty);
system.design\stronglytypedresourcebuilder.cs (1)
604String typeName = String.Empty;
TempFileUtilities.cs (3)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 171extension = string.Empty; 192File.WriteAllText(file, string.Empty);
Tracing.cs (2)
43private static string s_slot = String.Empty; 119s_slot = String.Empty;
WriteCodeFragment.cs (3)
122string itemSpec = OutputFile?.ItemSpec ?? String.Empty; 176return String.Empty; 290return haveGeneratedContent ? code : String.Empty;
XMakeAttributes.cs (9)
170ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 214ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 287ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 354ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 430string currentArchitecture = string.Empty;
XmlPoke.cs (1)
58Value = new TaskItem(string.Empty);
XslTransformation.cs (1)
246string ns = String.Empty;
ZipDirectory.cs (1)
91Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, string.Empty);
Microsoft.Build.Tasks.UnitTests (102)
AssemblyDependency\SuggestedRedirects.cs (2)
204warningMessage.ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.FoundConflicts", "D", string.Empty)); 249warningMessage.ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.FoundConflicts", "D", string.Empty));
AssignCulture_Tests.cs (3)
115Assert.Equal(String.Empty, t.AssignedFiles[0].GetMetadata("Culture")); 134Assert.Equal(String.Empty, t.AssignedFiles[0].GetMetadata("Culture")); 154Assert.Equal(String.Empty, t.AssignedFiles[0].GetMetadata("Culture"));
Copy_Tests.cs (1)
2752string linkError = String.Empty;
CreateCSharpManifestResourceName_Tests.cs (1)
886Assert.Equal(String.Empty, resourceFiles[0].GetMetadata("LogicalName"));
DirectoryBuildProjectImportTestBase.cs (6)
86Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectBasePathPropertyName), StringComparer.OrdinalIgnoreCase); 88Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectPathPropertyName)); 119Assert.Equal(String.Empty, project.GetPropertyValue("WasDirectoryBuildProjectImported"), StringComparer.OrdinalIgnoreCase); 120Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectBasePathPropertyName), StringComparer.OrdinalIgnoreCase); 121Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectFilePropertyName), StringComparer.OrdinalIgnoreCase); 122Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectPathPropertyName));
FormatUrl_Tests.cs (3)
33t.OutputUrl.ShouldBe(string.Empty); 45t.InputUrl = string.Empty; 60t.OutputUrl.ShouldBe(string.Empty);
GenerateBindingRedirects_Tests.cs (3)
49string appConfigFile = WriteAppConfigRuntimeSection(string.Empty); 269string appConfigContents = WriteAppConfigRuntimeSection(string.Empty, testFolder); 281string appConfigFile = WriteAppConfigRuntimeSection(string.Empty);
GetCompatiblePlatform_Tests.cs (8)
130task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 173task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 183projectReference.SetMetadata("Platforms", string.Empty); 184projectReference.SetMetadata("Platform", string.Empty); 196task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 221task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 271task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty); 294task.AssignedProjectsWithPlatform[0].GetMetadata("NearestPlatform").ShouldBe(string.Empty);
GetInstalledSDKLocations_Tests.cs (3)
199t.TargetPlatformIdentifier = String.Empty; 218t.TargetPlatformVersion = String.Empty; 401t.SDKRegistryRoot = String.Empty;
GetSDKReference_Tests.cs (57)
675engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 676engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 677engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 678engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 679engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 680engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 681engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 682engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 724engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 725engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 726engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 727engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 728engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 816engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 817engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 818engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 819engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 820engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 821engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 822engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 823engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 868engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 869engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 870engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 871engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 872engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 873engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 874engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 875engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 919engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[0].ItemSpec.Replace(t.References[0].GetMetadata("SDKRootPath"), String.Empty)); 920engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[1].ItemSpec.Replace(t.References[1].GetMetadata("SDKRootPath"), String.Empty)); 921engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[2].ItemSpec.Replace(t.References[2].GetMetadata("SDKRootPath"), String.Empty)); 922engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[3].ItemSpec.Replace(t.References[3].GetMetadata("SDKRootPath"), String.Empty)); 923engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[4].ItemSpec.Replace(t.References[4].GetMetadata("SDKRootPath"), String.Empty)); 924engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[5].ItemSpec.Replace(t.References[5].GetMetadata("SDKRootPath"), String.Empty)); 925engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[6].ItemSpec.Replace(t.References[6].GetMetadata("SDKRootPath"), String.Empty)); 926engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingReference", t.References[7].ItemSpec.Replace(t.References[7].GetMetadata("SDKRootPath"), String.Empty)); 957engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 958engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 959engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 960engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 961engine.AssertLogDoesntContainMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath")); 1018engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 1019engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 1020engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 1021engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 1022engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath")); 1050engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 1051engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 1052engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 1053engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 1054engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath")); 1082engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[0].ItemSpec.Replace(t.RedistFiles[0].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[0].GetMetadata("TargetPath")); 1083engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[1].ItemSpec.Replace(t.RedistFiles[1].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[1].GetMetadata("TargetPath")); 1084engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[2].ItemSpec.Replace(t.RedistFiles[2].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[2].GetMetadata("TargetPath")); 1085engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[3].ItemSpec.Replace(t.RedistFiles[3].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[3].GetMetadata("TargetPath")); 1086engine.AssertLogContainsMessageFromResource(_resourceDelegate, "GetSDKReferenceFiles.AddingRedistFile", t.RedistFiles[4].ItemSpec.Replace(t.RedistFiles[4].GetMetadata("SDKRootPath"), String.Empty), t.RedistFiles[4].GetMetadata("TargetPath"));
OutputPathTests.cs (2)
67project.GetPropertyValue("BaseOutputPathWasSpecified").ShouldBe(string.Empty); 148project.GetPropertyValue("_OutputPathWasMissing").ShouldBe(string.Empty);
ResolveCodeAnalysisRuleSet_Tests.cs (1)
299task.CodeAnalysisRuleSet = string.Empty;
ResolveSDKReference_Tests.cs (6)
75Assert.Empty(ResolveSDKReference.ParseDependsOnSDK(String.Empty)); 1339ITaskItem installedSDK3 = new TaskItem(String.Empty); 1343installedSDK4.SetMetadata("SDKName", String.Empty); 4311Assert.Equal(String.Empty, resolvedSDKReferences2[0].GetMetadata("MaxPlatformVersion")); 4312Assert.Equal(String.Empty, resolvedSDKReferences2[0].GetMetadata("MinOSVersion")); 4313Assert.Equal(String.Empty, resolvedSDKReferences2[0].GetMetadata("MaxOSVersionTested"));
StreamMappedString_Tests.cs (1)
140Assert.Equal(String.Empty, s.Substring(1, 30));
TestAssemblyInfo.cs (1)
87contents: string.Empty);
Unzip_Tests.cs (2)
73_mockEngine.Log = string.Empty; 145DestinationFolder = new TaskItem(String.Empty)
XmlPoke_Tests.cs (1)
216node.Value.ShouldBe(string.Empty);
XslTransformation_Tests.cs (1)
374Assert.Equal(String.Empty, engine.Log); // "The log should be empty"
Microsoft.Build.UnitTests.Shared (21)
BuildEventArgsExtension.cs (2)
61string fixedArgsMessage = args.Message.Replace("\r\nThis is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER.", String.Empty); 62string fixedOtherMessage = other.Message.Replace("\r\nThis is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER.", String.Empty);
DriveMapping.cs (1)
63return string.Empty;
DummyMappedDrive.cs (1)
34if (DriveMapping.GetDriveMapping(driveLetter) == string.Empty)
EnvironmentProvider.cs (3)
23public static readonly string ExeSuffix = RunningOnWindows ? ".exe" : string.Empty; 50(_getEnvironmentVariable(Constants.Path) ?? string.Empty) 108public static string? GetDotnetExePathFromFolder(string? netRootFolder) => Path.Combine(netRootFolder ?? string.Empty, Constants.DotNet + Constants.ExeSuffix);
MockEngine.cs (3)
82string message = string.Empty; 111string message = string.Empty; 189public string ProjectFileOfTaskNode => String.Empty;
ObjectModelHelpers.cs (9)
94s_builtInMetadataNames[builtInMetadataName] = string.Empty; 165customMessage: result.Exception is not null ? result.Exception.ToString() : string.Empty); 172customMessage: result.Exception is not null ? result.Exception.ToString() : string.Empty); 1138var currentPlatformString = string.Empty; 1674File.WriteAllText(fullPath, string.Empty); 1729foreach (var defaultTarget in (defaultTargets ?? string.Empty).Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries)) 1734sb.Append(extraContent ?? string.Empty); 1811: string.Empty; 1813extraContent += extraContentForAllNodes ?? string.Empty;
RunnerUtilities.cs (1)
121string output = string.Empty;
TestEnvironment.cs (1)
698File.WriteAllText(Path, contents ?? string.Empty);
Microsoft.Build.Utilities.Core (89)
BuildEnvironmentHelper.cs (1)
374NativeMethodsShared.ProcessorArchitecture == Framework.NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
CanonicalError.cs (1)
298string messageOverflow = String.Empty;
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);
EscapingUtilities.cs (1)
89return String.Empty;
EventArgsFormatting.cs (1)
340message = String.Empty;
FileMatcher.cs (22)
475pathRoot = string.Empty; 490longParts[i - startingElement] = string.Empty; 599fixedDirectoryPart = string.Empty; 600wildcardDirectoryPart = string.Empty; 629wildcardDirectoryPart = string.Empty; 650fixedDirectoryPart = string.Empty; 1152recursionState.RemainingWildcardDirectory = indexOfNextSlash != -1 ? recursionState.RemainingWildcardDirectory.Substring(indexOfNextSlash + 1) : string.Empty; 1531fixedDirectoryPart = string.Empty; 1532wildcardDirectoryPart = string.Empty; 1533filenamePart = string.Empty; 1624internal string wildcardDirectoryPart = string.Empty; 1852wildcardDirectoryPart = string.Empty; 1853filenamePart = string.Empty; 1901return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), SearchAction.None, string.Empty, null); 1917string excludeFileSpec = string.Empty; 2369return ([], action, string.Empty, null); 2373return (CreateArrayWithSingleItemIfNotExcluded(filespecUnescaped, excludeSpecsUnescaped), action, string.Empty, null); 2377return ([], action, string.Empty, null); 2393string trackExcludeFileSpec = string.Empty; 2524string includeFilespec = state.SearchData.Filespec ?? string.Empty; 2525string excludeFilespec = excludeState.SearchData.Filespec ?? string.Empty; 2622if (possibleParent == string.Empty)
FileUtilities.cs (2)
1501return string.Empty; 1523return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
FrameworkLocationHelper.cs (1)
781var frameworkPath = Path.Combine(NativeMethodsShared.FrameworkBasePath, prefix ?? string.Empty);
LockCheck.cs (5)
256/// <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> 263return string.Empty; 269string message = string.Empty; 276: String.Empty;
Modifiers.cs (8)
401currentDirectory = String.Empty; 432modifiedItemSpec = String.Empty; 447modifiedItemSpec = String.Empty; 498modifiedItemSpec = String.Empty; 519modifiedItemSpec = String.Empty; 535modifiedItemSpec = String.Empty; 551modifiedItemSpec = String.Empty; 559modifiedItemSpec = String.Empty;
PrintLineDebugger.cs (1)
52_id = id ?? string.Empty;
PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
TaskItem.cs (6)
72_itemSpec = string.Empty; 131_metadata[key] = (string)singleMetadata.Value ?? string.Empty; 176get => _itemSpec == null ? string.Empty : EscapingUtilities.UnescapeAll(_itemSpec); 291_metadata[metadataName] = metadataValue ?? string.Empty; 467return metadataValue ?? string.Empty; 508_metadata.SetItems(metadata.Select(kvp => new KeyValuePair<string, string>(kvp.Key, kvp.Value ?? string.Empty)));
TempFileUtilities.cs (3)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 171extension = string.Empty; 192File.WriteAllText(file, string.Empty);
ToolLocationHelper.cs (20)
542return string.Empty; 599string sdkLocation = string.Empty; 1012return string.Empty; 1108internal static string[] GetApiContractReferences(IEnumerable<ApiContract> apiContracts, string targetPlatformSdkRoot) => GetApiContractReferences(apiContracts, targetPlatformSdkRoot, string.Empty); 1211folderName = string.Empty; 1260return targetPlatform?.Path ?? string.Empty; 1292string sdkLocation = string.Empty; 1393return string.Empty; 1406string versionRange = $"{minVersion?.ToString() ?? string.Empty};{maxVersion?.ToString() ?? string.Empty}"; 1444string foldersString = string.Empty; 1517return string.Empty; 1769return string.Empty; 1860return string.Empty; 2437string registryRoot = NativeMethodsShared.IsWindows ? GetTargetPlatformMonikerRegistryRoots(registrySearchLocation) : string.Empty; 2443string cachedExtensionSdksKey = extensionDiskRoots == null ? string.Empty : string.Join(";", extensionDiskRoots); 2476extensionSdk = new TargetPlatformSDK(string.Empty, new Version(0, 0), null); 2986ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerRegistryRoots", "RegistryRoot passed in '{0}'", registryRootLocation ?? string.Empty); 2990string registryRoot = string.Empty; 3181string pathToReturn = string.Empty;
ToolsetElement.cs (4)
277string locationString = String.Empty; 295_previouslySeenOS.Add(os, string.Empty); 465_previouslySeenPropertyNames.Add(propertyName, string.Empty); 636_previouslySeenToolsVersions.Add(toolsVersion, string.Empty);
ToolTask.cs (4)
410protected virtual string GenerateResponseFileCommands() => string.Empty; // Default is nothing. This is useful for tools that don't need or support response files. 418protected virtual string GenerateCommandLineCommands() => string.Empty; // Default is nothing. This is useful for tools where all the parameters can go into a response file. 1472commandLineCommands = $"{(Traits.Instance.EscapeHatches.UseAutoRunWhenLaunchingProcessUnderCmd ? string.Empty : "/D ")}/C \"{batchFileForCommandLine}\""; 1484commandLineCommands = string.Empty;
Tracing.cs (2)
43private static string s_slot = String.Empty; 119s_slot = String.Empty;
Microsoft.Build.Utilities.UnitTests (68)
CanonicalError_Tests.cs (1)
332string.Empty);
MockEngine.cs (1)
77public string ProjectFileOfTaskNode => string.Empty;
PlatformManifest_Tests.cs (3)
130manifest.Manifest.FriendlyName.ShouldBe(string.Empty); 157platforms[0].Name.ShouldBe(string.Empty); 217contract.Version.ShouldBe(string.Empty);
StringExtensions.cs (1)
24newValue = string.Empty;
TaskItem_Tests.cs (3)
46to.GetMetadata(FileUtilities.ItemSpecModifiers.RelativeDir).ShouldBe(string.Empty); 311item.GetMetadata("m").ShouldBe(string.Empty); 323item.GetMetadata("m").ShouldBe(string.Empty);
TaskLoggingHelper_Tests.cs (4)
260engine.Log = string.Empty; 267engine.Log = string.Empty; 275engine.Log = string.Empty; 281engine.Log = string.Empty;
TestAssemblyInfo.cs (1)
87contents: string.Empty);
ToolLocationHelper_Tests.cs (45)
54string[] returnValue = ToolLocationHelper.GetApiContractReferences(Enumerable.Empty<ApiContract>(), string.Empty); 61string[] returnValue = ToolLocationHelper.GetApiContractReferences(null, string.Empty); 238TargetPlatformSDK sdk = new TargetPlatformSDK("Foo", new Version(0, 0), string.Empty); 263TargetPlatformSDK sdk = new TargetPlatformSDK("Foo", new Version(0, 0), string.Empty); 289TargetPlatformSDK sdk = new TargetPlatformSDK("Foo", new Version(0, 0), string.Empty); 315TargetPlatformSDK sdk = new TargetPlatformSDK("Foo", new Version(0, 0), string.Empty); 1293FrameworkNameVersioning frameworkName = new FrameworkNameVersioning(targetFrameworkIdentifier, targetFrameworkVersion, string.Empty); 1447path.ShouldBe(string.Empty); // "Expected the path to be empty" 1477path.ShouldBe(string.Empty); // "Expected the path to be empty" 1507path.ShouldBe(string.Empty); // "Expected the path to be empty" 1879ToolLocationHelper.GetPathToReferenceAssemblies(string.Empty, frameworkName); 1892ToolLocationHelper.GetPathToReferenceAssemblies(string.Empty, frameworkName); 1945FrameworkNameVersioning frameworkName = new FrameworkNameVersioning(targetFrameworkIdentifier, targetFrameworkVersion, string.Empty); 2160string pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x86"); 2163pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x64"); 2166pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "itanium"); 2171pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "RandomPlatform"); 2176pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "RandomPlatform"); 2206string pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x86"); 2210pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x64"); 2213pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "itanium"); 2216pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "RandomPlatform"); 2251string pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x86"); 2254pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "x64"); 2257pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "itanium"); 2260pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v3.5", string.Empty, "RandomPlatform"); 2289string pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x86"); 2293pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "x64"); 2296pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "itanium"); 2299pathToFramework = ToolLocationHelper.GetPathToStandardLibraries(".NetFramework", "v4.0", string.Empty, "RandomPlatform"); 2511string stdLibPath = ToolLocationHelper.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, rootDir); 2522string v45Path = ToolLocationHelper.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty); 2524string v45PathWithNullRoot = ToolLocationHelper.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null); 2541string stdLibPath = ToolLocationHelper.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, null, fallbackSearchPaths); 2566string stdLibPath = ToolLocationHelper.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, rootDir, fallbackSearchPaths); 2578string v45Path = ToolLocationHelper.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty); 2580string v45PathWithNullRoot = ToolLocationHelper.GetPathToStandardLibraries(frameworkName, frameworkVersion, string.Empty, null, null); 2684string frameworkProfile = string.Empty; 2699var v45Paths = ToolLocationHelper.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty); 2702var v45PathsWithNullRoot = ToolLocationHelper.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty, null); 2713var v45Paths = ToolLocationHelper.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty); 2716var v45PathsWithNullRoot = ToolLocationHelper.GetPathToReferenceAssemblies(frameworkName, frameworkVersion, string.Empty, null, null); 2733File.WriteAllText(Path.Combine(asmPath, "mscorlib.dll"), string.Empty); 2967VerifyExceptionOnEmptyOrNullPlatformAttributes(string.Empty, new Version("1.0")); 4127ToolLocationHelper.FindRootFolderWhereAllFilesExist(roots, @"file1.txt;subdir\file3.txt").ShouldBe(String.Empty);
ToolTask_Tests.cs (8)
32private string _responseFileCommands = string.Empty; 33private string _commandLineCommands = string.Empty; 118StartInfo = GetProcessStartInfo(GenerateFullPathToTool(), NativeMethodsShared.IsWindows ? "/x" : string.Empty, null); 272string singleQuote = NativeMethodsShared.IsWindows ? "'" : string.Empty; 389engine.Log = string.Empty; 558startInfo.Environment["path"].ShouldBe(String.Empty); 1086protected override string ToolName => string.Empty; 1091protected override string GenerateFullPathToTool() => string.Empty;
TrackedDependencies\MockEngine.cs (1)
91public string ProjectFileOfTaskNode => string.Empty;
Microsoft.Cci.Extensions (5)
Comparers\ApiComparer.cs (1)
149afterFirstDot = string.Empty;
Extensions\TypeExtensions.cs (3)
430return string.Empty; 434return string.Empty; 438return string.Empty;
HostEnvironment.cs (1)
493return LoadAssemblies(unsplitContractSet, string.Empty);
Microsoft.CodeAnalysis (82)
CodeAnalysisResourcesLocalizableErrorArgument.cs (2)
31return CodeAnalysisResources.ResourceManager.GetString(_targetResourceId, formatProvider as System.Globalization.CultureInfo) ?? string.Empty; 34return string.Empty;
CodeGen\PrivateImplementationDetails.cs (1)
558public string NamespaceName => string.Empty;
CommandLine\AnalyzerConfigSet.cs (2)
537Section globalSection = GetSection(string.Empty); 538_values.Remove(string.Empty);
CommandLine\CommandLineParser.cs (1)
335return string.Empty;
CommandLine\CommonCompiler.cs (2)
825string cacheKey = string.Empty; 1067analyzerConfigProvider = analyzerConfigProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(analyzerConfigSet.GetOptionsForSourcePath(string.Empty).AnalyzerOptions));
Diagnostic\Diagnostic.cs (3)
276return 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)
319return 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)
76var path = file.Path ?? string.Empty;
DiagnosticAnalyzer\AnalyzerReference.cs (1)
36get { return string.Empty; }
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
22{ string.Empty, TargetScope.None }, 32=> s_suppressMessageScopeTypes.TryGetValue(info.Scope ?? string.Empty, out scope);
DiaSymReader\Utilities\InteropUtilities.cs (1)
40namespaceStr = string.Empty;
FileSystem\PathUtilities.cs (3)
545string relativePath = string.Empty; 851var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 855Debug.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;
MetadataReader\MetadataHelpers.cs (2)
309return String.Empty; 697qualifier = 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)
175Directory typeDirectory = new Directory(string.Empty, 0); 300name = string.Empty;
PEWriter\ReturnValueParameter.cs (1)
62get { return string.Empty; }
PEWriter\RootModuleType.cs (1)
256return string.Empty;
SourceGeneration\GeneratorDriver.cs (1)
443return Path.Combine(baseDirectory ?? "", type.Assembly.GetName().Name ?? string.Empty, type.FullName!);
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)
731public virtual string GetValueText() { return string.Empty; }
Syntax\LineDirectiveMap.cs (1)
248string path = entry.MappedPathOpt ?? string.Empty;
Syntax\SyntaxDiffer.cs (1)
823return string.Empty;
Syntax\SyntaxList`1.cs (2)
200return _node != null ? _node.ToString() : string.Empty; 213return _node != null ? _node.ToFullString() : string.Empty;
Syntax\SyntaxNodeOrToken.cs (3)
111return string.Empty; 310return string.Empty; 331return string.Empty;
Syntax\SyntaxNodeOrTokenList.cs (2)
186: string.Empty; 201: string.Empty;
Syntax\SyntaxToken.cs (4)
58public string Language => Node?.Language ?? string.Empty; 151public string ValueText => Node?.GetValueText() ?? string.Empty; 162return Node != null ? Node.ToString() : string.Empty; 172return Node != null ? Node.ToFullString() : string.Empty;
Syntax\SyntaxTokenList.cs (2)
191return Node != null ? Node.ToString() : string.Empty; 204return Node != null ? Node.ToFullString() : string.Empty;
Syntax\SyntaxTrivia.cs (3)
49public string Language => UnderlyingNode?.Language ?? string.Empty; 226return UnderlyingNode != null ? UnderlyingNode.ToString() : string.Empty; 237return UnderlyingNode != null ? UnderlyingNode.ToFullString() : string.Empty;
Syntax\SyntaxTriviaList.cs (2)
521return Node != null ? Node.ToString() : string.Empty; 526return 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); 919newt = string.Empty;
Text\TextLine.cs (1)
175return string.Empty;
TreeDumper.cs (3)
74DoDumpCompact(root, string.Empty); 137dumper.DoDumpXML(root, string.Empty, indent ?? string.Empty);
Microsoft.CodeAnalysis.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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;
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisValueSet.cs (2)
192return string.Empty; 214return string.Empty;
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\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (3)
35title: string.Empty, 36messageFormat: string.Empty, 37category: string.Empty,
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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;
Microsoft.CodeAnalysis.CodeStyle (28)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
369: string.Empty;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
175propertiesBuilder.Add(IsUnusedLocalAssignmentKey, string.Empty); 180propertiesBuilder.Add(IsRemovableAssignmentKey, string.Empty);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
545string relativePath = string.Empty; 851var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 855Debug.Assert(parts[toSkip - 1] == string.Empty);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
192: string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? string.Empty),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
41if (symbol.IsErrorType() && symbol.Name == string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (1)
160=> LogBlock(functionId, string.Empty, token, logLevel);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
148if (prefix != string.Empty) 152failureReason = Prefix == string.Empty 467new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 468new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 469new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 485writer.WriteString(Prefix ?? string.Empty); 486writer.WriteString(Suffix ?? string.Empty); 487writer.WriteString(WordSeparator ?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
Microsoft.CodeAnalysis.CodeStyle.Fixes (17)
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
138&& name != string.Empty
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
91if (previousNodeTextTrimmed == string.Empty ||
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (5)
109var leadingSpaces = string.Empty; 113var possibleLeadingSpaces = string.Empty; 121if (possibleLeadingSpaces != string.Empty) 133if (leadingSpaces == string.Empty) 142possibleLeadingSpaces = string.Empty;
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
280=> _arguments.IsDefault || index >= _arguments.Length ? string.Empty : _arguments[index].Name;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (2)
31=> string.Empty; 34=> string.Empty;
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
218return string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
52if (info.Context.GenerateMembers && info.Context.MergeNestedNamespaces && @namespace.Name != string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
399name: string.Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
49return this.Name == string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
68var bestPath = string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
37var publicKeyToken = thisAssemblyName.GetPublicKeyToken()?.Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
135=> GenerateUniqueName(baseName, string.Empty, canUse);
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\CodeFixVerifierHelper.cs (1)
95var text = ConvertOptionsToAnalyzerConfig(options.DefaultExtension, explicitEditorConfig: string.Empty, options);
Microsoft.CodeAnalysis.Collections.Package (1)
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder_Expressions.cs (1)
2991nameString = string.Empty;
Binder\Binder_InterpolatedString.cs (1)
47resultConstant = ConstantValue.Create(string.Empty);
Binder\Binder_Invocation.cs (3)
2011var returnType = GetCommonTypeOrReturnType(methods) ?? new ExtendedErrorTypeSymbol(this.Compilation, string.Empty, arity: 0, errorInfo: null); 2252TypeSymbol returnType = new ExtendedErrorTypeSymbol(this.Compilation, string.Empty, arity: 0, errorInfo: null); 2254MethodSymbol method = new ErrorMethodSymbol(methodContainer, returnType, string.Empty);
Binder\Binder_Symbols.cs (1)
842return 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)
1794MetadataTypeName mdName = MetadataTypeName.FromNamespaceAndTypeName(HostObjectType.Namespace ?? String.Empty, 3811return string.Empty; //prevent emitter from crashing.
Declarations\MergedNamespaceDeclaration.cs (1)
23: base(declarations.IsEmpty ? string.Empty : declarations[0].Name)
Declarations\RootSingleNamespaceDeclaration.cs (1)
37: base(string.Empty,
Emitter\Model\PEModuleBuilder.cs (1)
990diagnostics.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)
426return string.Empty;
Parser\SyntaxParser.cs (1)
666return new SyntaxDiagnosticInfo(offset, width, code, /*unused*/string.Empty, SyntaxFacts.GetText(actual));
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
524moduleId = string.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (2)
68get { return string.Empty; } 73get { return string.Empty; }
Symbols\AssemblySymbol.cs (1)
838typeInfo.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)
295return string.Empty; 342@params[i] = new ErrorTypeParameterSymbol(this, string.Empty, i);
Symbols\FileIdentifier.cs (1)
35_filePath = string.Empty;
Symbols\Metadata\PE\PEEventSymbol.cs (1)
81_name = _name ?? string.Empty;
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
155_name = String.Empty;
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
55return string.Empty;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
427_name = string.Empty;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
312metadataName = string.Empty;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
471return HasNameInMetadata ? _name : string.Empty;
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
245_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)
145var 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)
361: TypeWithAnnotations.Create(new ExtendedErrorTypeSymbol(compilation, name: string.Empty, arity: 0, errorInfo: null));
Symbols\Symbol.cs (2)
73return string.Empty; 1224var 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)
1878return string.Empty;
Utilities\ValueSetFactory.StringTC.cs (1)
19var result = constantValue.IsBad ? string.Empty : constantValue.StringValue;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
14if (text == string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (2)
131return string.Empty; 142=> SyntaxFactory.ParseLeadingTrivia(s ?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
42return string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
741return string.Empty; 1067=> (argument as ArgumentSyntax)?.NameColon?.Name.Identifier.ValueText ?? string.Empty; 1070=> (argument as AttributeArgumentSyntax)?.NameEquals?.Name.Identifier.ValueText ?? string.Empty;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\CSharpGenerateEnumMemberService.cs (1)
31if (identifierToken.ValueText != string.Empty &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
169return string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
105if (name == string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
188if (symbol.Name == string.Empty || symbol.IsAnonymousType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
37(otherSideType.Name == string.Empty || otherSideType.Name == "var"); 2347if (name != string.Empty)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (8)
src\Analyzers\CSharp\Tests\AbstractBuiltInCodeStyleDiagnosticAnalyzer\AbstractBuiltInCodeStyleDiagnosticAnalyzerTests.cs (1)
44title: string.Empty);
src\Analyzers\CSharp\Tests\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceTests.cs (2)
301defaultNamespace: string.Empty); 337defaultNamespace: string.Empty);
src\Analyzers\CSharp\Tests\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsTests.cs (4)
56var scopeString = scope != null ? $@", {scope}" : string.Empty; 57var targetString = target != null ? $@", {target}" : string.Empty; 110var scopeString = scope != null ? $@", {scope}" : string.Empty; 111var targetString = target != null ? $@", {target}" : string.Empty;
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (1)
6600{{loopFooter ?? string.Empty}}
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (16)
CommandLineTests.cs (13)
6007.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) : 6042.Replace(Environment.NewLine, string.Empty), workingDirectory: tempDir) : 6061Assert.Equal(string.Empty, assemblyName.CultureName); 6122.Replace(Environment.NewLine, string.Empty)) : 9198string pragmaDisableWarnings = String.Empty; 9225Assert.True(cscOutput == string.Empty, "Failed at error code: " + errorCode); 9311TestCS2002(commandLineArgs, tempDir.Path, 0, String.Empty); 9389string outString = String.Empty; 9776var comp = CreateEmptyCompilation(string.Empty, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 9779comp = CreateEmptyCompilation(string.Empty, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()); 13230TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText: string.Empty, errorlog, expectedDiagnosticSeverity: ReportDiagnostic.Suppress); 13324TestBulkAnalyzerConfigurationCore(analyzer, analyzerConfigText: string.Empty, errorlog, expectedDiagnosticSeverity); 15391: string.Empty;
SarifV1ErrorLoggerTests.cs (1)
19protected override string ErrorLogQualifier => string.Empty;
TouchedFileLoggingTests.cs (2)
134Assert.Equal(string.Empty, outWriter.ToString().Trim()); 176Assert.Equal(string.Empty, writer.ToString().Trim());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (367)
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (2)
2666initialDestinationMarkup: string.Empty, 2668fixedDestinationMarkup: string.Empty,
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
46return (string.Empty, PathUtilities.CombineAbsoluteAndRelativePaths(ProjectRootPath, fileName));
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (1)
131code, position, string.Empty, usePreviousCharAsTrigger, deletedCharTrigger,
Completion\CompletionProviders\AwaitCompletionProviderTests.cs (1)
935var data = (n$$) {{(hasNewline ? Environment.NewLine : string.Empty)}} M();
Completion\CompletionProviders\KeywordCompletionProviderTests.cs (2)
599var data = (n$$) {(hasNewline ? Environment.NewLine : string.Empty)} M(); 637bool Prop => (t$$) {(hasExpression ? "n" : string.Empty)}
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (1)
697Assert.False(CommitManager.SendEnterThroughToEditor(service.GetRules(CompletionOptions.Default), item, string.Empty), "Expected false from SendEnterThroughToEditor()");
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (6)
85string.Empty, 94string.Empty, 104string.Empty, 137string.Empty, 241string.Empty, 413var newText = await settingsProvider.GetChangedEditorConfigAsync(SourceText.From(string.Empty));
Extensions\ContextQuery\AbstractContextTests.cs (3)
45=> VerifyInFrontOfComment(text, position, validLocation, string.Empty, options: options); 66=> VerifyAtPosition(text, position, validLocation, string.Empty, options: options); 93=> VerifyAtEndOfFile(text, position, validLocation, string.Empty, options: options);
ExtractMethod\ExtractMethodBase.cs (1)
35var featuresMapped = features.Select(x => KeyValuePairUtil.Create(x, string.Empty));
Formatting\CodeCleanupTests.cs (2)
836return EditorTestWorkspace.CreateCSharp(string.Empty, composition: EditorTestCompositions.EditorFeaturesWpf); 841return EditorTestWorkspace.CreateVisualBasic(string.Empty, composition: EditorTestCompositions.EditorFeaturesWpf);
Formatting\Indentation\SmartIndenterTests.cs (1)
36code: string.Empty,
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (4)
2015var expected = string.Empty; 2024var expected = string.Empty; 2033var expected = string.Empty; 2042var expected = string.Empty;
LineSeparators\LineSeparatorTests.cs (1)
24=> await AssertTagsOnBracesOrSemicolonsAsync(contents: string.Empty);
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
161var result = pdbService.TryAddDocumentToWorkspace((MetadataAsSourceWorkspace)masWorkspace!, file.FilePath, new StaticSourceTextContainer(SourceText.From(string.Empty)), out _);
PdbSourceDocument\PdbSourceDocumentTests.cs (4)
975var result = service.TryAddDocumentToWorkspace(requestPath, new StaticSourceTextContainer(SourceText.From(string.Empty)), out var documentId); 998var openResult = service.TryAddDocumentToWorkspace(file.FilePath, new StaticSourceTextContainer(SourceText.From(string.Empty)), out var documentId); 1049var openResult = service.TryAddDocumentToWorkspace(fileOne.FilePath, new StaticSourceTextContainer(SourceText.From(string.Empty)), out var documentId); 1060Assert.Throws<System.InvalidOperationException>(() => service.TryAddDocumentToWorkspace(fileTwo.FilePath, new StaticSourceTextContainer(SourceText.From(string.Empty)), out var documentIdTwo));
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
9805AnonymousTypes(string.Empty));
SignatureHelp\AttributeSignatureHelpProviderTests.cs (43)
42new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 133new SignatureHelpTestItem("SomethingAttribute(int someInteger, string someString)", string.Empty, string.Empty, currentParameterIndex: 0) 183new SignatureHelpTestItem("SomethingAttribute(int someInteger, string someString)", string.Empty, string.Empty, currentParameterIndex: 1) 232new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 337new SignatureHelpTestItem($"SomethingAttribute({FeaturesResources.Properties}: [goo = int])", string.Empty, string.Empty, currentParameterIndex: 0) 360new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 383new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 406new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 434new SignatureHelpTestItem($"SomethingAttribute({FeaturesResources.Properties}: [goo = int])", string.Empty, string.Empty, currentParameterIndex: 0) 458new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 481new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 504new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 527new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 550new SignatureHelpTestItem("SomethingAttribute()", string.Empty, null, currentParameterIndex: 0) 582new SignatureHelpTestItem($"DerivedAttribute({FeaturesResources.Properties}: [Name = string])", string.Empty, string.Empty, currentParameterIndex: 0) 614new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], [string bar = null], {FeaturesResources.Properties}: [fieldbar = string], [fieldfoo = int])", string.Empty, "GooParameter", currentParameterIndex: 0) 643new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], [string bar = null], {FeaturesResources.Properties}: [fieldbar = string], [fieldfoo = int])", string.Empty, "BarParameter", currentParameterIndex: 1) 672new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], [string bar = null], {FeaturesResources.Properties}: [fieldbar = string], [fieldfoo = int])", string.Empty, string.Empty, currentParameterIndex: 2) 699new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], {FeaturesResources.Properties}: [goo = int])", string.Empty, "GooParameter", currentParameterIndex: 0) 726new SignatureHelpTestItem($"SomethingAttribute([int goo = 0], {FeaturesResources.Properties}: [goo = int])", string.Empty, string.Empty, currentParameterIndex: 1) 756new SignatureHelpTestItem("SomethingAttribute(int someParameter, bool somethingElse)", string.Empty, string.Empty, currentParameterIndex: 0) 781new SignatureHelpTestItem("SomethingAttribute(int someParameter, bool somethingElse)", string.Empty, string.Empty, currentParameterIndex: 1) 842new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 875new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 908new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 955new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 960new SignatureHelpTestItem("MyAttribute(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 961new SignatureHelpTestItem("MyAttribute(int x, int y)", string.Empty, string.Empty, currentParameterIndex: 0)
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (27)
44new SignatureHelpTestItem("BaseClass()", string.Empty, null, currentParameterIndex: 0) 93new SignatureHelpTestItem("BaseClass(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0) 193new SignatureHelpTestItem("Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 212new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 231new SignatureHelpTestItem("Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 250new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 335new SignatureHelpTestItem("Goo(int a)", string.Empty, string.Empty, currentParameterIndex: 0) 354new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 373new SignatureHelpTestItem("Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1) 392new SignatureHelpTestItem("Foo()", string.Empty, null, currentParameterIndex: 0), 445new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 476new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 507new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 551new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 556new SignatureHelpTestItem("BaseClass(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 557new SignatureHelpTestItem("BaseClass(int x, int y)", string.Empty, string.Empty, currentParameterIndex: 0)
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (42)
51new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 76new SignatureHelpTestItem("ref int C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 101new SignatureHelpTestItem("ref readonly int C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 132new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 197new SignatureHelpTestItem("string C[int a, bool b]", string.Empty, string.Empty, currentParameterIndex: 1) 265new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 296new SignatureHelpTestItem("string C[int a, bool b]", string.Empty, string.Empty, currentParameterIndex: 1) 361new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 392new SignatureHelpTestItem("string C[int a, bool b]", string.Empty, string.Empty, currentParameterIndex: 1) 464new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 501new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 538new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 591new SignatureHelpTestItem("int Goo[double d]", string.Empty, string.Empty, currentParameterIndex: 0) 596new SignatureHelpTestItem("int Goo[double d]", string.Empty, string.Empty, currentParameterIndex: 0), 597new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0), 634new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 671new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 709new SignatureHelpTestItem("int Goo[int x]", string.Empty, string.Empty, currentParameterIndex: 0) 770new SignatureHelpTestItem("string CCC.IndexProp[int p1]", string.Empty, string.Empty, currentParameterIndex: 0) 910new SignatureHelpTestItem("string C[int a]", string.Empty, string.Empty, currentParameterIndex: 0) 940new SignatureHelpTestItem("int P[int z]", string.Empty, string.Empty, currentParameterIndex: 0)
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (26)
42new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 67new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 92new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 115new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 141new SignatureHelpTestItem($"({CSharpFeaturesResources.awaitable}) Task<int> Program.Goo<T>()", methodDocumentation: string.Empty, string.Empty, currentParameterIndex: 0) 172new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 207new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 242new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 289new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0) 294new SignatureHelpTestItem("void C.Goo<T>(T x)", string.Empty, string.Empty, currentParameterIndex: 0), 295new SignatureHelpTestItem("void C.Goo<T, U>(T x, U y)", string.Empty, string.Empty, currentParameterIndex: 0) 385new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 0) 408new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 1)
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (38)
46new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 69new SignatureHelpTestItem("G<T>", string.Empty, string.Empty, currentParameterIndex: 0) 92new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 0) 115new SignatureHelpTestItem("G<S, T>", string.Empty, string.Empty, currentParameterIndex: 1) 202new SignatureHelpTestItem("G<S> where S : struct", string.Empty, string.Empty, currentParameterIndex: 0) 226new SignatureHelpTestItem("G<S> where S : class", string.Empty, string.Empty, currentParameterIndex: 0) 250new SignatureHelpTestItem("G<S> where S : new()", string.Empty, string.Empty, currentParameterIndex: 0) 276new SignatureHelpTestItem("G<S> where S : Base", string.Empty, string.Empty, currentParameterIndex: 0) 302new SignatureHelpTestItem("G<S> where S : Base<S>", string.Empty, string.Empty, currentParameterIndex: 0) 328new SignatureHelpTestItem("G<S> where S : Base<int>", string.Empty, string.Empty, currentParameterIndex: 0) 354new SignatureHelpTestItem("G<S> where S : Base<Base<int>>", string.Empty, string.Empty, currentParameterIndex: 0) 378new SignatureHelpTestItem("G<S, T> where S : T", string.Empty, string.Empty, currentParameterIndex: 0) 472new SignatureHelpTestItem("G<S> where S : allows ref struct", string.Empty, string.Empty, currentParameterIndex: 0) 499new SignatureHelpTestItem("void C.Goo<T>()", string.Empty, string.Empty, currentParameterIndex: 0) 553new SignatureHelpTestItem("void C.Goo<S, T>(S s, T t)", string.Empty, string.Empty, currentParameterIndex: 1) 639new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) void G.Goo<T>()", string.Empty, string.Empty, currentParameterIndex: 0) 867new SignatureHelpTestItem("C<T>", string.Empty, string.Empty, currentParameterIndex: 0) 900new SignatureHelpTestItem("C<T>", string.Empty, string.Empty, currentParameterIndex: 0) 933new SignatureHelpTestItem("C<T>", string.Empty, string.Empty, currentParameterIndex: 0)
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (110)
90await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]); 125await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0)]); 162await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 276await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]); 293await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0)]); 309await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 328await TestAsync(markup, [new SignatureHelpTestItem("void Action<int>(int obj)", string.Empty, string.Empty, currentParameterIndex: 0)]); 348await TestAsync(markup, [new SignatureHelpTestItem("void C.Bar(int a)", string.Empty, string.Empty, currentParameterIndex: 0)]); 376await TestAsync(markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.extension}) int string.ExtensionMethod(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], sourceCodeKind: SourceCodeKind.Regular); 396await TestAsync(markup, [new SignatureHelpTestItem("void Class1.Goo([int a = 42])", string.Empty, string.Empty, currentParameterIndex: 0)]); 447await TestAsync(markup, [new SignatureHelpTestItem("double C.Goo(double x)", string.Empty, string.Empty, currentParameterIndex: 0)]); 474await TestAsync(markup, [new SignatureHelpTestItem("double C.Goo(double x, double y)", string.Empty, string.Empty, currentParameterIndex: 0)]); 555methodDocumentation: string.Empty, 556parameterDocumentation: string.Empty, 592methodDocumentation: string.Empty, 593parameterDocumentation: string.Empty, 595description: string.Empty)]); 624methodDocumentation: string.Empty, 625parameterDocumentation: string.Empty, 627description: string.Empty)]); 651methodDocumentation: string.Empty, 652parameterDocumentation: string.Empty, 654description: string.Empty)]); 683methodDocumentation: string.Empty, 684parameterDocumentation: string.Empty, 686description: string.Empty)]); 710methodDocumentation: string.Empty, 711parameterDocumentation: string.Empty, 713description: string.Empty)]); 742methodDocumentation: string.Empty, 743parameterDocumentation: string.Empty, 745description: string.Empty)]); 774methodDocumentation: string.Empty, 775parameterDocumentation: string.Empty, 777description: string.Empty)]); 877markup, [new SignatureHelpTestItem("void Program.SomeMethod([CancellationToken token = default])", string.Empty, null, currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 893await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 909await TestAsync(markup, [new SignatureHelpTestItem("void C.Goo(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)], usePreviousCharAsTrigger: true); 1009List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 1047expectedOrderedItemsSameSolution: [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)], 1074List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 1123expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)], 1125new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0), 1126new SignatureHelpTestItem("void Goo.Bar(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], 1164new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0), 1165new SignatureHelpTestItem("void Goo.Bar(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], 1201new SignatureHelpTestItem("void D.Goo(int derived)", string.Empty, string.Empty, currentParameterIndex: 0), 1234List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]; 1275new SignatureHelpTestItem("void B.Goo()", string.Empty, null, currentParameterIndex: 0), 1276new SignatureHelpTestItem("void D.Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 1313expectedOrderedItemsSameSolution: [new SignatureHelpTestItem("void B.Goo()", string.Empty, null, currentParameterIndex: 0)], 1340new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1341new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0), 1376expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1378new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1379new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1408expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0)], 1410new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1411new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1444new SignatureHelpTestItem("void C<int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1445new SignatureHelpTestItem("void C<int>.Goo(int i)", string.Empty, string.Empty, currentParameterIndex: 0)], 1473new SignatureHelpTestItem("void C<int, int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1474new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0), 1509expectedOrderedItemsMetadataReference: [new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0)], 1511new SignatureHelpTestItem("void C<int, int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1512new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0)], 1544new SignatureHelpTestItem("void C<int, int>.Goo(int t)", string.Empty, string.Empty, currentParameterIndex: 0), 1545new SignatureHelpTestItem("void C<int, int>.Goo(int u)", string.Empty, string.Empty, currentParameterIndex: 0)], 1566await TestSignatureHelpWithMscorlib45Async(markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.awaitable}) Task C.Goo()", methodDocumentation: string.Empty, currentParameterIndex: 0)], "C#"); 1583await TestSignatureHelpWithMscorlib45Async(markup, [new SignatureHelpTestItem($"({CSharpFeaturesResources.awaitable}) Task<Task<int>> C.Goo()", methodDocumentation: string.Empty, currentParameterIndex: 0)], "C#"); 1610await TestAsync(markup, [new SignatureHelpTestItem("void C<int>.M(int t)", string.Empty, "Real t", currentParameterIndex: 0)]); 2369new SignatureHelpTestItem("void C.Goo<string>(string a)", string.Empty, string.Empty, currentParameterIndex: 0), 2370new SignatureHelpTestItem("void C.Goo<T, U>(T a, U b)", string.Empty)]); 2391new SignatureHelpTestItem("void C.Goo<T>(T a)", string.Empty), 2392new SignatureHelpTestItem("void C.Goo<T, U>(T a, U b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 2596M{{(typeParameterProvided ? "<object>" : string.Empty)}}($$
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (29)
39await TestAsync(markup, [new("C()", string.Empty, null, currentParameterIndex: 0)]); 61await TestAsync(markup, [new("C()", string.Empty, null, currentParameterIndex: 0)]); 100await TestAsync(markup, [new("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0)]); 118await TestAsync(markup, [new("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0)]); 159await TestAsync(markup, [new("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 282await TestAsync(markup, [new("C()", string.Empty, null, currentParameterIndex: 0)]); 300await TestAsync(markup, [new("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 0)]); 318await TestAsync(markup, [new("C(int a, int b)", string.Empty, string.Empty, currentParameterIndex: 1)]); 336await TestAsync(markup, [new("Action<int, int>(void (int, int) target)", string.Empty, string.Empty, currentParameterIndex: 0, isSelected: true)]); 380await TestAsync(markup, [new("C()", string.Empty, null, currentParameterIndex: 0)], usePreviousCharAsTrigger: true); 400await TestAsync(markup, [new("C(int a, string b)", string.Empty, string.Empty, currentParameterIndex: 1)], usePreviousCharAsTrigger: true); 460new("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0) 499expectedOrderedItemsSameSolution: [new("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], 528new("Goo()", string.Empty, null, currentParameterIndex: 0) 579expectedOrderedItemsMetadataReference: [new("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0)], 581new("Goo(int x)", string.Empty, string.Empty, currentParameterIndex: 0), 582new("Goo(long y)", string.Empty, string.Empty, currentParameterIndex: 0)],
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProviderTests.cs (15)
36new("Base(Base original)", string.Empty, null, currentParameterIndex: 0), 37new("Base(int Identifier)", string.Empty, null, currentParameterIndex: 0, isSelected: true)]); 51await TestAsync(markup, [new("Base(int Identifier)", string.Empty, null, currentParameterIndex: 0, isSelected: true)]); 66new("Base(Base original)", string.Empty, null, currentParameterIndex: 1), 67new("Base(string name)", string.Empty, null, currentParameterIndex: 1), 68new("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true)]); 83new("Base(string name)", string.Empty, null, currentParameterIndex: 1), 84new("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true)]); 100new("Base(Base original)", string.Empty, null, currentParameterIndex: 1), 102new("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true)]); 119new("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 1, isSelected: true)]); 136new("Base(Base original)", string.Empty, null, currentParameterIndex: 0), 138new("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 0, isSelected: true)]); 156new("Base(int Identifier1, int Identifier2)", string.Empty, null, currentParameterIndex: 0, isSelected: true)]); 169await TestAsync(markup, [new("Base(int Identifier)", string.Empty, null, currentParameterIndex: 0, isSelected: true)]);
StringIndentation\StringIndentationTests.cs (1)
67=> await TestAsync(string.Empty);
Workspaces\WorkspaceTests_EditorFeatures.cs (4)
353var document = new EditorTestHostDocument(string.Empty); 370var document = new EditorTestHostDocument(string.Empty); 385var document = new EditorTestHostDocument(string.Empty); 706var document = new EditorTestHostDocument(string.Empty);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Recommendations\RecommenderTests.cs (3)
112=> VerifyInFrontOfCommentAsync(text, cursorPosition, absent, string.Empty, options: options, matchPriority: matchPriority); 133=> VerifyAtPositionAsync(text, position, absent, string.Empty, options: options, matchPriority: matchPriority); 160=> VerifyAtEndOfFileAsync(text, position, absent, string.Empty, options: options, matchPriority: matchPriority);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenConstructorInitTests.cs (6)
33CompileAndVerify(source, expectedOutput: string.Empty). 61CompileAndVerify(source, expectedOutput: string.Empty). 89CompileAndVerify(source, expectedOutput: string.Empty). 121CompileAndVerify(source, expectedOutput: string.Empty). 161CompileAndVerify(source, expectedOutput: string.Empty). 198CompileAndVerify(source, expectedOutput: string.Empty).
CodeGen\CodeGenOperators.cs (5)
1028expectedOutput: string.Empty); 1088var compilation = CompileAndVerify(source, expectedOutput: string.Empty); 1221var compilation = CompileAndVerify(source, expectedOutput: string.Empty); 1295var compilation = CompileAndVerify(source, expectedOutput: string.Empty); 1362var compilation = CompileAndVerify(source, expectedOutput: string.Empty);
CodeGen\CodeGenTests.cs (2)
10102CompileAndVerify(source, expectedOutput: string.Empty); 10150CompileAndVerify(source, expectedOutput: string.Empty);
Emit\EntryPointTests.cs (1)
1441CreateCompilation(source, options: TestOptions.ReleaseExe.WithMainTypeName(string.Empty)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
Attributes\AttributeTests_Conditional.cs (1)
362TestConditionAttributeType_DifferentSource(String.Empty, conditionalDefs);
Attributes\InternalsVisibleToAndStrongNameTests.cs (6)
2815var compilation = CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics(); 2825var options = TestOptions.DebugDll.WithCryptoKeyFile(string.Empty); 2826var compilation = CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics(); 2838CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics( 2848var options = TestOptions.DebugDll.WithCryptoKeyFile(string.Empty).WithPublicSign(true); 2849CreateCompilation(string.Empty, options: options, parseOptions: parseOptions).VerifyDiagnostics(
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (1)
113var text = new StringText(string.Empty, encodingOpt: null);
Diagnostics\DiagnosticAnalyzerTests.cs (4)
3257source2 = string.Empty; 3303source2 = string.Empty; 3879var tree = CSharpSyntaxTree.ParseText(string.Empty); 3914var tree = CSharpSyntaxTree.ParseText(string.Empty);
Diagnostics\GetDiagnosticsTests.cs (11)
510var compilation = CreateEmptyCompilation(string.Empty, parseOptions: new CSharpParseOptions().WithPreprocessorSymbols(new[] { "1" })); 522var compilation = CreateCompilationWithMscorlib461(string.Empty, parseOptions: new CSharpParseOptions().WithKind(SourceCodeKind.Interactive)); 534var compilation = CreateEmptyCompilation(string.Empty, parseOptions: new CSharpParseOptions().WithLanguageVersion((LanguageVersion)10000)); 544var compilation = CreateEmptyCompilation(string.Empty, parseOptions: new CSharpParseOptions().WithDocumentationMode(unchecked((DocumentationMode)100))); 554var syntaxTree1 = Parse(string.Empty, options: new CSharpParseOptions().WithPreprocessorSymbols(new[] { "1" })); 555var syntaxTree2 = Parse(string.Empty, options: new CSharpParseOptions().WithPreprocessorSymbols(new[] { "2" })); 556var syntaxTree3 = Parse(string.Empty, options: new CSharpParseOptions().WithPreprocessorSymbols(new[] { "3" })); 583var syntaxTree1 = Parse(string.Empty, options: parseOptions1); 584var syntaxTree2 = Parse(string.Empty, options: parseOptions2); 585var syntaxTree3 = Parse(string.Empty, options: parseOptions2); 607var tree1 = Parse(string.Empty, options: parseOptions);
Semantics\PatternMatchingTests2.cs (1)
274var source = string.Format(sourceTemplate, s1, s2, string.Empty);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
src\Compilers\CSharp\Portable\Syntax\SyntaxKindFacts.cs (1)
1878return string.Empty;
Microsoft.CodeAnalysis.CSharp.Features (14)
ChangeSignature\UnifiedArgumentSyntax.cs (1)
49=> NameColon == null ? string.Empty : ((NameColonSyntax)NameColon).Name.Identifier.ValueText;
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
76return string.Empty;
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
87if (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)
503=> string.Empty;
InlineHints\CSharpInlineParameterNameHintsService.cs (1)
107return (isReservedKeyword ? "@" : string.Empty) + parameterName + ": ";
MoveToNamespace\CSharpMoveToNamespaceService.cs (1)
32CompilationUnitSyntax _ => string.Empty,
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (4)
29private static readonly Func<TupleExpressionSyntax, IEnumerable<string>> s_getArgumentNames = e => e.Arguments.Select(a => a.NameColon?.Name.Identifier.ValueText ?? string.Empty); 55ArgumentName: string.Empty, 185var elementName = element.IsImplicitlyDeclared ? string.Empty : element.Name; 194result.Add(new SignatureHelpParameter(name: string.Empty, isOptional: false, documentationFactory: null, displayParts: typeParts));
src\Analyzers\CSharp\CodeFixes\GenerateEnumMember\CSharpGenerateEnumMemberService.cs (1)
31if (identifierToken.ValueText != string.Empty &&
Structure\CSharpStructureHelpers.cs (1)
145return string.Empty;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (13)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (1)
557_ => string.Empty
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (2)
667? string.Empty 698? string.Empty
src\Analyzers\CSharp\Tests\AbstractBuiltInCodeStyleDiagnosticAnalyzer\AbstractBuiltInCodeStyleDiagnosticAnalyzerTests.cs (1)
44title: string.Empty);
src\Analyzers\CSharp\Tests\MatchFolderAndNamespace\CSharpMatchFolderAndNamespaceTests.cs (2)
301defaultNamespace: string.Empty); 337defaultNamespace: string.Empty);
src\Analyzers\CSharp\Tests\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsTests.cs (4)
56var scopeString = scope != null ? $@", {scope}" : string.Empty; 57var targetString = target != null ? $@", {target}" : string.Empty; 110var scopeString = scope != null ? $@", {scope}" : string.Empty; 111var targetString = target != null ? $@", {target}" : string.Empty;
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (1)
6600{{loopFooter ?? string.Empty}}
UseExpressionBody\Refactoring\UseExpressionBodyFixAllTests.cs (2)
290var fixAllAnnotationForMethods = forMethods ? "{|FixAllInDocument:|}" : string.Empty; 291var fixAllAnnotationForProperties = forMethods ? string.Empty : "{|FixAllInDocument:|}";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ConstantTests.cs (2)
3979Assert.Equal(string.Empty, module.GlobalNamespace.GetTypeMember("C").GetField("s").ConstantValue); 4000Assert.Equal(string.Empty, module.GlobalNamespace.GetTypeMember("C").GetField("s").ConstantValue);
Semantics\MethodBodyModelTests.cs (1)
797Assert.Equal(string.Empty, string.Join(Environment.NewLine, comp.GetDiagnostics()));
Semantics\OperatorTests.cs (1)
5196CompileAndVerify(source, expectedOutput: string.Empty);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (36)
Compilation\CompilationAPITests.cs (6)
3094var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3103var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3113var module = CreateCompilation(string.Empty); 3122var comp = CreateCompilation(string.Empty, references: new[] { moduleReference }); 3134var module = CreateCompilation(string.Empty, options: TestOptions.ReleaseDll.WithOutputKind(OutputKind.NetModule)); 3143var comp = CreateCompilation(string.Empty, references: new[] { moduleReference });
Compilation\SemanticModelAPITests.cs (2)
409Assert.Equal(string.Empty, symbol.Name); 430Assert.Equal(string.Empty, symbol.Name);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
1011Assert.Equal(string.Empty, symbol.ToTestDisplayString());
DeclarationTests.cs (4)
65Assert.Equal(string.Empty, decl1.Name); 66Assert.Equal(string.Empty, decl2.Name); 132Assert.Equal(string.Empty, mr.Name); 165Assert.Equal(string.Empty, mr.Name);
Symbols\AssemblyAndNamespaceTests.cs (2)
36Assert.Equal(String.Empty, sym.GlobalNamespace.Name); 63Assert.Equal(String.Empty, sym.GlobalNamespace.Name);
Symbols\LookupSymbolsInfoTests.cs (1)
77if (arity == 0) return string.Empty;
Symbols\Metadata\MetadataTypeTests.cs (4)
335Assert.Equal(0, type3.GetMembers(String.Empty).Length); 338Assert.Equal(0, type2.GetTypeMembers(String.Empty).Length); 339Assert.Equal(0, type3.GetTypeMembers(String.Empty, 0).Length); 357var tree = SyntaxFactory.ParseSyntaxTree(String.Empty);
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
402var compilation = CreateCompilationWithILAndMscorlib40(String.Empty, il);
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (3)
310CompileWithCustomILSource(string.Empty, ilSource, comp => 329CompileWithCustomILSource(string.Empty, ilSource, comp => 354CompileWithCustomILSource(string.Empty, ilSource, comp =>
Symbols\Source\MethodTests.cs (2)
384Assert.Equal(0, outP.GetTypeMembers(String.Empty).Length); 385Assert.Equal(0, outP.GetTypeMembers(String.Empty, 0).Length);
Symbols\SymbolErrorTests.cs (5)
20848CreateCompilation(string.Empty, references: new MetadataReference[] { ilModule }, assemblyName: "Forwarder").VerifyDiagnostics( 20868CreateCompilation(string.Empty, references: new MetadataReference[] { ilModule }).VerifyDiagnostics( 20880CreateCompilation(string.Empty, references: new MetadataReference[] { ilModule, dReference }).VerifyDiagnostics(); 20903source: string.Empty, 20968source: string.Empty,
Symbols\TypeTests.cs (5)
503Assert.Equal(0, retType.GetMembers(string.Empty).Length); 505Assert.Equal(0, retType.GetTypeMembers(string.Empty).Length); 506Assert.Equal(0, retType.GetTypeMembers(string.Empty, 0).Length); 2461Assert.Equal(string.Empty, namedType.Name); 2627Assert.Equal(string.Empty, namedType.Name);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Diagnostics\DiagnosticTest.cs (5)
2816return string.Empty; 2821return string.Empty; 2826return string.Empty; 2831return string.Empty; 2836return string.Empty;
IncrementalParsing\IncrementalParsingTests.cs (1)
3326var comp = CSharpTestBase.CreateCompilation(SyntaxFactory.ParseSyntaxTree(String.Empty));
LexicalAndXml\PreprocessorTests.cs (8)
237Assert.Equal(String.Empty, ld.Line.Text); 2521new DirectiveInfo { Kind = SyntaxKind.DefineDirectiveTrivia, Status = NodeStatus.IsActive, Text = string.Empty }); 2534new DirectiveInfo { Kind = SyntaxKind.DefineDirectiveTrivia, Status = NodeStatus.IsActive, Text = string.Empty }); 2798VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = string.Empty }); 2809VerifyDirectivesSpecial(node, new DirectiveInfo { Kind = SyntaxKind.UndefDirectiveTrivia, Status = NodeStatus.IsActive, Text = string.Empty }); 3992WarningList = new[] { string.Empty } 4233var bytes = string.Empty; 4253var bytes = string.Empty;
LexicalAndXml\XmlDocCommentTests.cs (3)
2161VerifyXmlElement(firstComment.Content[0] as XmlElementSyntax, "goo", string.Empty); 2191VerifyXmlElement(firstComment.Content[0] as XmlElementSyntax, "goo", string.Empty); 3333if (innerText == string.Empty)
Parsing\DeclarationParsingTests.cs (1)
4480var text = "class a { " + (isEvent ? "event" : string.Empty) + " b c { " + SyntaxFacts.GetText(accessorKeyword) + " { x = value; } } }";
Parsing\ExpressionParsingTests.cs (1)
33var text = string.Empty;
Parsing\NameParsingTests.cs (5)
58var text = string.Empty; 66Assert.Equal(string.Empty, name.ToString()); 81Assert.Equal(string.Empty, name.ToString()); 96Assert.Equal(string.Empty, name.ToString()); 111Assert.Equal(string.Empty, name.ToString());
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
31FilePath = filePath ?? string.Empty;
Syntax\SyntaxNodeTests.cs (1)
836var tree2 = SyntaxFactory.ParseSyntaxTree(string.Empty);
Syntax\SyntaxTreeTests.cs (4)
328Assert.Equal(string.Empty, oldTree.WithFilePath(null).FilePath); 330Assert.Equal(string.Empty, oldTree.WithFilePath(null).FilePath); 331Assert.Equal(string.Empty, SyntaxFactory.ParseSyntaxTree("", path: null).FilePath); 332Assert.Equal(string.Empty, CSharpSyntaxTree.Create((CSharpSyntaxNode)oldTree.GetRoot()).FilePath);
TextExtensions.cs (2)
66return WithReplace(text, offset, length, string.Empty); 71return WithReplaceFirst(text, oldText, string.Empty);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
EmitMetadataTestBase.cs (1)
54string typeParams = string.Empty;
FunctionPointerUtilities.cs (2)
59Assert.Equal(string.Empty, symbol.Name); 109Assert.Equal(string.Empty, symbol.Name);
SemanticModelTestBase.cs (1)
59var tagName = string.Format("bind{0}", index == 0 ? String.Empty : index.ToString());
SyntaxTreeExtensions.cs (2)
54return WithReplace(syntaxTree, offset, length, string.Empty); 59return WithReplaceFirst(syntaxTree, oldText, string.Empty);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1901UsingDirectiveSyntax usingDirective => usingDirective.Name?.ToString() ?? string.Empty, 1909_ => string.Empty
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
673=> string.Empty;
OrganizeImports\CSharpOrganizeImportsService.Rewriter.cs (1)
77=> string.Join(string.Empty, organizedList.Select(t => t.ToFullString()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
14if (text == string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (2)
131return string.Empty; 142=> SyntaxFactory.ParseLeadingTrivia(s ?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
42return string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
741return string.Empty; 1067=> (argument as ArgumentSyntax)?.NameColon?.Name.Identifier.ValueText ?? string.Empty; 1070=> (argument as AttributeArgumentSyntax)?.NameEquals?.Name.Identifier.ValueText ?? string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
169return string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
105if (name == string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
188if (symbol.Name == string.Empty || symbol.IsAnonymousType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
37(otherSideType.Name == string.Empty || otherSideType.Name == "var"); 2347if (name != string.Empty)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\AddAttributesTests.cs (1)
71string.Empty,
OrganizeImports\OrganizeUsingsTests.cs (2)
47=> await CheckAsync(string.Empty, string.Empty);
Microsoft.CodeAnalysis.EditorFeatures (15)
CommentSelection\AbstractCommentSelectionBase.cs (1)
83=> textChanges.Add(new TextChange(span, string.Empty));
Editor\EditorLayerExtensionManager.cs (1)
80new InfoBarUI(string.Empty, InfoBarUI.UIKind.Close, () => LogLeaveDisabled(provider)));
EditorConfigSettings\Data\NamingStyleSetting.cs (1)
56public string TypeName => Type?.Name ?? string.Empty;
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (2)
73_ => string.Empty 324var prefix = string.Empty;
InlineRename\AbstractInlineRenameUndoManager.cs (2)
163this.UndoTemporaryEdits(subjectBuffer, disconnect: false, undoConflictResolution: replacementText == string.Empty); 188=> replacementText == string.Empty ? "Delete Text" : replacementText;
InlineRename\InlineRenameSession.cs (3)
531if (this.ReplacementText == string.Empty) 564if (this.ReplacementText == string.Empty) 797if (this.ReplacementText == string.Empty ||
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
100if (!removeOnly && _session.ReplacementText == string.Empty)
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (1)
126BaseViewModel.IdentifierText = value ?? string.Empty;
IntelliSense\AsyncCompletion\CompletionSource.cs (2)
195buffer.ApplyChange(new TextChange(TextSpan.FromBounds(caretPoint - 2, caretPoint), string.Empty)); 408completionList.SuggestionModeItem.TryGetProperty(CommonCompletionItem.DescriptionProperty, out var description) ? description : string.Empty);
Suggestions\SuggestedActions\SuggestedAction.cs (1)
220var text = extensionManager.PerformFunction(Provider, () => CodeAction.Title, defaultValue: string.Empty);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (19)
ChangeSignature\AddedParameterOrExistingIndex.cs (1)
60=> IsExisting ? OldIndex.ToString() : (_addedParameterWithoutTypeSymbol?.ToString() ?? string.Empty);
Completion\AbstractCompletionProviderTests.cs (6)
828return languageName == LanguageNames.CSharp ? @"LanguageVersion = ""preview""" : string.Empty; 1085await VerifyAtPositionAsync(code, position, string.Empty, usePreviousCharAsTrigger, 1127code, position, string.Empty, usePreviousCharAsTrigger, deletedCharTrigger, 1174await VerifyAtEndOfFileAsync(code, position, string.Empty, 1184await VerifyAtEndOfFileAsync(code, position, string.Empty, 1223await VerifyAtEndOfFileAsync(code, position, string.Empty, usePreviousCharAsTrigger, deletedCharTrigger,
MoveStaticMembers\TestMoveStaticMembersService.cs (1)
56? string.Empty
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (1)
128=> item => AssertSection(string.Empty, item.Sections, QuickInfoSectionKinds.TypeParameters);
RefactoringHelpers\RefactoringHelpersTestBase.cs (2)
76!spans.TryGetValue(string.Empty, out var selections) || selections.Length != 1) 90!spans.TryGetValue(string.Empty, out var selections) || selections.Length != 1 ||
Workspaces\EditorTestWorkspace.cs (7)
287mappedSpans[string.Empty] = mappedSpans.TryGetValue(string.Empty, out var emptyTextSpans) 294mappedSpans[string.Empty] = mappedSpans[string.Empty].Add(mappedSpan.ToTextSpan()); 299mappedSpans[string.Empty] = [.. mappedSpans[string.Empty].OrderBy(s => s.End).ThenBy(s => -s.Start)]; 347var namedSpans = markupSpans.Where(kvp => kvp.Key != string.Empty);
Workspaces\TestWorkspaceFixture.cs (1)
85UpdateText(hostDocument.GetTextBuffer(), string.Empty);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (4)
Intellisense\TestState.vb (3)
712String.Empty) 714String.Empty, 724Return String.Join(String.Empty, parts.Select(Function(p) p.ToString()))
Utilities\MockSymbolNavigationServiceProvider.vb (1)
44Public NavigationFilePathReturnValue As String = String.Empty
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (75)
CodeActions\CodeChangeProviderMetadataTests.cs (2)
64exportedProvider => TryGetExportName(exportedProvider.Export, out var name) ? name : string.Empty); 123.Select(exportedProvider => TryGetExportName(exportedProvider.Export, out var name) ? name : string.Empty)
CodeFixes\CodeFixServiceTests.cs (1)
478return string.Empty;
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
140public override string FullPath => string.Empty;
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (45)
313UncommentSelection(code, new[] { new TextChange(new TextSpan(0, 2), string.Empty) }, Span.FromBounds(0, 6), supportBlockComments: true); 322new TextChange(new TextSpan(7, 2), string.Empty), 323new TextChange(new TextSpan(30, 2), string.Empty), 335new TextChange(new TextSpan(11, 2), string.Empty), 336new TextChange(new TextSpan(34, 2), string.Empty), 359new TextChange(new TextSpan(18, 2), string.Empty), 360new TextChange(new TextSpan(34, 2), string.Empty), 361new TextChange(new TextSpan(47, 2), string.Empty), 362new TextChange(new TextSpan(68, 2), string.Empty), 363new TextChange(new TextSpan(119, 2), string.Empty), 364new TextChange(new TextSpan(128, 2), string.Empty), 385new TextChange(new TextSpan(20, 2), string.Empty), 386new TextChange(new TextSpan(23, 2), string.Empty), 387new TextChange(new TextSpan(38, 2), string.Empty), 388new TextChange(new TextSpan(49, 2), string.Empty), 389new TextChange(new TextSpan(52, 2), string.Empty), 390new TextChange(new TextSpan(64, 2), string.Empty), 411new TextChange(new TextSpan(2, 2), string.Empty), 412new TextChange(new TextSpan(19, 2), string.Empty), 413new TextChange(new TextSpan(26, 2), string.Empty), 433new TextChange(new TextSpan(6, 2), string.Empty), 434new TextChange(new TextSpan(16, 2), string.Empty) 447new TextChange(new TextSpan(19, 2), string.Empty), 448new TextChange(new TextSpan(29, 2), string.Empty) 461new TextChange(new TextSpan(0, 2), string.Empty), 462new TextChange(new TextSpan(15, 2), string.Empty) 475new TextChange(new TextSpan(0, 2), string.Empty), 476new TextChange(new TextSpan(15, 2), string.Empty) 513new TextChange(new TextSpan(18, 2), string.Empty), 514new TextChange(new TextSpan(112, 2), string.Empty), 544new TextChange(new TextSpan(20, 2), string.Empty), 545new TextChange(new TextSpan(114, 2), string.Empty), 573new TextChange(new TextSpan(18, 2), string.Empty), 574new TextChange(new TextSpan(112, 2), string.Empty), 602new TextChange(new TextSpan(18, 2), string.Empty), 603new TextChange(new TextSpan(112, 2), string.Empty), 631new TextChange(new TextSpan(55, 2), string.Empty), 659new TextChange(new TextSpan(55, 2), string.Empty), 687new TextChange(new TextSpan(18, 2), string.Empty), 688new TextChange(new TextSpan(28, 2), string.Empty), 689new TextChange(new TextSpan(44, 2), string.Empty), 690new TextChange(new TextSpan(53, 2), string.Empty), 691new TextChange(new TextSpan(78, 2), string.Empty), 692new TextChange(new TextSpan(109, 2), string.Empty), 693new TextChange(new TextSpan(118, 2), string.Empty),
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (1)
80Assert.True(helpLinkUri == string.Empty, $"Expected empty help link for {diagnosticId}");
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (2)
41Assert.Equal(string.Empty, setting.Category); 72Assert.Equal(string.Empty, setting.Category);
Extensions\EnumerableExtensionTests.cs (1)
65Assert.Equal(string.Empty, Enumerable<string>().Join(", "));
Extensions\ITextExtensionsTests.cs (5)
18var leadingWhitespace = GetLeadingWhitespaceOfLineAtPosition(string.Empty, 0); 19Assert.Equal(string.Empty, leadingWhitespace); 47Assert.Equal(string.Empty, leadingWhitespace); 75Assert.Equal(string.Empty, leadingWhitespace); 103Assert.Equal(string.Empty, leadingWhitespace);
Extensions\ITextLineExtensionsTests.cs (2)
18var position = GetFirstNonWhitespacePosition(string.Empty); 74var value = IsEmptyOrWhitespace(string.Empty);
Extensions\ITextSnapshotExtensionsTests.cs (5)
22var leadingWhitespace = GetLeadingWhitespaceOfLineAtPosition(string.Empty, 0); 23Assert.Equal(string.Empty, leadingWhitespace); 51Assert.Equal(string.Empty, leadingWhitespace); 79Assert.Equal(string.Empty, leadingWhitespace); 107Assert.Equal(string.Empty, leadingWhitespace);
Extensions\ITextSnapshotLineExtensionsTests.cs (3)
21var position = GetFirstNonWhitespacePosition(string.Empty); 77var position = GetLastNonWhitespacePosition(string.Empty); 133var value = IsEmptyOrWhitespace(string.Empty);
Tagging\TagSpanIntervalTreeTests.cs (2)
28spans.Select(s => new TagSpan<ITextMarkerTag>(new SnapshotSpan(buffer.CurrentSnapshot, s), new TextMarkerTag(string.Empty)))); 44var (tree, buffer) = CreateTree(string.Empty);
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (1)
89return references.ToDictionary(reference => Path.GetFileNameWithoutExtension(reference.ItemSpecification), reference => string.Empty);
UnusedReferences\UnusedReferencesRemoverTests.cs (1)
172string.Empty,
Utilities\BloomFilterTests.cs (1)
89Assert.False(filter.ProbablyContains(string.Empty));
Utilities\PatternMatcherTests.cs (2)
27=> VerifyBreakIntoCharacterParts(string.Empty, []); 340=> Assert.Null(TryMatchMultiWordPattern("AddMetadataReference", string.Empty));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (15)
CodeFixes\CodeFixServiceTests.vb (2)
369Return Task.FromResult(String.Empty) 373Return Task.FromResult((String.Empty, False))
IntelliSense\CSharpCompletionCommandHandlerTests.vb (2)
10806Dim yieldDeclaration = If(hasYieldType, "public class yield{}", String.Empty) 10832Dim yieldDeclaration = If(hasYieldType, "public class yield{}", String.Empty)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (2)
484text = String.Empty 705genericTypeSuffix:=String.Empty,
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (1)
1859displayTextSuffix:=String.Empty,
Rename\RenameCommandHandlerTests.vb (5)
842Assert.Equal(String.Empty, view.Caret.Position.BufferPosition.GetContainingLine.GetText()) 881Assert.Equal(String.Empty, view.Caret.Position.BufferPosition.GetContainingLine.GetText()) 917Assert.Equal(String.Empty, view.Caret.Position.BufferPosition.GetContainingLine.GetText()) 951Assert.Equal(String.Empty, view.Caret.Position.BufferPosition.GetContainingLine.GetText()) 984Assert.Equal(String.Empty, view.Caret.Position.BufferPosition.GetContainingLine.GetText())
Workspaces\SymbolDescriptionServiceTests.vb (3)
347String.Empty, 800String.Empty, 812String.Empty,
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
NotImplementedMetadataException.cs (1)
13internal NotImplementedMetadataException(NotImplementedException inner) : base(string.Empty, inner)
PDB\PdbHelpers.cs (1)
102(SpecialType.System_String, null) => ConstantValue.Create(string.Empty),
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
src\Compilers\CSharp\Portable\Syntax\SyntaxKindFacts.cs (1)
1878return string.Empty;
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\DebuggerTypeProxyExpansion.cs (1)
140name: string.Empty,
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (4)
337Type: string.Empty, 356Type: string.Empty, 375Type: string.Empty, 395Type: string.Empty,
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (6)
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\DebuggerTypeProxyExpansion.cs (1)
140name: string.Empty,
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (4)
337Type: string.Empty, 356Type: string.Empty, 375Type: string.Empty, 395Type: string.Empty,
Microsoft.CodeAnalysis.ExternalAccess.Copilot (3)
Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (1)
190return (string.Empty, false);
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (2)
107return Task.FromResult(string.Empty); 115return Task.FromResult((string.Empty, false));
Microsoft.CodeAnalysis.ExternalAccess.FSharp (4)
Internal\Diagnostics\FSharpDocumentDiagnosticAnalyzer.cs (3)
59dummyDescriptors.Add(new DiagnosticDescriptor(String.Format("FS{0:D4}", i), String.Empty, String.Empty, String.Empty, DiagnosticSeverity.Error, true, null, null));
SignatureHelp\FSharpSignatureHelpParameter.cs (1)
67this.Name = name ?? string.Empty;
Microsoft.CodeAnalysis.ExternalAccess.Xaml (2)
Internal\DescriptionService.cs (2)
82builder.Add(new TaggedText(TextTags.CodeBlockStart, string.Empty)); 84builder.Add(new TaggedText(TextTags.CodeBlockEnd, string.Empty));
Microsoft.CodeAnalysis.Features (93)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
100var bannerText = banner.Select(trivia => trivia.ToFullString()).Join(string.Empty);
CodeFixes\Configuration\ConfigurationUpdater.cs (3)
427var relativePath = string.Empty; 428var diagnosticFilePath = string.Empty; 742var prefix = string.Empty;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (1)
107suppressionsDoc = _project.AddDocument(suppressionsFileName, 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 (5)
133var beforeLine1 = textLine.LineNumber > 0 ? text.Lines[textLine.LineNumber - 1].ToString() : string.Empty; 136: string.Empty; 139: string.Empty; 142: string.Empty; 285return string.Empty;
CodeLens\ReferenceCount.cs (1)
33private string GetCappedReferenceCountString() => $"{Count}{(IsCapped ? "+" : string.Empty)}";
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (1)
44MoveTypeOperationKind.MoveTypeNamespaceScope => string.Empty,
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
160newDocumentId, FileName, text: string.Empty, folders: document.Folders);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (2)
114declaredNamespace = string.Empty; 206return string.Empty;
Common\SymbolDisplayPartKindTags.cs (1)
73_ => string.Empty,
Common\TaggedText.cs (2)
217return string.Join(string.Empty, parts.Select( 222=> string.Join(string.Empty, parts.Select(p => p.ToString()));
Completion\CommonCompletionProvider.cs (1)
126displayText: displayText ?? string.Empty,
Completion\Providers\AbstractAwaitCompletionProvider.cs (3)
107builder.Add(KeyValuePairUtil.Create(MakeContainerAsync, string.Empty)); 111builder.Add(KeyValuePairUtil.Create(AddAwaitAtCurrentPosition, string.Empty)); 136properties = properties.Add(KeyValuePairUtil.Create(AppendConfigureAwait, string.Empty));
Completion\Providers\AbstractDocCommentCompletionProvider.cs (4)
168afterCaretText: string.Empty)); 178afterCaretText: string.Empty)); 314afterCaretText: string.Empty); 322afterCaretText: 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\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
356var qualifiedNamespaceName = indexOfLastDot > 0 ? fullyQualifiedContainerName[..indexOfLastDot] : string.Empty;
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
81displayTextSuffix: arity == 0 ? string.Empty : genericTypeSuffix,
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
128var textChange = new TextChange(span, string.Empty);
Completion\Providers\SymbolCompletionItem.cs (1)
120return string.Empty;
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
85result.Add(CreateCodeAction(prefix + number.Replace(DigitSeparator, string.Empty), FeaturesResources.Remove_separators));
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (1)
51id, string.Empty, messageFormat,
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (3)
144Builder.Add(new TaggedText(TextTags.ContainerEnd, string.Empty)); 161Builder.Add(new TaggedText(TextTags.ContainerEnd, string.Empty)); 260Builder.Add(new TaggedText(TextTags.ContainerStart, string.Empty));
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (4)
101var comments = string.Join(string.Empty, lines); 302var newText = string.Join(string.Empty, lines); 343var lines = GetDocumentationCommentStubLines(targetMember, string.Empty); 358var 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)
550return string.Empty;
ExtractInterface\AbstractExtractInterfaceService.cs (1)
114? string.Empty
ExtractInterface\ExtractInterfaceCodeAction.cs (1)
22? string.Empty
ExtractMethod\MethodExtractor.Analyzer.cs (3)
229var namesWithAnonymousTypes = variables.Where(v => v.OriginalTypeHadAnonymousTypeOrDelegate).Select(v => v.Name ?? string.Empty); 273.Select(p => p.Name ?? string.Empty); 886names.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)
272var newSolution = projectToBeUpdated.Solution.AddDocument(newDocumentId, documentName, string.Empty, folders, fullFilePath);
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
300return string.Empty;
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
203new TaggedText(TextTags.ContainerEnd, string.Empty), 440.Insert(0, new TaggedText(TextTags.CodeBlockStart, string.Empty)) 441.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 (1)
446Hash.Combine(StringComparer.OrdinalIgnoreCase.GetHashCode(_filePath ?? string.Empty),
MoveStaticMembers\MoveStaticMembersOptions.cs (2)
31string.Empty, 32string.Empty,
QuickInfo\QuickInfoSection.cs (2)
28Kind = kind ?? string.Empty; 53_text = 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\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
369: string.Empty;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
175propertiesBuilder.Add(IsUnusedLocalAssignmentKey, string.Empty); 180propertiesBuilder.Add(IsRemovableAssignmentKey, string.Empty);
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
138&& name != string.Empty
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
91if (previousNodeTextTrimmed == string.Empty ||
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (5)
109var leadingSpaces = string.Empty; 113var possibleLeadingSpaces = string.Empty; 121if (possibleLeadingSpaces != string.Empty) 133if (leadingSpaces == string.Empty) 142possibleLeadingSpaces = string.Empty;
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
280=> _arguments.IsDefault || index >= _arguments.Length ? string.Empty : _arguments[index].Name;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (2)
31=> string.Empty; 34=> string.Empty;
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
218return string.Empty;
src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
31return string.Empty;
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
106var packagesPath = projectAssets.Project?.Restore?.PackagesPath ?? string.Empty;
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
545string relativePath = string.Empty; 851var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 855Debug.Assert(parts[toSkip - 1] == string.Empty);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
Microsoft.CodeAnalysis.LanguageServer (7)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
820 => string.Empty,
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (2)
140var projectGuid = projectToLoad.ProjectGuid.Replace("{", string.Empty).Replace("}", string.Empty);
HostWorkspace\ProjectTelemetry\VsTfmAndFileExtHashingAlgorithm.cs (1)
56return string.Empty;
Testing\RunTestsHandler.cs (1)
62{ DotnetCliHelper.DotnetRootEnvVar, string.IsNullOrEmpty(dotnetRootUser) || dotnetRootUser == "EMPTY" ? string.Empty : dotnetRootUser }
Testing\TestRunner.TestRunHandler.cs (2)
51var partialResult = new RunTestsPartialResult(LanguageServerResources.Running_tests, message ?? string.Empty, stats); 137return string.Empty;
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
Extensions\ProtocolConversions.cs (5)
441NewText = textChange.NewText ?? string.Empty 644var glyphString = glyph.ToString().Replace(nameof(Accessibility.Public), string.Empty) 645.Replace(nameof(Accessibility.Protected), string.Empty) 646.Replace(nameof(Accessibility.Private), string.Empty) 647.Replace(nameof(Accessibility.Internal), string.Empty);
Handler\Completion\CompletionResultFactory.cs (1)
523PopulateTextEdit(lspItem, change.Span, change.NewText ?? string.Empty, documentText, itemDefaultsSupported, defaultSpan);
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
105category ??= string.Empty;
Handler\Hover\HoverHandler.cs (1)
124Contents = new SumType<string, MarkedString, SumType<string, MarkedString>[], MarkupContent>(string.Empty),
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
104return subElement == null ? string.Empty : subElement.Value.Trim();
LanguageInfoProvider.cs (3)
22private static readonly LanguageInformation s_typeScriptLanguageInformation = new LanguageInformation(InternalLanguageNames.TypeScript, string.Empty); 23private static readonly LanguageInformation s_razorLanguageInformation = new(RazorLanguageName, string.Empty); 24private static readonly LanguageInformation s_xamlLanguageInformation = new("XAML", string.Empty);
Protocol\CodeActionKind.cs (1)
23public static readonly CodeActionKind Empty = new(string.Empty);
Protocol\Internal\Text\ImageElement.cs (1)
14public static readonly ImageElement Empty = new(default, string.Empty);
Protocol\TextDocumentIdentifier.cs (1)
83return this.DocumentUri == null ? string.Empty : this.DocumentUri.ToString();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (46)
Completion\CompletionResolveTests.cs (2)
433new ClassifiedTextRun("whitespace", string.Empty), 437new ClassifiedTextRun("whitespace", string.Empty),
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
166: [(option, string.Empty)]);
Definitions\GoToDefinitionTests.cs (1)
84await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace);
Definitions\GoToTypeDefinitionTests.cs (1)
245await testLspServer.OpenDocumentAsync(results.Single().DocumentUri, text: string.Empty).ConfigureAwait(false);
Diagnostics\DiagnosticRegistrationTests.cs (1)
49await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, initializationOptions);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (2)
26await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(string.Empty, mutatingLspWorkspace, BackgroundAnalysisScope.FullSolution, useVSDiagnostics); 43await using var testLspServer = await CreateTestWorkspaceWithDiagnosticsAsync(string.Empty, mutatingLspWorkspace, BackgroundAnalysisScope.FullSolution, useVSDiagnostics);
HandlerTests.cs (1)
285await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
Hover\HoverTests.cs (1)
605var content = string.Join("|", classifiedTextElements.Select(cte => string.Join(string.Empty, cte.Runs.Select(ctr => ctr.Text))));
Initialize\LocaleTests.cs (5)
27await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions 39await using var testLspServerOne = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions 44await using var testLspServerTwo = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions 59await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions 72await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions
Metadata\LspMetadataAsSourceWorkspaceTests.cs (1)
49await testLspServer.OpenDocumentAsync(definition.Single().DocumentUri, text: string.Empty).ConfigureAwait(false);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (9)
35await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 58await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 68await testLspServer.OpenDocumentAsync(looseFileUri, string.Empty).ConfigureAwait(false); 99await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 145await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 190await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 224await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 255await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 286await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
ProtocolConversionsTests.cs (1)
324await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer });
References\FindImplementationsTests.cs (1)
86await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace);
Rename\RenameTests.cs (1)
164await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace);
SignatureHelp\SignatureHelpTests.cs (1)
100await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace);
Symbols\DocumentSymbolsTests.cs (1)
171await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace);
UriTests.cs (8)
46await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 72await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 166await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 214await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 260await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 296await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 335await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace, new InitializationOptions { ServerKind = WellKnownLspServerKinds.CSharpVisualBasicLspServer }); 341await testLspServer.OpenDocumentAsync(invalidUri, string.Empty, languageId: "csharp").ConfigureAwait(false);
Workspaces\LspWorkspaceManagerTests.cs (3)
696await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace); 718await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace); 734await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace);
Workspaces\SourceGeneratedDocumentTests.cs (5)
150await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace); 197await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace); 230await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace); 256await using var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace); 284var testLspServer = await CreateTestLspServerAsync(string.Empty, mutatingLspWorkspace);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\LanguageServerTestComposition.cs (1)
31ExtensionLogDirectory: string.Empty,
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
DeclarePublicApiAnalyzer.Impl.cs (3)
492return string.Empty; 579return string.Empty; 649return string.Empty;
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (4)
DeclarePublicApiFix.cs (1)
105project = AddAdditionalDocument(project, isPublic ? DeclarePublicApiAnalyzer.PublicShippedFileName : DeclarePublicApiAnalyzer.InternalShippedFileName, SourceText.From(string.Empty));
PublicApiFixHelpers.cs (3)
68/// otherwise, <see cref="string.Empty"/>.</returns> 72return string.Empty; 75return lastLine.Span.IsEmpty ? endOfLine : string.Empty;
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (9)
AnnotatePublicApiAnalyzerTestsBase.cs (2)
398test.TestState.AdditionalFiles.Add((UnshippedFileName, string.Empty)); 402test.FixedState.AdditionalFiles.Add((UnshippedFileName, string.Empty));
DeclarePublicAPIAnalyzerTestsBase.cs (7)
241test.FixedState.AdditionalFiles.Add((ShippedFileName, shippedApiText ?? string.Empty)); 1444string shippedText = string.Empty; 2054var unshippedText = string.Empty; 2073var unshippedText = string.Empty; 2093var unshippedText = string.Empty; 2111var unshippedText = string.Empty; 2132var unshippedText = string.Empty;
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (1)
TelemetryLoggerTests.cs (1)
20=> @event.Properties.Select(p => $"{p.Key}={(keyToIgnoreValueInspection == p.Key ? string.Empty : InspectPropertyValue(p.Value))}");
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
AbstractResxGenerator.cs (1)
425var defaultValue = ResourceInformation.IncludeDefaultValues ? ", " + CreateStringLiteral(value, language) : string.Empty;
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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;
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Verifiers\CSharpSourceGeneratorVerifier`1+Test.cs (1)
42: this(string.Empty, testFile, testMethod)
Verifiers\VisualBasicSourceGeneratorVerifier`1+Test.cs (1)
41: this(string.Empty, testFile, testMethod)
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
602docSubdirectory = string.Empty;
Hosting\CommandLine\CommandLineRunner.cs (1)
285newScript = Script.CreateInitialScript<object>(_scriptCompiler, SourceText.From(code ?? string.Empty), options, globals.GetType(), assemblyLoaderOpt: null);
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
411string v = FormatWithEmbeddedExpressions(lengthLimit, debuggerDisplay.Value, obj) ?? string.Empty; // TODO: ?
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
47return string.Empty;
Hosting\Resolvers\NuGetPackageResolver.cs (1)
32version = string.Empty;
ScriptOptions.cs (1)
26filePath: string.Empty,
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
137return String.Empty;
Microsoft.CodeAnalysis.Scripting.UnitTests (5)
ScriptOptionsTests.cs (5)
163var compilation = CSharpScript.Create(string.Empty, scriptOptions).GetCompilation(); 219var compilation = (CSharpCompilation)CSharpScript.Create(string.Empty, scriptOptions).GetCompilation(); 246var compilation = CSharpScript.Create(string.Empty, scriptOptions).GetCompilation(); 274var compilation = CSharpScript.Create(string.Empty, scriptOptions).GetCompilation(); 311var compilation = CSharpScript.Create(string.Empty, scriptOptions).GetCompilation();
Microsoft.CodeAnalysis.Test.Utilities (18)
Compilation\OperationTreeVerifier.cs (5)
355var elementCount = logElementCount ? $"({list.Count()})" : string.Empty; 445var localStr = !operation.Locals.IsEmpty ? $", {operation.Locals.Length} locals" : string.Empty; 823var isVirtualStr = operation.IsVirtual ? "virtual " : string.Empty; 824var spacing = !operation.IsVirtual && operation.Instance != null ? " " : string.Empty; 826LogSymbol(operation.TargetMethod, header: string.Empty);
CompilationVerifier.cs (1)
506return (true, string.Empty);
Diagnostics\CommonDiagnosticAnalyzers.cs (7)
111var warningLevelText = warnAsError ? string.Empty : @" 266var warningLevelText = warnAsError ? string.Empty : @" 380return string.Empty; 388return string.Empty; 392var overridesContent = string.Empty; 1060string.Empty, 1094string.Empty,
MarkedSource\MarkupTestFile.cs (2)
133spanStartStack.Push((matchIndexInOutput, string.Empty)); 217var builder = GetOrAdd(dictionary, string.Empty, _ => ArrayBuilder<TextSpan>.GetInstance());
Metadata\MetadataSignatureUnitTestHelper.cs (2)
143var expectedText = string.Empty; 144var actualText = string.Empty;
SourceGeneration\TestGenerators.cs (1)
154public BinaryText(string path) : base(path, string.Empty) { }
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
Microsoft.CodeAnalysis.UnitTests (28)
Analyzers\AnalyzerFileReferenceTests.cs (1)
467: string.Empty;
Collections\DebuggerAttributes.cs (1)
169reference = reference.Replace(",nq", string.Empty);
Collections\ImmutableListTestBase.cs (2)
292this.AssertIListBaseline(IndexOfFunc, new int?(1), string.Empty); 319this.AssertIListBaseline(ContainsFunc, new int?(1), string.Empty);
Collections\ImmutableSegmentedListBuilderTest.cs (1)
345this.AssertIListBaseline(RemoveFunc, new int?(1), string.Empty);
Collections\RopeTests.cs (3)
39Assert.Equal(string.Empty, r.ToString()); 40Assert.Equal(r, Rope.ForString(string.Empty)); 41Assert.Equal(Rope.ForString(string.Empty), r);
CryptoBlobParserTests.cs (1)
166string.Empty,
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
137return String.Empty;
Text\SourceTextTests.cs (2)
29SourceText[] texts = [SourceText.From(string.Empty), SourceText.From([], 0), SourceText.From(new MemoryStream())]; 46Assert.Same(string.Empty, text.ToString());
Text\StringTextTest.cs (2)
61var data = SourceText.From(string.Empty); 83var data = SourceText.From(string.Empty, Encoding.UTF8);
Text\StringTextTests_Default.cs (2)
41var data = Create(string.Empty); 49var data = Create(String.Empty);
Text\TextChangeTests.cs (12)
180new TextChange(new TextSpan(4, 1), string.Empty), 181new TextChange(new TextSpan(5, 1), string.Empty)); 191new TextChange(new TextSpan(4, 1), string.Empty), 206new TextChange(new TextSpan(4, 1), string.Empty)); 636var change1 = original.WithChanges(new TextChange(new TextSpan(5, 6), string.Empty)); // prepare a ChangedText instance 647var change1 = original.WithChanges(new TextChange(new TextSpan(5, 6), string.Empty)); // prepare a ChangedText instance 648var change2 = change1.WithChanges(new TextChange(new TextSpan(2, 0), string.Empty)); // this should not cause exception 1237new TextChange(new TextSpan(35, 4), string.Empty), 1238new TextChange(new TextSpan(46, 4), string.Empty), 1239new TextChange(new TextSpan(73, 4), string.Empty), 1241new TextChange(new TextSpan(90, 4), string.Empty), 1242new TextChange(new TextSpan(105, 4), 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)
1380If Not String.Empty.Equals(rootNamespace) Then
Compilation\VisualBasicCompilation.vb (1)
2623Return 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)
120Return 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)
209moduleId = String.Empty
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
29Return 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)
12Public Shared ReadOnly UnknownMethod As ErrorMethodSymbol = New ErrorMethodSymbol(ErrorTypeSymbol.UnknownResultType, ErrorTypeSymbol.UnknownResultType, String.Empty)
Symbols\ErrorTypeSymbol.vb (1)
147Return String.Empty
Symbols\EventSymbol.vb (1)
220If 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)
42Return String.Empty
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
296_name = String.Empty
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
128name = String.Empty 1102Interlocked.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 1096useSiteInfo = 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\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
855Return String.Empty 1108Return String.Empty
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (9)
src\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (1)
126If argumentName IsNot String.Empty AndAlso Not FindCorrespondingParameterByName(argumentName, parameters,
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamespaceGenerator.vb (1)
89If name = String.Empty Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
14If text = String.Empty Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
77If symbol.Name = String.Empty OrElse symbol.IsAnonymousType Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
23otherSideType.Name = String.Empty
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (4)
src\Analyzers\VisualBasic\Tests\RemoveUnnecessarySuppressions\RemoveUnnecessarySuppressionsTests.vb (4)
37Dim scopeString = If(scope IsNot Nothing, $", {scope}", String.Empty) 38Dim targetString = If(target IsNot Nothing, $", {target}", String.Empty) 76Dim scopeString = If(scope IsNot Nothing, $", {scope}", String.Empty) 77Dim targetString = If(target IsNot Nothing, $", {target}", String.Empty)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (8)
CommandLineTests.vb (5)
42Private Shared ReadOnly s_DotnetCscRun As String = If(ExecutionConditionUtil.IsMonoDesktop, "mono", String.Empty) 479Assert.Equal(String.Empty, writer.ToString.Trim) 485Assert.Equal(String.Empty, writer.ToString.Trim) 491Assert.Equal(String.Empty, writer.ToString.Trim) 10905Dim targetFrameworkAttributeText As String = If(TypeOf targetFramework Is Object, $"<Assembly: System.Runtime.Versioning.TargetFramework(""{targetFramework}"")>", String.Empty)
SarifV1ErrorLoggerTests.vb (1)
20Return String.Empty
TouchedFileLoggingTests.vb (2)
86Assert.Equal(String.Empty, outWriter.ToString().Trim()) 128Assert.Equal(String.Empty, writer.ToString().Trim())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\InternalsVisibleToAndStrongNameTests.vb (6)
2302Dim compilation = CreateCompilationWithMscorlib40(String.Empty, options:=options, parseOptions:=parseOptions).VerifyEmitDiagnostics() 2311Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoKeyFile:=String.Empty) 2312Dim compilation = CreateCompilationWithMscorlib40(String.Empty, options:=options, parseOptions:=parseOptions).VerifyEmitDiagnostics() 2322Dim compilation = CreateCompilationWithMscorlib40(String.Empty, options:=options, parseOptions:=parseOptions) 2334Dim options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, cryptoKeyFile:=String.Empty, publicSign:=True) 2335Dim compilation = CreateCompilationWithMscorlib40(String.Empty, options:=options, parseOptions:=parseOptions)
Emit\DeterministicTests.vb (2)
202source:=String.Empty, 243source:=String.Empty,
Emit\EmitMetadata.vb (1)
164Dim typeParams As String = String.Empty
Microsoft.CodeAnalysis.VisualBasic.Features (7)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
215Return 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\Analyzers\VisualBasic\CodeFixes\AddExplicitCast\VisualBasicAddExplicitCastCodeFixProvider.vb (1)
126If argumentName IsNot String.Empty AndAlso Not FindCorrespondingParameterByName(argumentName, parameters,
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (1)
src\ExpressionEvaluator\VisualBasic\Source\ResultProvider\Generated\Syntax.xml.GetText.Generated.vb (1)
521Return String.Empty
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScript.vb (1)
27Return Script.CreateInitialScript(Of T)(VisualBasicScriptCompiler.Instance, SourceText.From(If(code, String.Empty)), options, globalsType, assemblyLoader)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (92)
Binding\BindingCollectionInitializerTests.vb (6)
56Dim expectedDiagnostics = String.Empty 118Dim expectedDiagnostics = String.Empty 184Dim expectedDiagnostics = String.Empty 304Dim expectedDiagnostics = String.Empty 722Dim expectedDiagnostics = String.Empty 1689Dim expectedDiagnostics = String.Empty
Binding\BindingObjectInitializerTests.vb (15)
55Dim expectedDiagnostics = String.Empty 97Dim expectedDiagnostics = String.Empty 971Dim expectedDiagnostics = String.Empty 1018Dim expectedDiagnostics = String.Empty 1075Dim expectedDiagnostics = String.Empty 1202Dim expectedDiagnostics = String.Empty 1343Dim expectedDiagnostics = String.Empty 1391Dim expectedDiagnostics = String.Empty 1466Dim expectedDiagnostics = String.Empty 1529Dim expectedDiagnostics = String.Empty 1583Dim expectedDiagnostics = String.Empty 1674Dim expectedDiagnostics = String.Empty 1729Dim expectedDiagnostics = String.Empty 1781Dim expectedDiagnostics = String.Empty 2115Dim expectedDiagnostics = String.Empty
Diagnostics\DiagnosticAnalyzerTests.AllInOne.vb (1)
55Dim sourceText = New StringText(String.Empty, encodingOpt:=Nothing)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
1651Dim tree = VisualBasicSyntaxTree.ParseText(String.Empty)
Diagnostics\GetDiagnosticsTests.vb (13)
235Dim compilation = CreateEmptyCompilation(String.Empty, parseOptions:=New VisualBasicParseOptions().WithPreprocessorSymbols(dict)) 247Dim compilation = CreateCompilationWithMscorlib461(String.Empty, parseOptions:=New VisualBasicParseOptions().WithKind(SourceCodeKind.Interactive)) 259Dim compilation = CreateEmptyCompilation(String.Empty, parseOptions:=New VisualBasicParseOptions().WithLanguageVersion(DirectCast(10000, LanguageVersion))) 270Dim compilation = CreateEmptyCompilation(String.Empty, parseOptions:=New VisualBasicParseOptions().WithDocumentationMode(CType(100, DocumentationMode))) 288Dim syntaxTree1 = Parse(String.Empty, options:=New VisualBasicParseOptions().WithPreprocessorSymbols(dict1)) 289Dim syntaxTree2 = Parse(String.Empty, options:=New VisualBasicParseOptions().WithPreprocessorSymbols(dict2)) 290Dim syntaxTree3 = Parse(String.Empty, options:=New VisualBasicParseOptions().WithPreprocessorSymbols(dict3)) 324Dim syntaxTree1 = Parse(String.Empty, options:=parseOptions1) 325Dim syntaxTree2 = Parse(String.Empty, options:=parseOptions2) 326Dim syntaxTree3 = Parse(String.Empty, options:=parseOptions2) 356Dim syntaxTree1 = Parse(String.Empty, options:=parseOptions1) 357Dim syntaxTree2 = Parse(String.Empty, options:=parseOptions2) 395Dim syntaxTree = Parse(String.Empty, options:=parseOptions2)
Semantics\AnonymousTypesTests.vb (6)
61Dim expectedDiagnostics = String.Empty 599Dim expectedDiagnostics = String.Empty 701Dim expectedDiagnostics = String.Empty 1309Dim expectedDiagnostics = String.Empty 1343Dim expectedDiagnostics = String.Empty 1407Dim expectedDiagnostics = String.Empty
Semantics\QueryExpressions.vb (35)
89Dim expectedDiagnostics = String.Empty 206Dim expectedDiagnostics = String.Empty 612Dim expectedDiagnostics = String.Empty 2279Dim expectedDiagnostics = String.Empty 3853Dim expectedDiagnostics = String.Empty 3918Dim expectedDiagnostics = String.Empty 4030Dim expectedDiagnostics = String.Empty 4158Dim expectedDiagnostics = String.Empty 4219Dim expectedDiagnostics = String.Empty 4374Dim expectedDiagnostics = String.Empty 4437Dim expectedDiagnostics = String.Empty 4885Dim expectedDiagnostics = String.Empty 4957Dim expectedDiagnostics = String.Empty 5153Dim expectedDiagnostics = String.Empty 5656Dim expectedDiagnostics = String.Empty 5773Dim expectedDiagnostics = String.Empty 6022Dim expectedDiagnostics = String.Empty 7560Dim expectedDiagnostics = String.Empty 7744Dim expectedDiagnostics = String.Empty 8927Dim expectedDiagnostics = String.Empty 9013Dim expectedDiagnostics = String.Empty 9109Dim expectedDiagnostics = String.Empty 9289Dim expectedDiagnostics = String.Empty 9463Dim expectedDiagnostics = String.Empty 10127Dim expectedDiagnostics = String.Empty 10325Dim expectedDiagnostics = String.Empty 10591Dim expectedDiagnostics = String.Empty 11688Dim expectedDiagnostics = String.Empty 11769Dim expectedDiagnostics = String.Empty 11898Dim expectedDiagnostics = String.Empty 12056Dim expectedDiagnostics = String.Empty 12433Dim expectedDiagnostics = String.Empty 15116Dim expectedDiagnostics = String.Empty 15189Dim expectedDiagnostics = String.Empty 15245Dim expectedDiagnostics = String.Empty
Semantics\SelectCaseTests.vb (3)
435Dim expectedDiagnostics = String.Empty 463Dim expectedDiagnostics = String.Empty 698Dim expectedDiagnostics = String.Empty
Semantics\TypeOfTests.vb (12)
40Dim expectedDiagnostics = String.Empty 71Dim expectedDiagnostics = String.Empty 106Dim expectedDiagnostics = String.Empty 138Dim expectedDiagnostics = String.Empty 175Dim expectedDiagnostics = String.Empty 212Dim expectedDiagnostics = String.Empty 249Dim expectedDiagnostics = String.Empty 286Dim expectedDiagnostics = String.Empty 598Dim expectedDiagnostics = String.Empty 629Dim expectedDiagnostics = String.Empty 660Dim expectedDiagnostics = String.Empty 691Dim expectedDiagnostics = String.Empty
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (18)
SymbolsTests\AssemblyAndNamespaceTests.vb (2)
45Assert.Equal(String.Empty, sym.GlobalNamespace.Name) 73Assert.Equal(String.Empty, sym.GlobalNamespace.Name)
SymbolsTests\Metadata\MetadataTypeTests.vb (3)
367Assert.Equal(0, type3.GetMembers(String.Empty).Length) 370Assert.Equal(0, type2.GetTypeMembers(String.Empty).Length) 371Assert.Equal(0, type3.GetTypeMembers(String.Empty, 0).Length)
SymbolsTests\Source\PropertyTests.vb (2)
849Assert.Equal(P1s.ElementAt(0).Parameters(1).ExplicitDefaultValue, String.Empty) 8451Assert.Equal(String.Empty, String.Join(Environment.NewLine, result.Diagnostics))
SymbolsTests\Source\SourceSymbolTests.vb (1)
41Assert.Equal(String.Empty, symbol.Name)
SymbolsTests\Source\TypeTests.vb (2)
374Assert.Equal(0, sym4.Type.GetTypeMembers(String.Empty).Length()) 375Assert.Equal(0, sym4.Type.GetTypeMembers(String.Empty, 0).Length())
SymbolsTests\SymbolErrorTests.vb (8)
21012Assert.Equal(0, sym.GetMembers(String.Empty).Length()) 21014Assert.Equal(0, sym.GetTypeMembers(String.Empty).Length()) 21015Assert.Equal(0, sym.GetTypeMembers(String.Empty, 0).Length()) 24381source:=String.Empty, 24406Dim compilation = CreateCompilationWithMscorlib40(String.Empty, references:={ilModule}, options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)) 24424source:=String.Empty, 24449source:=String.Empty, 24512source:=String.Empty,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (495)
Generated\Syntax.Test.xml.Generated.vb (464)
20return InternalSyntax.SyntaxFactory.EmptyStatement(new InternalSyntax.PunctuationSyntax(SyntaxKind.EmptyToken, String.Empty, Nothing, Nothing)) 24return InternalSyntax.SyntaxFactory.EndIfStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing)) 28return InternalSyntax.SyntaxFactory.EndUsingStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.UsingKeyword, String.Empty, Nothing, Nothing)) 32return InternalSyntax.SyntaxFactory.EndWithStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WithKeyword, String.Empty, Nothing, Nothing)) 36return InternalSyntax.SyntaxFactory.EndSelectStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.SelectKeyword, String.Empty, Nothing, Nothing)) 40return InternalSyntax.SyntaxFactory.EndStructureStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.StructureKeyword, String.Empty, Nothing, Nothing)) 44return InternalSyntax.SyntaxFactory.EndEnumStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.EnumKeyword, String.Empty, Nothing, Nothing)) 48return InternalSyntax.SyntaxFactory.EndInterfaceStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.InterfaceKeyword, String.Empty, Nothing, Nothing)) 52return InternalSyntax.SyntaxFactory.EndClassStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ClassKeyword, String.Empty, Nothing, Nothing)) 56return InternalSyntax.SyntaxFactory.EndModuleStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ModuleKeyword, String.Empty, Nothing, Nothing)) 60return InternalSyntax.SyntaxFactory.EndNamespaceStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.NamespaceKeyword, String.Empty, Nothing, Nothing)) 64return InternalSyntax.SyntaxFactory.EndSubStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.SubKeyword, String.Empty, Nothing, Nothing)) 68return InternalSyntax.SyntaxFactory.EndFunctionStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.FunctionKeyword, String.Empty, Nothing, Nothing)) 72return InternalSyntax.SyntaxFactory.EndGetStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.GetKeyword, String.Empty, Nothing, Nothing)) 76return InternalSyntax.SyntaxFactory.EndSetStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.SetKeyword, String.Empty, Nothing, Nothing)) 80return InternalSyntax.SyntaxFactory.EndPropertyStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.PropertyKeyword, String.Empty, Nothing, Nothing)) 84return InternalSyntax.SyntaxFactory.EndOperatorStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.OperatorKeyword, String.Empty, Nothing, Nothing)) 88return InternalSyntax.SyntaxFactory.EndEventStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.EventKeyword, String.Empty, Nothing, Nothing)) 92return InternalSyntax.SyntaxFactory.EndAddHandlerStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.AddHandlerKeyword, String.Empty, Nothing, Nothing)) 96return InternalSyntax.SyntaxFactory.EndRemoveHandlerStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.RemoveHandlerKeyword, String.Empty, Nothing, Nothing)) 100return InternalSyntax.SyntaxFactory.EndRaiseEventStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.RaiseEventKeyword, String.Empty, Nothing, Nothing)) 104return InternalSyntax.SyntaxFactory.EndWhileStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WhileKeyword, String.Empty, Nothing, Nothing)) 108return InternalSyntax.SyntaxFactory.EndTryStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.TryKeyword, String.Empty, Nothing, Nothing)) 112return InternalSyntax.SyntaxFactory.EndSyncLockStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.SyncLockKeyword, String.Empty, Nothing, Nothing)) 116return InternalSyntax.SyntaxFactory.CompilationUnit(Nothing, Nothing, Nothing, Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.EndOfFileToken, String.Empty, Nothing, Nothing)) 120return InternalSyntax.SyntaxFactory.OptionStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.OptionKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ExplicitKeyword, String.Empty, Nothing, Nothing), Nothing) 124return InternalSyntax.SyntaxFactory.ImportsStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ImportsKeyword, String.Empty, Nothing, Nothing), Nothing) 132return InternalSyntax.SyntaxFactory.ImportAliasClause(GenerateGreenIdentifierToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing)) 136return InternalSyntax.SyntaxFactory.XmlNamespaceImportsClause(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanToken, String.Empty, Nothing, Nothing), GenerateGreenXmlAttribute(), new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanToken, String.Empty, Nothing, Nothing)) 144return InternalSyntax.SyntaxFactory.NamespaceStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.NamespaceKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName()) 168return InternalSyntax.SyntaxFactory.InheritsStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.InheritsKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 172return InternalSyntax.SyntaxFactory.ImplementsStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ImplementsKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 176return InternalSyntax.SyntaxFactory.ModuleStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.ModuleKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing) 180return InternalSyntax.SyntaxFactory.StructureStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.StructureKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing) 184return InternalSyntax.SyntaxFactory.InterfaceStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.InterfaceKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing) 188return InternalSyntax.SyntaxFactory.ClassStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.ClassKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing) 192return InternalSyntax.SyntaxFactory.EnumStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.EnumKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing) 196return InternalSyntax.SyntaxFactory.TypeParameterList(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.OfKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 204return InternalSyntax.SyntaxFactory.TypeParameterSingleConstraintClause(new InternalSyntax.KeywordSyntax(SyntaxKind.AsKeyword, String.Empty, Nothing, Nothing), GenerateGreenNewConstraint()) 208return InternalSyntax.SyntaxFactory.TypeParameterMultipleConstraintClause(new InternalSyntax.KeywordSyntax(SyntaxKind.AsKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenBraceToken, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseBraceToken, String.Empty, Nothing, Nothing)) 212return InternalSyntax.SyntaxFactory.NewConstraint(new InternalSyntax.KeywordSyntax(SyntaxKind.NewKeyword, String.Empty, Nothing, Nothing)) 216return InternalSyntax.SyntaxFactory.ClassConstraint(new InternalSyntax.KeywordSyntax(SyntaxKind.NewKeyword, String.Empty, Nothing, Nothing)) 220return InternalSyntax.SyntaxFactory.StructureConstraint(new InternalSyntax.KeywordSyntax(SyntaxKind.NewKeyword, String.Empty, Nothing, Nothing)) 276return InternalSyntax.SyntaxFactory.ParameterList(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 280return InternalSyntax.SyntaxFactory.SubStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.SubKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing, Nothing, Nothing, Nothing, Nothing) 284return InternalSyntax.SyntaxFactory.FunctionStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.FunctionKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing, Nothing, Nothing, Nothing, Nothing) 288return InternalSyntax.SyntaxFactory.SubNewStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.SubKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.NewKeyword, String.Empty, Nothing, Nothing), Nothing) 292return InternalSyntax.SyntaxFactory.DeclareSubStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.DeclareKeyword, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.SubKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), new InternalSyntax.KeywordSyntax(SyntaxKind.LibKeyword, String.Empty, Nothing, Nothing), GenerateGreenCharacterLiteralExpression(), Nothing, Nothing, Nothing, Nothing) 296return InternalSyntax.SyntaxFactory.DeclareFunctionStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.DeclareKeyword, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.FunctionKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), new InternalSyntax.KeywordSyntax(SyntaxKind.LibKeyword, String.Empty, Nothing, Nothing), GenerateGreenCharacterLiteralExpression(), Nothing, Nothing, Nothing, Nothing) 300return InternalSyntax.SyntaxFactory.DelegateSubStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.DelegateKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.SubKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing, Nothing, Nothing) 304return InternalSyntax.SyntaxFactory.DelegateFunctionStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.DelegateKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.FunctionKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing, Nothing, Nothing) 308return InternalSyntax.SyntaxFactory.EventStatement(Nothing, Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.EventKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing, Nothing, Nothing) 312return InternalSyntax.SyntaxFactory.OperatorStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.OperatorKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.CTypeKeyword, String.Empty, Nothing, Nothing), Nothing, Nothing) 316return InternalSyntax.SyntaxFactory.PropertyStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.PropertyKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), Nothing, Nothing, Nothing, Nothing) 320return InternalSyntax.SyntaxFactory.GetAccessorStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.GetKeyword, String.Empty, Nothing, Nothing), Nothing) 324return InternalSyntax.SyntaxFactory.SetAccessorStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.SetKeyword, String.Empty, Nothing, Nothing), Nothing) 328return InternalSyntax.SyntaxFactory.AddHandlerAccessorStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.AddHandlerKeyword, String.Empty, Nothing, Nothing), Nothing) 332return InternalSyntax.SyntaxFactory.RemoveHandlerAccessorStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.RemoveHandlerKeyword, String.Empty, Nothing, Nothing), Nothing) 336return InternalSyntax.SyntaxFactory.RaiseEventAccessorStatement(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.RaiseEventKeyword, String.Empty, Nothing, Nothing), Nothing) 340return InternalSyntax.SyntaxFactory.ImplementsClause(new InternalSyntax.KeywordSyntax(SyntaxKind.ImplementsKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 344return InternalSyntax.SyntaxFactory.HandlesClause(new InternalSyntax.KeywordSyntax(SyntaxKind.HandlesKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 348return InternalSyntax.SyntaxFactory.KeywordEventContainer(new InternalSyntax.KeywordSyntax(SyntaxKind.MyBaseKeyword, String.Empty, Nothing, Nothing)) 356return InternalSyntax.SyntaxFactory.WithEventsPropertyEventContainer(GenerateGreenWithEventsEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName()) 360return InternalSyntax.SyntaxFactory.HandlesClauseItem(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName()) 376return InternalSyntax.SyntaxFactory.SimpleAsClause(new InternalSyntax.KeywordSyntax(SyntaxKind.AsKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenTupleType()) 380return InternalSyntax.SyntaxFactory.AsNewClause(new InternalSyntax.KeywordSyntax(SyntaxKind.AsKeyword, String.Empty, Nothing, Nothing), GenerateGreenObjectCreationExpression()) 384return InternalSyntax.SyntaxFactory.ObjectMemberInitializer(new InternalSyntax.KeywordSyntax(SyntaxKind.WithKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenBraceToken, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseBraceToken, String.Empty, Nothing, Nothing)) 388return InternalSyntax.SyntaxFactory.ObjectCollectionInitializer(new InternalSyntax.KeywordSyntax(SyntaxKind.FromKeyword, String.Empty, Nothing, Nothing), GenerateGreenCollectionInitializer()) 396return InternalSyntax.SyntaxFactory.NamedFieldInitializer(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 400return InternalSyntax.SyntaxFactory.EqualsValue(new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 412return InternalSyntax.SyntaxFactory.ArrayRankSpecifier(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 416return InternalSyntax.SyntaxFactory.AttributeList(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanToken, String.Empty, Nothing, Nothing)) 424return InternalSyntax.SyntaxFactory.AttributeTarget(new InternalSyntax.KeywordSyntax(SyntaxKind.AssemblyKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.ColonToken, String.Empty, Nothing, Nothing)) 436return InternalSyntax.SyntaxFactory.PrintStatement(new InternalSyntax.PunctuationSyntax(SyntaxKind.QuestionToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 456return InternalSyntax.SyntaxFactory.LocalDeclarationStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.StaticKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 460return InternalSyntax.SyntaxFactory.LabelStatement(GenerateGreenIdentifierToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.ColonToken, String.Empty, Nothing, Nothing)) 464return InternalSyntax.SyntaxFactory.GoToStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.GoToKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierLabel()) 476return InternalSyntax.SyntaxFactory.NextLabel(new InternalSyntax.KeywordSyntax(SyntaxKind.NextKeyword, String.Empty, Nothing, Nothing)) 480return InternalSyntax.SyntaxFactory.StopStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.StopKeyword, String.Empty, Nothing, Nothing)) 484return InternalSyntax.SyntaxFactory.EndStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.StopKeyword, String.Empty, Nothing, Nothing)) 488return InternalSyntax.SyntaxFactory.ExitDoStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.DoKeyword, String.Empty, Nothing, Nothing)) 492return InternalSyntax.SyntaxFactory.ExitForStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ForKeyword, String.Empty, Nothing, Nothing)) 496return InternalSyntax.SyntaxFactory.ExitSubStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.SubKeyword, String.Empty, Nothing, Nothing)) 500return InternalSyntax.SyntaxFactory.ExitFunctionStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.FunctionKeyword, String.Empty, Nothing, Nothing)) 504return InternalSyntax.SyntaxFactory.ExitOperatorStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.OperatorKeyword, String.Empty, Nothing, Nothing)) 508return InternalSyntax.SyntaxFactory.ExitPropertyStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.PropertyKeyword, String.Empty, Nothing, Nothing)) 512return InternalSyntax.SyntaxFactory.ExitTryStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.TryKeyword, String.Empty, Nothing, Nothing)) 516return InternalSyntax.SyntaxFactory.ExitSelectStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.SelectKeyword, String.Empty, Nothing, Nothing)) 520return InternalSyntax.SyntaxFactory.ExitWhileStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ExitKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WhileKeyword, String.Empty, Nothing, Nothing)) 524return InternalSyntax.SyntaxFactory.ContinueWhileStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ContinueKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WhileKeyword, String.Empty, Nothing, Nothing)) 528return InternalSyntax.SyntaxFactory.ContinueDoStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ContinueKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.DoKeyword, String.Empty, Nothing, Nothing)) 532return InternalSyntax.SyntaxFactory.ContinueForStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ContinueKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ForKeyword, String.Empty, Nothing, Nothing)) 536return InternalSyntax.SyntaxFactory.ReturnStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ReturnKeyword, String.Empty, Nothing, Nothing), Nothing) 540return InternalSyntax.SyntaxFactory.SingleLineIfStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.ThenKeyword, String.Empty, Nothing, Nothing), Nothing, Nothing) 544return InternalSyntax.SyntaxFactory.SingleLineElseClause(new InternalSyntax.KeywordSyntax(SyntaxKind.ElseKeyword, String.Empty, Nothing, Nothing), Nothing) 552return InternalSyntax.SyntaxFactory.IfStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), Nothing) 560return InternalSyntax.SyntaxFactory.ElseIfStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ElseIfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), Nothing) 568return InternalSyntax.SyntaxFactory.ElseStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ElseKeyword, String.Empty, Nothing, Nothing)) 576return InternalSyntax.SyntaxFactory.TryStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.TryKeyword, String.Empty, Nothing, Nothing)) 584return InternalSyntax.SyntaxFactory.CatchStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.CatchKeyword, String.Empty, Nothing, Nothing), Nothing, Nothing, Nothing) 588return InternalSyntax.SyntaxFactory.CatchFilterClause(new InternalSyntax.KeywordSyntax(SyntaxKind.WhenKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 596return InternalSyntax.SyntaxFactory.FinallyStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.FinallyKeyword, String.Empty, Nothing, Nothing)) 600return InternalSyntax.SyntaxFactory.ErrorStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ErrorKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 604return InternalSyntax.SyntaxFactory.OnErrorGoToZeroStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.OnKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ErrorKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.GoToKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenIdentifierLabel()) 608return InternalSyntax.SyntaxFactory.OnErrorGoToMinusOneStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.OnKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ErrorKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.GoToKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenIdentifierLabel()) 612return InternalSyntax.SyntaxFactory.OnErrorGoToLabelStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.OnKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ErrorKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.GoToKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenIdentifierLabel()) 616return InternalSyntax.SyntaxFactory.OnErrorResumeNextStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.OnKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ErrorKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ResumeKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.NextKeyword, String.Empty, Nothing, Nothing)) 620return InternalSyntax.SyntaxFactory.ResumeStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ResumeKeyword, String.Empty, Nothing, Nothing), Nothing) 624return InternalSyntax.SyntaxFactory.ResumeLabelStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ResumeKeyword, String.Empty, Nothing, Nothing), Nothing) 628return InternalSyntax.SyntaxFactory.ResumeNextStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ResumeKeyword, String.Empty, Nothing, Nothing), Nothing) 636return InternalSyntax.SyntaxFactory.SelectStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.SelectKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenKeywordEventContainer()) 648return InternalSyntax.SyntaxFactory.CaseStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.CaseKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 652return InternalSyntax.SyntaxFactory.CaseElseStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.CaseKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 656return InternalSyntax.SyntaxFactory.ElseCaseClause(new InternalSyntax.KeywordSyntax(SyntaxKind.ElseKeyword, String.Empty, Nothing, Nothing)) 664return InternalSyntax.SyntaxFactory.RangeCaseClause(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.ToKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 668return InternalSyntax.SyntaxFactory.CaseEqualsClause(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 672return InternalSyntax.SyntaxFactory.CaseNotEqualsClause(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanGreaterThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 676return InternalSyntax.SyntaxFactory.CaseLessThanClause(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 680return InternalSyntax.SyntaxFactory.CaseLessThanOrEqualClause(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 684return InternalSyntax.SyntaxFactory.CaseGreaterThanOrEqualClause(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 688return InternalSyntax.SyntaxFactory.CaseGreaterThanClause(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 692return InternalSyntax.SyntaxFactory.SyncLockStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.SyncLockKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 716return InternalSyntax.SyntaxFactory.SimpleDoStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.DoKeyword, String.Empty, Nothing, Nothing), Nothing) 720return InternalSyntax.SyntaxFactory.DoWhileStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.DoKeyword, String.Empty, Nothing, Nothing), Nothing) 724return InternalSyntax.SyntaxFactory.DoUntilStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.DoKeyword, String.Empty, Nothing, Nothing), Nothing) 728return InternalSyntax.SyntaxFactory.SimpleLoopStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.LoopKeyword, String.Empty, Nothing, Nothing), Nothing) 732return InternalSyntax.SyntaxFactory.LoopWhileStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.LoopKeyword, String.Empty, Nothing, Nothing), Nothing) 736return InternalSyntax.SyntaxFactory.LoopUntilStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.LoopKeyword, String.Empty, Nothing, Nothing), Nothing) 740return InternalSyntax.SyntaxFactory.WhileClause(new InternalSyntax.KeywordSyntax(SyntaxKind.WhileKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 744return InternalSyntax.SyntaxFactory.UntilClause(new InternalSyntax.KeywordSyntax(SyntaxKind.UntilKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 748return InternalSyntax.SyntaxFactory.WhileStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.WhileKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 760return InternalSyntax.SyntaxFactory.ForStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ForKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.ToKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), Nothing) 764return InternalSyntax.SyntaxFactory.ForStepClause(new InternalSyntax.KeywordSyntax(SyntaxKind.StepKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 768return InternalSyntax.SyntaxFactory.ForEachStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ForKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.EachKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.InKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 772return InternalSyntax.SyntaxFactory.NextStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.NextKeyword, String.Empty, Nothing, Nothing), Nothing) 776return InternalSyntax.SyntaxFactory.UsingStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.UsingKeyword, String.Empty, Nothing, Nothing), Nothing, Nothing) 780return InternalSyntax.SyntaxFactory.ThrowStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ThrowKeyword, String.Empty, Nothing, Nothing), Nothing) 784return InternalSyntax.SyntaxFactory.SimpleAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 788return InternalSyntax.SyntaxFactory.MidAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 792return InternalSyntax.SyntaxFactory.AddAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.PlusEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 796return InternalSyntax.SyntaxFactory.SubtractAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.MinusEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 800return InternalSyntax.SyntaxFactory.MultiplyAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.AsteriskEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 804return InternalSyntax.SyntaxFactory.DivideAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.SlashEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 808return InternalSyntax.SyntaxFactory.IntegerDivideAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.BackslashEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 812return InternalSyntax.SyntaxFactory.ExponentiateAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CaretEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 816return InternalSyntax.SyntaxFactory.LeftShiftAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanLessThanEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 820return InternalSyntax.SyntaxFactory.RightShiftAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanGreaterThanEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 824return InternalSyntax.SyntaxFactory.ConcatenateAssignmentStatement(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.AmpersandEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 832return InternalSyntax.SyntaxFactory.CallStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.CallKeyword, String.Empty, Nothing, Nothing), GenerateGreenInvocationExpression()) 836return InternalSyntax.SyntaxFactory.AddHandlerStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.AddHandlerKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 840return InternalSyntax.SyntaxFactory.RemoveHandlerStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.RemoveHandlerKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 844return InternalSyntax.SyntaxFactory.RaiseEventStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.RaiseEventKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName(), Nothing) 848return InternalSyntax.SyntaxFactory.WithStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.WithKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 852return InternalSyntax.SyntaxFactory.ReDimStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ReDimKeyword, String.Empty, Nothing, Nothing), Nothing, New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 856return InternalSyntax.SyntaxFactory.ReDimPreserveStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.ReDimKeyword, String.Empty, Nothing, Nothing), Nothing, New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 864return InternalSyntax.SyntaxFactory.EraseStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.EraseKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 896return InternalSyntax.SyntaxFactory.ParenthesizedExpression(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 900return InternalSyntax.SyntaxFactory.TupleExpression(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 904return InternalSyntax.SyntaxFactory.TupleType(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 916return InternalSyntax.SyntaxFactory.MeExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.MeKeyword, String.Empty, Nothing, Nothing)) 920return InternalSyntax.SyntaxFactory.MyBaseExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.MyBaseKeyword, String.Empty, Nothing, Nothing)) 924return InternalSyntax.SyntaxFactory.MyClassExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.MyClassKeyword, String.Empty, Nothing, Nothing)) 928return InternalSyntax.SyntaxFactory.GetTypeExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.GetTypeKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenTupleType(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 932return InternalSyntax.SyntaxFactory.TypeOfIsExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.TypeOfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.IsKeyword, String.Empty, Nothing, Nothing), GenerateGreenTupleType()) 936return InternalSyntax.SyntaxFactory.TypeOfIsNotExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.TypeOfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.IsNotKeyword, String.Empty, Nothing, Nothing), GenerateGreenTupleType()) 940return InternalSyntax.SyntaxFactory.GetXmlNamespaceExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.GetXmlNamespaceKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 944return InternalSyntax.SyntaxFactory.SimpleMemberAccessExpression(CType(Nothing, InternalSyntax.ExpressionSyntax), new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName()) 948return InternalSyntax.SyntaxFactory.DictionaryAccessExpression(CType(Nothing, InternalSyntax.ExpressionSyntax), new InternalSyntax.PunctuationSyntax(SyntaxKind.ExclamationToken, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName()) 952return InternalSyntax.SyntaxFactory.XmlElementAccessExpression(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), Nothing, Nothing, GenerateGreenXmlName()) 956return InternalSyntax.SyntaxFactory.XmlDescendantAccessExpression(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), Nothing, Nothing, GenerateGreenXmlName()) 960return InternalSyntax.SyntaxFactory.XmlAttributeAccessExpression(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), Nothing, Nothing, GenerateGreenXmlName()) 968return InternalSyntax.SyntaxFactory.ObjectCreationExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.NewKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenPredefinedType(), Nothing, Nothing) 972return InternalSyntax.SyntaxFactory.AnonymousObjectCreationExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.NewKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenObjectMemberInitializer()) 976return InternalSyntax.SyntaxFactory.ArrayCreationExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.NewKeyword, String.Empty, Nothing, Nothing), Nothing, GenerateGreenPredefinedType(), Nothing, Nothing, GenerateGreenCollectionInitializer()) 980return InternalSyntax.SyntaxFactory.CollectionInitializer(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenBraceToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseBraceToken, String.Empty, Nothing, Nothing)) 984return InternalSyntax.SyntaxFactory.CTypeExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.CTypeKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenTupleType(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 988return InternalSyntax.SyntaxFactory.DirectCastExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.DirectCastKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenTupleType(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 992return InternalSyntax.SyntaxFactory.TryCastExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.TryCastKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenTupleType(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 996return InternalSyntax.SyntaxFactory.PredefinedCastExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.CObjKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1000return InternalSyntax.SyntaxFactory.AddExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.PlusToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1004return InternalSyntax.SyntaxFactory.SubtractExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.MinusToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1008return InternalSyntax.SyntaxFactory.MultiplyExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.AsteriskToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1012return InternalSyntax.SyntaxFactory.DivideExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.SlashToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1016return InternalSyntax.SyntaxFactory.IntegerDivideExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.BackslashToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1020return InternalSyntax.SyntaxFactory.ExponentiateExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CaretToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1024return InternalSyntax.SyntaxFactory.LeftShiftExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanLessThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1028return InternalSyntax.SyntaxFactory.RightShiftExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanGreaterThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1032return InternalSyntax.SyntaxFactory.ConcatenateExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.AmpersandToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1036return InternalSyntax.SyntaxFactory.ModuloExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.ModKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1040return InternalSyntax.SyntaxFactory.EqualsExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1044return InternalSyntax.SyntaxFactory.NotEqualsExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanGreaterThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1048return InternalSyntax.SyntaxFactory.LessThanExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1052return InternalSyntax.SyntaxFactory.LessThanOrEqualExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1056return InternalSyntax.SyntaxFactory.GreaterThanOrEqualExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1060return InternalSyntax.SyntaxFactory.GreaterThanExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1064return InternalSyntax.SyntaxFactory.IsExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.IsKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1068return InternalSyntax.SyntaxFactory.IsNotExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.IsNotKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1072return InternalSyntax.SyntaxFactory.LikeExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.LikeKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1076return InternalSyntax.SyntaxFactory.OrExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.OrKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1080return InternalSyntax.SyntaxFactory.ExclusiveOrExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.XorKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1084return InternalSyntax.SyntaxFactory.AndExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.AndKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1088return InternalSyntax.SyntaxFactory.OrElseExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.OrElseKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1092return InternalSyntax.SyntaxFactory.AndAlsoExpression(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.AndAlsoKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1096return InternalSyntax.SyntaxFactory.UnaryPlusExpression(new InternalSyntax.PunctuationSyntax(SyntaxKind.PlusToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1100return InternalSyntax.SyntaxFactory.UnaryMinusExpression(new InternalSyntax.PunctuationSyntax(SyntaxKind.MinusToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1104return InternalSyntax.SyntaxFactory.NotExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.NotKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1108return InternalSyntax.SyntaxFactory.AddressOfExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.AddressOfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1112return InternalSyntax.SyntaxFactory.BinaryConditionalExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1116return InternalSyntax.SyntaxFactory.TernaryConditionalExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1136return InternalSyntax.SyntaxFactory.SubLambdaHeader(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.SubKeyword, String.Empty, Nothing, Nothing), Nothing, Nothing) 1140return InternalSyntax.SyntaxFactory.FunctionLambdaHeader(Nothing, Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.FunctionKeyword, String.Empty, Nothing, Nothing), Nothing, Nothing) 1144return InternalSyntax.SyntaxFactory.ArgumentList(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1148return InternalSyntax.SyntaxFactory.OmittedArgument(new InternalSyntax.PunctuationSyntax(SyntaxKind.EmptyToken, String.Empty, Nothing, Nothing)) 1156return InternalSyntax.SyntaxFactory.NameColonEquals(GenerateGreenIdentifierName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.ColonEqualsToken, String.Empty, Nothing, Nothing)) 1160return InternalSyntax.SyntaxFactory.RangeArgument(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.ToKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1168return InternalSyntax.SyntaxFactory.CollectionRangeVariable(GenerateGreenModifiedIdentifier(), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.InKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1180return InternalSyntax.SyntaxFactory.VariableNameEquals(GenerateGreenModifiedIdentifier(), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing)) 1188return InternalSyntax.SyntaxFactory.GroupAggregation(new InternalSyntax.KeywordSyntax(SyntaxKind.GroupKeyword, String.Empty, Nothing, Nothing)) 1192return InternalSyntax.SyntaxFactory.FromClause(new InternalSyntax.KeywordSyntax(SyntaxKind.FromKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1196return InternalSyntax.SyntaxFactory.LetClause(new InternalSyntax.KeywordSyntax(SyntaxKind.LetKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1200return InternalSyntax.SyntaxFactory.AggregateClause(new InternalSyntax.KeywordSyntax(SyntaxKind.AggregateKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.IntoKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1204return InternalSyntax.SyntaxFactory.DistinctClause(new InternalSyntax.KeywordSyntax(SyntaxKind.DistinctKeyword, String.Empty, Nothing, Nothing)) 1208return InternalSyntax.SyntaxFactory.WhereClause(new InternalSyntax.KeywordSyntax(SyntaxKind.WhereKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1212return InternalSyntax.SyntaxFactory.SkipWhileClause(new InternalSyntax.KeywordSyntax(SyntaxKind.SkipKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WhileKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1216return InternalSyntax.SyntaxFactory.TakeWhileClause(new InternalSyntax.KeywordSyntax(SyntaxKind.TakeKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WhileKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1220return InternalSyntax.SyntaxFactory.SkipClause(new InternalSyntax.KeywordSyntax(SyntaxKind.SkipKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1224return InternalSyntax.SyntaxFactory.TakeClause(new InternalSyntax.KeywordSyntax(SyntaxKind.TakeKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1228return InternalSyntax.SyntaxFactory.GroupByClause(new InternalSyntax.KeywordSyntax(SyntaxKind.GroupKeyword, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.ByKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.KeywordSyntax(SyntaxKind.IntoKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1232return InternalSyntax.SyntaxFactory.JoinCondition(GenerateGreenKeywordEventContainer(), new InternalSyntax.KeywordSyntax(SyntaxKind.EqualsKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1236return InternalSyntax.SyntaxFactory.SimpleJoinClause(new InternalSyntax.KeywordSyntax(SyntaxKind.JoinKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.OnKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1240return InternalSyntax.SyntaxFactory.GroupJoinClause(new InternalSyntax.KeywordSyntax(SyntaxKind.GroupKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.JoinKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.OnKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.KeywordSyntax(SyntaxKind.IntoKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1244return InternalSyntax.SyntaxFactory.OrderByClause(new InternalSyntax.KeywordSyntax(SyntaxKind.OrderKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ByKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1256return InternalSyntax.SyntaxFactory.SelectClause(new InternalSyntax.KeywordSyntax(SyntaxKind.SelectKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1264return InternalSyntax.SyntaxFactory.XmlDeclaration(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanQuestionToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.XmlKeyword, String.Empty, Nothing, Nothing), GenerateGreenXmlDeclarationOption(), Nothing, Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.QuestionGreaterThanToken, String.Empty, Nothing, Nothing)) 1268return InternalSyntax.SyntaxFactory.XmlDeclarationOption(GenerateGreenXmlNameToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenXmlString()) 1280return InternalSyntax.SyntaxFactory.XmlElementStartTag(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanToken, String.Empty, Nothing, Nothing), GenerateGreenXmlName(), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanToken, String.Empty, Nothing, Nothing)) 1284return InternalSyntax.SyntaxFactory.XmlElementEndTag(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanSlashToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanToken, String.Empty, Nothing, Nothing)) 1288return InternalSyntax.SyntaxFactory.XmlEmptyElement(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanToken, String.Empty, Nothing, Nothing), GenerateGreenXmlName(), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.SlashGreaterThanToken, String.Empty, Nothing, Nothing)) 1292return InternalSyntax.SyntaxFactory.XmlAttribute(GenerateGreenXmlName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenXmlString()) 1296return InternalSyntax.SyntaxFactory.XmlString(new InternalSyntax.PunctuationSyntax(SyntaxKind.DoubleQuoteToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.DoubleQuoteToken, String.Empty, Nothing, Nothing)) 1308return InternalSyntax.SyntaxFactory.XmlBracketedName(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanToken, String.Empty, Nothing, Nothing), GenerateGreenXmlName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.GreaterThanToken, String.Empty, Nothing, Nothing)) 1312return InternalSyntax.SyntaxFactory.XmlPrefix(GenerateGreenXmlNameToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.ColonToken, String.Empty, Nothing, Nothing)) 1316return InternalSyntax.SyntaxFactory.XmlComment(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanExclamationMinusMinusToken, String.Empty, Nothing, Nothing), GenerateGreenXmlTextLiteralToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.MinusMinusGreaterThanToken, String.Empty, Nothing, Nothing)) 1320return InternalSyntax.SyntaxFactory.XmlProcessingInstruction(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanQuestionToken, String.Empty, Nothing, Nothing), GenerateGreenXmlNameToken(), GenerateGreenXmlTextLiteralToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.QuestionGreaterThanToken, String.Empty, Nothing, Nothing)) 1324return InternalSyntax.SyntaxFactory.XmlCDataSection(new InternalSyntax.PunctuationSyntax(SyntaxKind.BeginCDataToken, String.Empty, Nothing, Nothing), GenerateGreenXmlTextLiteralToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EndCDataToken, String.Empty, Nothing, Nothing)) 1328return InternalSyntax.SyntaxFactory.XmlEmbeddedExpression(new InternalSyntax.PunctuationSyntax(SyntaxKind.LessThanPercentEqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.PercentGreaterThanToken, String.Empty, Nothing, Nothing)) 1336return InternalSyntax.SyntaxFactory.NullableType(GenerateGreenPredefinedType(), new InternalSyntax.PunctuationSyntax(SyntaxKind.QuestionToken, String.Empty, Nothing, Nothing)) 1340return InternalSyntax.SyntaxFactory.PredefinedType(new InternalSyntax.KeywordSyntax(SyntaxKind.ObjectKeyword, String.Empty, Nothing, Nothing)) 1352return InternalSyntax.SyntaxFactory.QualifiedName(GenerateGreenIdentifierName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName()) 1356return InternalSyntax.SyntaxFactory.GlobalName(new InternalSyntax.KeywordSyntax(SyntaxKind.GlobalKeyword, String.Empty, Nothing, Nothing)) 1360return InternalSyntax.SyntaxFactory.TypeArgumentList(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.OfKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1368return InternalSyntax.SyntaxFactory.CrefSignature(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1376return InternalSyntax.SyntaxFactory.CrefOperatorReference(new InternalSyntax.KeywordSyntax(SyntaxKind.OperatorKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.CTypeKeyword, String.Empty, Nothing, Nothing)) 1380return InternalSyntax.SyntaxFactory.QualifiedCrefOperatorReference(GenerateGreenIdentifierName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.DotToken, String.Empty, Nothing, Nothing), GenerateGreenCrefOperatorReference()) 1384return InternalSyntax.SyntaxFactory.YieldStatement(new InternalSyntax.KeywordSyntax(SyntaxKind.YieldKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1388return InternalSyntax.SyntaxFactory.AwaitExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.AwaitKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1392return InternalSyntax.SyntaxFactory.XmlNameToken(String.Empty, SyntaxKind.IdentifierName, InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1396return InternalSyntax.SyntaxFactory.XmlTextLiteralToken(String.Empty, "Bar", InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1400return InternalSyntax.SyntaxFactory.XmlEntityLiteralToken(String.Empty, "Bar", InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1404return InternalSyntax.SyntaxFactory.DocumentationCommentLineBreakToken(String.Empty, "Bar", InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1408return InternalSyntax.SyntaxFactory.InterpolatedStringTextToken(String.Empty, "Bar", InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1412return InternalSyntax.SyntaxFactory.DecimalLiteralToken(String.Empty, TypeCharacter.DecimalLiteral, 42, InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1416return InternalSyntax.SyntaxFactory.DateLiteralToken(String.Empty, New DateTime(2008,11,04), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1420return InternalSyntax.SyntaxFactory.StringLiteralToken(String.Empty, "Bar", InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1424return InternalSyntax.SyntaxFactory.CharacterLiteralToken(String.Empty, "E"C, InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "), InternalSyntax.SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")) 1436return InternalSyntax.SyntaxFactory.XmlCrefAttribute(GenerateGreenXmlName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.DoubleQuoteToken, String.Empty, Nothing, Nothing), GenerateGreenCrefReference(), new InternalSyntax.PunctuationSyntax(SyntaxKind.DoubleQuoteToken, String.Empty, Nothing, Nothing)) 1440return InternalSyntax.SyntaxFactory.XmlNameAttribute(GenerateGreenXmlName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.DoubleQuoteToken, String.Empty, Nothing, Nothing), GenerateGreenIdentifierName(), new InternalSyntax.PunctuationSyntax(SyntaxKind.DoubleQuoteToken, String.Empty, Nothing, Nothing)) 1444return InternalSyntax.SyntaxFactory.ConditionalAccessExpression(Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.QuestionToken, String.Empty, Nothing, Nothing), GenerateGreenDictionaryAccessExpression()) 1448return InternalSyntax.SyntaxFactory.NameOfExpression(new InternalSyntax.KeywordSyntax(SyntaxKind.NameOfKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1452return InternalSyntax.SyntaxFactory.InterpolatedStringExpression(new InternalSyntax.PunctuationSyntax(SyntaxKind.DollarSignDoubleQuoteToken, String.Empty, Nothing, Nothing), GenerateGreenInterpolatedStringText(), new InternalSyntax.PunctuationSyntax(SyntaxKind.DoubleQuoteToken, String.Empty, Nothing, Nothing)) 1460return InternalSyntax.SyntaxFactory.Interpolation(new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenBraceToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), Nothing, Nothing, new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseBraceToken, String.Empty, Nothing, Nothing)) 1464return InternalSyntax.SyntaxFactory.InterpolationAlignmentClause(new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1468return InternalSyntax.SyntaxFactory.InterpolationFormatClause(new InternalSyntax.PunctuationSyntax(SyntaxKind.ColonToken, String.Empty, Nothing, Nothing), GenerateGreenInterpolatedStringTextToken()) 1472return InternalSyntax.SyntaxFactory.WhitespaceTrivia(String.Empty) 1476return InternalSyntax.SyntaxFactory.EndOfLineTrivia(String.Empty) 1480return InternalSyntax.SyntaxFactory.ColonTrivia(String.Empty) 1484return InternalSyntax.SyntaxFactory.CommentTrivia(String.Empty) 1488return InternalSyntax.SyntaxFactory.ConflictMarkerTrivia(String.Empty) 1492return InternalSyntax.SyntaxFactory.LineContinuationTrivia(String.Empty) 1496return InternalSyntax.SyntaxFactory.DocumentationCommentExteriorTrivia(String.Empty) 1500return InternalSyntax.SyntaxFactory.DisabledTextTrivia(String.Empty) 1504return InternalSyntax.SyntaxFactory.ConstDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ConstKeyword, String.Empty, Nothing, Nothing), GenerateGreenIdentifierToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.EqualsToken, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer()) 1508return InternalSyntax.SyntaxFactory.IfDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), Nothing) 1512return InternalSyntax.SyntaxFactory.ElseIfDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), Nothing, new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing), GenerateGreenKeywordEventContainer(), Nothing) 1516return InternalSyntax.SyntaxFactory.ElseDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ElseKeyword, String.Empty, Nothing, Nothing)) 1520return InternalSyntax.SyntaxFactory.EndIfDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.IfKeyword, String.Empty, Nothing, Nothing)) 1524return InternalSyntax.SyntaxFactory.RegionDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.RegionKeyword, String.Empty, Nothing, Nothing), GenerateGreenStringLiteralToken()) 1528return InternalSyntax.SyntaxFactory.EndRegionDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.EndKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.RegionKeyword, String.Empty, Nothing, Nothing)) 1532return InternalSyntax.SyntaxFactory.ExternalChecksumDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ExternalChecksumKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.PunctuationSyntax(SyntaxKind.OpenParenToken, String.Empty, Nothing, Nothing), GenerateGreenStringLiteralToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenStringLiteralToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CommaToken, String.Empty, Nothing, Nothing), GenerateGreenStringLiteralToken(), new InternalSyntax.PunctuationSyntax(SyntaxKind.CloseParenToken, String.Empty, Nothing, Nothing)) 1536return InternalSyntax.SyntaxFactory.EnableWarningDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.EnableKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WarningKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1540return InternalSyntax.SyntaxFactory.DisableWarningDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.DisableKeyword, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.WarningKeyword, String.Empty, Nothing, Nothing), New Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)()) 1544return InternalSyntax.SyntaxFactory.ReferenceDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing), new InternalSyntax.KeywordSyntax(SyntaxKind.ReferenceKeyword, String.Empty, Nothing, Nothing), GenerateGreenStringLiteralToken()) 1548return InternalSyntax.SyntaxFactory.BadDirectiveTrivia(new InternalSyntax.PunctuationSyntax(SyntaxKind.HashToken, String.Empty, Nothing, Nothing)) 17609return SyntaxFactory.XmlNameToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, SyntaxKind.IdentifierName, SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17614return SyntaxFactory.XmlTextLiteralToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, "Bar", SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17619return SyntaxFactory.XmlEntityLiteralToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, "Bar", SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17624return SyntaxFactory.DocumentationCommentLineBreakToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, "Bar", SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17629return SyntaxFactory.InterpolatedStringTextToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, "Bar", SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17634return SyntaxFactory.DecimalLiteralToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, TypeCharacter.DecimalLiteral, 42, SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17639return SyntaxFactory.DateLiteralToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, New DateTime(2008,11,04), SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17644return SyntaxFactory.StringLiteralToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, "Bar", SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17649return SyntaxFactory.CharacterLiteralToken(SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " ")), String.Empty, "E"C, SyntaxFactory.TriviaList(SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, " "))) 17957return SyntaxFactory.WhitespaceTrivia(String.Empty) 17970return SyntaxFactory.EndOfLineTrivia(String.Empty) 17983return SyntaxFactory.ColonTrivia(String.Empty) 17996return SyntaxFactory.CommentTrivia(String.Empty) 18009return SyntaxFactory.ConflictMarkerTrivia(String.Empty) 18022return SyntaxFactory.LineContinuationTrivia(String.Empty) 18035return SyntaxFactory.DocumentationCommentExteriorTrivia(String.Empty) 18048return SyntaxFactory.DisabledTextTrivia(String.Empty)
IncrementalParser\IncrementalParser.vb (1)
1108Dim newText = oldText.Replace(start:=position, length:=str.Length, newText:=String.Empty)
Parser\ParseDirectives.vb (2)
2275Assert.Equal(String.Empty, disableNode.ErrorCodes(2).ToString) 2335Assert.Equal(String.Empty, disableNode.ErrorCodes(2).ToString)
Scanner\ScannerTests.vb (4)
2140Assert.Equal(String.Empty, SyntaxFacts.MakeHalfWidthIdentifier(String.Empty)) 2150Assert.Equal(String.Empty, SyntaxFacts.MakeHalfWidthIdentifier(String.Empty))
Syntax\GeneratedTests.vb (11)
17Return InternalSyntax.SyntaxFactory.Identifier(String.Empty, GenerateGreenWhitespaceTrivia(), GenerateGreenWhitespaceTrivia()) 21Return InternalSyntax.SyntaxFactory.IntegerLiteralToken(String.Empty, LiteralBase.Decimal, TypeCharacter.IntegerLiteral, 23, GenerateGreenWhitespaceTrivia(), GenerateGreenWhitespaceTrivia()) 25Return SyntaxFactory.Identifier(String.Empty) 29Return SyntaxFactory.IntegerLiteralToken(String.Empty, LiteralBase.Decimal, TypeCharacter.None, 42) 50Return String.Empty 63Return String.Empty 67Return String.Empty 71Return String.Empty 75Return String.Empty 79Return String.Empty 83Return String.Empty
Syntax\SyntaxFactsTest.vb (2)
115Assert.Equal(SyntaxKind.None, SyntaxFacts.GetContextualKeywordKind(String.Empty)) 160Assert.Equal(SyntaxKind.None, SyntaxFacts.GetPreprocessorKeywordKind(String.Empty))
Syntax\SyntaxTokenFactoryTests.vb (2)
130token = SyntaxFactory.Token(CType(k, SyntaxKind), String.Empty) 132Assert.Equal(token.ToString(), String.Empty)
Syntax\SyntaxTreeTests.vb (4)
189Assert.Equal(String.Empty, oldTree.WithFilePath(Nothing).FilePath) 191Assert.Equal(String.Empty, oldTree.WithFilePath(Nothing).FilePath) 192Assert.Equal(String.Empty, SyntaxFactory.ParseSyntaxTree("", path:=Nothing).FilePath) 193Assert.Equal(String.Empty, VisualBasicSyntaxTree.Create(CType(oldTree.GetRoot, VisualBasicSyntaxNode), path:=Nothing).FilePath)
TestSyntaxNodes.vb (5)
1076Return String.Empty 1080Return String.Empty 1084Return String.Empty 1088Return String.Empty 1092Return String.Empty
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
SyntaxTreeExtensions.vb (2)
52Return WithReplace(syntaxTree, offset, length, String.Empty) 57Return WithReplaceFirst(syntaxTree, oldText, String.Empty)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (17)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1979Return String.Empty
OrganizeImports\VisualBasicOrganizeImportsService.Rewriter.vb (2)
67Return String.Join(String.Empty, organizedList.[Select](Function(t) t.ToFullString())) 71Return String.Join(String.Empty, organizedList.GetWithSeparators().[Select](Function(t) t.ToFullString()))
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
306Dim prefix = If(isRenameLocation AndAlso Me._renameLocations(token.Span).IsRenamableAccessor, newToken.ValueText.Substring(0, newToken.ValueText.IndexOf("_"c) + 1), String.Empty) 529Dim withoutSuffix = String.Empty
Simplification\Simplifiers\NameSimplifier.vb (1)
370Dim newIdentifierText = String.Empty
Simplification\VisualBasicSimplificationService.Expander.vb (1)
581Dim newName = String.Empty
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
855Return String.Empty 1108Return String.Empty
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamespaceGenerator.vb (1)
89If name = String.Empty Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
14If text = String.Empty Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
77If symbol.Name = String.Empty OrElse symbol.IsAnonymousType Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
23otherSideType.Name = String.Empty
Microsoft.CodeAnalysis.Workspaces (47)
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (2)
117=> new(string.Empty, isComplex: true, isArray: false); 156? new ParameterTypeInfo(string.Empty, isComplex: 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)
468value = string.Empty;
Shared\Utilities\DocumentationComment.cs (2)
211return string.Empty; 374public static readonly DocumentationComment Empty = new(string.Empty);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
545string relativePath = string.Empty; 851var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 855Debug.Assert(parts[toSkip - 1] == string.Empty);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
192: string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (1)
179StringComparer.OrdinalIgnoreCase.GetHashCode(FilePath ?? string.Empty),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
41if (symbol.IsErrorType() && symbol.Name == string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
63: string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolDisplayPartExtensions.cs (1)
13=> string.Join(string.Empty, parts.Select(p => p.ToString()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (1)
160=> LogBlock(functionId, string.Empty, token, logLevel);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (8)
148if (prefix != string.Empty) 152failureReason = Prefix == string.Empty 467new XAttribute(nameof(Prefix), Prefix ?? string.Empty), 468new XAttribute(nameof(Suffix), Suffix ?? string.Empty), 469new XAttribute(nameof(WordSeparator), WordSeparator ?? string.Empty), 485writer.WriteString(Prefix ?? string.Empty); 486writer.WriteString(Suffix ?? string.Empty); 487writer.WriteString(WordSeparator ?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionGroup.cs (2)
12public static readonly OptionGroup Default = new(string.Empty, string.Empty, int.MaxValue);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
56: string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
55return exteriorTrivia != null ? exteriorTrivia.Value.ToString() : string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (2)
94Debug.Assert(metadataName == string.Empty); 98Debug.Assert(metadataName == string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
52if (info.Context.GenerateMembers && info.Context.MergeNestedNamespaces && @namespace.Name != string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
399name: string.Empty,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
49return this.Name == string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
68var bestPath = string.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
37var publicKeyToken = thisAssemblyName.GetPublicKeyToken()?.Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
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)
989var sourceText = SourceText.From(string.Empty, encoding: null, project.ChecksumAlgorithm);
Workspace\Solution\TextAndVersion.cs (1)
43FilePath = filePath ?? string.Empty;
Workspace\Solution\TextDocumentState.cs (1)
164: 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 (6)
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (3)
33solutionFilename = string.Empty; 41solutionFilename = string.Empty; 78solutionFilename = string.Empty;
MSBuild\MSBuildProjectLoader.Worker.cs (2)
122_progress.Report(new ProjectLoadProgress(projectPath ?? string.Empty, operation, targetFramework, watch.Elapsed)); 278var projectName = Path.GetFileNameWithoutExtension(projectPath) ?? string.Empty;
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\ProjectFileInfo.cs (1)
148? FilePath ?? string.Empty
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
MSBuild\ProjectFile\ProjectFile.cs (4)
26public virtual string FilePath => _loadedProject?.FullPath ?? string.Empty; 34var directory = loadedProject?.DirectoryPath ?? string.Empty; 150var defaultNamespace = project.ReadPropertyString(PropertyNames.RootNamespace) ?? string.Empty; 473=> item.Metadata.FirstOrDefault(m => string.Equals(m.Name, MetadataNames.HintPath, StringComparison.OrdinalIgnoreCase))?.EvaluatedValue ?? string.Empty;
Rpc\Contracts\ProjectFileInfo.cs (1)
148? FilePath ?? string.Empty
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (3)
545string relativePath = string.Empty; 851var volumeSpecifier = isDriveRooted ? p.Substring(0, 2) : string.Empty; 855Debug.Assert(parts[toSkip - 1] == string.Empty);
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
91return (index >= 0) ? path.Substring(index) : string.Empty;
src\Compilers\Core\Portable\InternalUtilities\JsonWriter.cs (1)
267return string.Empty;
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2807("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", string.Empty)), 2856("Encoding.csproj", Resources.ProjectFiles.CSharp.Encoding.Replace("<CodePage>ReplaceMe</CodePage>", string.Empty)),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestHostDocument.cs (2)
116if (spans.TryGetValue(string.Empty, out var textSpans)) 121foreach (var namedSpanList in spans.Where(s => s.Key != string.Empty))
Workspaces\TestWorkspace_XmlConsumption.cs (1)
391return rootNamespaceAttribute?.Value ?? string.Empty;
Microsoft.CodeAnalysis.Workspaces.UnitTests (28)
EditorConfigParsing\EditorConfigFileParserTests.cs (12)
32(string.Empty, TextSpan.FromBounds(0, 9), true), 55(string.Empty, TextSpan.FromBounds(0, 9), true), 70(string.Empty, TextSpan.FromBounds(0, 9), true), 87(string.Empty, TextSpan.FromBounds(0, 9), true), 111(string.Empty, TextSpan.FromBounds(0, 9), true), 133(string.Empty, TextSpan.FromBounds(0, 9), true), 150(string.Empty, TextSpan.FromBounds(0, 9), true), 172(string.Empty, TextSpan.FromBounds(0, 9), true), 191(string.Empty, TextSpan.FromBounds(0, 9), true), 217(string.Empty, TextSpan.FromBounds(0, 9), true), 234(string.Empty, TextSpan.FromBounds(0, 9), true), 243Assert.Equal(string.Empty, section?.Text);
EditorConfigParsing\SectionParserTests.cs (2)
79var section = new Section(null, true, default(TextSpan), string.Empty, string.Empty);
ExtensionOrdererTests.cs (1)
216var actualOrder = string.Join(string.Empty, GetNames(actual));
SyntaxPathTests.cs (3)
80var tree = SyntaxFactory.ParseSyntaxTree(string.Empty); 90var text = SourceText.From(string.Empty); 91var tree = SyntaxFactory.ParseSyntaxTree(string.Empty);
UtilityTest\DocumentationCommentTests.cs (8)
63Assert.Equal(string.Empty, comment.SummaryText); 64Assert.Equal(string.Empty, comment.ReturnsText); 65Assert.Equal(string.Empty, comment.ValueText); 66Assert.Equal(string.Empty, comment.ExampleText); 68Assert.Equal(string.Empty, comment.GetParameterText("goo")); 70Assert.Equal(string.Empty, comment.GetTypeParameterText("T")); 72Assert.Equal(string.Empty, comment.GetExceptionTexts("System.Exception")[0]); 73Assert.Equal(string.Empty, comment.RemarksText);
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (2)
42text = SourceText.From(string.Empty); 284text = SourceText.From(string.Empty);
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (2)
Mocks\TestMethodHandlers.cs (2)
98return Task.FromResult(new MockResponse(string.Empty)); 170=> Task.FromResult(new MockResponse(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.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)
218string architecture = string.Empty;
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestApp.cs (1)
79output.WriteLine(e.Data ?? 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.AsmDiff (16)
Csv\CsvTextWriter.cs (1)
69return string.Empty;
Csv\DiffAssemblyCsvColumn.cs (2)
49return assembly == null ? string.Empty : assembly.Name.Value; 62return assembly == null ? string.Empty : assembly.Name.Value;
Csv\DiffNamespaceCsvColumn.cs (3)
25? string.Empty 34? string.Empty 44? string.Empty
Csv\DiffOverrideCsvColumn.cs (2)
23return string.Empty; 28return string.Empty;
Csv\DiffStaticCsvColumn.cs (1)
23return string.Empty;
Csv\DiffTokensCsvColumn.cs (1)
68return string.Empty;
Csv\DiffTypeIdCsvColumn.cs (1)
23return string.Empty;
Csv\DiffVirtualityCsvColumn.cs (3)
24return string.Empty; 29return string.Empty; 39return string.Empty;
DiffCSharpWriter.cs (1)
263return string.Empty;
MarkdownDiffExporter.cs (1)
126string suffix = hasChildren ? " {" : string.Empty;
Microsoft.DotNet.Build.Manifest (1)
BuildModelFactory.cs (1)
228repoUri = repoUri.Replace($"{parsedUri.UserInfo}@", string.Empty);
Microsoft.DotNet.Build.Manifest.Tests (3)
BuildModelFactoryTests.cs (3)
189blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 541blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 657blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty);
Microsoft.DotNet.Build.Tasks.Feed (9)
src\ArtifactUrlHelper.cs (1)
67uriBuilder.Query = string.Empty;
src\AssetPublisherFactory.cs (1)
55TokenCredential tokenCredential = _tokenCredentialsPerManagedIdentity.GetOrAdd(managedIdentityClientId ?? string.Empty, static (mi) =>
src\PublishArtifactsInManifestBase.cs (3)
328string versionMsg = string.IsNullOrEmpty(assetVersion) ? string.Empty : $"and version {assetVersion}"; 1114string categories = string.Empty; 1144string categories = string.Empty;
src\PublishBuildToMaestro.cs (3)
400string version = string.Empty; 412version = string.Empty; 528string repoIdentity = string.Empty;
src\PushToBuildStorage.cs (1)
581string errorMessage = string.Empty;
Microsoft.DotNet.Build.Tasks.Installers (3)
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)
216return string.Empty; 238return 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.Packaging.Tests (2)
ValidateHarvestVersionIsLatestForReleaseTests.cs (2)
108GetLatestStableVersionFunc = (packageId, major, minor) => string.Empty 141GetLatestStableVersionFunc = (packageId, major, minor) => string.Empty
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.Templating.Tests (1)
GenerateFileFromTemplateTests.cs (1)
55Assert.Equal(ReadAllText("Directory.Build.props.in").Replace("${DefaultNetCoreTargetFramework}", string.Empty), File.ReadAllText(filePath));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\IbcEntry.cs (1)
88let filePath = fileName.Replace("/Contents/", string.Empty).Replace("/", "\\")
Microsoft.DotNet.Build.Tasks.Workloads (6)
Swix\MsiSwixProject.wix.cs (3)
100relativePath += !string.IsNullOrEmpty(Chip) ? $",chip={Chip}" : string.Empty; 101relativePath += !string.IsNullOrEmpty(ProductArch) ? $",productarch={ProductArch}" : string.Empty; 102relativePath += !string.IsNullOrEmpty(Chip) ? $",machinearch={MachineArch}" : string.Empty;
Utils.cs (1)
94if (value == string.Empty)
WorkloadSetPackage.wix.cs (2)
85v += packageVersion.Patch > 0 ? $".{packageVersion.Patch}" : string.Empty; 88v += string.IsNullOrWhiteSpace(packageVersion.Release) ? string.Empty : $"-{packageVersion.Release}";
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
145string altMsg = string.Empty;
Microsoft.DotNet.GenAPI (2)
GenAPITask.cs (2)
269string defaultHeader = string.Empty; 425string langVersionValue = langVersion ?? string.Empty;
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
274return (value, string.Empty, value);
Microsoft.DotNet.Helix.Sdk (15)
CreateXHarnessAndroidWorkItems.cs (7)
142var exitCodeArg = expectedExitCode != 0 ? $"--expected-exit-code $expected_exit_code" : string.Empty; 143var passthroughArgs = !string.IsNullOrEmpty(AppArguments) ? $" -- {AppArguments}" : string.Empty; 147: string.Empty; 151: string.Empty; 185(expectedExitCode != 0 ? $" {dash}expected_exit_code \"{expectedExitCode}\" " : string.Empty) + 186(string.IsNullOrEmpty(deviceOutputPath) ? string.Empty : $"{dash}device_output_path \"{deviceOutputPath}\" ") + 187(string.IsNullOrEmpty(androidInstrumentationName) ? string.Empty : $"{dash}instrumentation \"{androidInstrumentationName}\" ");
CreateXHarnessAppleWorkItems.cs (7)
214(!includesTestRunner ? "--expected-exit-code $expected_exit_code " : string.Empty) + 215(resetSimulator ? $"--reset-simulator " : string.Empty) + 216(!string.IsNullOrEmpty(AppArguments) ? "-- " + AppArguments : string.Empty); 234(includesTestRunner ? "--includes-test-runner " : string.Empty) + 235(resetSimulator ? "--reset-simulator" : string.Empty) + 237(!string.IsNullOrEmpty(XcodeVersion) ? $" --xcode-version \"{XcodeVersion}\"" : string.Empty) + 238(!string.IsNullOrEmpty(AppArguments) ? $" --app-arguments \"{AppArguments}\"" : string.Empty);
WaitForHelixJobCompletion.cs (1)
43string detailsUrlWhereApplicable = HelixApi.Options.Credentials == null ? $" (Details: {HelixApi.Options.BaseUri}api/jobs/{jobName}/details?api-version=2019-06-17 )" : string.Empty;
Microsoft.DotNet.MacOsPkg.Core (1)
ExecuteHelper.cs (1)
19string output = string.Empty;
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
41public TextReader In { get; set; } = new StringReader(string.Empty);
Microsoft.DotNet.RemoteExecutor (3)
RemoteExecutor.cs (3)
74if (directory != string.Empty) 91static string GetDirectoryName(string path) => string.IsNullOrEmpty(path) ? string.Empty : IOPath.GetDirectoryName(path); 492return 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.SignCheckLibrary (10)
Verification\ArchiveVerifier.cs (1)
183public string RelativePath { get; set; } = string.Empty;
Verification\Exclusion.cs (1)
109return GetExclusionPart(index, defaultValue: String.Empty);
Verification\FileVerifier.cs (1)
189svr.ExclusionEntry = String.Join(";", String.Join("|", path, containerPath), parent, String.Empty);
Verification\Jar\JarIndividualSection.cs (1)
43string entryText = String.Empty;
Verification\Jar\JarManifestFile.cs (1)
18private string _mainManifestAttributesDigest = String.Empty;
Verification\Jar\JarUtils.cs (1)
67return digestIndex > 0 ? attribute.Substring(0, digestIndex) : String.Empty;
Verification\SignatureVerificationManager.cs (3)
137result.ExclusionEntry = String.Join(";", String.Join("|", file, String.Empty), String.Empty, String.Empty);
Verification\SignatureVerificationResult.cs (1)
282return String.Empty;
Microsoft.DotNet.SignCheckTask (1)
src\SignCheck.cs (1)
353Log.WriteMessage(LogVerbosity.Minimum, String.Empty.PadLeft(indent) + result.ToString(result.IsExcluded ? DetailKeys.ResultKeysExcluded : ResultDetails));
Microsoft.DotNet.SignTool (9)
src\BatchSignUtil.cs (1)
136string collisionIdInfo = string.Empty;
src\Configuration.cs (4)
296var fileSpec = string.Empty; 419matchedNameToken ? $" (PublicKeyToken = {peInfo.PublicKeyToken})" : string.Empty; 646targetFramework = string.Empty; 647copyright = string.Empty;
src\ContentUtil.cs (2)
98string.Empty : 103return string.Empty;
src\SignToolTask.cs (2)
363return string.Empty; 387return string.Empty;
Microsoft.DotNet.SignTool.Tests (8)
FakeBuildEngine.cs (8)
48LogErrorEvent(new BuildErrorEventArgs(string.Empty, string.Empty, string.Empty, 0, 0, 0, 0, "Didn't find a project node.", "", "")); 53LogErrorEvent(new BuildErrorEventArgs(string.Empty, string.Empty, string.Empty, 0, 0, 0, 0, "Only one <ItemGroup> is expected on this file.", "", "")); 89_output.WriteLine(e.Message ?? string.Empty); 109_output.WriteLine(e.Message ?? string.Empty);
Microsoft.DotNet.SourceBuild.Tasks (3)
src\WriteBuildOutputProps.cs (3)
95string overwriteCondition = string.Empty; 124?? string.Empty); 134?? string.Empty);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Languages\csharp\CSharp.cs (1)
204return string.Empty;
Microsoft.DotNet.XliffTasks.Tests (4)
AssertHelper.cs (2)
13expected.Replace("\r", string.Empty), 14actual.Replace("\r", string.Empty));
XElementExtensionsTests.cs (2)
32new XElement(Target, string.Empty)); 36Assert.Equal(expected: string.Empty, actual: targetValue);
Microsoft.DotNet.XUnitAssert.Tests (5)
CollectionAssertsTests.cs (2)
1596 return string.Empty; 2263 return string.Empty;
EquivalenceAssertsTests.cs (1)
199 var ex = Record.Exception(() => Assert.Equivalent(null, string.Empty));
MemoryExtensions.cs (1)
14 return new Memory<char>((value ?? string.Empty).ToCharArray());
SpanExtensions.cs (1)
14 return new Span<char>((value ?? string.Empty).ToCharArray());
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvocationContext.cs (1)
54get => _callContent ??= new(string.Empty, _nopFunction.Name, EmptyReadOnlyDictionary<string, object?>.Instance);
Functions\AIFunctionFactory.cs (1)
804Description = key.Description ?? key.Method.GetCustomAttribute<DescriptionAttribute>(inherit: true)?.Description ?? string.Empty;
Microsoft.Extensions.AI.Abstractions (15)
AITool.cs (1)
26public virtual string Description => string.Empty;
ChatCompletion\ChatMessage.cs (1)
110private string EllipsesForDebuggerDisplay => _contents is { Count: > 1 } ? ", ..." : string.Empty;
ChatCompletion\ChatResponse.cs (1)
61public string Text => _messages?.ConcatText() ?? string.Empty;
ChatCompletion\ChatResponseUpdate.cs (2)
79public string Text => _contents is not null ? _contents.ConcatText() : string.Empty; 166private 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)
31get => _message ?? string.Empty; 45(!string.IsNullOrWhiteSpace(ErrorCode) ? $" ({ErrorCode})" : string.Empty) + 46(!string.IsNullOrWhiteSpace(Details) ? $" - \"{Details}\"" : string.Empty);
Contents\TextContent.cs (1)
32get => _text ?? string.Empty;
Contents\TextReasoningContent.cs (1)
37get => _text ?? string.Empty;
SpeechToText\SpeechToTextResponse.cs (1)
70public string Text => _contents?.ConcatText() ?? string.Empty;
SpeechToText\SpeechToTextResponseUpdate.cs (1)
90public string Text => _contents?.ConcatText() ?? string.Empty;
Microsoft.Extensions.AI.Abstractions.Tests (20)
ChatCompletion\ChatMessageTests.cs (2)
28Assert.Equal(string.Empty, message.ToString()); 55Assert.Equal(text ?? string.Empty, message.ToString());
ChatCompletion\ChatResponseUpdateTests.cs (1)
27Assert.Equal(string.Empty, update.ToString());
Contents\TextContentTests.cs (7)
19Assert.Equal(text ?? string.Empty, c.Text); 37Assert.Equal(string.Empty, c.Text); 43Assert.Equal(string.Empty, c.Text); 44Assert.Equal(string.Empty, c.ToString()); 46c.Text = string.Empty; 47Assert.Equal(string.Empty, c.Text); 48Assert.Equal(string.Empty, c.ToString());
Contents\TextReasoningContentTests.cs (7)
19Assert.Equal(text ?? string.Empty, c.Text); 37Assert.Equal(string.Empty, c.Text); 43Assert.Equal(string.Empty, c.Text); 44Assert.Equal(string.Empty, c.ToString()); 46c.Text = string.Empty; 47Assert.Equal(string.Empty, c.Text); 48Assert.Equal(string.Empty, c.ToString());
SpeechToText\SpeechToTextResponseTests.cs (2)
33Assert.Equal(string.Empty, response.ToString()); 57Assert.Equal(text ?? string.Empty, response.ToString());
SpeechToText\SpeechToTextResponseUpdateTests.cs (1)
24Assert.Equal(string.Empty, update.ToString());
Microsoft.Extensions.AI.AzureAIInference (5)
AzureAIInferenceChatClient.cs (5)
142string lastCallId = string.Empty; 234fci.Arguments?.ToString() ?? string.Empty, 414yield return new ChatRequestSystemMessage(input.Text ?? string.Empty); 418yield return new ChatRequestDeveloperMessage(input.Text ?? string.Empty); 439yield return new ChatRequestToolMessage(result ?? string.Empty, resultContent.CallId);
Microsoft.Extensions.AI.Evaluation (1)
ChatMessageExtensions.cs (1)
119return string.Empty;
Microsoft.Extensions.AI.Evaluation.Quality (2)
CoherenceEvaluator.cs (1)
120string renderedUserRequest = userRequest?.RenderText() ?? string.Empty;
EquivalenceEvaluator.cs (1)
125string renderedUserRequest = userRequest?.RenderText() ?? string.Empty;
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
ScenarioRunResultTests.cs (2)
55var stringMetric = new StringMetric("string", value: "A", reason: string.Empty); 146var stringMetric = new StringMetric("string", value: "A", reason: string.Empty);
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyService.cs (1)
412request.Content = new StringContent(payload ?? string.Empty);
ContentSafetyServicePayloadUtilities.cs (1)
131userTextListItems.Select(item => string.Join(string.Empty, item.Select(e => e.ToString())));
Microsoft.Extensions.AI.Integration.Tests (2)
VerbatimHttpHandler.cs (1)
58Regex.Replace(text, @"\s*", string.Empty);
VerbatimMultiPartHttpHandler.cs (1)
190Regex.Replace(text, @"\s*", string.Empty);
Microsoft.Extensions.AI.Ollama (2)
OllamaChatClient.cs (1)
309Model = options?.ModelId ?? _metadata.DefaultModelId ?? string.Empty,
OllamaEmbeddingGenerator.cs (1)
95Model = requestModel ?? string.Empty,
Microsoft.Extensions.AI.OpenAI (8)
OpenAIChatClient.cs (3)
145yield return new ToolChatMessage(resultContent.CallId, result ?? string.Empty); 221parts.Add(ChatMessageContentPart.CreateTextPart(string.Empty)); 362fci.Arguments?.ToString() ?? string.Empty,
OpenAIResponseChatClient.cs (3)
239callInfo.Arguments?.ToString() ?? string.Empty, 476yield return ResponseItem.CreateFunctionCallOutputItem(resultContent.CallId, result ?? string.Empty); 580parts.Add(ResponseContentPart.CreateInputTextPart(string.Empty));
src\Shared\ServerSentEvents\Helpers.cs (1)
121string.Empty :
src\Shared\ServerSentEvents\SseParser_1.cs (1)
469public string LastEventId { get; private set; } = string.Empty; // Spec: "must be initialized to the empty string"
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.ApiDescription.Client.Tests (1)
MockBuildEngine.cs (1)
20public string ProjectFileOfTaskNode => string.Empty;
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
41public TextReader In { get; set; } = new StringReader(string.Empty);
Microsoft.Extensions.AsyncState.Tests (3)
AsyncContextTests.cs (1)
209var obj = string.Empty;
AsyncStateTokenTests.cs (1)
18Assert.False(t1.Equals(string.Empty));
FeaturesPooledPolicyTests.cs (1)
25list.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)
42sb.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)
48_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 (1)
ConfigurationBinder.cs (1)
607nameOfInvalidParameter = string.Empty;
Microsoft.Extensions.Configuration.EnvironmentVariables (3)
EnvironmentVariablesConfigurationProvider.cs (3)
28_prefix = string.Empty; 29_normalizedPrefix = string.Empty; 38_prefix = prefix ?? string.Empty;
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.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.DependencyInjection (1)
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; 815runtimeAssemblyGroups.Add(new RuntimeAssetGroup(string.Empty, targetLibrary.Runtimes)); 820nativeLibraryGroups.Add(new RuntimeAssetGroup(string.Empty, targetLibrary.Natives));
Resolution\PackageCompilationAssemblyResolver.cs (1)
63return [string.Empty];
Microsoft.Extensions.Diagnostics.Abstractions (1)
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 (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.Tests (1)
Linux\Resources\FileNamesOnlyFileSystem.cs (1)
34.FirstOrDefault() ?? string.Empty;
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogger.cs (1)
131var record = new FakeLogRecord(rec.LogLevel, rec.EventId, ConsumeTState(rec.Attributes), exception, rec.FormattedMessage ?? string.Empty,
Logging\FakeLoggerProvider.cs (1)
71return _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.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.FileProviders.Embedded.Tests (1)
EmbeddedFileProviderTests.cs (1)
229var files = provider.GetDirectoryContents(string.Empty);
Microsoft.Extensions.FileSystemGlobbing (5)
Internal\MatcherContext.cs (1)
182return PatternTestResult.Success(stem: string.Empty);
Internal\PathSegments\WildcardPathSegment.cs (2)
14string.Empty, new List<string>(), string.Empty, StringComparison.OrdinalIgnoreCase);
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\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
54return name ?? builder?.ToString() ?? string.Empty;
Microsoft.Extensions.Http.Diagnostics (11)
Http\DownstreamDependencyMetadataManager.cs (2)
311trieCurrent.RequestMetadata.MethodType = string.Empty; 317string dependencyName = string.Empty;
Http\HostSuffixTrieNode.cs (1)
10public string DependencyName { get; set; } = string.Empty;
Logging\Internal\HttpHeadersRedactor.cs (2)
39return string.Empty; 101return string.Empty;
Logging\Internal\HttpRequestBodyReader.cs (1)
51return new(string.Empty);
Logging\Internal\HttpResponseBodyReader.cs (1)
155return string.Empty;
Logging\Internal\LogRecord.cs (4)
21public string Host { get; set; } = string.Empty; 31public string Path { get; set; } = string.Empty; 86Host = string.Empty; 88Path = string.Empty;
Microsoft.Extensions.Http.Diagnostics.Tests (14)
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\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)
109var pipeline = resilienceProvider.GetPipeline<HttpResponseMessage>(new HttpKey(pipelineName, string.Empty)); 140var 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)
28var validationResult = new HttpStandardResilienceOptionsCustomValidator().Validate(string.Empty, options); 42var validationResult = new HttpStandardResilienceOptionsCustomValidator().Validate(string.Empty, options); 73var validationResult = new HttpStandardResilienceOptionsCustomValidator().Validate(string.Empty, options); 102var 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\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
54return name ?? builder?.ToString() ?? string.Empty;
Microsoft.Extensions.Logging.AzureAppServices (1)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
24if (argument is null || argument == 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)
33string 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)
89activityTraceId = string.Empty; 90activitySpanId = string.Empty; 91activityTraceFlags = string.Empty;
LoggingEventSource.cs (7)
156EventName ??= string.Empty; 157FormattedMessage ??= string.Empty; 209EventName ??= string.Empty; 275EventName ??= string.Empty; 276FormattedMessage ??= string.Empty; 362filterSpec = string.Empty; // This means turn on everything. 413if (filterSpec == string.Empty)
Microsoft.Extensions.Logging.Generators (19)
LoggerMessageGenerator.Emitter.cs (2)
374string extension = lm.IsExtensionMethod ? "this " : string.Empty; 474string level = string.Empty;
LoggerMessageGenerator.Parser.cs (17)
86string nspace = string.Empty; 105(int eventId, int? level, string message, string? eventName, bool skipEnabledCheck) = (-1, null, string.Empty, null, false); 161message = string.Empty; 169message = items[1].IsNull ? string.Empty : (string)GetItem(items[1]); 180message = items[2].IsNull ? string.Empty : (string)GetItem(items[2]); 220message = value.IsNull ? string.Empty : (string)GetItem(value); 863public string Keyword = string.Empty; 864public string Namespace = string.Empty; 865public string Name = string.Empty; 878public string Name = string.Empty; 879public string UniqueName = string.Empty; 880public string Message = string.Empty; 885public string Modifiers = string.Empty; 886public string LoggerField = string.Empty; 895public string Name = string.Empty; 896public string Type = string.Empty; 897public string CodeName = 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)"); 798attrInstantiationStatementLines.Add($"{GetPaddingString(1)}{prop.Key} = {prop.Value}{(notLast ? "," : string.Empty)}"); 835var valueAccess = (vm.IsNullable && vm.IsValueType) ? ".Value" : string.Empty; 854var valueAccess = (vm.IsValueType && vm.IsNullable) ? ".Value" : string.Empty; 855var 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.SecretManager.Tools.Tests (4)
SecretManagerTests.cs (2)
93new KeyValuePair<string, string>("key2", string.Empty), 288new KeyValuePair<string, string>("key2", string.Empty)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
41public TextReader In { get; set; } = new StringReader(string.Empty);
UserSecretsTestFixture.cs (1)
59? string.Empty
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ExtensionsServicePublicApiTests.cs (1)
180var input = isNull ? null! : string.Empty;
Microsoft.Extensions.Telemetry (21)
Buffering\BufferedLoggerProxy.cs (1)
41(_, _) => record.FormattedMessage ?? string.Empty);
Http\HttpRouteParser.cs (1)
227? 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)
237config.AddRedactionDiscriminator ? cp.Name : string.Empty);
Logging\Import\LoggerFactoryScopeProvider.cs (4)
262return string.Empty; 316} ?? string.Empty; 326} ?? string.Empty; 336} ?? 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)
112TagNamePrefix = 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 (32)
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)
131return string.Empty; 257activity.AddBaggage("testKey2", string.Empty); 290activity.AddTag("testKey2", string.Empty); 652?? string.Empty; 664?? string.Empty; 676?? 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.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.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)
155return string.Empty; 167: 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)
155return string.Empty; 167: string.Empty;
Microsoft.Gen.Logging (27)
Emission\Emitter.Method.cs (6)
22string extension = lm.IsExtensionMethod ? "this " : string.Empty; 30var lvl = string.Empty; 213var question = lp.PotentiallyNull ? "?" : string.Empty; 228var question = lp.PotentiallyNull ? "?" : string.Empty; 532var atSign = p.NeedsAtSign ? "@" : string.Empty; 561var 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)
16public string ParameterName = string.Empty; 17public string TagName = string.Empty; 18public 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)
37string message = string.Empty; 61message = a.Value as string ?? string.Empty; 194=> attr.ConstructorArguments[0].Value as string ?? string.Empty;
Parsing\Parser.cs (1)
62string nspace = string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
155return string.Empty; 167: 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 (38)
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)
17public string Modifiers = string.Empty; 18public string MetricTypeModifiers = string.Empty; 19public string MetricTypeName = string.Empty; 21public 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 (7)
77string nspace = string.Empty; 272tagName = string.Empty; 282string metricNameFromAttribute = string.Empty; 290metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 341return string.Empty; 356return string.Empty; 362return string.Empty;
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (2)
11public string MetricNameFromAttribute = string.Empty; 15public string StrongTypeObjectName = string.Empty;
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (1)
25return string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
155return string.Empty; 167: 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 (31)
Emitter.cs (3)
242OutLn($" _{objectName}.{recordStatement}(value{(tagListInit ? ", tagList" : string.Empty)});"); 250? string.Empty 255: string.Empty;
MetricFactoryEmitter.cs (2)
101? string.Empty 140? string.Empty
Model\MetricMethod.cs (4)
17public string Modifiers = string.Empty; 18public string MetricTypeModifiers = string.Empty; 19public string MetricTypeName = string.Empty; 21public 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 (7)
77string nspace = string.Empty; 272tagName = string.Empty; 282string metricNameFromAttribute = string.Empty; 290metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 341return string.Empty; 356return string.Empty; 362return string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
155return string.Empty; 167: string.Empty;
src\Generators\Shared\SymbolHelpers.cs (1)
17return symbol.ContainingNamespace.IsGlobalNamespace ? string.Empty : symbol.ContainingNamespace.ToString();
StrongTypeAttributeParameters.cs (2)
11public string MetricNameFromAttribute = string.Empty; 15public string StrongTypeObjectName = string.Empty;
Microsoft.Gen.MetricsReports (26)
MetricDefinitionEmitter.cs (1)
25return string.Empty;
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (4)
17public string Modifiers = string.Empty; 18public string MetricTypeModifiers = string.Empty; 19public string MetricTypeName = string.Empty; 21public 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 (7)
77string nspace = string.Empty; 272tagName = string.Empty; 282string metricNameFromAttribute = string.Empty; 290metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 341return string.Empty; 356return string.Empty; 362return string.Empty;
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (2)
11public string MetricNameFromAttribute = string.Empty; 15public string StrongTypeObjectName = string.Empty;
src\Generators\Shared\GeneratorUtilities.cs (2)
155return string.Empty; 167: 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 (3)
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>
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)
293var exceptionText = jsonReader.GetString() ?? string.Empty;
Microsoft.Maui (5)
Core\Extensions\ITextInputExtensions.cs (2)
13 var mauiText = textInput.Text ?? string.Empty; 14 var platformText = text ?? string.Empty;
Debugger\DebuggerDisplayHelpers.cs (1)
40 return string.Empty;
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
405 ? string.Empty
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
14 return string.Empty;
Microsoft.Maui.Controls (27)
BindingExpression.cs (1)
230 if (part == string.Empty)
BindingExpressionHelper.cs (1)
31 var stringValue = value as string ?? string.Empty;
Brush\BrushTypeConverter.cs (3)
215 return string.Empty; 332 var directionX = gradientCenterPosition < parts.Length ? parts[gradientCenterPosition].Trim() : string.Empty; 335 var directionY = gradientCenterPosition < parts.Length ? parts[gradientCenterPosition].Trim() : string.Empty;
DeviceStateTrigger.cs (1)
23 BindableProperty.Create(nameof(Device), typeof(string), typeof(DeviceStateTrigger), string.Empty,
Internals\TextTransformUtilites.cs (1)
25 return string.Empty;
NavigationPage\NavigationPageToolbar.cs (1)
286 return string.Empty;
Performance.cs (1)
37 reference = String.Empty;
Picker\Picker.cs (5)
231 return item == null ? string.Empty : item.ToString(); 448 return string.Empty; 453 return string.Empty; 461 return item ?? string.Empty; 464 return string.Empty;
PlatformConfiguration\WindowsSpecific\Application.cs (1)
12 BindableProperty.Create("ImageDirectory", typeof(string), typeof(FormsElement), string.Empty,
Routing.cs (1)
186 return String.Empty;
Shell\RouteRequestBuilder.cs (3)
94 return String.Empty; 176 return String.Empty; 195 return String.Empty;
Shell\Shell.cs (2)
866 String.Empty, 867 String.Empty);
Shell\ShellUriHandler.cs (2)
23 string queryString = (pathAndQueryString.Length > 1) ? $"?{pathAndQueryString[1]}" : String.Empty; 1023 return string.Empty;
ShellToolbar.cs (4)
170 Title = String.Empty; 177 Title = currentPage.Title ?? String.Empty; 183 Title = _shell.CurrentContent?.Title ?? String.Empty; 187 Title = String.Empty;
Microsoft.Maui.Controls.BindingSourceGen (1)
BindingSourceGenerator.cs (1)
92 return string.Empty;
Microsoft.Maui.Controls.Build.Tasks (2)
CreateObjectVisitor.cs (1)
397 var valueString = hasValue ? ((ValueNode)node.CollectionItems[0]).Value as string : string.Empty;
PerformanceProvider.cs (1)
83 return string.Format("{0}:{1}{2}", path, member, (tag != null ? "-" + tag : string.Empty));
Microsoft.Maui.Controls.Xaml (1)
CreateValuesVisitor.cs (1)
339 value = String.Empty;
Microsoft.Maui.Essentials (9)
Clipboard\Clipboard.shared.cs (1)
49 => Default.SetTextAsync(text ?? string.Empty);
FileSystem\FileSystem.shared.cs (1)
163 return string.Empty;
Map\MapLaunchOptions.shared.cs (1)
16 public string Name { get; set; } = string.Empty;
TextToSpeech\TextToSpeech.shared.cs (1)
88 var p = string.Empty;
Types\DeviceIdiom.shared.cs (1)
92 deviceIdiom ?? string.Empty;
Types\DevicePlatform.shared.cs (1)
115 devicePlatform ?? string.Empty;
Types\Shared\WebUtils.shared.cs (1)
71 value = string.Empty;
VersionTracking\VersionTracking.shared.cs (2)
210 string LastInstalledVersion => versionTrail[versionsKey]?.LastOrDefault() ?? string.Empty; 212 string LastInstalledBuild => versionTrail[buildsKey]?.LastOrDefault() ?? string.Empty;
Microsoft.ML.AutoML (5)
Experiment\SuggestedTrainer.cs (1)
56var paramsStr = string.Empty;
SweepableEstimator\SweepablePipeline.cs (1)
169return string.Empty;
Utils\UserInputValidationUtil.cs (3)
255if (closestNamed != string.Empty) 287var closestNamed = string.Empty; 298return minEditDistance <= maxAllowableEditDistance ? closestNamed : string.Empty;
Microsoft.ML.AutoML.SourceGenerator (4)
SearchSpaceGenerator.cs (2)
68(null, _) => string.Empty, 91optionAttribution = string.Empty;
Template\SearchSpace.cs (1)
51if(defaultValue == string.Empty){
Utils.cs (1)
72return string.Join(string.Empty, str.Split('_', ' ', '-').Select(x => CapitalFirstLetter(x)));
Microsoft.ML.AutoML.Tests (1)
UserInputValidationTests.cs (1)
378dataViewBuilder.AddColumn(DefaultColumnNames.Label, string.Empty);
Microsoft.ML.CodeGenerator (5)
CodeGenerator\CSharp\PipelineExtension.cs (1)
84return (string.Empty, new string[0]);
CodeGenerator\CSharp\TrainerGeneratorBase.cs (1)
138return string.Empty;
Templates\Console\ModelBuilder.cs (3)
120if(Trainer != String.Empty ) { 137if(PreTrainerTransforms.Count >0 && Trainer != String.Empty ) { 140else if (PreTrainerTransforms.Count >0 && Trainer == String.Empty) {
Microsoft.ML.CodeGenerator.Tests (4)
ApprovalTests\ConsoleCodeGeneratorTests.cs (4)
765var onnxPipeLineNode = new PipelineNode(nameof(SpecialTransformer.ApplyOnnxModel), PipelineNodeType.Transform, string.Empty, string.Empty); 811var onnxPipeLineNode = new PipelineNode(nameof(SpecialTransformer.ApplyOnnxModel), PipelineNodeType.Transform, string.Empty, string.Empty);
Microsoft.ML.Core (1)
Utilities\IndentedTextWriterExtensions.cs (1)
45writer.WriteLineNoTabs(string.Empty);
Microsoft.ML.Data (3)
DataLoadSave\Text\TextLoaderParser.cs (1)
1303scan.Span = String.Empty.AsMemory();
Transforms\InvertHashUtils.cs (1)
205return Utils.Size(temp) > 0 ? temp.ToString().AsMemory() : String.Empty.AsMemory();
Transforms\ValueMapping.cs (1)
876conv(string.Empty.AsMemory(), ref value);
Microsoft.ML.FastTree (4)
FastTree.cs (2)
305private protected virtual string GetTestGraphHeader() => string.Empty; 313private protected virtual string GetTestGraphLine() => string.Empty;
GamModelParameters.cs (1)
468Host, ensemble, schema, calibrator, string.Empty, false, false);
TreeEnsemble\InternalTreeEnsemble.cs (1)
314return string.Empty;
Microsoft.ML.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)
827sb.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.Http.Headers (2)
HeaderUtilities.cs (2)
242var segment = headerValues[i] ?? string.Empty; 298var segment = cacheControlDirectives[i] ?? string.Empty;
Microsoft.Net.Http.Headers.Tests (22)
ContentDispositionHeaderValueTest.cs (1)
21Assert.Throws<ArgumentException>(() => new ContentDispositionHeaderValue(string.Empty));
CookieHeaderValueTest.cs (2)
176Assert.Equal(string.Empty, header.Value.AsSpan()); 194Assert.Equal(string.Empty, cookie.Value.AsSpan());
DateParserTest.cs (1)
37yield return new object[] { string.Empty };
EntityTagHeaderValueTest.cs (3)
13Assert.Throws<ArgumentException>(() => new EntityTagHeaderValue(string.Empty)); 204CheckInvalidParse(string.Empty); 233CheckInvalidTryParse(string.Empty);
MediaTypeHeaderValueTest.cs (1)
15Assert.Throws<ArgumentException>(() => new MediaTypeHeaderValue(string.Empty));
NameValueHeaderValueTest.cs (9)
13Assert.Throws<ArgumentException>(() => new NameValueHeaderValue(string.Empty)); 51CheckValue(string.Empty); 161nameValue.Value = string.Empty; 180nameValue2.Value = string.Empty; 184nameValue2.Value = string.Empty; 230nameValue1.Value = string.Empty; 235nameValue2.Value = string.Empty; 292CheckInvalidParse(string.Empty); 321CheckInvalidTryParse(string.Empty);
RangeHeaderValueTest.cs (2)
119CheckInvalidParse(string.Empty); 147CheckInvalidTryParse(string.Empty);
SetCookieHeaderValueTest.cs (2)
322Assert.Equal(string.Empty, header.Value.AsSpan()); 340Assert.Equal(string.Empty, cookie.Value.AsSpan());
StringWithQualityHeaderValueTest.cs (1)
196CheckInvalidTryParse(string.Empty);
Microsoft.NET.StringTools (2)
InternableString.cs (1)
217return string.Empty;
WeakStringCacheInterner.cs (1)
80return string.Empty;
Microsoft.NET.StringTools.net35 (3)
InternableString.Simple.cs (2)
91private readonly string FirstString => _firstString ?? string.Empty; 173return _builder?.ToString() ?? string.Empty;
WeakStringCacheInterner.cs (1)
80return string.Empty;
Microsoft.NET.StringTools.net35.UnitTests (4)
InterningTestData.cs (1)
25_string = string.Join(string.Empty, Fragments);
SpanBasedStringBuilder_Tests.cs (2)
77internableString.Equals(string.Empty).ShouldBe(internableString.Length == 0); 79string substr = datum.Fragments[0] ?? string.Empty;
WeakStringCache_Tests.cs (1)
90hashCodes[i] = AddString(string.Empty, strPart2, (string cachedString) =>
Microsoft.NET.StringTools.UnitTests (4)
InterningTestData.cs (1)
25_string = string.Join(string.Empty, Fragments);
SpanBasedStringBuilder_Tests.cs (2)
77internableString.Equals(string.Empty).ShouldBe(internableString.Length == 0); 79string substr = datum.Fragments[0] ?? string.Empty;
WeakStringCache_Tests.cs (1)
90hashCodes[i] = AddString(string.Empty, strPart2, (string cachedString) =>
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.VisualBasic.Forms.Tests (1)
System\Windows\Forms\FileLogTraceListenerTests.vb (1)
188.CustomLocation = String.Empty}
Microsoft.VisualStudio.LanguageServices (79)
ChangeSignature\AddParameterDialogViewModel.cs (4)
39ParameterName = string.Empty; 40CallSiteValue = string.Empty; 41DefaultValue = string.Empty; 106private string _verbatimTypeName = string.Empty;
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
174addParameterViewModel.IsCallsiteRegularValue ? addParameterViewModel.CallSiteValue : string.Empty, 176addParameterViewModel.IsRequired ? string.Empty : addParameterViewModel.DefaultValue,
ChangeSignature\ChangeSignatureDialogViewModel.cs (4)
544return string.Empty; 557return string.Empty; 570return string.Empty; 583return string.Empty;
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (13)
95public virtual string CallSiteValue => string.Empty; 147public override string Modifier => string.Empty; 170public override string CallSite => string.Empty; 185return string.Empty; 193return @out ?? string.Empty; 195return @ref ?? string.Empty; 197return @in ?? string.Empty; 199return refReadonly ?? string.Empty; 204return @params ?? string.Empty; 210return @this ?? string.Empty; 213return string.Empty; 228return string.Empty; 239return string.Empty;
CodeLens\RemoteCodeLensReferencesService.cs (1)
246return string.Empty;
CodeMarkers\ManagedCodeMarkers.cs (1)
363string defaultValue = key.GetValue(string.Empty).ToString();
CommonControls\MemberSelectionViewModel.cs (1)
151member.TooltipText = isInterface ? ServicesVSResources.Interface_cannot_have_field : string.Empty;
CommonControls\NewTypeDestinationSelectionViewModel.cs (4)
18defaultName: string.Empty, 20defaultNamespace: string.Empty, 21generatedNameTypeParameterSuffix: string.Empty, 83string.IsNullOrEmpty(_defaultNamespace) ? string.Empty : _defaultNamespace + ".",
EditorConfigSettings\Analyzers\View\ColumnDefinitions\AnalyzerSeverityColumnDefinition.cs (1)
50_ => string.Empty,
EditorConfigSettings\SettingsEditorPane.SearchFilter.cs (2)
113: string.Empty; 127return detailsString ?? string.Empty;
EditorConfigSettings\SettingsEditorPane.SearchHandler.cs (1)
40_ = tableControl.SetFilter(string.Empty, null);
EditorConfigSettings\SettingsEditorPane.SearchTask.cs (2)
40_ = control.SetFilter(string.Empty, new SearchFilter(SearchQuery, control)); 64_ = control.SetFilter(string.Empty, null);
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (1)
80return string.Empty;
ExternalAccess\VSTypeScript\Api\VSTypeScriptContainedLanguageWrapper.cs (1)
74workspace.OnProjectAdded(ProjectInfo.Create(projectId, VersionStamp.Default, filePath, string.Empty, InternalLanguageNames.TypeScript));
ExtractClass\VisualStudioExtractClassOptionsService.cs (1)
75? string.Empty
GenerateType\GenerateTypeDialogViewModel.cs (2)
271if (!TryGetImplicitFilePath(this.SelectedProject.FilePath ?? string.Empty, ServicesVSResources.Project_Path_is_illegal, out implicitFilePath)) 315projectRootPath = string.Empty;
Implementation\AbstractEditorFactory.cs (2)
74pbstrEditorCaption = string.Empty; 267pbstrEditorCaption = string.Empty;
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
368var memberName = string.Empty;
Library\ObjectBrowser\Extensions.cs (4)
33: string.Empty; 40return string.Empty; 45: string.Empty; 52: string.Empty;
Library\ObjectBrowser\ObjectList.cs (1)
612var longestMatchedName = string.Empty;
Library\VsNavInfo\NavInfoFactory.cs (4)
224return string.Empty; 229: string.Empty; 236: string.Empty; 243: string.Empty;
MoveStaticMembers\TypeNameItem.cs (2)
36DeclarationFileName = string.Empty; 37DeclarationFilePath = string.Empty;
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
115? string.Empty
MoveToNamespace\MoveToNamespaceDialogViewModel.cs (3)
132public string Error => CanSubmit ? string.Empty : Message ?? string.Empty; 138_ => string.Empty
NavigationBar\NavigationBarClient.cs (1)
128var selectedItemPreviewText = string.Empty;
PickMembers\PickMembersDialogViewModel.cs (2)
105return string.Empty; 118return string.Empty;
Progression\GraphBuilder.cs (1)
412node.Label = symbol.Name.Replace("[]", string.Empty);
ProjectSystem\RuleSets\RuleSetEventHandler.cs (2)
176UpdateCodeAnalysisRuleSetPropertiesInProject(project, string.Empty); 201UpdateCodeAnalysisRuleSetPropertiesInAllProjects(string.Empty);
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1262new(string.Empty, InfoBarUI.UIKind.Close, GetDefaultDismissAction()));
Snippets\SnippetExpansionClient.cs (2)
283if (lineText.Trim() == string.Empty) 393if (_indentCaretOnCommit && endLineText == string.Empty)
Snippets\SnippetFunctions\AbstractSnippetFunction.cs (2)
40return Task.FromResult((ExitCode: VSConstants.S_OK, Value: string.Empty, HasDefaultValue: 0)); 51return Task.FromResult((ExitCode: VSConstants.S_OK, Value: string.Empty, HasDefaultValue: 0));
Snippets\SnippetFunctions\AbstractSnippetFunction.IVsExpansionFunction.cs (1)
36text = string.Empty;
Snippets\SnippetFunctions\SnippetFunctionClassName.cs (1)
30var value = string.Empty;
Snippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
46return (VSConstants.S_OK, string.Empty, HasCurrentValue: 0);
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
203message: diagnostic.Message ?? string.Empty,
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
278: string.Empty;
Utilities\AutomationDelegatingListView.cs (1)
164=> GetAutomationPeer()?.GetName() ?? string.Empty;
ValueTracking\TreeViewItemBase.cs (1)
18public virtual string AutomationName { get; } = string.Empty;
ValueTracking\ValueTrackingTreeViewModel.cs (1)
108SelectedItemFile = string.Empty;
Venus\ContainedLanguage.cs (1)
186return document?.FilePath ?? string.Empty;
Microsoft.VisualStudio.LanguageServices.CSharp (16)
CodeModel\CSharpCodeModelService.cs (10)
641=> (EnvDTE.CodeElement)CodeNamespace.CreateUnknown(state, fileCodeModel, (int)SyntaxKind.NamespaceDeclaration, string.Empty); 848: string.Empty; 1250return string.Empty; 1277var commentText = string.Empty; 1351return string.Empty; 1687return string.Empty; 1718return string.Empty; 1823: string.Empty; 2802text = text.Replace(TextSpan.FromBounds(deletionStart, deletionEnd), string.Empty); 2877text = text.Replace(TextSpan.FromBounds(deletionStart, deletionEnd), string.Empty);
ProjectSystemShim\CSharpProjectShim.ICSCompilerConfig.cs (6)
30ProjectSystemProjectOptionsProcessor[CompilerOptions.OPTID_CCSYMBOLS] = string.Empty; 31ProjectSystemProjectOptionsProcessor[CompilerOptions.OPTID_KEYFILE] = string.Empty; 32ProjectSystemProjectOptionsProcessor[CompilerOptions.OPTID_NOWARNLIST] = string.Empty; 33ProjectSystemProjectOptionsProcessor[CompilerOptions.OPTID_WARNASERRORLIST] = string.Empty; 34ProjectSystemProjectOptionsProcessor[CompilerOptions.OPTID_WARNNOTASERRORLIST] = string.Empty; 36ProjectSystemProjectOptionsProcessor[CompilerOptions.OPTID_XML_DOCFILE] = string.Empty;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
DocumentOutline\DocumentOutlineTests.cs (1)
127var searchedSymbols = DocumentOutlineViewModel.SearchDocumentSymbolData(model.DocumentSymbolData, string.Empty, CancellationToken.None);
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
103Assert.Equal(string.Empty, result.Description);
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (1)
42public override string FullPath => string.Empty;
Microsoft.VisualStudio.LanguageServices.UnitTests (18)
ChangeSignature\AddParameterViewModelTests.vb (2)
275Assert.Equal(String.Empty, viewModel.DefaultValue) 278Assert.Equal(String.Empty, viewModel.CallSiteValue)
CodeModel\AbstractCodeModelObjectTests.AttributeArgumentData.vb (1)
9Public Property Name As String = String.Empty
CodeModel\CSharp\CodeClassTests.vb (2)
1067TestComment(code, String.Empty) 1176TestComment(code, String.Empty)
CodeModel\CSharp\CodeNamespaceTests.vb (2)
24TestComment(code, String.Empty) 133TestComment(code, String.Empty)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (7)
44Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 72Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 90Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 116Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 152Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 191Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 223Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition)
InheritanceMargin\InheritanceMarginViewModelTests.vb (1)
125Dim actualText = actualTextGetFromTextBlock.Replace(leftToRightMarker, String.Empty)
Progression\ContainsChildrenGraphQueryTests.vb (1)
81label:=String.Empty,
Snippets\SnippetTestState.vb (1)
158{"Name", String.Empty}})
Venus\DocumentService_IntegrationTests.vb (1)
189Assert.Equal(String.Empty, (Await newDocument.GetTextAsync()).ToString())
Microsoft.VisualStudio.LanguageServices.VisualBasic (21)
CodeModel\SyntaxExtensions.vb (1)
50Return String.Empty
CodeModel\VisualBasicCodeModelService.vb (14)
934String.Empty) 936Return String.Empty 1301text = text.Replace(TextSpan.FromBounds(deletionStart, deletionEnd), String.Empty) 1360text = text.Replace(TextSpan.FromBounds(spanStart, spanEnd), String.Empty) 1789String.Empty) 1828Return String.Empty 1934String.Empty) 2233Return String.Empty 2254Dim commentText = String.Empty 2477Return String.Empty 2781String.Empty) 4127text = text.Replace(methodStatement.HandlesClause.Span, String.Empty) 4133text = text.Replace(TextSpan.FromBounds(clauseItemToRemove.SpanStart, methodStatement.HandlesClause.Events.GetSeparator(0).Span.End), String.Empty) 4135text = text.Replace(TextSpan.FromBounds(methodStatement.HandlesClause.Events.GetSeparator(index - 1).SpanStart, clauseItemToRemove.Span.End), String.Empty)
Help\VisualBasicHelpContextService.vb (2)
55Dim text = If(trivia.ToFullString(), String.Empty).Replace(" ", "").TrimStart("'"c) 64Return String.Empty
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (2)
85.WithMainTypeName(If(compilerOptions.wszStartup <> String.Empty, compilerOptions.wszStartup, Nothing)) _ 93.WithRootNamespace(If(compilerOptions.wszDefaultNamespace, String.Empty)) _
Snippets\SnippetCommandHandler.vb (1)
105subjectBuffer.ApplyChange(New TextChange(Microsoft.CodeAnalysis.Text.TextSpan.FromBounds(caretPosition - 1, caretPosition), String.Empty))
Snippets\VisualBasicSnippetExpansionLanguageHelper.vb (1)
90If endLineText.Trim() = String.Empty Then
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Extensions.cs (1)
23return string.Empty;
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
131Message = d.Message ?? string.Empty,
Microsoft.Web.Xdt.Extensions (1)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
24if (argument is null || argument == string.Empty)
MinimalSample (1)
Program.cs (1)
103public string Title { get; set; } = string.Empty;
MSBuild (63)
BuildEnvironmentHelper.cs (1)
374NativeMethodsShared.ProcessorArchitecture == Framework.NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
CommandLineSwitches.cs (1)
531if (string.Empty.Equals(switchParameters) && emptyParametersAllowed)
CommandLineSwitchException.cs (1)
139Throw(messageResourceName, commandLineArg, String.Empty);
CommunicationsUtilities.cs (1)
193.Replace("=", string.Empty);
CoreCLRAssemblyLoader.cs (2)
151? new[] { string.Empty } 155: [assemblyName.CultureName, string.Empty])
EscapingUtilities.cs (1)
89return String.Empty;
EventArgsFormatting.cs (1)
340message = String.Empty;
FileUtilities.cs (2)
1501return string.Empty; 1523return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
InitializationException.cs (1)
154errorMessage = ResourceUtilities.FormatString(errorMessage, (e == null) ? String.Empty : e.Message);
InterningBinaryReader.cs (1)
100return String.Empty;
LoadedType.cs (1)
105PropertyAssemblyQualifiedNames[i] = Properties[i]?.PropertyType?.AssemblyQualifiedName?? string.Empty;
LogMessagePacketBase.cs (1)
1300string responseFilePath = String.Empty;
Modifiers.cs (8)
401currentDirectory = String.Empty; 432modifiedItemSpec = String.Empty; 447modifiedItemSpec = String.Empty; 498modifiedItemSpec = String.Empty; 519modifiedItemSpec = String.Empty; 535modifiedItemSpec = String.Empty; 551modifiedItemSpec = String.Empty; 559modifiedItemSpec = String.Empty;
MSBuildLoadContext.cs (2)
70? (string[])[string.Empty] 74: [assemblyName.CultureName, string.Empty])
OutOfProcTaskAppDomainWrapperBase.cs (2)
128[taskName, taskLocation, String.Empty]); 321[taskName, taskLocation, String.Empty]);
OutOfProcTaskHostNode.cs (1)
1058LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentVariable", variable.Key, newValue, environmentValue ?? String.Empty);
PrintLineDebugger.cs (1)
52_id = id ?? string.Empty;
PrintLineDebuggerWriters.cs (2)
28File.AppendAllText(file, CsvFormat(string.Empty, callsite, args)); 90return $"\n{(id == null ? string.Empty : id + ": ")}{callsite}:{string.Join(";", args)}";
StringExtensions.cs (1)
24newValue = string.Empty;
TaskParameter.cs (6)
217return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 305escapedMetadata[(string)key] = (string)nonGenericEscapedMetadata[key] ?? String.Empty; 326escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 773return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 854_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 968return metadataValue ?? String.Empty;
TempFileUtilities.cs (3)
85string temporaryDirectory = Path.Combine(TempFileDirectory, $"Temporary{Guid.NewGuid():N}", subfolder ?? string.Empty); 171extension = string.Empty; 192File.WriteAllText(file, string.Empty);
XMake.cs (14)
737string getResultOutputFile = string.Empty; 1044$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}"); 1051$"{e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}"); 1755EnvironmentUtilities.ProcessPath ?? string.Empty), 2085switchParameters = string.Empty; 2684getResultOutputFile = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetResultOutputFile].FirstOrDefault() ?? string.Empty; 2937KnownTelemetry.LoggingConfigurationTelemetry.TerminalLoggerUserIntent = terminalLoggerArg ?? string.Empty; 2996return terminalLoggerParameters?.Length > 0 ? MSBuildApp.AggregateParameters(string.Empty, terminalLoggerParameters) : string.Empty; 3175? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.OutputResultsCache].FirstOrDefault(p => p != null) ?? string.Empty 3885string result = anyPrefixingParameter ?? string.Empty; 4116string fileParameters = string.Empty; 4362loggerClassName = string.Empty; 4565string toolsVersionList = string.Empty;
XMakeAttributes.cs (9)
170ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 214ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 287ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 354ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 430string currentArchitecture = string.Empty;
MSBuildTaskHost (44)
BinaryTranslator.cs (4)
776string key = string.Empty; 823if (nullable && !TranslateNullable(string.Empty)) 862if (nullable && !TranslateNullable(string.Empty)) 1408string value = string.Empty;
BuildEnvironmentHelper.cs (1)
374NativeMethodsShared.ProcessorArchitecture == Framework.NativeMethods.ProcessorArchitectures.ARM64 ? "arm64" : string.Empty,
CommunicationsUtilities.cs (1)
193.Replace("=", string.Empty);
EscapingUtilities.cs (1)
89return String.Empty;
FileUtilities.cs (2)
1501return string.Empty; 1523return String.IsNullOrEmpty(directoryName) ? String.Empty : NormalizePath(directoryName, file);
InternalErrorException.cs (2)
62? String.Empty 113string innerMessage = (innerException == null) ? String.Empty : innerException.ToString();
InterningBinaryReader.cs (1)
100return String.Empty;
InterningReadTranslator.cs (1)
46if (!_translator.TranslateNullable(string.Empty))
InterningWriteTranslator.cs (1)
30private static readonly string IsPathMarker = string.Empty;
LogMessagePacketBase.cs (1)
1300string responseFilePath = String.Empty;
Modifiers.cs (8)
401currentDirectory = String.Empty; 432modifiedItemSpec = String.Empty; 447modifiedItemSpec = String.Empty; 498modifiedItemSpec = String.Empty; 519modifiedItemSpec = String.Empty; 535modifiedItemSpec = String.Empty; 551modifiedItemSpec = String.Empty; 559modifiedItemSpec = String.Empty;
NamedPipeUtil.cs (1)
37return string.Empty;
NativeMethods.cs (3)
891?? string.Empty; 908if (dir != string.Empty) 913s_frameworkBasePath = dir ?? string.Empty;
OutOfProcTaskAppDomainWrapperBase.cs (2)
128[taskName, taskLocation, String.Empty]); 321[taskName, taskLocation, String.Empty]);
OutOfProcTaskHostNode.cs (1)
1058LogMessageFromResource(MessageImportance.Low, "ModifyingTaskHostEnvironmentVariable", variable.Key, newValue, environmentValue ?? String.Empty);
TaskParameter.cs (6)
217return (WrappedParameter == null) ? String.Empty : WrappedParameter.ToString(); 305escapedMetadata[(string)key] = (string)nonGenericEscapedMetadata[key] ?? String.Empty; 326escapedMetadata.Add(key, EscapingUtilities.Escape((string)customMetadata[key] ?? String.Empty)); 773return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.UnescapeAll(_escapedItemSpec); 854_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty; 968return metadataValue ?? String.Empty;
XMakeAttributes.cs (8)
170ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 214ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 287ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 354ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");
MvcFormSample (1)
Models\Todo.cs (1)
7public string Name { get; set; } = string.Empty;
OpenIdConnectSample (2)
Startup.cs (2)
359string.IsNullOrEmpty(content) ? string.Empty : HtmlEncoder.Default.Encode(content); 363public IssuerFixupAction() : base(ClaimTypes.NameIdentifier, 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)) 1339string asmMissing = string.Empty; 1346asmMissing += $"{(asmMissing.Length > 0 ? ", " : string.Empty)}PresentationCore"; 1350asmMissing += $"{(asmMissing.Length > 0 ? ", " : string.Empty)}PresentationFramework"; 1433ns = string.Empty; 1613string parentFolderPrefix = string.Empty; 1936cdce.MethodName = eventHandler.Trim() + (subClassed ? HELPER : string.Empty); 2248string localTypeArgNamespace = string.Empty; 2249string localTypeArgClassName = string.Empty; 2463ctrBaseClass = GenerateConstructedTypeReference(baseClass, _typeArgsList, string.Empty); 2496string ns = string.Empty; 2497string baseClassName = string.Empty; 2651string uriPart = string.Empty; 2671? String.Empty 2675? String.Empty 3432private string _localElementFullName = string.Empty; 3511private string _subClass = string.Empty; 3520private string _targetPath = string.Empty; // Current Dir is default 3533private string _language = string.Empty; 3534private string _languageSourceExtension = string.Empty; 3545private string _assemblyName = string.Empty; 3546private string _assemblyVersion = string.Empty; 3547private string _assemblyPublicKeyToken = string.Empty; 3548private string _applicationFile = string.Empty; 3549private string _defaultNamespace = string.Empty; 3553private string _compilationUnitSourcePath = string.Empty; 3565private string _private = string.Empty; 3566private string _public = string.Empty; 3567private string _protected = string.Empty; 3568private string _internal = string.Empty; 3569private string _protectedInternal = string.Empty; 3570private string _privateClass = string.Empty; 3571private 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; 845index >= 0 ? "fully qualified " : string.Empty, 850_class = string.Empty; 864_classModifier = string.Empty; 875index >= 0 ? "fully qualified " : string.Empty, 880_subClass = string.Empty; 928private string _class = string.Empty; 929private string _subClass = string.Empty; 939private 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\Microsoft.DotNet.Wpf\src\Common\src\System\AppContextDefaultValues.cs (1)
19PopulateDefaultValuesPartial(".NETCoreApp", string.Empty, 30000);
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\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\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\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\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\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\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlNodes.cs (1)
1176string.Empty :
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParseException.cs (1)
423if (innerException.Message != String.Empty)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (2)
973assemblyName = string.Empty; 974typeFullName = string.Empty;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (16)
564string ownerTypeFullName = string.Empty; 810string.Empty, 811string.Empty); 871string parentName = declaringType != null ? declaringType.Name : string.Empty; 1556string.Empty : 1845if (namespacePrefix != string.Empty) 1920if (contentProperty == string.Empty) 2210string prefix = string.Empty; 2346ThrowException(nameof(SR.ParserUndeclaredNS), String.Empty); 2979string parentName = parentType != null ? parentType.Name : string.Empty; 3051string prefix = string.Empty; 3061string valueAssemblyName = string.Empty; 3062string valueTypeFullName = string.Empty; 3232string parentName = parentType != null ? parentType.Name : string.Empty; 5128string.Empty); 6557textFlowData.TextNode.UpdateText(string.Empty);
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\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (2)
425_nsDeclarations[decl].Prefix = String.Empty; 583_nsDeclarations[0].Prefix = string.Empty;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (1)
36string resourceID = String.Empty;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
62string errorMessage = string.Empty;
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\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
651return LookupNamespace(string.Empty);
PresentationCore (96)
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\Microsoft.DotNet.Wpf\src\Common\src\System\AppContextDefaultValues.cs (1)
19PopulateDefaultValuesPartial(".NETCoreApp", string.Empty, 30000);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
136string extension = String.Empty;
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) && 325if (_fileName != String.Empty) 339private 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\UIElement.cs (1)
2921new UIPropertyMetadata(String.Empty));
PresentationCore.Tests (20)
System\Windows\DataObjectTests.cs (3)
143Action act = () => data.SetData(string.Empty, testData); 294Action act = () => data.SetData(string.Empty, testData, true); 322dataObject.SetText(string.Empty);
System\Windows\DurationConverter.Tests.cs (1)
63yield return new object?[] { string.Empty, null, null, false };
System\Windows\Input\Command\KeyGestureConverter.Tests.cs (6)
93yield return new object?[] { new KeyGesture(Key.None, ModifierKeys.None, validateGesture: false), null, CultureInfo.InvariantCulture, string.Empty }; 161yield return new object?[] { string.Empty, null, CultureInfo.InvariantCulture, null }; 164yield return new object?[] { string.Empty, null, CultureInfo.InvariantCulture, new KeyGesture(Key.None, ModifierKeys.None, validateGesture: false) }; 165yield return new object?[] { string.Empty, null, CultureInfo.InvariantCulture, new KeyGesture(Key.None, ModifierKeys.Control, validateGesture: false) }; 166yield return new object?[] { string.Empty, null, new CultureInfo("de-DE"), new KeyGesture(Key.None, ModifierKeys.Windows, validateGesture: false) }; 167yield return new object?[] { string.Empty, null, new CultureInfo("ru-RU"), new KeyGesture(Key.None, ModifierKeys.Alt, validateGesture: false) };
System\Windows\Input\Command\MouseGestureConverter.Tests.cs (3)
93yield return new object?[] { new MouseGesture(MouseAction.None, ModifierKeys.None), null, CultureInfo.InvariantCulture, string.Empty }; 153yield return new object?[] { string.Empty, null, CultureInfo.InvariantCulture, null }; 156yield return new object?[] { string.Empty, null, CultureInfo.InvariantCulture, new MouseGesture(MouseAction.None, ModifierKeys.None) };
System\Windows\Input\MouseActionConverter.Tests.cs (3)
83yield return new object?[] { MouseAction.None, null, CultureInfo.InvariantCulture, string.Empty }; 87yield return new object?[] { MouseAction.None, null, CultureInfo.InvariantCulture, string.Empty }; 137yield return new object?[] { string.Empty, null, CultureInfo.InvariantCulture, MouseAction.None };
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
272yield return new object[] { string.Empty, typeof(string), CultureInfo.InvariantCulture };
System\Windows\TextDecorationCollectionConverter.Tests.cs (3)
63yield return new object[] { new TextDecorationCollection(), CultureInfo.InvariantCulture, string.Empty }; 68yield return new object[] { new TextDecorationCollection(), new CultureInfo("ru-RU"), string.Empty }; 138yield return new object[] { new TextDecorationCollection(), 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)
601if (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\Microsoft.DotNet.Wpf\src\Common\src\System\AppContextDefaultValues.cs (1)
19PopulateDefaultValuesPartial(".NETCoreApp", string.Empty, 30000);
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)); 946item = String.Empty; 1595string 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)
553if (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, 2585if (inputGestureText != String.Empty)
System\Windows\Controls\PasswordBox.cs (3)
124this.Password = String.Empty; 176value = String.Empty; 1120this.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)
3333HwndSourceParameters 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); 12253return args.IsEmpty ? string.Empty : string.Format(CultureInfo.InvariantCulture, s_format[args.Length], args); 13019return 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)
1070errors = 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; 8102string instructionName = string.Empty; 8631contentType = string.Empty; 8637if (_wpfPayload != null && contentType != string.Empty && !skipImage) 8833dnListText.Xaml = string.Empty; 11331if (fs.IsContentDestination && !fs.IsHidden && text != string.Empty) 11478token.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)
3299_changeBlockUndoRecord = new ChangeBlockUndoRecord(this, String.Empty);
System\windows\Documents\TextEditor.cs (2)
1183return string.Empty; 1208return 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)
832nsPrefix = string.Empty; 970private string _path = String.Empty; // the path 974private 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)
813new FrameworkPropertyMetadata(String.Empty,
PresentationFramework.Tests (2)
System\Windows\Controls\VirtualizationCacheLengthConverter.Tests.cs (2)
211yield return new object?[] { new CultureInfo("ru-RU"), string.Empty }; 212yield return new object?[] { CultureInfo.InvariantCulture, 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)
1834Name = 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;
ProjectCachePlugin (1)
AssemblyMockCache.cs (1)
33: string.Empty;
RateLimitingSample (1)
SampleRateLimiterPolicy.cs (1)
28return RateLimitPartition.GetSlidingWindowLimiter<string>(string.Empty, key => new SlidingWindowRateLimiterOptions
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
19new TestFileInfo(string.Empty)
RazorPagesWebSite (1)
StartupWithoutEndpointRouting.cs (1)
23options.Conventions.AddPageRoute("/Pages/NotTheRoot", string.Empty);
RazorWebSite (2)
Controllers\HtmlHelperOptionsController.cs (2)
25ModelState.AddModelError(string.Empty, "A model error occurred."); 45ModelState.AddModelError(string.Empty, "A model error occurred.");
ReachFramework (18)
AlphaFlattener\MetroDevice.cs (1)
770throw 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;
Replay (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
385Output = output ?? string.Empty;
src\Compilers\Shared\BuildServerConnection.cs (1)
581.Replace("=", string.Empty);
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (913)
IOperation\IOperationTests.vb (11)
277Dim expectedDiagnostics = String.Empty 325Dim expectedDiagnostics = String.Empty 566Dim expectedDiagnostics = String.Empty 601Dim expectedDiagnostics = String.Empty 623Dim expectedDiagnostics = String.Empty 658Dim expectedDiagnostics = String.Empty 702Dim expectedDiagnostics = String.Empty 740Dim expectedDiagnostics = String.Empty 772Dim expectedDiagnostics = String.Empty 806Dim expectedDiagnostics = String.Empty 839Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ArrayCreationAndInitializer.vb (34)
37Dim expectedDiagnostics = String.Empty 64Dim expectedDiagnostics = String.Empty 96Dim expectedDiagnostics = String.Empty 127Dim expectedDiagnostics = String.Empty 163Dim expectedDiagnostics = String.Empty 197Dim expectedDiagnostics = String.Empty 224Dim expectedDiagnostics = String.Empty 259Dim expectedDiagnostics = String.Empty 363Dim expectedDiagnostics = String.Empty 393Dim expectedDiagnostics = String.Empty 453Dim expectedDiagnostics = String.Empty 484Dim expectedDiagnostics = String.Empty 523Dim expectedDiagnostics = String.Empty 581Dim expectedDiagnostics = String.Empty 617Dim expectedDiagnostics = String.Empty 645Dim expectedDiagnostics = String.Empty 685Dim expectedDiagnostics = String.Empty 717Dim expectedDiagnostics = String.Empty 923Dim expectedDiagnostics = String.Empty 966Dim expectedDiagnostics = String.Empty 1102Dim expectedDiagnostics = String.Empty 1140Dim expectedDiagnostics = String.Empty 1258Dim expectedDiagnostics = String.Empty 1311Dim expectedDiagnostics = String.Empty 1337Dim expectedDiagnostics = String.Empty 1589Dim expectedDiagnostics = String.Empty 1697Dim expectedDiagnostics = String.Empty 1927Dim expectedDiagnostics = String.Empty 2332Dim expectedDiagnostics = String.Empty 2459Dim expectedDiagnostics = String.Empty 2575Dim expectedDiagnostics = String.Empty 2706Dim expectedDiagnostics = String.Empty 2994Dim expectedDiagnostics = String.Empty 3163Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IAnonymousFunctionOperation.vb (5)
26Dim expectedDiagnostics = String.Empty 169Dim expectedDiagnostics = String.Empty 268Dim expectedDiagnostics = String.Empty 382Dim expectedDiagnostics = String.Empty 544Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IAnonymousObjectCreationOperation.vb (10)
27Dim expectedDiagnostics = String.Empty 111Dim expectedDiagnostics = String.Empty 199Dim expectedDiagnostics = String.Empty 280Dim expectedDiagnostics = String.Empty 408Dim expectedDiagnostics = String.Empty 515Dim expectedDiagnostics = String.Empty 634Dim expectedDiagnostics = String.Empty 1205Dim expectedDiagnostics = String.Empty 1324Dim expectedDiagnostics = String.Empty 1443Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IArgument.vb (33)
42Dim expectedDiagnostics = String.Empty 75Dim expectedDiagnostics = String.Empty 108Dim expectedDiagnostics = String.Empty 141Dim expectedDiagnostics = String.Empty 178Dim expectedDiagnostics = String.Empty 215Dim expectedDiagnostics = String.Empty 252Dim expectedDiagnostics = String.Empty 289Dim expectedDiagnostics = String.Empty 318Dim expectedDiagnostics = String.Empty 348Dim expectedDiagnostics = String.Empty 383Dim expectedDiagnostics = String.Empty 413Dim expectedDiagnostics = String.Empty 445Dim expectedDiagnostics = String.Empty 475Dim expectedDiagnostics = String.Empty 513Dim expectedDiagnostics = String.Empty 551Dim expectedDiagnostics = String.Empty 586Dim expectedDiagnostics = String.Empty 627Dim expectedDiagnostics = String.Empty 668Dim expectedDiagnostics = String.Empty 802Dim expectedDiagnostics = String.Empty 931Dim expectedDiagnostics = String.Empty 971Dim expectedDiagnostics = String.Empty 1011Dim expectedDiagnostics = String.Empty 1160Dim expectedDiagnostics = String.Empty 1196Dim expectedDiagnostics = String.Empty 1233Dim expectedDiagnostics = String.Empty 1271Dim expectedDiagnostics = String.Empty 1295Dim expectedDiagnostics = String.Empty 1319Dim expectedDiagnostics = String.Empty 1343Dim expectedDiagnostics = String.Empty 1377Dim expectedDiagnostics = String.Empty 1412Dim expectedDiagnostics = String.Empty 1446Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IArrayElementReferenceExpression.vb (21)
32Dim expectedDiagnostics = String.Empty 55Dim expectedDiagnostics = String.Empty 85Dim expectedDiagnostics = String.Empty 109Dim expectedDiagnostics = String.Empty 133Dim expectedDiagnostics = String.Empty 164Dim expectedDiagnostics = String.Empty 191Dim expectedDiagnostics = String.Empty 226Dim expectedDiagnostics = String.Empty 262Dim expectedDiagnostics = String.Empty 288Dim expectedDiagnostics = String.Empty 316Dim expectedDiagnostics = String.Empty 348Dim expectedDiagnostics = String.Empty 380Dim expectedDiagnostics = String.Empty 406Dim expectedDiagnostics = String.Empty 814Dim expectedDiagnostics = String.Empty 869Dim expectedDiagnostics = String.Empty 964Dim expectedDiagnostics = String.Empty 1071Dim expectedDiagnostics = String.Empty 1178Dim expectedDiagnostics = String.Empty 1323Dim expectedDiagnostics = String.Empty 1503Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IAttributeOperation.vb (15)
43Dim expectedDiagnostics = String.Empty 79Dim expectedDiagnostics = String.Empty 117Dim expectedDiagnostics = String.Empty 152Dim expectedDiagnostics = String.Empty 208Dim expectedDiagnostics = String.Empty 243Dim expectedDiagnostics = String.Empty 320Dim expectedDiagnostics = String.Empty 356Dim expectedDiagnostics = String.Empty 393Dim expectedDiagnostics = String.Empty 497Dim expectedDiagnostics = String.Empty 531Dim expectedDiagnostics = String.Empty 563Dim expectedDiagnostics = String.Empty 670Dim expectedDiagnostics = String.Empty 707Dim expectedDiagnostics = String.Empty 743Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IAwaitExpression.vb (6)
40Dim expectedDiagnostics = String.Empty 64Dim expectedDiagnostics = String.Empty 89Dim expectedDiagnostics = String.Empty 242Dim expectedDiagnostics = String.Empty 281Dim expectedDiagnostics = String.Empty 319Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IBinaryOperatorExpression.vb (56)
604Dim expectedDiagnostics = String.Empty 993Dim expectedDiagnostics = String.Empty 1156Dim expectedDiagnostics = String.Empty 1300Dim expectedDiagnostics = String.Empty 1442Dim expectedDiagnostics = String.Empty 1843Dim expectedDiagnostics = String.Empty 1945Dim expectedDiagnostics = String.Empty 1965Dim expectedDiagnostics = String.Empty 2074Dim expectedDiagnostics = String.Empty 2187Dim expectedDiagnostics = String.Empty 2342Dim expectedDiagnostics = String.Empty 2487Dim expectedDiagnostics = String.Empty 2600Dim expectedDiagnostics = String.Empty 2713Dim expectedDiagnostics = String.Empty 2826Dim expectedDiagnostics = String.Empty 2939Dim expectedDiagnostics = String.Empty 3064Dim expectedDiagnostics = String.Empty 3173Dim expectedDiagnostics = String.Empty 3287Dim expectedDiagnostics = String.Empty 3389Dim expectedDiagnostics = String.Empty 3491Dim expectedDiagnostics = String.Empty 3593Dim expectedDiagnostics = String.Empty 3695Dim expectedDiagnostics = String.Empty 3797Dim expectedDiagnostics = String.Empty 3899Dim expectedDiagnostics = String.Empty 3998Dim expectedDiagnostics = String.Empty 4097Dim expectedDiagnostics = String.Empty 4199Dim expectedDiagnostics = String.Empty 4301Dim expectedDiagnostics = String.Empty 4403Dim expectedDiagnostics = String.Empty 4502Dim expectedDiagnostics = String.Empty 4601Dim expectedDiagnostics = String.Empty 4700Dim expectedDiagnostics = String.Empty 4816Dim expectedDiagnostics = String.Empty 4934Dim expectedDiagnostics = String.Empty 5100Dim expectedDiagnostics = String.Empty 5282Dim expectedDiagnostics = String.Empty 5395Dim expectedDiagnostics = String.Empty 5508Dim expectedDiagnostics = String.Empty 5653Dim expectedDiagnostics = String.Empty 6170Dim expectedDiagnostics = String.Empty 6295Dim expectedDiagnostics = String.Empty 6530Dim expectedDiagnostics = String.Empty 6895Dim expectedDiagnostics = String.Empty 7020Dim expectedDiagnostics = String.Empty 7506Dim expectedDiagnostics = String.Empty 7603Dim expectedDiagnostics = String.Empty 7689Dim expectedDiagnostics = String.Empty 7775Dim expectedDiagnostics = String.Empty 7910Dim expectedDiagnostics = String.Empty 8040Dim expectedDiagnostics = String.Empty 8130Dim expectedDiagnostics = String.Empty 8218Dim expectedDiagnostics = String.Empty 8292Dim expectedDiagnostics = String.Empty 8381Dim expectedDiagnostics = String.Empty 8470Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IBlockStatement_MethodBlocks.vb (10)
46Dim expectedDiagnostics = String.Empty 89Dim expectedDiagnostics = String.Empty 120Dim expectedDiagnostics = String.Empty 150Dim expectedDiagnostics = String.Empty 239Dim expectedDiagnostics = String.Empty 330Dim expectedDiagnostics = String.Empty 377Dim expectedDiagnostics = String.Empty 424Dim expectedDiagnostics = String.Empty 471Dim expectedDiagnostics = String.Empty 522Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IBranchOperation.vb (21)
92Dim expectedDiagnostics = String.Empty 162Dim expectedDiagnostics = String.Empty 223Dim expectedDiagnostics = String.Empty 375Dim expectedDiagnostics = String.Empty 436Dim expectedDiagnostics = String.Empty 589Dim expectedDiagnostics = String.Empty 657Dim expectedDiagnostics = String.Empty 765Dim expectedDiagnostics = String.Empty 1457Dim expectedDiagnostics = String.Empty 1508Dim expectedDiagnostics = String.Empty 1852Dim expectedDiagnostics = String.Empty 1889Dim expectedDiagnostics = String.Empty 1923Dim expectedDiagnostics = String.Empty 1992Dim expectedDiagnostics = String.Empty 2062Dim expectedDiagnostics = String.Empty 2134Dim expectedDiagnostics = String.Empty 2209Dim expectedDiagnostics = String.Empty 2284Dim expectedDiagnostics = String.Empty 2357Dim expectedDiagnostics = String.Empty 2403Dim expectedDiagnostics = String.Empty 2450Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ICompoundAssignmentOperation.vb (13)
148Dim expectedDiagnostics = String.Empty 189Dim expectedDiagnostics = String.Empty 233Dim expectedDiagnostics = String.Empty 265Dim expectedDiagnostics = String.Empty 446Dim expectedDiagnostics = String.Empty 546Dim expectedDiagnostics = String.Empty 646Dim expectedDiagnostics = String.Empty 746Dim expectedDiagnostics = String.Empty 850Dim expectedDiagnostics = String.Empty 950Dim expectedDiagnostics = String.Empty 1054Dim expectedDiagnostics = String.Empty 1158Dim expectedDiagnostics = String.Empty 1258Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IConditionalAccessExpression.vb (6)
38Dim expectedDiagnostics = String.Empty 69Dim expectedDiagnostics = String.Empty 439Dim expectedDiagnostics = String.Empty 625Dim expectedDiagnostics = String.Empty 743Dim expectedDiagnostics = String.Empty 848Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IConversionExpression.vb (55)
43Dim expectedDiagnostics = String.Empty 75Dim expectedDiagnostics = String.Empty 107Dim expectedDiagnostics = String.Empty 143Dim expectedDiagnostics = String.Empty 178Dim expectedDiagnostics = String.Empty 254Dim expectedDiagnostics = String.Empty 419Dim expectedDiagnostics = String.Empty 459Dim expectedDiagnostics = String.Empty 533Dim expectedDiagnostics = String.Empty 565Dim expectedDiagnostics = String.Empty 642Dim expectedDiagnostics = String.Empty 725Dim expectedDiagnostics = String.Empty 806Dim expectedDiagnostics = String.Empty 842Dim expectedDiagnostics = String.Empty 883Dim expectedDiagnostics = String.Empty 923Dim expectedDiagnostics = String.Empty 953Dim expectedDiagnostics = String.Empty 992Dim expectedDiagnostics = String.Empty 1081Dim expectedDiagnostics = String.Empty 1126Dim expectedDiagnostics = String.Empty 1206Dim expectedDiagnostics = String.Empty 1241Dim expectedDiagnostics = String.Empty 1364Dim expectedDiagnostics = String.Empty 1391Dim expectedDiagnostics = String.Empty 1428Dim expectedDiagnostics = String.Empty 1553Dim expectedDiagnostics = String.Empty 1595Dim expectedDiagnostics = String.Empty 1675Dim expectedDiagnostics = String.Empty 1805Dim expectedDiagnostics = String.Empty 1888Dim expectedDiagnostics = String.Empty 1924Dim expectedDiagnostics = String.Empty 1998Dim expectedDiagnostics = String.Empty 2031Dim expectedDiagnostics = String.Empty 2062Dim expectedDiagnostics = String.Empty 2102Dim expectedDiagnostics = String.Empty 2143Dim expectedDiagnostics = String.Empty 2174Dim expectedDiagnostics = String.Empty 2221Dim expectedDiagnostics = String.Empty 2265Dim expectedDiagnostics = String.Empty 2357Dim expectedDiagnostics = String.Empty 2394Dim expectedDiagnostics = String.Empty 2470Dim expectedDiagnostics = String.Empty 2656Dim expectedDiagnostics = String.Empty 2739Dim expectedDiagnostics = String.Empty 2812Dim expectedDiagnostics = String.Empty 2849Dim expectedDiagnostics = String.Empty 2886Dim expectedDiagnostics = String.Empty 2932Dim expectedDiagnostics = String.Empty 2966Dim expectedDiagnostics = String.Empty 3047Dim expectedDiagnostics = String.Empty 3091Dim expectedDiagnostics = String.Empty 3135Dim expectedDiagnostics = String.Empty 3180Dim expectedDiagnostics = String.Empty 3238Dim expectedDiagnostics = String.Empty 3280Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IDelegateCreationExpression.vb (60)
59Dim expectedDiagnostics = String.Empty 97Dim expectedDiagnostics = String.Empty 343Dim expectedDiagnostics = String.Empty 391Dim expectedDiagnostics = String.Empty 427Dim expectedDiagnostics = String.Empty 686Dim expectedDiagnostics = String.Empty 722Dim expectedDiagnostics = String.Empty 752Dim expectedDiagnostics = String.Empty 837Dim expectedDiagnostics = String.Empty 1090Dim expectedDiagnostics = String.Empty 1128Dim expectedDiagnostics = String.Empty 1166Dim expectedDiagnostics = String.Empty 1419Dim expectedDiagnostics = String.Empty 1455Dim expectedDiagnostics = String.Empty 1492Dim expectedDiagnostics = String.Empty 1581Dim expectedDiagnostics = String.Empty 1616Dim expectedDiagnostics = String.Empty 1825Dim expectedDiagnostics = String.Empty 1860Dim expectedDiagnostics = String.Empty 1904Dim expectedDiagnostics = String.Empty 2025Dim expectedDiagnostics = String.Empty 2068Dim expectedDiagnostics = String.Empty 2111Dim expectedDiagnostics = String.Empty 2154Dim expectedDiagnostics = String.Empty 2197Dim expectedDiagnostics = String.Empty 2240Dim expectedDiagnostics = String.Empty 2284Dim expectedDiagnostics = String.Empty 2364Dim expectedDiagnostics = String.Empty 2399Dim expectedDiagnostics = String.Empty 2439Dim expectedDiagnostics = String.Empty 2465Dim expectedDiagnostics = String.Empty 2501Dim expectedDiagnostics = String.Empty 2714Dim expectedDiagnostics = String.Empty 2750Dim expectedDiagnostics = String.Empty 2827Dim expectedDiagnostics = String.Empty 2855Dim expectedDiagnostics = String.Empty 3032Dim expectedDiagnostics = String.Empty 3063Dim expectedDiagnostics = String.Empty 3094Dim expectedDiagnostics = String.Empty 3122Dim expectedDiagnostics = String.Empty 3341Dim expectedDiagnostics = String.Empty 3373Dim expectedDiagnostics = String.Empty 3404Dim expectedDiagnostics = String.Empty 3432Dim expectedDiagnostics = String.Empty 3651Dim expectedDiagnostics = String.Empty 3683Dim expectedDiagnostics = String.Empty 3712Dim expectedDiagnostics = String.Empty 3741Dim expectedDiagnostics = String.Empty 3848Dim expectedDiagnostics = String.Empty 3876Dim expectedDiagnostics = String.Empty 4082Dim expectedDiagnostics = String.Empty 4148Dim expectedDiagnostics = String.Empty 4181Dim expectedDiagnostics = String.Empty 4364Dim expectedDiagnostics = String.Empty 4396Dim expectedDiagnostics = String.Empty 4434Dim expectedDiagnostics = String.Empty 4477Dim expectedDiagnostics = String.Empty 4506Dim expectedDiagnostics = String.Empty 4550Dim expectedDiagnostics = String.Empty 4636Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IDynamicInvocationExpression.vb (19)
37Dim expectedDiagnostics = String.Empty 73Dim expectedDiagnostics = String.Empty 110Dim expectedDiagnostics = String.Empty 149Dim expectedDiagnostics = String.Empty 189Dim expectedDiagnostics = String.Empty 267Dim expectedDiagnostics = String.Empty 310Dim expectedDiagnostics = String.Empty 355Dim expectedDiagnostics = String.Empty 486Dim expectedDiagnostics = String.Empty 537Dim expectedDiagnostics = String.Empty 580Dim expectedDiagnostics = String.Empty 675Dim expectedDiagnostics = String.Empty 762Dim expectedDiagnostics = String.Empty 848Dim expectedDiagnostics = String.Empty 946Dim expectedDiagnostics = String.Empty 1048Dim expectedDiagnostics = String.Empty 1193Dim expectedDiagnostics = String.Empty 1307Dim expectedDiagnostics = String.Empty 1434Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IDynamicMemberReferenceExpression.vb (14)
38Dim expectedDiagnostics = String.Empty 69Dim expectedDiagnostics = String.Empty 134Dim expectedDiagnostics = String.Empty 204Dim expectedDiagnostics = String.Empty 236Dim expectedDiagnostics = String.Empty 305Dim expectedDiagnostics = String.Empty 343Dim expectedDiagnostics = String.Empty 376Dim expectedDiagnostics = String.Empty 413Dim expectedDiagnostics = String.Empty 451Dim expectedDiagnostics = String.Empty 492Dim expectedDiagnostics = String.Empty 587Dim expectedDiagnostics = String.Empty 683Dim expectedDiagnostics = String.Empty 722Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IEndOperation.vb (10)
23Dim expectedDiagnostics = String.Empty 56Dim expectedDiagnostics = String.Empty 111Dim expectedDiagnostics = String.Empty 169Dim expectedDiagnostics = String.Empty 210Dim expectedDiagnostics = String.Empty 246Dim expectedDiagnostics = String.Empty 308Dim expectedDiagnostics = String.Empty 356Dim expectedDiagnostics = String.Empty 405Dim expectedDiagnostics = String.Empty 451Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IEventAssignmentExpression.vb (12)
48Dim expectedDiagnostics = String.Empty 87Dim expectedDiagnostics = String.Empty 126Dim expectedDiagnostics = String.Empty 165Dim expectedDiagnostics = String.Empty 346Dim expectedDiagnostics = String.Empty 433Dim expectedDiagnostics = String.Empty 577Dim expectedDiagnostics = String.Empty 664Dim expectedDiagnostics = String.Empty 790Dim expectedDiagnostics = String.Empty 1052Dim expectedDiagnostics = String.Empty 1088Dim expectedDiagnostics = String.Empty 1178Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IEventReferenceOperation.vb (4)
36Dim expectedDiagnostics = String.Empty 96Dim expectedDiagnostics = String.Empty 196Dim expectedDiagnostics = String.Empty 284Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IFieldReferenceExpression.vb (10)
43Dim expectedDiagnostics = String.Empty 66Dim expectedDiagnostics = String.Empty 89Dim expectedDiagnostics = String.Empty 114Dim expectedDiagnostics = String.Empty 137Dim expectedDiagnostics = String.Empty 164Dim expectedDiagnostics = String.Empty 223Dim expectedDiagnostics = String.Empty 283Dim expectedDiagnostics = String.Empty 348Dim expectedDiagnostics = String.Empty 444Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IForEachLoopStatement.vb (21)
621Dim expectedDiagnostics = String.Empty 1072Dim expectedDiagnostics = String.Empty 1109Dim expectedDiagnostics = String.Empty 1154Dim expectedDiagnostics = String.Empty 1199Dim expectedDiagnostics = String.Empty 1257Dim expectedDiagnostics = String.Empty 1386Dim expectedDiagnostics = String.Empty 1531Dim expectedDiagnostics = String.Empty 1640Dim expectedDiagnostics = String.Empty 1750Dim expectedDiagnostics = String.Empty 1852Dim expectedDiagnostics = String.Empty 1971Dim expectedDiagnostics = String.Empty 2214Dim expectedDiagnostics = String.Empty 2331Dim expectedDiagnostics = String.Empty 2454Dim expectedDiagnostics = String.Empty 2568Dim expectedDiagnostics = String.Empty 2682Dim expectedDiagnostics = String.Empty 2797Dim expectedDiagnostics = String.Empty 2924Dim expectedDiagnostics = String.Empty 3145Dim expectedDiagnostics = String.Empty 3256Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IForLoopStatement.vb (35)
943Dim expectedDiagnostics = String.Empty 1048Dim expectedDiagnostics = String.Empty 1394Dim expectedDiagnostics = String.Empty 1438Dim expectedDiagnostics = String.Empty 1503Dim expectedDiagnostics = String.Empty 1651Dim expectedDiagnostics = String.Empty 1751Dim expectedDiagnostics = String.Empty 1853Dim expectedDiagnostics = String.Empty 1969Dim expectedDiagnostics = String.Empty 2111Dim expectedDiagnostics = String.Empty 2214Dim expectedDiagnostics = String.Empty 2333Dim expectedDiagnostics = String.Empty 2435Dim expectedDiagnostics = String.Empty 3078Dim expectedDiagnostics = String.Empty 3320Dim expectedDiagnostics = String.Empty 3654Dim expectedDiagnostics = String.Empty 3990Dim expectedDiagnostics = String.Empty 4359Dim expectedDiagnostics = String.Empty 4754Dim expectedDiagnostics = String.Empty 5330Dim expectedDiagnostics = String.Empty 5438Dim expectedDiagnostics = String.Empty 6040Dim expectedDiagnostics = String.Empty 6384Dim expectedDiagnostics = String.Empty 6550Dim expectedDiagnostics = String.Empty 6721Dim expectedDiagnostics = String.Empty 7140Dim expectedDiagnostics = String.Empty 7547Dim expectedDiagnostics = String.Empty 7652Dim expectedDiagnostics = String.Empty 7755Dim expectedDiagnostics = String.Empty 8126Dim expectedDiagnostics = String.Empty 8441Dim expectedDiagnostics = String.Empty 8575Dim expectedDiagnostics = String.Empty 8713Dim expectedDiagnostics = String.Empty 8857Dim expectedDiagnostics = String.Empty 8932Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IIfStatement.vb (20)
47Dim expectedDiagnostics = String.Empty 88Dim expectedDiagnostics = String.Empty 141Dim expectedDiagnostics = String.Empty 191Dim expectedDiagnostics = String.Empty 230Dim expectedDiagnostics = String.Empty 265Dim expectedDiagnostics = String.Empty 314Dim expectedDiagnostics = String.Empty 365Dim expectedDiagnostics = String.Empty 439Dim expectedDiagnostics = String.Empty 513Dim expectedDiagnostics = String.Empty 569Dim expectedDiagnostics = String.Empty 651Dim expectedDiagnostics = String.Empty 865Dim expectedDiagnostics = String.Empty 914Dim expectedDiagnostics = String.Empty 974Dim expectedDiagnostics = String.Empty 1012Dim expectedDiagnostics = String.Empty 1044Dim expectedDiagnostics = String.Empty 1064Dim expectedDiagnostics = String.Empty 1131Dim expectedDiagnostics = String.Empty 1196Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IInstanceReferenceExpression.vb (1)
35Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IInterpolatedStringExpression.vb (17)
31Dim expectedDiagnostics = String.Empty 56Dim expectedDiagnostics = String.Empty 85Dim expectedDiagnostics = String.Empty 161Dim expectedDiagnostics = String.Empty 220Dim expectedDiagnostics = String.Empty 256Dim expectedDiagnostics = String.Empty 321Dim expectedDiagnostics = String.Empty 374Dim expectedDiagnostics = String.Empty 463Dim expectedDiagnostics = String.Empty 505Dim expectedDiagnostics = String.Empty 586Dim expectedDiagnostics = String.Empty 674Dim expectedDiagnostics = String.Empty 791Dim expectedDiagnostics = String.Empty 872Dim expectedDiagnostics = String.Empty 968Dim expectedDiagnostics = String.Empty 1079Dim expectedDiagnostics = String.Empty 1190Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IInvocationOperation.vb (7)
69Dim expectedDiagnostics = String.Empty 118Dim expectedDiagnostics = String.Empty 210Dim expectedDiagnostics = String.Empty 296Dim expectedDiagnostics = String.Empty 367Dim expectedDiagnostics = String.Empty 447Dim expectedDiagnostics = String.Empty 535Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ILabelStatement.vb (1)
50Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ILiteralOperation.vb (1)
24Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ILockStatement.vb (7)
51Dim expectedDiagnostics = String.Empty 79Dim expectedDiagnostics = String.Empty 107Dim expectedDiagnostics = String.Empty 264Dim expectedDiagnostics = String.Empty 297Dim expectedDiagnostics = String.Empty 374Dim expectedDiagnostics = String.Empty 473Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IMethodReferenceOperation.vb (2)
89Dim expectedDiagnostics = String.Empty 190Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_INameOfOperation.vb (2)
70Dim expectedDiagnostics = String.Empty 113Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_INoneOperation.vb (2)
22Dim expectedDiagnostics = String.Empty 64Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_INoPiaObjectCreationOperation.vb (7)
67Dim expectedDiagnostics = String.Empty 123Dim expectedDiagnostics = String.Empty 169Dim expectedDiagnostics = String.Empty 212Dim expectedDiagnostics = String.Empty 302Dim expectedDiagnostics = String.Empty 392Dim expectedDiagnostics = String.Empty 457Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_InvalidExpression.vb (1)
958VerifyOperationTreeAndDiagnosticsForTest(Of InvocationExpressionSyntax)("Option Strict Off" + Environment.NewLine + source, expectedNonStrictOperationTree, expectedDiagnostics:=String.Empty)
IOperation\IOperationTests_IObjectCreationExpression.vb (29)
268Dim expectedDiagnostics = String.Empty 340Dim expectedDiagnostics = String.Empty 443Dim expectedDiagnostics = String.Empty 639Dim expectedDiagnostics = String.Empty 721Dim expectedDiagnostics = String.Empty 756Dim expectedDiagnostics = String.Empty 840Dim expectedDiagnostics = String.Empty 909Dim expectedDiagnostics = String.Empty 976Dim expectedDiagnostics = String.Empty 1042Dim expectedDiagnostics = String.Empty 1110Dim expectedDiagnostics = String.Empty 1222Dim expectedDiagnostics = String.Empty 1298Dim expectedDiagnostics = String.Empty 1382Dim expectedDiagnostics = String.Empty 1462Dim expectedDiagnostics = String.Empty 1546Dim expectedDiagnostics = String.Empty 1634Dim expectedDiagnostics = String.Empty 1711Dim expectedDiagnostics = String.Empty 1827Dim expectedDiagnostics = String.Empty 1933Dim expectedDiagnostics = String.Empty 2094Dim expectedDiagnostics = String.Empty 2169Dim expectedDiagnostics = String.Empty 2292Dim expectedDiagnostics = String.Empty 2511Dim expectedDiagnostics = String.Empty 2610Dim expectedDiagnostics = String.Empty 2755Dim expectedDiagnostics = String.Empty 2969Dim expectedDiagnostics = String.Empty 3065Dim expectedDiagnostics = String.Empty 3213Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IOmittedArgumentOperation.vb (2)
211Dim expectedDiagnostics = String.Empty 261Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IParameterReferenceExpression.vb (21)
37Dim expectedDiagnostics = String.Empty 78Dim expectedDiagnostics = String.Empty 128Dim expectedDiagnostics = String.Empty 169Dim expectedDiagnostics = String.Empty 216Dim expectedDiagnostics = String.Empty 315Dim expectedDiagnostics = String.Empty 413Dim expectedDiagnostics = String.Empty 449Dim expectedDiagnostics = String.Empty 474Dim expectedDiagnostics = String.Empty 523Dim expectedDiagnostics = String.Empty 582Dim expectedDiagnostics = String.Empty 613Dim expectedDiagnostics = String.Empty 644Dim expectedDiagnostics = String.Empty 696Dim expectedDiagnostics = String.Empty 729Dim expectedDiagnostics = String.Empty 798Dim expectedDiagnostics = String.Empty 828Dim expectedDiagnostics = String.Empty 851Dim expectedDiagnostics = String.Empty 882Dim expectedDiagnostics = String.Empty 913Dim expectedDiagnostics = String.Empty 1019Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IParenthesizedExpression.vb (19)
35Dim expectedDiagnostics = String.Empty 58Dim expectedDiagnostics = String.Empty 85Dim expectedDiagnostics = String.Empty 116Dim expectedDiagnostics = String.Empty 145Dim expectedDiagnostics = String.Empty 170Dim expectedDiagnostics = String.Empty 193Dim expectedDiagnostics = String.Empty 218Dim expectedDiagnostics = String.Empty 248Dim expectedDiagnostics = String.Empty 269Dim expectedDiagnostics = String.Empty 301Dim expectedDiagnostics = String.Empty 337Dim expectedDiagnostics = String.Empty 373Dim expectedDiagnostics = String.Empty 411Dim expectedDiagnostics = String.Empty 436Dim expectedDiagnostics = String.Empty 477Dim expectedDiagnostics = String.Empty 517Dim expectedDiagnostics = String.Empty 592Dim expectedDiagnostics = String.Empty 672Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IPropertyReferenceExpression.vb (9)
39Dim expectedDiagnostics = String.Empty 71Dim expectedDiagnostics = String.Empty 130Dim expectedDiagnostics = String.Empty 188Dim expectedDiagnostics = String.Empty 270Dim expectedDiagnostics = String.Empty 375Dim expectedDiagnostics = String.Empty 552Dim expectedDiagnostics = String.Empty 672Dim expectedDiagnostics = String.Empty 865Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IRaiseEventStatement.vb (14)
37Dim expectedDiagnostics = String.Empty 75Dim expectedDiagnostics = String.Empty 103Dim expectedDiagnostics = String.Empty 197Dim expectedDiagnostics = String.Empty 225Dim expectedDiagnostics = String.Empty 261Dim expectedDiagnostics = String.Empty 311Dim expectedDiagnostics = String.Empty 334Dim expectedDiagnostics = String.Empty 366Dim expectedDiagnostics = String.Empty 418Dim expectedDiagnostics = String.Empty 462Dim expectedDiagnostics = String.Empty 568Dim expectedDiagnostics = String.Empty 674Dim expectedDiagnostics = String.Empty 815Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IReDimOperation.vb (22)
40Dim expectedDiagnostics = String.Empty 70Dim expectedDiagnostics = String.Empty 92Dim expectedDiagnostics = String.Empty 114Dim expectedDiagnostics = String.Empty 151Dim expectedDiagnostics = String.Empty 197Dim expectedDiagnostics = String.Empty 227Dim expectedDiagnostics = String.Empty 262Dim expectedDiagnostics = String.Empty 294Dim expectedDiagnostics = String.Empty 340Dim expectedDiagnostics = String.Empty 696Dim expectedDiagnostics = String.Empty 894Dim expectedDiagnostics = String.Empty 1003Dim expectedDiagnostics = String.Empty 1161Dim expectedDiagnostics = String.Empty 1481Dim expectedDiagnostics = String.Empty 1597Dim expectedDiagnostics = String.Empty 1768Dim expectedDiagnostics = String.Empty 1846Dim expectedDiagnostics = String.Empty 1975Dim expectedDiagnostics = String.Empty 2114Dim expectedDiagnostics = String.Empty 2253Dim expectedDiagnostics = String.Empty 2358Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IReturnStatement.vb (8)
30Dim expectedDiagnostics = String.Empty 51Dim expectedDiagnostics = String.Empty 72Dim expectedDiagnostics = String.Empty 94Dim expectedDiagnostics = String.Empty 140Dim expectedDiagnostics = String.Empty 165Dim expectedDiagnostics = String.Empty 203Dim expectedDiagnostics = String.Empty 290Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IStopOperation.vb (1)
23Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ISwitchOperation.vb (73)
40Dim expectedDiagnostics = String.Empty 82Dim expectedDiagnostics = String.Empty 102Dim expectedDiagnostics = String.Empty 240Dim expectedDiagnostics = String.Empty 317Dim expectedDiagnostics = String.Empty 385Dim expectedDiagnostics = String.Empty 558Dim expectedDiagnostics = String.Empty 623Dim expectedDiagnostics = String.Empty 707Dim expectedDiagnostics = String.Empty 810Dim expectedDiagnostics = String.Empty 980Dim expectedDiagnostics = String.Empty 1538Dim expectedDiagnostics = String.Empty 1611Dim expectedDiagnostics = String.Empty 1677Dim expectedDiagnostics = String.Empty 1750Dim expectedDiagnostics = String.Empty 1834Dim expectedDiagnostics = String.Empty 1903Dim expectedDiagnostics = String.Empty 1976Dim expectedDiagnostics = String.Empty 2049Dim expectedDiagnostics = String.Empty 2122Dim expectedDiagnostics = String.Empty 2211Dim expectedDiagnostics = String.Empty 2334Dim expectedDiagnostics = String.Empty 2839Dim expectedDiagnostics = String.Empty 2939Dim expectedDiagnostics = String.Empty 3055Dim expectedDiagnostics = String.Empty 3139Dim expectedDiagnostics = String.Empty 3207Dim expectedDiagnostics = String.Empty 3309Dim expectedDiagnostics = String.Empty 3385Dim expectedDiagnostics = String.Empty 3944Dim expectedDiagnostics = String.Empty 4010Dim expectedDiagnostics = String.Empty 4083Dim expectedDiagnostics = String.Empty 4167Dim expectedDiagnostics = String.Empty 4236Dim expectedDiagnostics = String.Empty 4309Dim expectedDiagnostics = String.Empty 4382Dim expectedDiagnostics = String.Empty 4455Dim expectedDiagnostics = String.Empty 4544Dim expectedDiagnostics = String.Empty 4667Dim expectedDiagnostics = String.Empty 5069Dim expectedDiagnostics = String.Empty 5185Dim expectedDiagnostics = String.Empty 5253Dim expectedDiagnostics = String.Empty 5355Dim expectedDiagnostics = String.Empty 5431Dim expectedDiagnostics = String.Empty 5989Dim expectedDiagnostics = String.Empty 6055Dim expectedDiagnostics = String.Empty 6128Dim expectedDiagnostics = String.Empty 6212Dim expectedDiagnostics = String.Empty 6281Dim expectedDiagnostics = String.Empty 6354Dim expectedDiagnostics = String.Empty 6427Dim expectedDiagnostics = String.Empty 6500Dim expectedDiagnostics = String.Empty 6589Dim expectedDiagnostics = String.Empty 6712Dim expectedDiagnostics = String.Empty 6859Dim expectedDiagnostics = String.Empty 7111Dim expectedDiagnostics = String.Empty 7227Dim expectedDiagnostics = String.Empty 7307Dim expectedDiagnostics = String.Empty 7432Dim expectedDiagnostics = String.Empty 7531Dim expectedDiagnostics = String.Empty 8455Dim expectedDiagnostics = String.Empty 8533Dim expectedDiagnostics = String.Empty 8618Dim expectedDiagnostics = String.Empty 8725Dim expectedDiagnostics = String.Empty 8810Dim expectedDiagnostics = String.Empty 8938Dim expectedDiagnostics = String.Empty 9066Dim expectedDiagnostics = String.Empty 9194Dim expectedDiagnostics = String.Empty 9540Dim expectedDiagnostics = String.Empty 9753Dim expectedDiagnostics = String.Empty 9906Dim expectedDiagnostics = String.Empty 10059Dim expectedDiagnostics = String.Empty 10496Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ISymbolInitializer.vb (32)
55Dim expectedDiagnostics = String.Empty 73Dim expectedDiagnostics = String.Empty 91Dim expectedDiagnostics = String.Empty 167Dim expectedDiagnostics = String.Empty 190Dim expectedDiagnostics = String.Empty 249Dim expectedDiagnostics = String.Empty 305Dim expectedDiagnostics = String.Empty 334Dim expectedDiagnostics = String.Empty 363Dim expectedDiagnostics = String.Empty 386Dim expectedDiagnostics = String.Empty 409Dim expectedDiagnostics = String.Empty 459Dim expectedDiagnostics = String.Empty 493Dim expectedDiagnostics = String.Empty 527Dim expectedDiagnostics = String.Empty 569Dim expectedDiagnostics = String.Empty 610Dim expectedDiagnostics = String.Empty 705Dim expectedDiagnostics = String.Empty 815Dim expectedDiagnostics = String.Empty 909Dim expectedDiagnostics = String.Empty 1003Dim expectedDiagnostics = String.Empty 1266Dim expectedDiagnostics = String.Empty 1340Dim expectedDiagnostics = String.Empty 1374Dim expectedDiagnostics = String.Empty 1414Dim expectedDiagnostics = String.Empty 1454Dim expectedDiagnostics = String.Empty 1536Dim expectedDiagnostics = String.Empty 1585Dim expectedDiagnostics = String.Empty 1678Dim expectedDiagnostics = String.Empty 1771Dim expectedDiagnostics = String.Empty 1868Dim expectedDiagnostics = String.Empty 2033Dim expectedDiagnostics = String.Empty 2105Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ITranslatedQueryOperation.vb (4)
92Dim expectedDiagnostics = String.Empty 211Dim expectedDiagnostics = String.Empty 369Dim expectedDiagnostics = String.Empty 443Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ITupleExpression.vb (22)
34Dim expectedDiagnostics = String.Empty 67Dim expectedDiagnostics = String.Empty 98Dim expectedDiagnostics = String.Empty 137Dim expectedDiagnostics = String.Empty 168Dim expectedDiagnostics = String.Empty 207Dim expectedDiagnostics = String.Empty 233Dim expectedDiagnostics = String.Empty 267Dim expectedDiagnostics = String.Empty 293Dim expectedDiagnostics = String.Empty 330Dim expectedDiagnostics = String.Empty 362Dim expectedDiagnostics = String.Empty 402Dim expectedDiagnostics = String.Empty 457Dim expectedDiagnostics = String.Empty 523Dim expectedDiagnostics = String.Empty 564Dim expectedDiagnostics = String.Empty 616Dim expectedDiagnostics = String.Empty 650Dim expectedDiagnostics = String.Empty 695Dim expectedDiagnostics = String.Empty 834Dim expectedDiagnostics = String.Empty 908Dim expectedDiagnostics = String.Empty 993Dim expectedDiagnostics = String.Empty 1075Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ITypeOfExpression.vb (5)
30Dim expectedDiagnostics = String.Empty 51Dim expectedDiagnostics = String.Empty 171Dim expectedDiagnostics = String.Empty 211Dim expectedDiagnostics = String.Empty 253Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_ITypeParameterObjectCreation.vb (6)
23Dim expectedDiagnostics = String.Empty 45Dim expectedDiagnostics = String.Empty 77Dim expectedDiagnostics = String.Empty 152Dim expectedDiagnostics = String.Empty 268Dim expectedDiagnostics = String.Empty 382Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IUnaryOperatorExpression.vb (4)
2131Dim expectedDiagnostics = String.Empty 2158Dim expectedDiagnostics = String.Empty 2225Dim expectedDiagnostics = String.Empty 2265Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IUsingStatement.vb (15)
152Dim expectedDiagnostics = String.Empty 210Dim expectedDiagnostics = String.Empty 268Dim expectedDiagnostics = String.Empty 330Dim expectedDiagnostics = String.Empty 377Dim expectedDiagnostics = String.Empty 498Dim expectedDiagnostics = String.Empty 571Dim expectedDiagnostics = String.Empty 810Dim expectedDiagnostics = String.Empty 862Dim expectedDiagnostics = String.Empty 938Dim expectedDiagnostics = String.Empty 968Dim expectedDiagnostics = String.Empty 1004Dim expectedDiagnostics = String.Empty 1037Dim expectedDiagnostics = String.Empty 1162Dim expectedDiagnostics = String.Empty 1350Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IVariableDeclaration.vb (40)
275Dim expectedDiagnostics = String.Empty 311Dim expectedDiagnostics = String.Empty 345Dim expectedDiagnostics = String.Empty 390Dim expectedDiagnostics = String.Empty 422Dim expectedDiagnostics = String.Empty 455Dim expectedDiagnostics = String.Empty 563Dim expectedDiagnostics = String.Empty 642Dim expectedDiagnostics = String.Empty 760Dim expectedDiagnostics = String.Empty 796Dim expectedDiagnostics = String.Empty 828Dim expectedDiagnostics = String.Empty 1022Dim expectedDiagnostics = String.Empty 1327Dim expectedDiagnostics = String.Empty 1388Dim expectedDiagnostics = String.Empty 1418Dim expectedDiagnostics = String.Empty 2063Dim expectedDiagnostics = String.Empty 2100Dim expectedDiagnostics = String.Empty 2145Dim expectedDiagnostics = String.Empty 2175Dim expectedDiagnostics = String.Empty 2216Dim expectedDiagnostics = String.Empty 2244Dim expectedDiagnostics = String.Empty 2280Dim expectedDiagnostics = String.Empty 2317Dim expectedDiagnostics = String.Empty 2368Dim expectedDiagnostics = String.Empty 2591Dim expectedDiagnostics = String.Empty 2678Dim expectedDiagnostics = String.Empty 2708Dim expectedDiagnostics = String.Empty 2731Dim expectedDiagnostics = String.Empty 2763Dim expectedDiagnostics = String.Empty 2784Dim expectedDiagnostics = String.Empty 2864Dim expectedDiagnostics = String.Empty 2909Dim expectedDiagnostics = String.Empty 3074Dim expectedDiagnostics = String.Empty 3137Dim expectedDiagnostics = String.Empty 3204Dim expectedDiagnostics = String.Empty 3435Dim expectedDiagnostics = String.Empty 3576Dim expectedDiagnostics = String.Empty 3676Dim expectedDiagnostics = String.Empty 3729Dim expectedDiagnostics = String.Empty 3814Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IWhileUntilLoopStatement.vb (8)
116Dim expectedDiagnostics = String.Empty 1416Dim expectedDiagnostics = String.Empty 1553Dim expectedDiagnostics = String.Empty 1674Dim expectedDiagnostics = String.Empty 1794Dim expectedDiagnostics = String.Empty 1836Dim expectedDiagnostics = String.Empty 1878Dim expectedDiagnostics = String.Empty 1920Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_IWithStatement.vb (9)
57Dim expectedDiagnostics = String.Empty 113Dim expectedDiagnostics = String.Empty 173Dim expectedDiagnostics = String.Empty 242Dim expectedDiagnostics = String.Empty 372Dim expectedDiagnostics = String.Empty 521Dim expectedDiagnostics = String.Empty 610Dim expectedDiagnostics = String.Empty 697Dim expectedDiagnostics = String.Empty 776Dim expectedDiagnostics = String.Empty
IOperation\IOperationTests_TryCatch.vb (21)
70Dim expectedDiagnostics = String.Empty 139Dim expectedDiagnostics = String.Empty 176Dim expectedDiagnostics = String.Empty 225Dim expectedDiagnostics = String.Empty 285Dim expectedDiagnostics = String.Empty 427Dim expectedDiagnostics = String.Empty 461Dim expectedDiagnostics = String.Empty 625Dim expectedDiagnostics = String.Empty 663Dim expectedDiagnostics = String.Empty 701Dim expectedDiagnostics = String.Empty 749Dim expectedDiagnostics = String.Empty 787Dim expectedDiagnostics = String.Empty 871Dim expectedDiagnostics = String.Empty 904Dim expectedDiagnostics = String.Empty 926Dim expectedDiagnostics = String.Empty 950Dim expectedDiagnostics = String.Empty 1004Dim expectedDiagnostics = String.Empty 1105Dim expectedDiagnostics = String.Empty 1140Dim expectedDiagnostics = String.Empty 1172Dim expectedDiagnostics = String.Empty 1201Dim expectedDiagnostics = String.Empty
Roslyn.Diagnostics.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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;
Roslyn.VisualStudio.DiagnosticsWindow (3)
Loggers\OutputWindowLogger.cs (1)
45var functionString = functionId.ToString() + (cancellationToken.IsCancellationRequested ? " Canceled" : string.Empty);
OptionPages\InternalOptionsControl.cs (2)
179return string.Empty; 189return string.Empty;
Roslyn.VisualStudio.Next.UnitTests (1)
UnifiedSettings\TestModel\Input.cs (1)
52_ => string.Empty,
RunTests (2)
ProcessTestExecutor.cs (1)
160var resultData = string.Empty;
TestHistoryManager.cs (1)
55var credentials = new Microsoft.VisualStudio.Services.Common.VssBasicCredential(string.Empty, accessToken);
Sample (6)
src\OpenApi\test\Microsoft.AspNetCore.OpenApi.Tests\Shared\SharedTypes.cs (5)
69public string Make { get; set; } = string.Empty; 172public string Title { get; set; } = string.Empty; 175public string Assignee { get; set; } = string.Empty; 214public string Name { get; set; } = string.Empty; 220public string Name { get; set; } = string.Empty;
src\OpenApi\test\Microsoft.AspNetCore.OpenApi.Tests\Shared\SharedTypes.Polymorphism.cs (1)
11public string Color { get; set; } = string.Empty;
SemanticSearch.BuildTask (1)
src\Dependencies\Contracts\Range.cs (1)
62static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty;
ServerComparison.FunctionalTests (5)
HelloWorldTest.cs (2)
66return deploymentResult.HttpClient.GetAsync(string.Empty); 136var output = string.Empty;
NtlmAuthenticationTest.cs (1)
53return httpClient.GetAsync(string.Empty);
ResponseCompressionTests.cs (1)
144return httpClient.GetAsync(string.Empty);
ResponseTests.cs (1)
106return deploymentResult.HttpClient.GetAsync(string.Empty);
Shared (6)
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\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;
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
268var commitHash = string.Empty;
SignalRSamples (1)
Startup.cs (1)
58var commitHash = string.Empty;
SocialWeather (2)
Pipe\PipeWeatherStreamFormatter.cs (2)
24var zipCode = tokens.Length > 3 ? tokens[3] : string.Empty; 53var line = $"{report.Temperature}|{report.ReportTime}|{(int)report.Weather}|{report.ZipCode ?? string.Empty}";
Sockets.BindTests (2)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (2)
1037{ string.Empty, "http://127.0.0.1:5000/" } 1141{ string.Empty, new[] { "http://127.0.0.1:5000/", "http://[::1]:5000/" } }
System.CodeDom (37)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
2850string s = string.Empty; 3074return string.Empty;
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
2572string s = string.Empty;
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
38_baseType = string.Empty; 324return string.Empty;
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)
34get => _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)
33get => _methodName ?? 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)
48get => _name ?? 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)
15get => _name ?? string.Empty;
System\CodeDom\CodeTypeParameter.cs (1)
21get => _name ?? string.Empty;
System\CodeDom\CodeVariableDeclarationStatement.cs (1)
56get => _name ?? 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)
50public string CoreAssemblyFileName { get; set; } = 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)
23get => _options ??= 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)
23if (value.Equals(string.Empty)) 39if (value.Equals(string.Empty)) 56if (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)
61FilterString = 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 (73)
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)
1795ScanFactoriesRecursive(xmlUtil, parentConfigKey: string.Empty, factoryList: factoryList); 2149group = string.Empty; 2317ScanSectionsRecursive(xmlUtil, string.Empty, false, null, OverrideModeSetting.s_locationDefault, false); 2802ScanSectionsRecursive(xmlUtil, string.Empty, true, null, overrideMode, !inheritInChildApp); 2848ScanSectionsRecursive(xmlUtil, string.Empty, true, locationSubPath, overrideMode, !inheritInChildApp); 3677group: 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; 319defaultValue = 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\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\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
40return username ?? string.Empty; 54return 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)
370return string.Empty; 432public FormatParam(string? value) : this(0, value ?? string.Empty) { } 459public string String { get { return _string ?? string.Empty; } }
System.Data.Common (179)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
114return connectionString ?? string.Empty;
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)
800columnNameArray[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)
29private string? _connectionString = string.Empty; 284_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; 1275internal 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)
499dest.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)
679ds._namespaceURI = ns ?? string.Empty; // see fx\Data\XDO\ReadXml\SchemaM2.xml for more info 2211strType = string.Empty; 2377strType = string.Empty; 2508column.Namespace = string.Empty; 2519column.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; 1555var 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\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
114return connectionString ?? string.Empty;
src\libraries\Common\src\System\Data\Common\MultipartIdentifier.cs (2)
56ary[position] = string.Empty; 99parsedNames[stringCount] = string.Empty;
System\Data\Odbc\OdbcCommand.cs (1)
166return _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.Diagnostics.DiagnosticSource (14)
System\Diagnostics\Activity.cs (3)
64private static readonly ActivitySource s_defaultSource = new ActivitySource(string.Empty); 465OperationName = operationName ?? string.Empty; 1815return string.Empty;
System\Diagnostics\ActivityEvent.cs (1)
37Name = 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)
375_sessionId = string.Empty; 438_sessionId = string.Empty; 643string sessionId = 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.Process (13)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
40return username ?? string.Empty; 54return username ?? string.Empty;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (2)
62Enum.GetName(typeof(UnixFileSystemTypes), numericFormat) ?? string.Empty : 68format = string.Empty;
System\Diagnostics\Process.Unix.cs (2)
411if (verb != string.Empty && 1065public string MainWindowTitle => string.Empty;
System\Diagnostics\ProcessInfo.cs (1)
18internal string ProcessName { get; set; } = string.Empty;
System\Diagnostics\ProcessManager.Linux.cs (1)
97ProcessName = processName ?? Process.GetUntruncatedProcessName(procPid, ref procFsStat) ?? string.Empty,
System\Diagnostics\ProcessStartInfo.cs (5)
77get => _arguments ?? string.Empty; 136get => _fileName ?? string.Empty; 149get => _directory ?? string.Empty; 159get => _userName ?? string.Empty; 167get => _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; 59_displayName = displayName ?? string.Empty; 115return _description ?? string.Empty;
System\Diagnostics\TraceInternal.cs (2)
84internal static string AppName => s_appName ??= Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty; 201Fail(string.Empty);
System\Diagnostics\TraceListener.cs (6)
231Write(category + ": " + (message ?? string.Empty)); 304WriteLine(category + ": " + (message ?? string.Empty)); 331string? datastring = string.Empty; 346WriteLine(data != null ? string.Join(", ", data) : string.Empty); 353TraceEvent(eventCache, source, eventType, id, string.Empty); 416WriteLine(string.Empty);
System.Drawing.Common.Tests (33)
mono\System.Drawing\GraphicsTests.cs (11)
1577size = g.MeasureString(string.Empty, _font); 1579g.MeasureString(string.Empty.AsSpan(), _font); 1585size = g.MeasureString(string.Empty, null); 1587g.MeasureString(string.Empty.AsSpan(), null); 1611size = g.MeasureString(string.Empty, _font, SizeF.Empty); 1614size = g.MeasureString(string.Empty.AsSpan(), _font, SizeF.Empty); 1804string s = string.Empty; 1851regions = g.MeasureCharacterRanges(string.Empty, _font, default, null); 1853regions = g.MeasureCharacterRanges(string.Empty.AsSpan(), _font, default, null); 1860regions = g.MeasureCharacterRanges(string.Empty, null, default, null); 1862regions = g.MeasureCharacterRanges(string.Empty.AsSpan(), null, default, null);
System\Drawing\Drawing2D\GraphicsPathTests.cs (2)
1055gpi.AddString(string.Empty, FontFamily.GenericMonospace, 0, 10, new Point(10, 10), StringFormat.GenericDefault); 1058gpi.AddString(string.Empty, FontFamily.GenericMonospace, 0, 10, new PointF(10f, 10f), StringFormat.GenericDefault);
System\Drawing\FontConverterTests.cs (2)
78Font font = (Font)converter.ConvertFrom(string.Empty); 193return installedFonts.Families.Select(t => t.Name).Contains(string.Empty);
System\Drawing\IconTests.cs (2)
793Assert.Throws<IOException>(() => { Icon.ExtractIcon(string.Empty, 0, 16); }); 794Assert.Throws<IOException>(() => { Icon.ExtractIcon(string.Empty, 0); });
System\Drawing\ImageFormatConverterTests.cs (4)
136Assert.Equal(string.Empty, (string)_imgFmtConv.ConvertTo(null, typeof(string))); 137Assert.Equal(string.Empty, (string)_imgFmtConv.ConvertTo(null, CultureInfo.CreateSpecificCulture("ru-RU"), null, typeof(string))); 139Assert.Equal(string.Empty, (string)_imgFmtConvFrmTD.ConvertTo(null, typeof(string))); 140Assert.Equal(string.Empty, (string)_imgFmtConvFrmTD.ConvertTo(null, CultureInfo.CreateSpecificCulture("de-DE"), null, typeof(string)));
System\Drawing\ImageTests.cs (2)
513AssertExtensions.Throws<ArgumentException>("path", null, () => Image.FromFile(string.Empty)); 514AssertExtensions.Throws<ArgumentException>("path", null, () => Image.FromFile(string.Empty, useEmbeddedColorManagement: true));
System\Drawing\Imaging\ImageAttributesTests.cs (2)
1090Assert.Throws<ArgumentException>(() => imageAttr.SetOutputChannelColorProfile(string.Empty)); 1091Assert.Throws<ArgumentException>(() => imageAttr.SetOutputChannelColorProfile(string.Empty, ColorAdjustType.Default));
System\Drawing\Imaging\MetafileTests.cs (1)
82yield return new object[] { string.Empty };
System\Drawing\Printing\MarginsConverterTests.cs (2)
143Assert.Equal(string.Empty, (string)mc.ConvertTo(null, typeof(string))); 144Assert.Equal(string.Empty, (string)mc.ConvertTo(context, CultureInfo.CreateSpecificCulture("ru-RU"), null, typeof(string)));
System\Drawing\Printing\PaperSizeTests.cs (1)
124yield return new object[] { testData[0], string.Empty };
System\Drawing\Printing\PrintDocumentTests.cs (1)
81Assert.Equal(string.Empty, document.DocumentName);
System\Drawing\Printing\PrinterSettingsTests.cs (2)
286AssertExtensions.Throws<ArgumentNullException>(string.Empty, () => printerSettings.PrintFileName = string.Empty);
System\Drawing\Text\PrivateFontCollectionTests.cs (1)
100AssertExtensions.Throws<FileNotFoundException>(() => fontCollection.AddFontFile(string.Empty));
System.Drawing.Primitives (1)
System\Drawing\ColorTranslator.cs (1)
290string colorString = string.Empty;
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (2)
40str = string.Empty.AsSpan(); 57chars = string.Empty.AsSpan();
System\Formats\Asn1\AsnDecoder.Text.cs (1)
451str = string.Empty;
System.Formats.Tar (18)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
40return username ?? string.Empty; 54return username ?? string.Empty;
src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
27(true, false) => string.Empty,
System\Formats\Tar\PaxTarEntry.cs (2)
55_header._prefix = string.Empty; 96_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; 107get => _header._gName ?? string.Empty; 122get => _header._uName ?? string.Empty;
System\Formats\Tar\TarEntry.cs (1)
126get => _header._linkName ?? string.Empty;
System\Formats\Tar\TarHeader.cs (2)
145_ => string.Empty, 152_ => string.Empty,
System\Formats\Tar\TarHelpers.cs (1)
276return buffer.IsEmpty ? string.Empty : encoding.GetString(buffer);
System\Formats\Tar\TarWriter.Unix.cs (1)
94entry.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\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
320public string GetErrorMessage() => _zStream.msg != ZNullPtr ? Marshal.PtrToStringUTF8(_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\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
27(true, false) => string.Empty,
System\IO\Compression\ZipFile.Create.Async.cs (3)
350/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 378/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 408/// <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)
214/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 218/// <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. 245/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 249/// <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. 282/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 288/// <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. 322/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 328/// <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 (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (2)
62Enum.GetName(typeof(UnixFileSystemTypes), numericFormat) ?? string.Empty : 68format = string.Empty;
System.IO.FileSystem.Watcher (3)
System\IO\FileSystemWatcher.cs (2)
78_directory = string.Empty; 253value ??= string.Empty;
System\IO\FileSystemWatcher.Linux.cs (1)
866string.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)
315if (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\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
40return username ?? string.Empty; 54return username ?? string.Empty;
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
65return string.Empty;
System.Memory.Data (1)
System\BinaryData.cs (1)
425return string.Empty;
System.Net.Http (25)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncoder.cs (1)
230return EncodeValueString(string.Empty, valueEncoding: null, buffer, out length);
src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
20return string.Empty;
System\Net\Http\Headers\HeaderDescriptor.cs (1)
136return string.Empty;
System\Net\Http\Headers\HeaderStringValues.cs (1)
49_ => string.Empty,
System\Net\Http\Headers\HttpHeaders.cs (9)
139value ??= string.Empty; 209rawValues.Add(valuesList[i] ?? string.Empty); 215storeValueRef = valuesList[0] ?? string.Empty; 223TryAddWithoutValidation(descriptor, value ?? string.Empty); 334return string.Empty; 866AddInvalidValue(info, value ?? string.Empty); 884AddInvalidValue(info, value ?? string.Empty); 934AddInvalidValue(info, value ?? string.Empty); 1029AddParsedValue(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)
107return string.Empty;
System\Net\Http\MultipartContent.cs (1)
323string 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)
1549if (cookiesFromContainer != string.Empty)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
673if (cookiesFromContainer != string.Empty)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1101response.SetReasonPhraseWithoutValidation(string.Empty);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
517return defaultCredentialsUsed ? CurrentUserIdentityProvider.GetIdentity() : string.Empty;
System.Net.HttpListener (18)
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;
src\libraries\Common\src\System\Net\WebHeaderEncoding.cs (1)
20return 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)
28private string? _body = string.Empty; 172return _message.Subject ?? string.Empty; 217return _body ?? string.Empty; 340_bodyView = AlternateView.CreateAlternateViewFromString(string.Empty); 489return string.Empty;
System\Net\Mail\SmtpTransport.cs (1)
207string to = smtpAddress + (_connection!.DSNEnabled ? deliveryNotify : string.Empty);
System\Net\Mime\ContentType.cs (1)
128if (value == null || value == string.Empty)
System\Net\Mime\MimeBasePart.cs (2)
50return string.Empty; 53string 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\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
37return string.Empty;
System\Net\NetworkInformation\StringParsingHelpers.Dns.cs (1)
15return rcr.TryGetNextValue("search", out string? dnsSuffix) ? dnsSuffix : string.Empty;
System.Net.Primitives (43)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
37return string.Empty;
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\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)
426string sni = (IPAddress.IsValid(options.ClientAuthenticationOptions.TargetHost) ? null : options.ClientAuthenticationOptions.TargetHost) ?? host ?? string.Empty; 463targetHost = string.Empty;
System.Net.Requests (24)
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)
228private 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\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
22return string.Empty;
System\Net\NegotiateAuthenticationPal.Unix.cs (3)
152result = new GenericIdentity(name ?? string.Empty, protocol); 214_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)
17TargetHost = string.Empty; 53TargetHost = sslClientAuthenticationOptions.TargetHost ?? string.Empty; 69TargetHost = string.Empty;
System\Net\Security\SslStream.Protocol.cs (1)
700localCertificate = _sslAuthenticationOptions.CertSelectionDelegate(this, string.Empty, tempCollection, null, Array.Empty<string>());
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseParser_1.cs (1)
451public 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\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.WebSockets (5)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
320public string GetErrorMessage() => _zStream.msg != ZNullPtr ? Marshal.PtrToStringUTF8(_zStream.msg)! : string.Empty;
System\Net\WebSockets\ManagedWebSocket.cs (2)
1087string closeStatusDescription = string.Empty; 1286await CloseOutputAsync(closeStatus, string.Empty, 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.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\Tensor.cs (1)
2293string separator = string.Empty;
System.ObjectModel (1)
System\ComponentModel\TypeConverterAttribute.cs (1)
27ConverterTypeName = string.Empty;
System.Private.CoreLib (200)
src\Internal\VersionResilientHashCode.CoreCLR.cs (1)
30int hashcode = NameHashCode(type.IsNested ? string.Empty : type.Namespace, type.Name);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
40return username ?? string.Empty; 54return username ?? string.Empty;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetUnixVersion.cs (1)
36return string.Empty;
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
783ArgumentOutOfRangeException.ThrowIfNegative(groupSizeCount | bufferSize, string.Empty); // If we overflow
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (3)
133if (attributeName == string.Empty) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 370tokenString = string.Empty;
src\libraries\System.Private.CoreLib\src\System\AppContext.AnyOS.cs (1)
30return string.Empty;
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (1)
808return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Convert.cs (4)
1881return value == null ? string.Empty : value.ToString(); 2352return string.Empty; 3082return string.Empty; 3159return string.Empty;
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (2)
29return string.Empty; 34return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (6)
83Assert(condition, string.Empty, string.Empty); 87Assert(condition, message, string.Empty); 128Fail(message, string.Empty); 312string.Empty; 407string.Empty;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
50WriteCore(string.Empty);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (1)
54string paramName = string.Empty;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (4)
3426string msg = string.Empty; 6013keyword = string.Empty; 6018keyword = string.Empty; 6088return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (1)
146value ??= string.Empty;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (2)
81return string.Empty; 84return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Empty.cs (1)
16return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (3)
23string path = GetFolderPathCoreWithoutValidation(folder) ?? string.Empty; 39return string.Empty; 147return string.Empty;
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\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
380callbackContext.Results.Add(string.Empty);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (6)
132source = string.Empty; 222string1 = string.Empty; 227string2 = string.Empty; 278lpStringSource = string.Empty; 458source = string.Empty; 537source = string.Empty;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
928internal string Name => _sName ?? string.Empty; 2091return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (2)
247return string.Empty; 326return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
186return GetLocaleInfoEx(localeName, lctype) ?? string.Empty;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
544public virtual string Name => _nonSortName ??= (_cultureData.Name ?? string.Empty);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5288return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (2)
23return string.Empty; 69return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (1)
44return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
21public StringInfo() : this(string.Empty)
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (2)
269return string.Empty; 367return string.Empty;
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\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
256return string.Empty;
src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (2)
60return string.Empty; 185public override string ToString() => OriginalPath ?? string.Empty;
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (3)
49return string.Empty; 490return path2 ?? string.Empty; 544return string.Empty;
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
143return IsPathRooted(path) ? PathInternal.DirectorySeparatorCharAsString : string.Empty;
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
981retVal = string.Empty;
src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (1)
104public string ObjectName => _objectName ?? string.Empty;
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
78public string ServicePack => _servicePack ?? string.Empty;
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
398return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
232s_overriddenEntryAssembly = string.Empty;
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (4)
262return string.Empty; 303string refName = reference.Name ?? string.Empty; 304string defName = definition.Name ?? string.Empty; 312return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
58public override string Location => string.Empty;
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (3)
28string declaringTypeName = method.DeclaringType != null ? method.DeclaringType.Name + "." : string.Empty; 96string declaringTypeName = method.DeclaringType != null ? method.DeclaringType.Name + "." : string.Empty; 153string declaringTypeName = method.DeclaringType != null ? method.DeclaringType.Name + "." : string.Empty;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
155BaseNameField = string.Empty;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ContractHelper.cs (1)
95Debug.ContractFailure(displayMessage, string.Empty, GetFailureMessage(kind, null));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
1083return progIdAttribute.Value ?? string.Empty;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\MarshalUsingAttribute.cs (1)
23CountElementName = string.Empty;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (3)
693/// <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> 725/// <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> 742/// <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\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\OSPlatform.cs (1)
57return Name ?? string.Empty;
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\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (2)
102_profile = (profile == null) ? string.Empty : profile.Trim(); 135_profile = string.Empty;
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
53if (uniqueValues.Contains(string.Empty)) 55return new SingleStringSearchValuesFallback<SearchValues.FalseConst>(string.Empty, uniqueValues);
src\libraries\System.Private.CoreLib\src\System\String.cs (11)
79return Empty; 105return Empty; 127return Empty; 131return Empty; 162return Empty; 188return Empty; 210return Empty; 231return Empty; 269return Empty; 294return Empty; 314return Empty;
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; 737/// <see cref="Empty"/> if <paramref name="value"/> has zero elements. 762/// <see cref="Empty"/> if <paramref name="value"/> has zero elements. 806return Empty; 814return firstValue ?? Empty; 851/// <see cref="Empty"/> if <paramref name="values"/> has zero elements. 874/// <see cref="Empty"/> if <paramref name="values"/> has zero elements. 883return Empty; 890return firstString ?? Empty; 941return Empty; 988return value!.ToString() ?? Empty; 1013return firstString ?? Empty; 1040Empty : 1041values[0] ?? Empty; 1066return Empty; 1172return Empty; 1332newValue ??= Empty; 1487/// is <see cref="Empty"/>, all newline sequences within the string will be removed. 1740return SplitInternal(separator ?? Empty, null, int.MaxValue, options); 1745return SplitInternal(separator ?? Empty, null, count, options); 1889splitStrings[arrIndex] = Empty; 2227return Empty; 2252return Empty; 2558len == 0 ? Empty :
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
748return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (9)
123value ??= string.Empty; 198persistedString ??= string.Empty; 319return string.Empty; 1133separator ??= string.Empty; 1146separator ??= string.Empty; 1157separator ??= string.Empty; 1168separator ??= string.Empty; 1181separator ??= string.Empty; 1757s ??= string.Empty;
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
335if (count == 0) return string.Empty;
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\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
94this.encoderFallback = new EncoderReplacementFallback(string.Empty); 379if (count == 0) return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
698return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
244s ??= string.Empty;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (1)
848return string.Empty;
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (2)
563FrameworkEventSource.Log.ThreadTransferSendObj(this, 1, string.Empty, true, (int)dueTime, (int)period); 717FrameworkEventSource.Log.ThreadTransferReceiveObj(this, 1, string.Empty);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (8)
160return _displayName ?? string.Empty; 171return _standardDisplayName ?? string.Empty; 182return _daylightDisplayName ?? string.Empty; 1034standardDisplayName ??= string.Empty; 1039displayName ?? string.Empty, 1090displayName ?? string.Empty, 1091standardDisplayName ?? string.Empty, 1092daylightDisplayName ?? string.Empty,
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
322throw new SerializationException(SR.Format(SR.Serialization_InvalidEscapeSequence, string.Empty));
src\libraries\System.Private.CoreLib\src\System\TypeInitializationException.cs (1)
62public string TypeName => _typeName ?? string.Empty;
src\libraries\System.Private.CoreLib\src\System\TypeLoadException.cs (1)
50public string TypeName => _className ?? string.Empty;
src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
31info.AddValue("AssemblyName", string.Empty);
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\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
403rootTypeName._namespace = string.Empty;
src\System\GC.CoreCLR.cs (1)
893configurationDictionary[nameAsString] = dataAsString ?? string.Empty;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
421m_strNameSpace = string.Empty;
src\System\Reflection\MdConstant.cs (1)
123CorElementType.ELEMENT_TYPE_STRING => stringVal ?? string.Empty,
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
1009return string.Empty;
src\System\RuntimeType.CoreCLR.cs (1)
338list = GetListByName(string.Empty, Span<byte>.Empty, listType, cacheType);
System.Private.CoreLib.Generators (1)
EventSourceGenerator.Parser.cs (1)
81return string.Empty;
System.Private.DataContractSerialization (153)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
38_baseType = string.Empty; 324return string.Empty;
System\Runtime\Serialization\DataContract.cs (7)
92throw new SerializationException(SR.Format(SR.ErrorDeserializing, SR.Format(SR.ErrorTypeInfo, DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), SR.Format(SR.NoSetMethodForProperty, string.Empty, string.Empty))); 1412string arrayOfPrefix = string.Empty; 1517string? clrNs = type.Namespace ?? string.Empty; 1585return new Uri(Globals.DataContractXsdBaseNamespaceUri, clrNs ?? string.Empty).AbsoluteUri; 1683ns = string.Empty; 1707string 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)
346public 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)
674typeNs = schema.TargetNamespace ?? string.Empty; 794any.Namespace = datasetSchema.TargetNamespace ?? string.Empty;
System\Runtime\Serialization\SchemaHelper.cs (1)
117ns ??= string.Empty;
System\Runtime\Serialization\SchemaImporter.cs (1)
481ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Empty);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
224_ilg.BeginMethod("Read" + collectionContract.XmlName.Name + "FromXml" + string.Empty, 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)
570value = GetExistingObject(attributes.Ref, null, name, string.Empty); 579value = InternalDeserialize(xmlReader, Globals.TypeOfObject, name, string.Empty); 1052ns ??= string.Empty;
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
812xmlWriter.WriteStartElement(member.Name, string.Empty);
System\Runtime\Serialization\XmlReaderDelegator.cs (11)
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"); 523ThrowConversionException(string.Empty, "Int32"); 539ThrowConversionException(string.Empty, "Int64"); 628ThrowConversionException(string.Empty, "UInt64"); 638ThrowConversionException(string.Empty, "UInt64"); 777name = 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.Uri (34)
System\Uri.cs (17)
494serializationInfo.AddValue("AbsoluteUri", string.Empty); // Do not rename (binary serialization) 624relativeStr = string.Empty; 1362return string.Empty; 1899rawString is null ? string.Empty : 2536host = string.Empty; 2553host = string.Empty; 3086return (idx - _info.Offset.Host == 0) ? string.Empty : _string.Substring(_info.Offset.Host, 3099return string.Empty; 3112return string.Empty; 3124return string.Empty; 3129return (_info.Offset.Path - _info.Offset.User == 0) ? string.Empty : 3161return string.Empty; 3169return string.Empty; 3294_string = string.Empty; 4816ReadOnlySpan<char> extra = string.Empty; 4935return string.Empty; 5038str 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; 173_host = value ?? string.Empty; 214_query = value ?? string.Empty; 230_fragment = value ?? string.Empty;
System\UriExt.cs (4)
29_string = uri ?? string.Empty; 828relativeStr = string.Empty; 907return string.Empty; 953return string.Empty;
System\UriSyntax.cs (1)
157_scheme = string.Empty;
System.Private.Windows.Core (9)
System\ExceptionExtensions.cs (1)
39ex.StackTrace ?? string.Empty);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
59new NotSupportedException(ex.Message, ex), ex.StackTrace ?? string.Empty);
System\Private\Windows\Ole\DragDropHelper.cs (4)
37SetDropDescription(dataObject, DROPIMAGETYPE.DROPIMAGE_INVALID, string.Empty, string.Empty); 311e.Message ??= string.Empty; 312e.MessageReplacementToken ??= string.Empty;
Windows\Win32\Foundation\BSTR.cs (1)
31string result = ToString() ?? string.Empty;
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
36return string.Empty; 53return string.Empty;
System.Private.Windows.Core.Tests (1)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (1)
1122&& ((info1.CultureName ?? string.Empty) == info2.CultureName)
System.Private.Windows.Core.TestUtilities (11)
DebuggerAttributes.cs (1)
155reference = reference.Replace(",nq", string.Empty);
XUnit\NormalizedStringDataAttribute.cs (4)
8/// <see cref="string.Empty"/>. 16{ null, string.Empty }, 17{ 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; 3569_reportedBaseUri = string.Empty; 5040AddNamespace(string.Empty, ns, attr); 5829_curNode.SetValue(string.Empty); 6039schemaEntity.Text = string.Empty; 6053schemaEntity.Text = string.Empty; 6737_curNode.SetNamedNode(XmlNodeType.DocumentType, _dtdInfo.Name.ToString(), string.Empty, null); 6837_curNode.SetValue(string.Empty); 7667return AddAttribute(localName, string.Empty, localName); 7935ThrowWithoutLineInfo(SR.Xml_CannotResolveExternalSubset, new string?[] { publicId ?? string.Empty, systemId }, null); 8021InitStringInput(entity.SystemId!, enc, string.Empty); 8039InitStringInput(entity.DeclaredUriString ?? string.Empty, enc, entity.Text!); 8574_curNode.SetValueNode(XmlNodeType.Text, string.Empty); 9017_xmlContext.defaultNamespace = _namespaceManager.LookupNamespace(string.Empty)!; 9031throw new XmlException(SR.Xml_NametableMismatch, string.Empty); 9249prefix ??= string.Empty; 9384_curNode.SetValue(string.Empty); 9617return 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)
267_nsStack[2].Set(string.Empty, string.Empty, NamespaceKind.Implied); 271string? defaultNs = _predefinedNamespaces.LookupNamespace(string.Empty); 272_nsStack[2].Set(string.Empty, defaultNs ?? string.Empty, NamespaceKind.Implied); 277_elemScopeStack[0].Set(string.Empty, string.Empty, string.Empty, _nsTop); 440prefix ??= string.Empty; 457ns = string.Empty; 506throw new XmlException(SR.Xml_NoStartTag, string.Empty); 557throw new XmlException(SR.Xml_NoStartTag, string.Empty); 609prefix = string.Empty; 631prefix ??= string.Empty; 639namespaceName ??= string.Empty; 650_curDeclPrefix = string.Empty; 700prefix = string.Empty; 750if (PushNamespaceExplicit(string.Empty, value)) 756_rawWriter.WriteStartNamespaceDeclaration(string.Empty); 762_rawWriter.WriteNamespaceDeclaration(string.Empty, value); 767_writer.WriteStartAttribute(string.Empty, "xmlns", XmlReservedNs.NsXmlNs); 858text ??= string.Empty; 873text ??= string.Empty; 893text ??= string.Empty; 1010ws ??= string.Empty; 1286string? prefix = string.Empty; 1687throw 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)
153baseURI = string.Empty; 270XmlName? newName = GetXmlName(eleName.Prefix, eleName.LocalName, string.Empty, null); 604string namespaceURI = string.Empty; 656return CreateElement(prefix, localName, string.Empty); 675string attrNamespaceURI = string.Empty; 1128return CreateTextNode(string.Empty); 1131return CreateCDataSection(string.Empty); 1137return CreateProcessingInstruction(name, string.Empty); 1143return CreateComment(string.Empty); 1149return CreateDocumentType(name, string.Empty, string.Empty, string.Empty); 1155return CreateSignificantWhitespace(string.Empty); 1158return 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)
285node.AppendChildForLoad(_doc.CreateTextNode(string.Empty), _doc); 344node.AppendChildForLoad(direct ? new XmlText(string.Empty) : _doc!.CreateTextNode(string.Empty), _doc!); 375eref.AppendChildForLoad(_doc!.CreateTextNode(string.Empty), _doc); 597XmlParserContext pc = new XmlParserContext(null, new XmlNamespaceManager(_doc!.NameTable), null, null, null, null, _doc.BaseURI, string.Empty, XmlSpace.None); 617throw new XmlException(SR.Xml_InternalError, string.Empty); 670_doc.AddXmlName(elementDecl.Prefix, elementDecl.Name.Name, string.Empty, null), 671_doc.AddAttrXmlName(attdef.Prefix, attdef.Name.Name, string.Empty, null)); 711mgr.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)
552throw 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)
167string importNS = import.Namespace ?? string.Empty; 269_referenceNamespaces.Add(string.Empty, string.Empty); 432_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); 657builder._TargetNamespace = string.Empty; 1801SendValidationEvent(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)
341tns = schema!.TargetNamespace ?? string.Empty; 447SendValidationEvent(new XmlSchemaException(SR.Sch_SchemaNotRemoved, string.Empty), XmlSeverityType.Warning); 468targetNamespace ??= string.Empty; 519SendValidationEvent(new XmlSchemaException(SR.Sch_SchemaNotPreprocessed, string.Empty), XmlSeverityType.Error); 683targetNamespace ??= string.Empty; 797targetNamespace ??= string.Empty; 832tns = impSchema.TargetNamespace ?? string.Empty; 870string tns = schema.TargetNamespace ?? string.Empty; 1240targetNamespace ??= string.Empty; 1296return schema.TargetNamespace ?? string.Empty; 1396string 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); 755SendValidationEvent(SR.Sch_InvalidTextInEmpty, string.Empty); 834SendValidationEvent(SR.Sch_InvalidWhitespaceInEmpty, string.Empty); 1036string? defaultPrefix = string.Empty; 1181string stringValue = string.Empty; 1269LoadSchema(string.Empty, xsiNoNamespaceSchemaLocation); 1629SendValidationEvent(SR.Sch_ValidateElementInvalidCall, string.Empty); 2804SendValidationEvent(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; } 935get { return _name ?? string.Empty; } 1151_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; 1913memberFound = XmlNodeEqual(Reader, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty); 1935xmlnsMember.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); 849Writer.WriteStartAttribute(null, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty); 925string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 963string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1274WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty), mapping.IsSoap); 1359WriteRpcResult(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); 1569accessor.ChoiceIdentifier.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(choiceIdentifierType!), ns, ImportContext.Element, string.Empty, null, limiter); 1712element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, string.Empty, null, limiter); 1955element.Mapping = ImportTypeMapping(typeModel, element.Namespace, ImportContext.Element, string.Empty, null, false, openModel, limiter); 2295defaultNamespace ??= string.Empty; 2307string 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)
436return string.Empty; 450s = string.Empty; 863XmlQualifiedName empty = new XmlQualifiedName(string.Empty, _r.LookupNamespace("")); 1152return new XmlQualifiedName(_r.NameTable.Add(value), _r.LookupNamespace(string.Empty)); 3975string qnames = string.Empty;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (8)
296ilg.LoadMember(_idNameFields[name ?? string.Empty]); 298ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1716ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1721ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1768ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1776ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1931ilg.Ldstr(string.Empty); 2198string qnames = string.Empty;
System\Xml\Serialization\XmlSerializationWriter.cs (5)
349value = string.Empty; 1386name ??= string.Empty; 1995return GetStringForCreateInstance(escapedTypeName, useReflection, ctorInaccessible, cast, string.Empty); 3309string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 3433string? 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)
548return xmlReader.IsStartElement(typeDesc.DataType!.Name!, string.Empty); 694if (nameOrLocation == string.Empty) 844if (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)
954_nsmgr.AddNamespace(string.Empty, string.Empty); 1075if (!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)
461WriteStartElementUnchecked(string.Empty, localName, string.Empty); 496WriteEndElementUnchecked(string.Empty, localName, string.Empty); 515WriteStartAttributeUnchecked(string.Empty, localName, string.Empty); 618WriteStartElement(string.Empty, localName, string.Empty); 626WriteStartAttribute(string.Empty, localName, string.Empty); 1148throw new XslTransformException(SR.XmlIl_NmspAfterAttr, string.Empty); 1225WriteNamespaceDeclarationUnchecked(string.Empty, string.Empty); 1508prefix = (name.Namespace.Length != 0) ? RemapPrefix(string.Empty, name.Namespace, nodeType == XPathNodeType.Element) : string.Empty; 1527prefix = (ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty; 1581throw 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; 383return string.Empty; 434return string.Empty; 440return string.Empty; 486return string.Empty; 505return string.Empty; 510return string.Empty; 521return 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)
1495varValue = _f.String(string.Empty); 1568_f.String(string.Empty), 1660select = _f.Conditional(text, _f.ConvertToString(select), _f.String(string.Empty)); 2037result = _f.String(string.Empty); 2049result = _f.String(string.Empty); 2057fwdCompat ? _f.String(string.Empty) : 2492nsDecls.Add(_f.NamespaceDecl(_f.String(string.Empty), _f.String(string.Empty))); 2683string attMode = (mode.LocalName.Length == 0) ? string.Empty : $" mode=\"{mode.QualifiedName}\""; 2764return string.Empty; 2773ns = 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), 262return string.Empty; 273ns = string.Empty; 567formatName = _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; 2756namespaceName = 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) == 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) == false)
System\Xml\Xsl\XsltOld\Processor.cs (2)
578result = n != null ? ValueOf(n) : string.Empty; 665return 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)
539local.Name == null ? _pdbBuilder.GetOrAddString(string.Empty) : _pdbBuilder.GetOrAddString(local.Name));
System.Reflection.Metadata (10)
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (3)
133if (attributeName == string.Empty) 304if (attributeValue.Equals("null", StringComparison.OrdinalIgnoreCase) || attributeValue == string.Empty) 370tokenString = string.Empty;
System\Reflection\Internal\Utilities\EncodingHelper.netcoreapp.cs (2)
28return string.Empty; 42return string.Empty;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
552string 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)
214ns = 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\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 (10)
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\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (2)
40return username ?? string.Empty; 54return username ?? string.Empty;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs (1)
82return string.Empty;
System\Security\Cryptography\AsnEncodedData.cs (1)
128return 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\PublicKey.cs (1)
386Algorithm = _oid.Value ?? string.Empty,
System\Security\Cryptography\X509Certificates\X509ChainStatus.cs (1)
20return string.Empty;
System.Security.Cryptography.Pkcs (3)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
51return new SubjectIdentifierOrKey(SubjectIdentifierOrKeyType.Unknown, string.Empty);
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)
20get => _recipient ??= string.Empty; // an unspecified value for an XmlAttribute is string.Empty
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
16protected EncryptedReference() : this(string.Empty, new TransformChain())
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
175get => _recipient ??= 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; 400set.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.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.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)
78Assert.Equal(string.Empty, faultException.Code.Namespace); 121Assert.NotEqual(string.Empty, exception.Reason.ToString()); 140exception = new FaultException<FaultDetail>(null, string.Empty); 146Assert.Equal(string.Empty, exception.Reason.ToString()); 147Assert.Equal(string.Empty, exception.Message); 171Assert.NotEqual(string.Empty, exception.Reason.ToString()); 199exception = new FaultException<FaultDetail>(null, string.Empty, null, null); 203Assert.Equal(string.Empty, exception.Reason.ToString()); 204Assert.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); 121if (reader.LocalName == Atom10Constants.TermTag && reader.NamespaceURI == string.Empty) 125else if (reader.LocalName == Atom10Constants.SchemeTag && reader.NamespaceURI == string.Empty) 129else if (reader.LocalName == Atom10Constants.LabelTag && reader.NamespaceURI == string.Empty) 200string categoryName = category.Name ?? string.Empty; 542if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 612string type = reader.GetAttribute(Atom10Constants.TypeTag, string.Empty); 623string src = reader.GetAttribute(Atom10Constants.SourceTag, string.Empty); 638if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 642else if (reader.LocalName == Atom10Constants.SourceTag && reader.NamespaceURI == string.Empty) 893else if (reader.LocalName == Atom10Constants.TypeTag && reader.NamespaceURI == string.Empty) 897else if (reader.LocalName == Atom10Constants.RelativeTag && reader.NamespaceURI == string.Empty) 901else if (reader.LocalName == Atom10Constants.TitleTag && reader.NamespaceURI == string.Empty) 905else if (reader.LocalName == Atom10Constants.LengthTag && reader.NamespaceURI == string.Empty) 909else if (reader.LocalName == Atom10Constants.HrefTag && reader.NamespaceURI == string.Empty) 1103title ??= new TextSyndicationContent(string.Empty); 1149TextSyndicationContent title = item.Title ?? new TextSyndicationContent(string.Empty);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (5)
103string link = reader.GetAttribute(App10Constants.Href, string.Empty); 166else if (reader.LocalName == App10Constants.Fixed && reader.NamespaceURI == string.Empty) 170else if (reader.LocalName == Atom10Constants.SchemeTag && reader.NamespaceURI == string.Empty) 240else if (reader.LocalName == App10Constants.Href && reader.NamespaceURI == string.Empty) 346else 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); 824string title = Feed.Title != null ? Feed.Title.Text : string.Empty; 838string description = Feed.Description != null ? Feed.Description.Text : string.Empty; 895string imgAlternateLink = (alternateLink != null) ? FeedUtils.GetUriString(alternateLink.Uri) : string.Empty; 977string guid = item.Id ?? string.Empty; 1045summary = new TextSyndicationContent(string.Empty); 1069string title = (item.SourceFeed.Title != null) ? item.SourceFeed.Title.Text : string.Empty;
System\ServiceModel\Syndication\SyndicationContent.cs (2)
80writer.WriteAttributeString(Atom10Constants.TypeTag, string.Empty, Type); 85if (key.Name == Atom10Constants.TypeTag && key.Namespace == string.Empty)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (1)
59if (outerName == string.Empty)
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
226extensionNamespace ??= 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)
32if (name == Atom10Constants.TypeTag && ns == string.Empty)
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
423_remoteEndpointAddress = string.Empty;
System.Text.Encoding.CodePages (1)
System\Text\EncodingNLS.cs (1)
286if (bytes.Length == 0) return string.Empty;
System.Text.Json (7)
System\Text\Json\Document\JsonElement.cs (3)
1622/// For <see cref="JsonValueKind.Null"/>, <see cref="string.Empty"/> is returned. 1653return string.Empty; 1673return 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\Metadata\JsonPropertyInfo.cs (1)
394info.Name = string.Empty;
System.Text.RegularExpressions (16)
System\Text\RegularExpressions\Capture.cs (1)
30public string Value => Text is string text ? text.Substring(Index, Length) : string.Empty;
System\Text\RegularExpressions\GeneratedRegexAttribute.cs (3)
49/// If <paramref name="cultureName"/> is <see cref="string.Empty"/>, the invariant culture will be used. 59public GeneratedRegexAttribute([StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, int matchTimeoutMilliseconds) : this(pattern, options, matchTimeoutMilliseconds, string.Empty /* Empty string means Invariant culture */) 73/// If <paramref name="cultureName"/> is <see cref="string.Empty"/>, the invariant culture will be used.
System\Text\RegularExpressions\Group.cs (2)
13internal static readonly Group s_emptyGroup = new Group(string.Empty, [], 0, string.Empty);
System\Text\RegularExpressions\Match.cs (1)
63public static Match Empty { get; } = new Match(null, 1, string.Empty, 0);
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 (2)
73public string Input { get; } = string.Empty; 75public string Pattern { get; } = string.Empty;
System\Text\RegularExpressions\RegexParser.cs (1)
2133return string.Empty;
System\Text\RegularExpressions\RegexRunner.cs (1)
364void 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 (6)
RegexGenerator.Parser.cs (4)
83string? cultureName = string.Empty; 207ns ?? string.Empty, 234ns ?? string.Empty, 255return Location.Create(location.SourceTree?.FilePath ?? string.Empty, location.SourceSpan, location.GetLineSpan().Span);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
303public string LeadingPrefix { get; } = string.Empty;
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (1)
2133return string.Empty;
System.Threading.Tasks.Dataflow (2)
Internal\Common.cs (1)
123if (block == null) return string.Empty;
Internal\DataflowEtwProvider.cs (1)
139string exceptionData = string.Empty;
System.Transactions.Local (82)
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)
278TransactionCloneCreate(string.Empty, type); 364SetActivityId(string.Empty); 371SetActivityId(string.Empty); 386string.Empty, type, operation); 392SetActivityId(string.Empty); 545SetActivityId(string.Empty); 552SetActivityId(string.Empty); 577SetActivityId(string.Empty); 584SetActivityId(string.Empty); 609SetActivityId(string.Empty); 634SetActivityId(string.Empty); 659SetActivityId(string.Empty); 685SetActivityId(string.Empty); 710SetActivityId(string.Empty); 735SetActivityId(string.Empty); 753SetActivityId(string.Empty); 771SetActivityId(string.Empty); 811MethodEnterTraceLtm(string.Empty, methodname); 815MethodEnterTraceBase(string.Empty, methodname); 819MethodEnterTraceDistributed(string.Empty, methodname); 827SetActivityId(string.Empty); 833SetActivityId(string.Empty); 839SetActivityId(string.Empty); 879MethodExitTraceLtm(string.Empty, methodname); 883MethodExitTraceBase(string.Empty, methodname); 887MethodExitTraceDistributed(string.Empty, methodname); 895SetActivityId(string.Empty); 901SetActivityId(string.Empty); 907SetActivityId(string.Empty); 950SetActivityId(string.Empty); 956SetActivityId(string.Empty); 962SetActivityId(string.Empty); 980SetActivityId(string.Empty); 1000SetActivityId(string.Empty); 1020SetActivityId(string.Empty); 1039SetActivityId(string.Empty); 1053TransactionScopeCreated(transactionID.TransactionIdentifier ?? string.Empty, transactionScopeResult); 1074string currentId = string.Empty; 1075string newId = string.Empty; 1104TransactionScopeNestedIncorrectly(transactionID.TransactionIdentifier ?? string.Empty); 1124TransactionScopeDisposed(transactionID.TransactionIdentifier ?? string.Empty); 1144TransactionScopeIncomplete(transactionID.TransactionIdentifier ?? string.Empty); 1164TransactionScopeTimeout(transactionID.TransactionIdentifier ?? string.Empty); 1184TransactionTimeout(transactionID.TransactionIdentifier ?? string.Empty); 1209TransactionstateEnlist(string.Empty, enlistmentType.ToString(), enlistmentOption.ToString()); 1216SetActivityId(string.Empty); 1229TransactionCommittedLtm(transactionID.TransactionIdentifier ?? string.Empty); 1233TransactionCommittedOleTx(transactionID.TransactionIdentifier ?? string.Empty); 1260TransactionInDoubtLtm(transactionID.TransactionIdentifier ?? string.Empty); 1264TransactionInDoubtOleTx(transactionID.TransactionIdentifier ?? string.Empty); 1292TransactionPromoted(transactionID.TransactionIdentifier ?? string.Empty, distributedTxID.TransactionIdentifier ?? string.Empty); 1312TransactionAbortedLtm(transactionID.TransactionIdentifier ?? string.Empty); 1316TransactionAbortedOleTx(transactionID.TransactionIdentifier ?? string.Empty); 1350SetActivityId(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)
134return addDoubleQuotes ? $"\"{value}\"" : value ?? string.Empty; 320return string.Empty;
System.Web.Services.Description (28)
System\Web\Services\Configuration\XmlFormatExtensionAttribute.cs (2)
39get { return _ns == null ? string.Empty : _ns; } 44get { return _name == null ? string.Empty : _name; }
System\Web\Services\Configuration\XmlFormatExtensionPointAttribute.cs (1)
15get { return _name == null ? string.Empty : _name; }
System\Web\Services\Configuration\XmlFormatExtensionPrefixAttribute.cs (2)
20get { return _prefix == null ? string.Empty : _prefix; } 25get { return _ns == null ? string.Empty : _ns; }
System\Web\Services\Description\HttpFormatExtensions.cs (2)
14get { return _location == null ? string.Empty : _location; } 34get { return _location == null ? string.Empty : _location; }
System\Web\Services\Description\MimeFormatExtensions.cs (4)
21get { return _type == null ? string.Empty : _type; } 100get { return _name == null ? string.Empty : _name; } 106get { return _type == null ? string.Empty : _type; } 166get { return _pattern == null ? string.Empty : _pattern; }
System\Web\Services\Description\ServiceDescription.cs (5)
53get { return _retrievalUrl == null ? string.Empty : _retrievalUrl; } 455get { return _ns == null ? string.Empty : _ns; } 462get { return _location == null ? string.Empty : _location; } 486return string.Empty; 835return string.Empty;
System\Web\Services\Description\ServiceDescriptions.cs (1)
48return string.Empty;
System\Web\Services\Description\SoapFormatExtensions.cs (11)
26get { return _transport == null ? string.Empty : _transport; } 62get { return _soapAction == null ? string.Empty : _soapAction; } 80get { return _ns == null ? string.Empty : _ns; } 86get { return _encoding == null ? string.Empty : _encoding; } 148get { return _ns == null ? string.Empty : _ns; } 154get { return _encoding == null ? string.Empty : _encoding; } 178get { return _encoding == null ? string.Empty : _encoding; } 184get { return _ns == null ? string.Empty : _ns; } 207get { return _encoding == null ? string.Empty : _encoding; } 213get { return _ns == null ? string.Empty : _ns; } 224get { return _location == null ? string.Empty : _location; }
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; 593item = String.Empty; 846string strValue = String.Empty; 1384string 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.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)
532Name = 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; 2118return AxContainer.GetNameForControl(this) ?? string.Empty;
System\Windows\Forms\Application.cs (1)
573value ??= 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)
2600return name ?? string.Empty; 3123get => CacheTextInternal ? _text ?? string.Empty : WindowText; 3126value ??= string.Empty; 3579return _text ?? string.Empty; 3587value ??= string.Empty; 9377Text = string.Empty; 11182MarshalStringToMessage(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; 948get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 956PInvokeCore.SendMessage(_childEdit, PInvokeCore.EM_REPLACESEL, (WPARAM)(-1), value ?? string.Empty); 2026MatchingText = string.Empty; 2046MatchingText = string.Empty; 2064MatchingText = string.Empty; 2192return string.Empty; 2200return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString(); 2746MatchingText = string.Empty; 2837Debug.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"); 2944SelectedText = string.Empty; 2954SelectedText = string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
1880get => DataConnection is null ? string.Empty : DataConnection.DataMember; 1936DataMember = string.Empty; 3791ToolTipPrivate = string.Empty; 3843ToolTipPrivate = string.Empty; 3930ToolTipPrivate = string.Empty; 4033private 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)
11469DataMember = string.Empty; 14571ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 15207ActivateToolTip(activate: false, toolTipText: string.Empty, CurrentCell.ColumnIndex, CurrentCell.RowIndex); 22048ActivateToolTip(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)
667get => GetToolTipText(RowIndex) ?? string.Empty; 1478private protected virtual string? GetDefaultToolTipText() => string.Empty; 1541string errorText = string.Empty; 2391return string.Empty; 2404toolTipText = string.Join(string.Empty, toolTipText.Split('&')); 2800DataGridView.ActivateToolTip(activate: false, string.Empty, -1, -1); 2818DataGridView?.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; 1407string.Empty, 1456string.Empty, 1503string.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; 184value ??= string.Empty; 398return string.Empty; 403return string.Empty; 651_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)
1066return GetItemText(SelectedItem) ?? string.Empty; 1070return FilterItemOnProperty(SelectedItem)?.ToString() ?? string.Empty; 1570return string.Empty; 1578return actualLength == PInvoke.LB_ERR ? string.Empty : buffer[..Math.Min(maxLength, actualLength)].ToString();
System\Windows\Forms\Controls\ListControl\ListControl.cs (8)
28private string _formatString = string.Empty; 79DisplayMember = string.Empty; 84DisplayMember = string.Empty; 215value ??= string.Empty; 303value ??= string.Empty; 520return string.Empty; 526return string.Empty; 663SetDataConnection(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; 3107_backgroundImageFileName = string.Empty; 3264return FindItem(false, string.Empty, false, new Point(x, y), searchDirection, 0, false); 5142_backgroundImageFileName = string.Empty; 6849string 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)
982SetStatusBox(string.Empty, string.Empty); 3892string.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)
544public virtual string? HelpKeyword => _parent?.HelpKeyword ?? string.Empty; 1450textValue ??= 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)
575ToolTip = string.Empty, 1960return gridEntry is null ? string.Empty : gridEntry.GetTestingInfo(); 2381ToolTip.ToolTip = string.Empty; 2738ToolTip.ToolTip = string.Empty; 3043ToolTip.ToolTip = string.Empty; 3065string? tip = string.Empty; 3101ToolTip.ToolTip = string.Empty; 3220ToolTip.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; 1356value ??= string.Empty; 1412return string.Empty; 2332Rtf = string.Empty; 2810PInvokeCore.SendMessage(this, PInvokeCore.WM_SETTEXT, 0, string.Empty); 2954string result = string.Empty; 3194return 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; 446value ??= 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; 850value ??= string.Empty;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (8)
213SetSelectedTextInternal(string.Empty, clearUndo: false); 223SetSelectedTextInternal(string.Empty, clearUndo: false); 607list.Add(string.Empty); 621Text = string.Empty; 984text ??= string.Empty; 1091value ??= string.Empty; 1118value ??= string.Empty; 1530using 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)
1858get => Properties.TryGetValueOrNull(s_textProperty, out string? value) ? value : string.Empty; 1861if (Properties.AddOrRemoveValue(s_textProperty, value, defaultValue: string.Empty) != value) 1966toolText = 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)
1363get => string.Empty;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
355=> 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)
120protected 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)
861text ??= 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)
320_dataMember = string.Empty; 342value ??= string.Empty; 394SetError(binding.Control, (e.ErrorText ?? string.Empty)); 431SetError(control, string.Empty); 486error ??= string.Empty; 490outputError = 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)
230return 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.Analyzers.CSharp.Tests (2)
FontConverterTests.cs (1)
115FontDescriptor? font = FontConverter.ConvertFrom(string.Empty);
Generators\ApplicationConfigurationGenerator\ApplicationConfigurationInitializeBuilderTests.cs (1)
116DefaultFont: new FontDescriptor(string.Empty, 12, FontStyle.Bold | FontStyle.Italic, GraphicsUnit.Millimeter).ToString(),
System.Windows.Forms.Design (103)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
370return (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; 753return string.Empty; 809string 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)
356((IDesignerLoaderHost)this).EndLoad(string.Empty, successful: false, new object[] { e }); 407name = string.Empty; 877: 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)
318componentChangeService?.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)
46rootDataMember: 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)
264string? name = string.Empty; 288string? 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)
890string itemName = selectedItem.Site?.Name ?? string.Empty;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
705textProp.SetValue(Component, string.Empty);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
795string text = (_centerTextBox is not null) ? ((TextBox)(_centerTextBox.Control)).Text : string.Empty;
System.Windows.Forms.Design.Tests (191)
System\ComponentModel\Design\ArrayEditorTests.cs (3)
97yield return new object[] { typeof(int), null, string.Empty }; 103yield return new object[] { typeof(ClassWithStringDefaultProperty), null, string.Empty }; 105yield return new object[] { typeof(ClassWithStringDefaultProperty), new ClassWithStringDefaultProperty { DefaultProperty = string.Empty }, "ClassWithStringDefaultProperty" };
System\ComponentModel\Design\ByteViewerTests.cs (1)
313yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) };
System\ComponentModel\Design\CollectionEditorTests.cs (4)
328yield return new object[] { typeof(string), string.Empty }; 729yield return new object[] { typeof(int), null, string.Empty }; 735yield return new object[] { typeof(ClassWithStringDefaultProperty), null, string.Empty }; 737yield return new object[] { typeof(ClassWithStringDefaultProperty), new ClassWithStringDefaultProperty { DefaultProperty = string.Empty }, "ClassWithStringDefaultProperty" };
System\ComponentModel\Design\ComponentDesignerTests.cs (9)
743yield return new object[] { property, null, 1, string.Empty }; 747yield return new object[] { property, Array.Empty<object>(), 1, string.Empty }; 751yield return new object[] { property, new object[] { null, new(), "NoSuchStringValue" }, 1, string.Empty }; 756yield return new object[] { property, new object[] { "StringValue" }, 0, string.Empty }; 772StringProperty = string.Empty 858component2.StringProperty = string.Empty; 991StringProperty = string.Empty 1087component2.StringProperty = string.Empty; 2186Assert.Null(set.GetCommands(string.Empty));
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (24)
17yield return new object[] { null, string.Empty, string.Empty, string.Empty, string.Empty, false, string.Empty }; 43yield return new object[] { null, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty }; 69yield return new object[] { null, string.Empty, string.Empty, string.Empty, false, string.Empty }; 95yield return new object[] { null, string.Empty, string.Empty, string.Empty, string.Empty }; 121yield return new object[] { null, string.Empty, string.Empty, false, string.Empty }; 147yield return new object[] { null, string.Empty, string.Empty, string.Empty };
System\ComponentModel\Design\DesignerHostTests.cs (48)
238yield return new object[] { testData[0], string.Empty }; 241foreach (string name in new string[] { null, string.Empty, "name" }) 358host.Container.Add(component3, string.Empty); 1251foreach (string oldName in new string[] { null, string.Empty, "oldName" }) 1253yield return new object[] { testData[0], oldName, null, string.Empty }; 1254yield return new object[] { testData[0], oldName, string.Empty, string.Empty }; 1309Assert.Same(value ?? string.Empty, component1.Site.Name); 1313Assert.Same(value ?? string.Empty, component1.Site.Name); 1318yield return new object[] { string.Empty, "oldName", null, string.Empty, string.Empty }; 1319yield return new object[] { string.Empty, "oldName", string.Empty, string.Empty, string.Empty }; 1320yield return new object[] { string.Empty, "oldName", "newName", "newName", "newName" }; 1322yield return new object[] { "oldName", "oldName", null, string.Empty, string.Empty }; 1323yield return new object[] { "oldName", "oldName", string.Empty, string.Empty, string.Empty }; 1327yield return new object[] { "namespace.oldName", "oldName", null, string.Empty, "namespace." }; 1328yield return new object[] { "namespace.oldName", "oldName", string.Empty, string.Empty, "namespace." }; 1333yield return new object[] { "namespace.oldName", "namespace.oldName", null, string.Empty, string.Empty }; 1334yield return new object[] { "namespace.oldName", "namespace.oldName", string.Empty, string.Empty, string.Empty }; 1339yield return new object[] { "namespace.oldName", "name", null, string.Empty, string.Empty }; 1340yield return new object[] { "namespace.oldName", "name", string.Empty, string.Empty, string.Empty }; 1383Assert.Same(value ?? string.Empty, e.NewName); 1390Assert.Same(value ?? string.Empty, component.Site.Name); 1395Assert.Same(value ?? string.Empty, component.Site.Name); 2199yield return new object[] { string.Empty, true, null }; 2200yield return new object[] { string.Empty, true, Array.Empty<object>() }; 2201yield return new object[] { string.Empty, true, new object[] { new InvalidOperationException() } }; 2202yield return new object[] { string.Empty, true, new object[] { "abc" } }; 2203yield return new object[] { string.Empty, true, new object[] { null } }; 2204yield return new object[] { string.Empty, false, null }; 2205yield return new object[] { string.Empty, false, Array.Empty<object>() }; 2206yield return new object[] { string.Empty, false, new object[] { new InvalidOperationException() } }; 2207yield return new object[] { string.Empty, false, new object[] { "abc" } }; 2208yield return new object[] { string.Empty, false, new object[] { null } };
System\ComponentModel\Design\MultilineStringEditorTests.cs (2)
43Assert.Same(string.Empty, editor.EditValue(null, mockServiceProvider.Object, value)); 48Assert.Same(string.Empty, editor.EditValue(null, mockServiceProvider.Object, value));
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (14)
149new CodeCommentStatement(string.Empty), 151new CodeCommentStatement(string.Empty), 163new CodeCommentStatement(string.Empty), 165new CodeCommentStatement(string.Empty), 251new CodeCommentStatement(string.Empty), 253new CodeCommentStatement(string.Empty), 353new CodeCommentStatement(string.Empty), 355new CodeCommentStatement(string.Empty), 398new CodeCommentStatement(string.Empty), 400new CodeCommentStatement(string.Empty), 539new CodeCommentStatement(string.Empty), 541new CodeCommentStatement(string.Empty), 588new CodeCommentStatement(string.Empty), 590new CodeCommentStatement(string.Empty),
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (10)
731yield return new object[] { mockServiceProvider.Object, true, string.Empty, null }; 732yield return new object[] { mockServiceProvider.Object, false, string.Empty, null }; 736yield return new object[] { mockContainerServiceProvider.Object, true, string.Empty, null }; 737yield return new object[] { mockContainerServiceProvider.Object, false, string.Empty, null }; 798yield return new object[] { string.Empty, null }; 799yield return new object[] { string.Empty, new() }; 886foreach (string name in new string[] { null, string.Empty, "name" }) 1064foreach (string typeName in new string[] { null, string.Empty, "typeName" }) 1420foreach (string typeName in new string[] { null, string.Empty, "typeName" }) 1533yield return new object[] { string.Empty, null };
System\ComponentModel\Design\SiteNestedContainerTests.cs (31)
33yield return new object[] { site, null, string.Empty, string.Empty }; 35yield return new object[] { site, string.Empty, null, null }; 36yield return new object[] { site, string.Empty, string.Empty, string.Empty }; 37yield return new object[] { site, string.Empty, "componentName", "componentName" }; 39yield return new object[] { site, "containerName", string.Empty, ".containerName." }; 43yield return new object[] { CreateSite(string.Empty), null, null, null }; 44yield return new object[] { CreateSite(string.Empty), null, string.Empty, "." }; 45yield return new object[] { CreateSite(string.Empty), null, "componentName", ".componentName" }; 46yield return new object[] { CreateSite(string.Empty), string.Empty, null, null }; 47yield return new object[] { CreateSite(string.Empty), string.Empty, string.Empty, "." }; 48yield return new object[] { CreateSite(string.Empty), string.Empty, "componentName", ".componentName" }; 49yield return new object[] { CreateSite(string.Empty), "containerName", null, null }; 50yield return new object[] { CreateSite(string.Empty), "containerName", string.Empty, ".containerName." }; 51yield return new object[] { CreateSite(string.Empty), "containerName", "componentName", ".containerName.componentName" }; 54yield return new object[] { CreateSite("ownerName"), null, string.Empty, "ownerName." }; 56yield return new object[] { CreateSite("ownerName"), string.Empty, null, null }; 57yield return new object[] { CreateSite("ownerName"), string.Empty, string.Empty, "ownerName." }; 58yield return new object[] { CreateSite("ownerName"), string.Empty, "componentName", "ownerName.componentName" }; 60yield return new object[] { CreateSite("ownerName"), "containerName", string.Empty, "ownerName.containerName." }; 147foreach (string name in new string[] { null, string.Empty, "name" }) 262container.Add(component3, string.Empty);
System\Drawing\Design\ImageEditorTests.cs (3)
29yield return new object[] { new string[] { string.Empty, string.Empty, string.Empty }, ",", "" };
System\Drawing\Design\ToolboxItemTests.cs (12)
70Assert.Equal(value.Version?.ToString() ?? string.Empty, item.Version); 89Assert.Equal(value.Version?.ToString() ?? string.Empty, item.Version); 1132yield return new object[] { "DisplayName", null, string.Empty, false }; 1137yield return new object[] { "TypeName", null, string.Empty, false }; 1205yield return new object[] { null, null, string.Empty, false, null }; 1269yield return new object[] { mockDesignerHost.Object, null, string.Empty, false, null }; 1521yield return new object[] { new ToolboxItem(), string.Empty }; 1523yield return new object[] { new NoValidationToolboxItem { DisplayName = null }, string.Empty }; 1547yield return new object[] { "Company", null, string.Empty }; 1550yield return new object[] { "Description", null, string.Empty }; 1553yield return new object[] { "DisplayName", null, string.Empty }; 1556yield return new object[] { "TypeName", null, string.Empty };
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (26)
36string.Empty, 46string.Empty, 47string.Empty, 58string.Empty, 68string.Empty, 69string.Empty, 83string.Empty, 84string.Empty, 93string.Empty, 94string.Empty, 95string.Empty, 105string.Empty, 106string.Empty, 115string.Empty, 116string.Empty, 117string.Empty, 131string.Empty, 132string.Empty, 141string.Empty, 142string.Empty, 143string.Empty, 156string.Empty, 157string.Empty, 166string.Empty, 167string.Empty, 168string.Empty,
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDownTests.cs (1)
51errorProvider.GetError(dropDownMaskedTextBox).Should().Be(string.Empty);
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (3)
156.Select(i => i.DisplayName ?? string.Empty) 177.Select(i => i.DisplayName ?? string.Empty) 202.Select(i => i.DisplayName ?? string.Empty)
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
368string keys = string.Empty;
System.Windows.Forms.Interop.Tests (2)
AccessibleObjectTests.cs (2)
255AssertSuccess(Test_IValueProviderGetValue(o, string.Empty)); 589AssertSuccess(Test_ILegacyIAccessibleProviderGetValue(o, 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.Windows.Forms.Primitives.Tests (12)
System\Windows\Forms\FileDialogCustomPlacesCollectionTests.cs (2)
13string.Empty, 29Assert.Same(path ?? string.Empty, place.Path);
System\Windows\Forms\FileDialogCustomPlaceTests.cs (4)
13string.Empty, 25Assert.Same(path ?? string.Empty, place.Path); 72Assert.Same(value ?? string.Empty, place.Path); 77Assert.Same(value ?? string.Empty, place.Path);
System\Windows\Forms\Internals\ArgumentValidationTests.cs (6)
129string param = string.Empty; 152string param = string.Empty; 177string param = string.Empty; 204string param = string.Empty; 230string param = string.Empty; 254string param = string.Empty;
System.Windows.Forms.Primitives.TestUtilities (2)
PlatformDetection.Windows.cs (1)
177string value = string.Empty;
Win32\WindowClass.cs (1)
88_menuName = menuName ?? string.Empty;
System.Windows.Forms.Tests (928)
MaskedTextBoxTests.cs (1)
53_maskedTextBox.Text.Should().Be(string.Empty);
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
16yield return new object[] { new Bitmap(10, 10), (PropertyValueUIItemInvokeHandler)Dummy_PropertyValueUIItemInvokeHandler, string.Empty };
System\Resources\ResxDataNodeTests.cs (2)
17ResXFileRef fileRef = new(string.Empty, string.Empty);
System\Resources\ResXResourceWriterTests.cs (1)
18private readonly Func<Type, string> _typeNameConverter = type => type?.AssemblyQualifiedName ?? string.Empty;
System\Resources\ResXSerializationBinderTests.cs (1)
46ResXSerializationBinder binder = new(type => type?.AssemblyQualifiedName ?? string.Empty);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
172Assert.Equal(string.Empty, checkedListBox.AccessibilityObject.GetChild(0).DefaultAction);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (115)
81Assert.Equal(string.Empty, accessibleObject.Value); 319yield return new object[] { true, string.Empty, null }; 322yield return new object[] { false, string.Empty, null }; 384yield return new object[] { true, null, string.Empty, null }; 386yield return new object[] { true, string.Empty, null, null }; 387yield return new object[] { true, string.Empty, string.Empty, null }; 388yield return new object[] { true, string.Empty, "LabelText", null }; 390yield return new object[] { true, "Text", string.Empty, null }; 393yield return new object[] { false, null, string.Empty, null }; 395yield return new object[] { false, string.Empty, null, null }; 396yield return new object[] { false, string.Empty, string.Empty, null }; 397yield return new object[] { false, string.Empty, "LabelText", null }; 399yield return new object[] { false, "Text", string.Empty, null }; 503yield return new object[] { true, null, string.Empty, null }; 505yield return new object[] { true, string.Empty, null, string.Empty }; 506yield return new object[] { true, string.Empty, string.Empty, string.Empty }; 507yield return new object[] { true, string.Empty, "text", string.Empty }; 509yield return new object[] { true, "name", string.Empty, "name" }; 513yield return new object[] { false, null, string.Empty, null }; 515yield return new object[] { false, string.Empty, null, string.Empty }; 516yield return new object[] { false, string.Empty, string.Empty, string.Empty }; 517yield return new object[] { false, string.Empty, "text", string.Empty }; 519yield return new object[] { false, "name", string.Empty, "name" }; 524yield return new object[] { true, null, "&", string.Empty }; 586yield return new object[] { true, null, null, string.Empty, null }; 588yield return new object[] { true, null, string.Empty, null, null }; 589yield return new object[] { true, null, string.Empty, string.Empty, null }; 590yield return new object[] { true, null, string.Empty, "LabelText", "LabelText" }; 592yield return new object[] { true, null, "text", string.Empty, "text" }; 594yield return new object[] { true, string.Empty, null, null, string.Empty }; 595yield return new object[] { true, string.Empty, null, string.Empty, string.Empty }; 596yield return new object[] { true, string.Empty, null, "LabelText", string.Empty }; 597yield return new object[] { true, string.Empty, string.Empty, null, string.Empty }; 598yield return new object[] { true, string.Empty, string.Empty, string.Empty, string.Empty }; 599yield return new object[] { true, string.Empty, string.Empty, "LabelText", string.Empty }; 600yield return new object[] { true, string.Empty, "text", null, string.Empty }; 601yield return new object[] { true, string.Empty, "text", string.Empty, string.Empty }; 602yield return new object[] { true, string.Empty, "text", "LabelText", string.Empty }; 604yield return new object[] { true, "name", null, string.Empty, "name" }; 606yield return new object[] { true, "name", string.Empty, null, "name" }; 607yield return new object[] { true, "name", string.Empty, string.Empty, "name" }; 608yield return new object[] { true, "name", string.Empty, "LabelText", "name" }; 610yield return new object[] { true, "name", "text", string.Empty, "name" }; 614yield return new object[] { false, null, null, string.Empty, null }; 616yield return new object[] { false, null, string.Empty, null, null }; 617yield return new object[] { false, null, string.Empty, string.Empty, null }; 618yield return new object[] { false, null, string.Empty, "LabelText", "LabelText" }; 620yield return new object[] { false, null, "text", string.Empty, null }; 622yield return new object[] { false, string.Empty, null, null, string.Empty }; 623yield return new object[] { false, string.Empty, null, string.Empty, string.Empty }; 624yield return new object[] { false, string.Empty, null, "LabelText", string.Empty }; 625yield return new object[] { false, string.Empty, string.Empty, null, string.Empty }; 626yield return new object[] { false, string.Empty, string.Empty, string.Empty, string.Empty }; 627yield return new object[] { false, string.Empty, string.Empty, "LabelText", string.Empty }; 628yield return new object[] { false, string.Empty, "text", null, string.Empty }; 629yield return new object[] { false, string.Empty, "text", string.Empty, string.Empty }; 630yield return new object[] { false, string.Empty, "text", "LabelText", string.Empty }; 632yield return new object[] { false, "name", null, string.Empty, "name" }; 634yield return new object[] { false, "name", string.Empty, null, "name" }; 635yield return new object[] { false, "name", string.Empty, string.Empty, "name" }; 636yield return new object[] { false, "name", string.Empty, "LabelText", "name" }; 638yield return new object[] { false, "name", "text", string.Empty, "name" }; 643yield return new object[] { true, null, "&", null, string.Empty }; 648yield return new object[] { true, null, null, "&", string.Empty }; 659yield return new object[] { false, null, null, "&", string.Empty }; 871Assert.Equal(string.Empty, accessibleObject.Value); 875Assert.Equal(string.Empty, accessibleObject.Value); 1290string expectedValue = s_controlsNotUseTextForAccessibility.Contains(type) ? string.Empty : "Alt+n"; 1358{ typeof(DateTimePicker), string.Empty }, 1360{ typeof(TextBox), string.Empty}, 1361{ typeof(MaskedTextBox), string.Empty}
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (1)
118Assert.Equal(string.Empty, ((BSTR)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (5)
142yield return new object[] { new DataGridViewCellAccessibleObject(cell), string.Empty }; 186Assert.Equal(string.Empty, accessibleObject.Name); 198Assert.Equal(string.Empty, accessibleObject.Name); 209Assert.Equal(string.Empty, accessibleObject.Name); 702Assert.Equal(accessibleObject.Help ?? string.Empty, ((BSTR)actual).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
120Assert.Equal(string.Empty, cell.AccessibilityObject.DefaultAction);
System\Windows\Forms\AccessibleObjects\DataGridViewImageCellAccessibleObjectTests.cs (1)
26Assert.Equal(string.Empty, accessibleObject.DefaultAction);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
225yield return new object[] { new DataGridViewRowAccessibleObject(new DataGridViewRow()), string.Empty };
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (2)
43Assert.Equal(string.Empty, accessibleObject.Value); 68yield return new object[] { DataGridViewSelectionMode.CellSelect, string.Empty };
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (4)
64{ false, string.Empty } 116Assert.Equal(string.Empty, cell.AccessibilityObject.Value); 148{ RightToLeft.No, "It is not empty string", string.Empty }, 149{ RightToLeft.Yes, "It is not empty string", string.Empty }
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (1)
1243Assert.Equal(string.Empty, ((BSTR)topRowAccessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
284Assert.Equal(string.Empty, dateTimePicker.AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
46Assert.Equal(string.Empty, accessibleObject.DefaultAction);
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (1)
240Assert.Equal(accessibleObject.Help ?? string.Empty, actual);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
116Assert.Equal(itemAccessibleObject.Help ?? string.Empty, actual);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (1)
61Assert.Equal(string.Empty, accessibilityObject.Value);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (1)
38Assert.Equal(string.Empty, accessibleObject.DefaultAction);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
79dropDownItem.DropDownItems.Add(string.Empty);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (11)
101Assert.Equal(string.Empty, ((BSTR)result).ToString()); 206toolStrip.Items.Add(string.Empty); 220toolStrip.Items.Add(string.Empty); 232toolStrip.Items.Add(string.Empty); 246toolStrip.Items.Add(string.Empty); 247toolStrip.Items.Add(string.Empty); 271toolStrip.Items.Add(string.Empty); 287toolStrip.Items.Add(string.Empty); 288toolStrip.Items.Add(string.Empty); 320toolStrip.Items.Add(string.Empty); 322toolStrip.Items.Add(string.Empty);
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
86toolStrip.Items.Add(string.Empty); 87toolStrip.Items.Add(string.Empty); 88toolStrip.Items.Add(string.Empty); 112toolStrip.Items.Add(string.Empty); 113toolStrip.Items.Add(string.Empty); 114toolStrip.Items.Add(string.Empty);
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (5)
85ToolStripItem item1 = toolStripSplitButton.DropDownItems.Add(string.Empty); 86ToolStripItem item2 = toolStripSplitButton.DropDownItems.Add(string.Empty); 101toolStripSplitButton.DropDownItems.Add(string.Empty); 125ToolStripItem item1 = toolStripSplitButton.DropDownItems.Add(string.Empty); 126ToolStripItem item2 = toolStripSplitButton.DropDownItems.Add(string.Empty);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
62Assert.Equal(string.Empty, accessibilityObject.Value); 137Assert.Equal(string.Empty, accessibilityObject.Value);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (1)
46Assert.Equal(string.Empty, accessibleObject.DefaultAction);
System\Windows\Forms\AxHostTests.cs (3)
877yield return new object[] { null, string.Empty }; 878yield return new object[] { string.Empty, string.Empty };
System\Windows\Forms\BindingContextTests.cs (11)
78Assert.Same(source1.CurrencyManager, context[dataSource, string.Empty]); 85Assert.Same(source2.CurrencyManager, context[dataSource, string.Empty]); 123Assert.Same(source1.CurrencyManager, context[dataSource, string.Empty]); 130Assert.Same(source2.CurrencyManager, context[dataSource, string.Empty]); 367Assert.True(context.Contains(dataSource, string.Empty)); 370Assert.False(context.Contains(1, string.Empty)); 384Assert.True(context.Contains(dataSource1, string.Empty)); 387Assert.True(context.Contains(dataSource2, string.Empty)); 400Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null, string.Empty)); 553Assert.Same(manager, context[dataSource, string.Empty]); 738Assert.Throws<ArgumentNullException>("dataSource", () => context[null, string.Empty]);
System\Windows\Forms\BindingSourceTests.cs (4)
63yield return new object[] { null, string.Empty, typeof(BindingList<object>) }; 121foreach (string dataMember in new string[] { null, string.Empty }) 185foreach (string dataMember in new string[] { null, string.Empty }) 271foreach (string dataMember in new string[] { null, string.Empty })
System\Windows\Forms\BindingTests.cs (14)
17yield return new object[] { string.Empty, new(), string.Empty }; 46yield return new object[] { string.Empty, new(), string.Empty, true }; 75yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1 }; 104yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value }; 133yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value, string.Empty }; 162yield return new object[] { string.Empty, new(), string.Empty, true, DataSourceUpdateMode.OnValidation - 1, DBNull.Value, string.Empty, CultureInfo.CurrentCulture };
System\Windows\Forms\ButtonBaseTests.cs (14)
3037yield return new object[] { autoSize, null, string.Empty }; 3038yield return new object[] { autoSize, string.Empty, string.Empty }; 3068yield return new object[] { true, null, string.Empty, 0 }; 3069yield return new object[] { true, string.Empty, string.Empty, 0 }; 3123yield return new object[] { autoSize, null, string.Empty, 0 }; 3124yield return new object[] { autoSize, string.Empty, string.Empty, 0 }; 3163yield return new object[] { true, null, string.Empty, 0 }; 3164yield return new object[] { true, string.Empty, string.Empty, 0 }; 6218foreach (string text in new string[] { null, string.Empty, "text" }) 6418foreach (string text in new string[] { null, string.Empty, "text" })
System\Windows\Forms\ButtonTests.cs (14)
753yield return new object[] { autoSize, null, string.Empty }; 754yield return new object[] { autoSize, string.Empty, string.Empty }; 784yield return new object[] { true, null, string.Empty, 0 }; 785yield return new object[] { true, string.Empty, string.Empty, 0 }; 839yield return new object[] { autoSize, null, string.Empty, 0 }; 840yield return new object[] { autoSize, string.Empty, string.Empty, 0 }; 879yield return new object[] { true, null, string.Empty, 0 }; 880yield return new object[] { true, string.Empty, string.Empty, 0 }; 2364foreach (string text in new string[] { null, string.Empty, "text" }) 2557foreach (string text in new string[] { null, string.Empty, "text" })
System\Windows\Forms\ColumnHeaderCollectionTests.cs (33)
177yield return new object[] { null, -1, string.Empty }; 178yield return new object[] { string.Empty, 0, string.Empty }; 199yield return new object[] { null, -1, HorizontalAlignment.Left, string.Empty }; 200yield return new object[] { string.Empty, 0, HorizontalAlignment.Center, string.Empty }; 222yield return new object[] { null, null, string.Empty, string.Empty }; 223yield return new object[] { string.Empty, string.Empty, string.Empty, string.Empty }; 244yield return new object[] { null, null, -1, string.Empty, string.Empty }; 245yield return new object[] { string.Empty, string.Empty, 0, string.Empty, string.Empty }; 267yield return new object[] { null, null, -1, HorizontalAlignment.Left, -1, string.Empty, string.Empty }; 268yield return new object[] { string.Empty, string.Empty, 0, HorizontalAlignment.Center, 0, string.Empty, string.Empty }; 292yield return new object[] { null, null, -1, HorizontalAlignment.Left, null, string.Empty, string.Empty, string.Empty }; 293yield return new object[] { string.Empty, string.Empty, 0, HorizontalAlignment.Center, string.Empty, string.Empty, string.Empty, string.Empty };
System\Windows\Forms\ColumnHeaderTests.cs (9)
25Assert.Equal(string.Empty, header.ImageKey); 51Assert.Equal(string.Empty, header.ImageKey); 870header.Name = string.Empty; 897header.Name = string.Empty; 1066header.Text = string.Empty; 1093header.Text = string.Empty; 1479Assert.Equal(string.Empty, header.ImageKey); 1518Assert.Equal(string.Empty, header.ImageKey); 1558Assert.Equal(string.Empty, header.ImageKey);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
652Assert.Equal(string.Empty, actual);
System\Windows\Forms\ComboBoxTests.cs (15)
1496yield return new object[] { new ComboBox(), string.Empty, startIndex, -1 }; 1502yield return new object[] { new ComboBox(), string.Empty, startIndex, -1 }; 1559yield return new object[] { controlWithItems, string.Empty, -1, 0 }; 1560yield return new object[] { controlWithItems, string.Empty, 0, 1 }; 1561yield return new object[] { controlWithItems, string.Empty, 1, 2 }; 1562yield return new object[] { controlWithItems, string.Empty, 2, 3 }; 1563yield return new object[] { controlWithItems, string.Empty, 5, 0 }; 1602yield return new object[] { new ComboBox(), string.Empty, startIndex, ignoreCase, -1 }; 1608yield return new object[] { new ComboBox(), string.Empty, startIndex, ignoreCase, -1 }; 1677yield return new object[] { controlWithItems, string.Empty, -1, ignoreCase, 4 }; 1678yield return new object[] { controlWithItems, string.Empty, 0, ignoreCase, 4 }; 1679yield return new object[] { controlWithItems, string.Empty, 1, ignoreCase, 4 }; 1680yield return new object[] { controlWithItems, string.Empty, 2, ignoreCase, 4 }; 1681yield return new object[] { controlWithItems, string.Empty, 5, ignoreCase, 4 }; 2692Assert.Equal(string.Empty, control.Text);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
145Assert.Equal(string.Empty, urlProperty.GetValue(mediaPlayer));
System\Windows\Forms\ControlPaintTests.cs (2)
1900foreach (string s in new string[] { null, string.Empty, "string" }) 1948foreach (string s in new string[] { null, string.Empty, "string" })
System\Windows\Forms\ControlTests.cs (9)
194yield return new object[] { null, -1, -2, -3, -4, string.Empty }; 195yield return new object[] { string.Empty, 0, 0, 0, 0, string.Empty }; 290yield return new object[] { null, null, string.Empty }; 291yield return new object[] { new Control(), string.Empty, string.Empty }; 386yield return new object[] { null, null, -1, -2, -3, -4, string.Empty }; 387yield return new object[] { new Control(), string.Empty, 0, 0, 0, 0, string.Empty };
System\Windows\Forms\ControlTests.Handlers.cs (6)
2228yield return new object[] { testData, null, string.Empty }; 2229yield return new object[] { testData, string.Empty, string.Empty }; 2378yield return new object[] { testData, null, string.Empty }; 2379yield return new object[] { testData, string.Empty, string.Empty };
System\Windows\Forms\ControlTests.Methods.cs (7)
4977yield return new object[] { new Control(), string.Empty }; 5074yield return new object[] { true, new Control(), string.Empty, 1 }; 5078yield return new object[] { false, new Control(), string.Empty, 0 }; 5137yield return new object[] { true, new Control(), string.Empty, 1 }; 5141yield return new object[] { false, new Control(), string.Empty, 0 }; 6540yield return new object[] { new Control(), string.Empty, true, 1 }; 6544yield return new object[] { new Control(), string.Empty, false, 0 };
System\Windows\Forms\ControlTests.Properties.cs (6)
12055control.Text = string.Empty; 12082control.Text = string.Empty; 13781Assert.Equal(value ?? string.Empty, control.WindowText); 13785Assert.Equal(value ?? string.Empty, control.WindowText); 13796Assert.Equal(value ?? string.Empty, control.WindowText); 13800Assert.Equal(value ?? string.Empty, control.WindowText);
System\Windows\Forms\DataGridViewCellStyleTests.cs (8)
30Assert.Equal(string.Empty, style.NullValue); 96Assert.Equal(string.Empty, style.NullValue); 163yield return new object[] { string.Empty, false }; 385yield return new object[] { string.Empty, true }; 476style.NullValue = string.Empty; 477Assert.Equal(string.Empty, style.NullValue); 764Assert.Equal(string.Empty, style.NullValue); 830Assert.Equal(string.Empty, style.NullValue);
System\Windows\Forms\DataObjectTests.cs (37)
54string.Empty, 268theoryData.Add(string.Empty, result); 314theoryData.Add(string.Empty, autoConvert, result); 608theoryData.Add(string.Empty, result); 654theoryData.Add(string.Empty, autoConvert, result); 725string[] list = ["a", " ", string.Empty, null]; 786{ new string[] { "a", " ", string.Empty, null } } 809{ new string[] { "a", string.Empty, null } }, 810{ new string[] { "a", " ", string.Empty, null } } 862{ true, new string[] { "a", " ", string.Empty, null } }, 865{ false, new string[] { "a", " ", string.Empty, null } } 935{ null, string.Empty}, 936{ string.Empty, string.Empty}, 976{ TextDataFormat.Text, DataFormats.UnicodeText, null, string.Empty }, 977{ TextDataFormat.Text, DataFormats.UnicodeText, new(), string.Empty }, 978{ TextDataFormat.Text, DataFormats.UnicodeText, string.Empty, string.Empty }, 982{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, null, string.Empty }, 983{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, new(), string.Empty }, 984{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, string.Empty, string.Empty }, 988{ TextDataFormat.Rtf, DataFormats.Rtf, null, string.Empty }, 989{ TextDataFormat.Rtf, DataFormats.Rtf, new(), string.Empty }, 990{ TextDataFormat.Rtf, DataFormats.Rtf, string.Empty, string.Empty }, 994{ TextDataFormat.Html, DataFormats.Html, null, string.Empty }, 995{ TextDataFormat.Html, DataFormats.Html, new(), string.Empty }, 996{ TextDataFormat.Html, DataFormats.Html, string.Empty, string.Empty }, 1000{ TextDataFormat.CommaSeparatedValue, DataFormats.CommaSeparatedValue, null, string.Empty }, 1001{ TextDataFormat.CommaSeparatedValue, DataFormats.CommaSeparatedValue, new(), string.Empty }, 1002{ TextDataFormat.CommaSeparatedValue, DataFormats.CommaSeparatedValue, string.Empty, string.Empty }, 1359foreach (string format in new string[] { "format", " ", string.Empty, null }) 1512foreach (string format in new string[] { "format", " ", string.Empty, null }) 1603{ new StringCollection { "file", " ", string.Empty, null } }
System\Windows\Forms\DateTimePickerTests.cs (2)
117Assert.Equal(string.Empty, control.Text); 481_dateTimePicker.Text = string.Empty;
System\Windows\Forms\DragDropHelperTests.cs (18)
38yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Invalid, string.Empty, string.Empty) }; 39yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.None, string.Empty, string.Empty) }; 44yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Warning, "A problem has been encountered", string.Empty) }; 50yield return new object[] { new DataObject(), DropImageType.Invalid, string.Empty, string.Empty }; 51yield return new object[] { new DataObject(), DropImageType.None, string.Empty, string.Empty }; 56yield return new object[] { new DataObject(), DropImageType.Warning, "A problem has been encountered", string.Empty }; 62yield return new object[] { new DataObject(), DropImageType.Copy, new string('*', (int)PInvokeCore.MAX_PATH), string.Empty }; 63yield return new object[] { new DataObject(), DropImageType.Copy, string.Empty, new string('*', (int)PInvokeCore.MAX_PATH) }; 224szMessage.Should().Be(string.Empty); 225szInsert.Should().Be(string.Empty); 239() => DragDropHelper.SetDropDescription(new DataObject(), (DROPIMAGETYPE)dropImageType, string.Empty, string.Empty)); 269() => DragDropHelper.SetDropDescription(dataObject, (DROPIMAGETYPE)DropImageType.Invalid, string.Empty, string.Empty));
System\Windows\Forms\DrawToolTipEventArgsTests.cs (2)
38yield return new object[] { null, null, new Rectangle(-1, -2, -3, -4), string.Empty, Color.Empty, Color.Empty, null }; 41yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), string.Empty, Color.Red, Color.Blue, SystemFonts.DefaultFont };
System\Windows\Forms\ErrorProviderTests.cs (22)
257foreach (string value in new string[] { null, string.Empty, "dataMember" }) 259yield return new object[] { null, value, value ?? string.Empty }; 260yield return new object[] { new ContainerControl(), value, value ?? string.Empty }; 261yield return new object[] { new SubContainerControl(), value, value ?? string.Empty }; 398DataMember = string.Empty, 772foreach (string dataMember in new string[] { null, string.Empty, "dataMember" }) 801foreach (string dataMember in new string[] { null, string.Empty }) 1033yield return new object[] { blinkStyle, null, string.Empty }; 1034yield return new object[] { blinkStyle, string.Empty, string.Empty }; 1057provider.SetError(control, string.Empty); 1128foreach (string error in new string[] { null, string.Empty, "error" }) 1130yield return new object[] { blinkStyle, new SubControl(), error, error ?? string.Empty }; 1131yield return new object[] { blinkStyle, new SubControl { Visible = false }, error, error ?? string.Empty }; 1132yield return new object[] { blinkStyle, new SubControl { Parent = new() }, error, error ?? string.Empty }; 1271provider.SetError(control1, string.Empty); 1284provider.SetError(control1, string.Empty); 1285provider.SetError(control1, string.Empty); 1286provider.SetError(control1, string.Empty); 1287provider.SetError(control1, string.Empty); 1348public string this[string columnName] => string.Empty; 1350public string Error => string.Empty;
System\Windows\Forms\FeatureSupportTests.cs (6)
67foreach (string invalidType in new string[] { null, string.Empty, "NoSuchType" }) 70yield return new object[] { invalidType, string.Empty, null }; 100foreach (string invalidType in new string[] { null, string.Empty, "NoSuchType" }) 103yield return new object[] { invalidType, string.Empty, false }; 126foreach (string invalidType in new string[] { null, string.Empty, "NoSuchType" }) 129yield return new object[] { invalidType, string.Empty, new Version(1, 2, 3, 4), false };
System\Windows\Forms\FileDialogTests.cs (8)
278Assert.Equal(value ?? string.Empty, dialog.FileName); 294Assert.Equal(value ?? string.Empty, dialog.FileName); 319Assert.Equal(value ?? string.Empty, dialog.Filter); 324Assert.Equal(value ?? string.Empty, dialog.Filter); 362Assert.Equal(value ?? string.Empty, dialog.InitialDirectory); 367Assert.Equal(value ?? string.Empty, dialog.InitialDirectory); 516Assert.Equal(value ?? string.Empty, dialog.Title); 521Assert.Equal(value ?? string.Empty, dialog.Title);
System\Windows\Forms\FolderBrowserDialogTests.cs (6)
80Assert.Equal(value ?? string.Empty, dialog.Description); 84Assert.Equal(value ?? string.Empty, dialog.Description); 149Assert.Equal(value ?? string.Empty, dialog.InitialDirectory); 153Assert.Equal(value ?? string.Empty, dialog.InitialDirectory); 166Assert.Equal(value ?? string.Empty, dialog.SelectedPath); 181Assert.Equal(value ?? string.Empty, dialog.SelectedPath);
System\Windows\Forms\GroupBoxTests.cs (3)
1833foreach (string text in new string[] { null, string.Empty, "text" }) 1964yield return new object[] { string.Empty, 'a', false }; 1996yield return new object[] { string.Empty, 'a' };
System\Windows\Forms\HtmlDocumentTests.cs (3)
1514COMException ex = Assert.Throws<COMException>(() => document.AttachEventHandler(string.Empty, handler)); 1613document.DetachEventHandler(string.Empty, handler); 1724Assert.Null(document.GetElementById(string.Empty));
System\Windows\Forms\HtmlElementTests.cs (3)
1709COMException ex = Assert.Throws<COMException>(() => element.AttachEventHandler(string.Empty, handler)); 1777element.DetachEventHandler(string.Empty, handler); 2489COMException ex = Assert.Throws<COMException>(() => element.SetAttribute(string.Empty, "value"));
System\Windows\Forms\ImageList.ImageCollectionTests.cs (49)
474collection.Add(string.Empty, value); 477Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 519collection.Add(string.Empty, value); 522Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 539Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 546Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 564Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 571Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 608Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 615Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 633Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 640Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 689collection.Add(string.Empty, value); 692Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 734collection.Add(string.Empty, value); 737Assert.Equal(new string[] { "Key1", "Key2", "Key1", string.Empty, string.Empty }, collection.Keys.Cast<string>()); 754Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 761Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 779Assert.Equal(string.Empty, Assert.Single(collection.Keys)); 786Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 827Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 834Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 852Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 859Assert.Equal(new string[] { string.Empty, string.Empty }, collection.Keys.Cast<string>()); 916Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>()); 934Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>()); 1531yield return new object[] { 0, null, new string[] { string.Empty, string.Empty } }; 1532yield return new object[] { 0, string.Empty, new string[] { string.Empty, string.Empty } }; 1533yield return new object[] { 0, "name", new string[] { "name", string.Empty } }; 1535yield return new object[] { 1, null, new string[] { "KeyName", string.Empty } }; 1536yield return new object[] { 1, string.Empty, new string[] { "KeyName", string.Empty } };
System\Windows\Forms\LabelTests.cs (4)
191Assert.Equal(string.Empty, control.ImageKey); 197Assert.Equal(string.Empty, control.ImageKey); 203string key = string.Empty; 676label.ImageKey = string.Empty;
System\Windows\Forms\LinkAreaConverterTests.cs (1)
31yield return new object[] { string.Empty, null };
System\Windows\Forms\LinkConverterTests.cs (1)
29yield return new object[] { string.Empty, null };
System\Windows\Forms\ListBindingHelperTests.cs (13)
94yield return new object[] { null, string.Empty, null }; 97yield return new object[] { 1, string.Empty, 1 }; 99yield return new object[] { typeof(int), string.Empty, typeof(int) }; 107yield return new object[] { mockSource.Object, string.Empty, new int[] { 1 } }; 164yield return new object[] { new IEnumerableWrapper(new object[] { 1, string.Empty }), typeof(int) }; 171yield return new object[] { new ArrayList { 1, string.Empty }, typeof(int) }; 181Assert.Equal(list is null ? typeof(object) : expected, ListBindingHelper.GetListItemType(list, string.Empty)); 231Assert.Throws<NotSupportedException>(() => ListBindingHelper.GetListItemType(list, string.Empty)); 242yield return new object[] { string.Empty, new string[] { "Length" } }; 309properties = ListBindingHelper.GetListItemProperties(list, string.Empty, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>(); 419properties = ListBindingHelper.GetListItemProperties(list, string.Empty, listAccessors)?.Cast<PropertyDescriptor>(); 460Assert.Throws<TargetInvocationException>(() => ListBindingHelper.GetListItemProperties(new DataClass(), string.Empty, TypeDescriptor.GetProperties(typeof(ListDataClass)).Cast<PropertyDescriptor>().ToArray())); 465yield return new object[] { null, null, string.Empty };
System\Windows\Forms\ListBoxTests.cs (25)
4138yield return new object[] { formattingEnabled, SelectionMode.None, null, string.Empty, -1 }; 4139yield return new object[] { formattingEnabled, SelectionMode.None, string.Empty, string.Empty, -1 }; 4147yield return new object[] { formattingEnabled, selectionMode, null, string.Empty, -1 }; 4148yield return new object[] { formattingEnabled, selectionMode, string.Empty, string.Empty, -1 }; 4186yield return new object[] { formattingEnabled, SelectionMode.None, null, string.Empty, -1 }; 4187yield return new object[] { formattingEnabled, SelectionMode.None, string.Empty, string.Empty, -1 }; 4196yield return new object[] { formattingEnabled, selectionMode, string.Empty, "item1", 0 }; 4940yield return new object[] { new ListBox(), string.Empty, startIndex, -1 }; 4946yield return new object[] { new ListBox(), string.Empty, startIndex, -1 }; 5003yield return new object[] { controlWithItems, string.Empty, -1, 0 }; 5004yield return new object[] { controlWithItems, string.Empty, 0, 1 }; 5005yield return new object[] { controlWithItems, string.Empty, 1, 2 }; 5006yield return new object[] { controlWithItems, string.Empty, 2, 3 }; 5007yield return new object[] { controlWithItems, string.Empty, 5, 0 }; 5044yield return new object[] { new ListBox(), string.Empty, startIndex, -1 }; 5050yield return new object[] { new ListBox(), string.Empty, startIndex, -1 }; 5107yield return new object[] { controlWithItems, string.Empty, -1, 4 }; 5108yield return new object[] { controlWithItems, string.Empty, 0, 4 }; 5109yield return new object[] { controlWithItems, string.Empty, 1, 4 }; 5110yield return new object[] { controlWithItems, string.Empty, 2, 4 }; 5111yield return new object[] { controlWithItems, string.Empty, 5, 4 }; 6096yield return new object[] { string.Empty, "System.Windows.Forms.ListBox, Items.Count: 2, Items[0]: " };
System\Windows\Forms\ListControlTests.cs (12)
642Assert.Equal(value is null ? string.Empty : "Capacity", control.DisplayMember); 649Assert.Equal(value is null ? string.Empty : "Capacity", control.DisplayMember); 964Assert.Equal(value is null ? "NoSuchDisplayMember" : string.Empty, control.DisplayMember); 977Assert.Equal(value is null ? "NoSuchDisplayMember" : string.Empty, control.DisplayMember); 1306control.DisplayMember = string.Empty; 1528control.FormatString = string.Empty; 1567control.FormatString = string.Empty; 1899control.ValueMember = string.Empty; 1943yield return new object[] { new List<DataClass> { new() { Value = "NoSuchValue" } }, string.Empty }; 2245string.Empty, 2341new SubListControl(), null, string.Empty 2374string.Empty
System\Windows\Forms\ListViewGroupTests.cs (20)
59yield return new object[] { null, HorizontalAlignment.Left, string.Empty }; 60yield return new object[] { string.Empty, HorizontalAlignment.Right, string.Empty }; 89yield return new object[] { null, null, string.Empty }; 90yield return new object[] { string.Empty, string.Empty, string.Empty }; 351var data = new (string, int)[] { (null, -1), (string.Empty, -1), ("text", 0), ("te\0t", 0) }; 478yield return new object[] { null, string.Empty }; 479yield return new object[] { string.Empty, string.Empty }; 644yield return new object[] { null, value, string.Empty }; 645yield return new object[] { string.Empty, value, string.Empty }; 732yield return new object[] { string.Empty, HorizontalAlignment.Left, 0x00000008 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 733yield return new object[] { string.Empty, HorizontalAlignment.Center, 0x00000010 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 734yield return new object[] { string.Empty, HorizontalAlignment.Right, 0x00000020 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 984yield return new object[] { string.Empty, HorizontalAlignment.Left, 0x00000001 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 985yield return new object[] { string.Empty, HorizontalAlignment.Center, 0x00000002 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 986yield return new object[] { string.Empty, HorizontalAlignment.Right, 0x00000004 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT };
System\Windows\Forms\ListViewItemConverterTests.cs (2)
73new object[] { string.Empty } 79new object[] { string.Empty }
System\Windows\Forms\ListViewItemTests.cs (84)
26Assert.Equal(string.Empty, item.ImageKey); 46yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 47yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 48yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 85yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 86yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 123yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 124yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 161yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 162yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 198yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), null, null, string.Empty, string.Empty }; 199yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, string.Empty, null, string.Empty, "text" }; 235yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), 0, null, string.Empty }; 253Assert.Equal(string.Empty, item.ImageKey); 272yield return new object[] { null, null, null, string.Empty, string.Empty }; 273yield return new object[] { Array.Empty<string>(), null, null, string.Empty, string.Empty }; 274yield return new object[] { new string[] { null }, string.Empty, new ListViewGroup(), string.Empty, string.Empty }; 310yield return new object[] { null, -1, null, string.Empty }; 311yield return new object[] { Array.Empty<string>(), 0, null, string.Empty }; 312yield return new object[] { new string[] { null }, 1, new ListViewGroup(), string.Empty }; 348yield return new object[] { null, null, null, string.Empty, string.Empty }; 349yield return new object[] { string.Empty, string.Empty, new ListViewGroup(), string.Empty, string.Empty }; 386yield return new object[] { null, -1, null, string.Empty }; 387yield return new object[] { string.Empty, 0, new ListViewGroup(), string.Empty }; 424yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), null, string.Empty, string.Empty }; 425yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, string.Empty, string.Empty, "text" }; 461yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), 0, string.Empty }; 479Assert.Equal(string.Empty, item.ImageKey); 498yield return new object[] { null, null, string.Empty }; 499yield return new object[] { Array.Empty<string>(), null, string.Empty }; 500yield return new object[] { new string[] { null }, new ListViewGroup(), string.Empty }; 536yield return new object[] { null, null, string.Empty, string.Empty }; 537yield return new object[] { Array.Empty<string>(), null, string.Empty, string.Empty }; 538yield return new object[] { new string[] { null }, string.Empty, string.Empty, string.Empty }; 574yield return new object[] { null, -1, string.Empty }; 575yield return new object[] { Array.Empty<string>(), 0, string.Empty }; 576yield return new object[] { new string[] { null }, 1, string.Empty }; 593Assert.Equal(string.Empty, item.ImageKey); 612yield return new object[] { null, null, string.Empty }; 613yield return new object[] { string.Empty, null, string.Empty }; 630Assert.Equal(string.Empty, item.ImageKey); 650yield return new object[] { null, null, string.Empty, string.Empty }; 651yield return new object[] { string.Empty, string.Empty, string.Empty, string.Empty }; 688yield return new object[] { null, -1, string.Empty }; 689yield return new object[] { string.Empty, 0, string.Empty }; 706Assert.Equal(string.Empty, item.ImageKey); 743Assert.Equal(string.Empty, item.ImageKey); 763yield return new object[] { null, string.Empty }; 764yield return new object[] { Array.Empty<string>(), string.Empty }; 765yield return new object[] { new string[] { null }, string.Empty };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (3)
259yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 260yield return new object[] { string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty };
System\Windows\Forms\ListViewSubItemTests.cs (8)
30yield return new object[] { null, null, string.Empty }; 31yield return new object[] { new ListViewItem(), string.Empty, string.Empty }; 56yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 57yield return new object[] { new ListViewItem(), string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 59yield return new object[] { new ListViewItem() { BackColor = Color.Yellow, ForeColor = Color.Yellow, Font = SystemFonts.StatusFont }, string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty };
System\Windows\Forms\ListViewTests.cs (19)
1878yield return new object[] { showGroups, null, HorizontalAlignment.Left, null, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 }; 1879yield return new object[] { showGroups, null, HorizontalAlignment.Center, null, HorizontalAlignment.Center, string.Empty, string.Empty, 0x00000012 }; 1880yield return new object[] { showGroups, null, HorizontalAlignment.Right, null, HorizontalAlignment.Left, string.Empty, string.Empty, 0x0000000C }; 1882yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Left, string.Empty, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 }; 1883yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Center, string.Empty, HorizontalAlignment.Center, string.Empty, string.Empty, 0x00000012 }; 1884yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Right, string.Empty, HorizontalAlignment.Left, string.Empty, string.Empty, 0x0000000C }; 4845Assert.Equal(string.Empty, new string(wrapper.Info.lpszText));
System\Windows\Forms\MenuStripTests.cs (1)
443yield return new object[] { string.Empty, new Bitmap(10, 10), onClick };
System\Windows\Forms\NativeWindowTests.cs (2)
136yield return new object[] { string.Empty, string.Empty };
System\Windows\Forms\NotifyIconTests.cs (6)
337yield return new object[] { visible, icon, null, string.Empty }; 338yield return new object[] { visible, icon, string.Empty, string.Empty }; 387yield return new object[] { visible, icon, null, string.Empty, 0 }; 388yield return new object[] { visible, icon, string.Empty, string.Empty, 0 };
System\Windows\Forms\PaddingConverterTests.cs (1)
32yield return new object[] { string.Empty, null };
System\Windows\Forms\PictureBoxTests.cs (5)
711pictureBox.ImageLocation = string.Empty; 712Assert.Same(string.Empty, pictureBox.ImageLocation); 1971Assert.Throws<InvalidOperationException>(() => pictureBox.Load(string.Empty)); 1972Assert.Same(string.Empty, pictureBox.ImageLocation); 2532yield return new object[] { string.Empty, testData };
System\Windows\Forms\PropertyStoreTests.cs (3)
211store.GetStringOrEmptyString(1).Should().Be(string.Empty); 213store.AddOrRemoveString(1, string.Empty); 215store.GetStringOrEmptyString(1).Should().Be(string.Empty);
System\Windows\Forms\RichTextBoxTests.cs (69)
2340yield return new object[] { IntPtr.Zero, IntPtr.Zero, string.Empty }; 4706yield return new object[] { 0, 0, 0, Array.Empty<char>(), string.Empty, 13, FontStyle.Regular }; 6777yield return new object[] { null, string.Empty }; 6778yield return new object[] { string.Empty, string.Empty }; 7020yield return new object[] { autoSize, null, string.Empty }; 7021yield return new object[] { autoSize, string.Empty, string.Empty }; 7089yield return new object[] { true, null, string.Empty, 1 }; 7090yield return new object[] { true, string.Empty, string.Empty, 1 }; 7093yield return new object[] { false, null, string.Empty, 0 }; 7094yield return new object[] { false, string.Empty, string.Empty, 0 }; 7148yield return new object[] { string.Empty, 0, 2, null, string.Empty }; 7149yield return new object[] { string.Empty, 0, 2, "t", "t" }; 7150yield return new object[] { string.Empty, 0, 2, "text", "text" }; 7152yield return new object[] { string.Empty, 1, 2, null, string.Empty }; 7153yield return new object[] { string.Empty, 1, 2, "t", "t" }; 7154yield return new object[] { string.Empty, 1, 2, "text", "text" }; 7156yield return new object[] { "text", 0, 2, null, string.Empty }; 7161yield return new object[] { "text", 1, 2, null, string.Empty }; 7433yield return new object[] { string.Empty, 0, 2, null, string.Empty }; 7434yield return new object[] { string.Empty, 0, 2, "t", "t" }; 7435yield return new object[] { string.Empty, 0, 2, "text", "text" }; 7437yield return new object[] { string.Empty, 1, 2, null, string.Empty }; 7438yield return new object[] { string.Empty, 1, 2, "t", "t" }; 7439yield return new object[] { string.Empty, 1, 2, "text", "text" }; 7441yield return new object[] { "text", 0, 2, null, string.Empty }; 7446yield return new object[] { "text", 1, 2, null, string.Empty }; 7645yield return new object[] { IntPtr.Zero, IntPtr.Zero, string.Empty }; 7933yield return new object[] { string.Empty, string.Empty, -1 }; 7934yield return new object[] { string.Empty, "abc", -1 }; 7936yield return new object[] { "abc", string.Empty, -1 }; 7969yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.None, -1 }; 7970yield return new object[] { string.Empty, "abc", RichTextBoxFinds.None, -1 }; 7971yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.Reverse, -1 }; 7972yield return new object[] { string.Empty, "abc", RichTextBoxFinds.Reverse, -1 }; 7974yield return new object[] { "abc", string.Empty, RichTextBoxFinds.None, -1 }; 7989yield return new object[] { "aa", string.Empty, RichTextBoxFinds.Reverse, -1 }; 8020yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.None, -1 }; 8021yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.None, -1 }; 8022yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.Reverse, -1 }; 8023yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.Reverse, -1 }; 8025yield return new object[] { "abc", string.Empty, 0, RichTextBoxFinds.None, -1 }; 8040yield return new object[] { "aa", string.Empty, 0, RichTextBoxFinds.Reverse, -1 }; 8080yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.None, -1 }; 8081yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.None, -1 }; 8082yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.Reverse, -1 }; 8083yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.Reverse, -1 }; 8085yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.None, -1 }; 8100yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.Reverse, -1 }; 8234yield return new object[] { string.Empty, Array.Empty<char>(), -1 }; 8235yield return new object[] { string.Empty, new char[] { 'a', 'b', 'c' }, -1 }; 8272yield return new object[] { string.Empty, Array.Empty<char>(), 0, -1 }; 8273yield return new object[] { string.Empty, new char[] { 'a', 'b', 'c' }, 0, -1 }; 8316yield return new object[] { string.Empty, Array.Empty<char>(), 0, end, -1 }; 8317yield return new object[] { string.Empty, new char[] { 'a', 'b', 'c' }, 0, end, -1 };
System\Windows\Forms\StatusStripTests.cs (1)
877yield return new object[] { string.Empty, new Bitmap(10, 10), onClick };
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (1)
117yield return new object[] { string.Empty, null };
System\Windows\Forms\TableLayoutPanelTests.cs (1)
1323yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) };
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
543string expected = string.Empty;
System\Windows\Forms\TextRendererTests.cs (17)
21foreach (string text in new string[] { null, string.Empty, "string" }) 50foreach (string text in new string[] { null, string.Empty, "string" }) 84foreach (string text in new string[] { null, string.Empty, "string" }) 121foreach (string text in new string[] { null, string.Empty, "string" }) 162foreach (string text in new string[] { null, string.Empty, "string" }) 194foreach (string text in new string[] { null, string.Empty, "string" }) 230foreach (string text in new string[] { null, string.Empty, "string" }) 270foreach (string text in new string[] { null, string.Empty, "string" }) 566Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont)); 567Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400))); 568Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default)); 619string.Empty.AsSpan(), 626string.Empty.AsSpan(), 634string.Empty.AsSpan(), 641string.Empty.AsSpan(), 649string.Empty.AsSpan(), 654string.Empty.AsSpan(),
System\Windows\Forms\ToolStripButtonTests.cs (6)
266foreach (string text in new string[] { null, string.Empty, "text" }) 359yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 456yield return new object[] { null, null, null, null, string.Empty }; 457yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty };
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
404_toolStripComboBox.SelectedText = string.Empty;
System\Windows\Forms\ToolStripControlHostTests.cs (2)
1758foreach (string name in new string[] { null, string.Empty, "name" }) 2292item.Text = string.Empty;
System\Windows\Forms\ToolStripDropDownItemTests.cs (6)
101yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 199yield return new object[] { null, null, null, null, string.Empty }; 200yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 297yield return new object[] { string.Empty, new Bitmap(10, 10), Array.Empty<ToolStripItem>(), Array.Empty<ToolStripItem>() };
System\Windows\Forms\ToolStripDropDownTests.cs (1)
2955yield return new object[] { string.Empty, new Bitmap(10, 10), onClick };
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
196collection[string.Empty].Should().BeNull(); 221collection.ContainsKey(string.Empty).Should().BeFalse();
System\Windows\Forms\ToolStripItemTests.cs (16)
100yield return new object[] { string.Empty, new Bitmap(10, 10), onClick }; 194yield return new object[] { null, null, null, null, string.Empty }; 195yield return new object[] { string.Empty, new Bitmap(10, 10), onClick, string.Empty, string.Empty }; 5235item.ImageKey = string.Empty; 5266item.ImageKey = string.Empty; 5305item.ImageKey = string.Empty; 5327item.ImageKey = string.Empty; 5358item.ImageKey = string.Empty; 5397item.ImageKey = string.Empty; 8277item.Text = string.Empty; 9085item.ToolTipText = string.Empty; 9112item.ToolTipText = string.Empty; 11830foreach (string toolTipText in new string[] { null, string.Empty, "ToolTipText" }) 11930foreach (string toolTipText in new string[] { null, string.Empty, "ToolTipText" })
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
76Assert.Empty(item.Name ?? string.Empty); 92Assert.Empty(item.Text ?? string.Empty);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
613item.Text = string.Empty;
System\Windows\Forms\ToolStripTests.cs (1)
4273yield return new object[] { string.Empty, new Bitmap(10, 10), onClick };
System\Windows\Forms\ToolTipTests.cs (1)
741yield return new object[] { string.Empty, duration };
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
363{ string.Empty, null }
System\Windows\Forms\TreeNodeTests.cs (9)
98TreeNode_Ctor_String_TreeNodeArray_Helper(null, Array.Empty<TreeNode>(), string.Empty); 99TreeNode_Ctor_String_TreeNodeArray_Helper(string.Empty, Array.Empty<TreeNode>(), string.Empty); 4067yield return new object[] { checkBoxes, null, string.Empty }; 4068yield return new object[] { checkBoxes, string.Empty, string.Empty }; 4378yield return new object[] { scrollable, null, string.Empty }; 4379yield return new object[] { scrollable, string.Empty, string.Empty };
System\Windows\Forms\TreeViewTests.cs (4)
76Assert.Equal(string.Empty, control.ImageKey); 108Assert.Equal(string.Empty, control.SelectedImageKey); 4695control.Text = string.Empty; 6633Assert.Equal(string.Empty, new string(wrapper.Info.lpszText));
System\Windows\Forms\UpDownBaseTests.cs (6)
1235yield return new object[] { changingText, true, null, string.Empty, 1, 0, true }; 1236yield return new object[] { changingText, false, null, string.Empty, 0, 0, false }; 1237yield return new object[] { changingText, true, string.Empty, string.Empty, 1, 0, true }; 1238yield return new object[] { changingText, false, string.Empty, string.Empty, 0, 0, false };
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (1)
13yield return new object[] { string.Empty, 0, 0 };
System\Windows\Forms\VisualStyles\VisualStyleInformationTests.cs (3)
35if (scheme != string.Empty) 124if (size != string.Empty) 170if (version != string.Empty)
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (4)
102yield return new object[] { VisualStyleElement.CreateElement(string.Empty, 0, 0), false }; 400foreach (string textToDraw in new string[] { null, string.Empty, "text" }) 428foreach (string textToDraw in new string[] { null, string.Empty, "text" }) 459foreach (string textToDraw in new string[] { null, string.Empty, "text" })
System\Windows\Forms\WebBrowserTests.cs (1)
822control.DocumentText = string.Empty;
TextBoxBaseTests.cs (72)
1595yield return new object[] { string.Empty, Array.Empty<string>() }; 1596yield return new object[] { "\r", new string[] { string.Empty, string.Empty } }; 1597yield return new object[] { "\n", new string[] { string.Empty, string.Empty } }; 1598yield return new object[] { "\r\n", new string[] { string.Empty, string.Empty } }; 1602yield return new object[] { "\rabc", new string[] { string.Empty, "abc" } }; 1603yield return new object[] { "\nabc", new string[] { string.Empty, "abc" } }; 1604yield return new object[] { "\r\nabc", new string[] { string.Empty, "abc" } }; 1606yield return new object[] { "abc\r", new string[] { "abc", string.Empty } }; 1607yield return new object[] { "abc\n", new string[] { "abc", string.Empty } }; 1608yield return new object[] { "abc\r\n", new string[] { "abc", string.Empty } }; 1628yield return new object[] { null, Array.Empty<string>(), string.Empty }; 1629yield return new object[] { Array.Empty<string>(), Array.Empty<string>(), string.Empty }; 1630yield return new object[] { Array.Empty<string>(), Array.Empty<string>(), string.Empty }; 2606yield return new object[] { string.Empty, 0, 0, null, string.Empty, 0 }; 2607yield return new object[] { string.Empty, 0, 0, string.Empty, string.Empty, 0 }; 2608yield return new object[] { string.Empty, 0, 0, "abc", "abc", 3 }; 2611yield return new object[] { "text", 0, 0, string.Empty, "text", 0 }; 2615yield return new object[] { "text", 1, 0, string.Empty, "text", 1 }; 2619yield return new object[] { "text", 3, 0, string.Empty, "text", 3 }; 2623yield return new object[] { "text", 0, 2, string.Empty, "xt", 0 }; 2627yield return new object[] { "text", 1, 2, string.Empty, "tt", 1 }; 2630yield return new object[] { "text", 0, 4, null, string.Empty, 0 }; 2631yield return new object[] { "text", 0, 4, string.Empty, string.Empty, 0 }; 3245yield return new object[] { string.Empty, 0, 2, null, string.Empty, 0, 0, string.Empty }; 3246yield return new object[] { string.Empty, 0, 2, "t", "t", 0, 1, "t" }; 3247yield return new object[] { string.Empty, 0, 2, "text", "text", 0, 2, "te" }; 3249yield return new object[] { string.Empty, 1, 2, null, string.Empty, 0, 0, string.Empty }; 3250yield return new object[] { string.Empty, 1, 2, "t", "t", 0, 1, "t" }; 3251yield return new object[] { string.Empty, 1, 2, "text", "text", 0, 2, "te" }; 3253yield return new object[] { "text", 0, 2, null, string.Empty, 0, 0, string.Empty }; 3258yield return new object[] { "text", 1, 2, null, string.Empty, 0, 0, string.Empty }; 3259yield return new object[] { "text", 1, 2, "t", "t", 1, 0, string.Empty }; 3412yield return new object[] { string.Empty, 0, 2, null, string.Empty }; 3413yield return new object[] { string.Empty, 0, 2, "t", "t" }; 3414yield return new object[] { string.Empty, 0, 2, "text", "text" }; 3416yield return new object[] { string.Empty, 1, 2, null, string.Empty }; 3417yield return new object[] { string.Empty, 1, 2, "t", "t" }; 3418yield return new object[] { string.Empty, 1, 2, "text", "text" }; 3420yield return new object[] { "text", 0, 2, null, string.Empty }; 3425yield return new object[] { "text", 1, 2, null, string.Empty }; 4476yield return new object[] { string.Empty, (IntPtr)(-1), 0 }; 4477yield return new object[] { string.Empty, (IntPtr)0, 0 }; 4478yield return new object[] { string.Empty, (IntPtr)1, 0 }; 4479yield return new object[] { string.Empty, (IntPtr)short.MaxValue, 0 }; 4480yield return new object[] { string.Empty, (IntPtr)int.MaxValue, 0 }; 6208yield return new object[] { string.Empty, 0, -1, 0, 0, string.Empty }; 6209yield return new object[] { string.Empty, 0, 0, 0, 0, string.Empty }; 6210yield return new object[] { string.Empty, 0, 1, 0, 0, string.Empty }; 6211yield return new object[] { string.Empty, 1, 1, 0, 0, string.Empty }; 6213yield return new object[] { "text", 0, -1, 0, 0, string.Empty }; 6214yield return new object[] { "text", 0, 0, 0, 0, string.Empty }; 6219yield return new object[] { "text", 4, 1, 4, 0, string.Empty }; 6220yield return new object[] { "text", 5, 1, 4, 0, string.Empty };
TextBoxTests.cs (2)
349Assert.Equal(string.Empty, tb.PlaceholderText); 402Assert.Equal(string.Empty, tb.PlaceholderText);
System.Windows.Forms.TestUtilities (1)
ResxHelper.cs (1)
23{data ?? string.Empty}
System.Windows.Forms.UI.IntegrationTests (8)
DragDropTests.cs (5)
130string dragAcceptRtfDestPath = string.Empty; 155string dragAcceptRtfContent = string.Empty; 156string dragAcceptRtfTextContent = string.Empty; 570return string.Empty; 1032ToolTipText = string.Empty,
Infra\DataCollectionService.cs (2)
31logId: string.Empty, 178File.WriteAllText(CreateLogFileName(logDir, timestamp, testName, errorId, logId: string.Empty, "log"), exceptionDetails.ToString());
PropertyGridTests.cs (1)
413string originalValue = propertyDescriptor?.GetValue(textBox) as string ?? string.Empty;
System.Xaml (47)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
62string errorMessage = string.Empty;
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\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;
System.Xaml.Tests (14)
System\Windows\Markup\ValueSerializerTests.cs (4)
16yield return new object?[] { string.Empty }; 33yield return new object?[] { string.Empty }; 50yield return new object?[] { string.Empty }; 84yield return new object?[] { string.Empty };
System\Xaml\Replacements\DateTimeConverter2Tests.cs (1)
94Assert.Equal(value ?? string.Empty, converter.ConvertTo(value, typeof(string)));
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (1)
103Assert.Equal(value ?? string.Empty, converter.ConvertTo(value, typeof(string)));
System\Xaml\Replacements\EventConverterTests.cs (2)
165Assert.Equal(value ?? string.Empty, converter.ConvertTo(value, typeof(string))); 166Assert.Equal(value ?? string.Empty, converter.ConvertTo(new CustomTypeDescriptorContext(), null, value, typeof(string)));
System\Xaml\Replacements\TypeListConverterTests.cs (1)
64Assert.Equal(value ?? string.Empty, converter.ConvertTo(value, typeof(string)));
System\Xaml\Replacements\TypeTypeConverterTests.cs (2)
260Assert.Equal(value ?? string.Empty, converter.ConvertTo(value, typeof(string))); 261Assert.Equal(value ?? string.Empty, converter.ConvertTo(new CustomTypeDescriptorContext(), null, value, typeof(string)));
System\Xaml\Replacements\TypeUriConverterTests.cs (1)
163Assert.Equal(value ?? string.Empty, converter.ConvertTo(value, typeof(string)));
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (2)
258Assert.Equal(value ?? string.Empty, converter.ConvertTo(value, typeof(string))); 259Assert.Equal(value ?? string.Empty, converter.ConvertTo(new CustomTypeDescriptorContext(), null, value, typeof(string)));
TagHelpersWebSite (1)
TagHelpers\PrettyTagHelper.cs (1)
48var style = Style ?? string.Empty;
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
285evaluatedTaskAssemblyPath = String.Empty;
Templates.Blazor.Tests (8)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
151var styleSheetHref = styleSheet.Href.Replace("_", string.Empty).Replace("about://", string.Empty);
src\ProjectTemplates\Shared\Project.cs (3)
53public string RuntimeIdentifier { get; set; } = string.Empty; 293return str.Replace("\n", string.Empty).Replace("\r", string.Empty);
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
Templates.Blazor.WebAssembly.Auth.Tests (8)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
151var styleSheetHref = styleSheet.Href.Replace("_", string.Empty).Replace("about://", string.Empty);
src\ProjectTemplates\Shared\Project.cs (3)
53public string RuntimeIdentifier { get; set; } = string.Empty; 293return str.Replace("\n", string.Empty).Replace("\r", string.Empty);
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
Templates.Blazor.WebAssembly.Tests (8)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
151var styleSheetHref = styleSheet.Href.Replace("_", string.Empty).Replace("about://", string.Empty);
src\ProjectTemplates\Shared\Project.cs (3)
53public string RuntimeIdentifier { get; set; } = string.Empty; 293return str.Replace("\n", string.Empty).Replace("\r", string.Empty);
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
Templates.Mvc.Tests (8)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
151var styleSheetHref = styleSheet.Href.Replace("_", string.Empty).Replace("about://", string.Empty);
src\ProjectTemplates\Shared\Project.cs (3)
53public string RuntimeIdentifier { get; set; } = string.Empty; 293return str.Replace("\n", string.Empty).Replace("\r", string.Empty);
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
Templates.Tests (8)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
151var styleSheetHref = styleSheet.Href.Replace("_", string.Empty).Replace("about://", string.Empty);
src\ProjectTemplates\Shared\Project.cs (3)
53public string RuntimeIdentifier { get; set; } = string.Empty; 293return str.Replace("\n", string.Empty).Replace("\r", string.Empty);
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 554key.ImportFromEncryptedPem(pem, string.Empty);
Test.Utilities (3)
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;
Text.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
133appendChildren(indent: string.Empty);
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;
Text.Analyzers.UnitTests (1)
IdentifiersShouldBeSpelledCorrectlyTests.cs (1)
854{(isStatic ? "static " : string.Empty)}{constructorName}({parameter}) {{ }}
TrimTest (1)
Form1.cs (1)
43string text = comboBox1.SelectedItem as string ?? comboBox1.Text ?? 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 (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
385Output = output ?? string.Empty;
src\Compilers\Shared\BuildServerConnection.cs (1)
581.Replace("=", string.Empty);
VBCSCompiler (2)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
385Output = output ?? string.Empty;
src\Compilers\Shared\BuildServerConnection.cs (1)
581.Replace("=", string.Empty);
VBCSCompiler.UnitTests (4)
CompilerServerTests.cs (1)
1485var request = new BuildRequest(RequestLanguage.CSharpCompile, string.Empty, new BuildRequest.Argument[0]);
ServerUtil.cs (1)
39output: string.Empty);
TouchedFileLoggingTests.cs (2)
83Assert.Equal(string.Empty, outWriter.ToString().Trim()); 134Assert.Equal(string.Empty, outWriter.ToString().Trim());
VisualBasicSyntaxGenerator (1)
Tests\TestWriter.vb (1)
120Dim namespacePrefix As String = If(isGreen, "InternalSyntax.", String.Empty)
WindowsBase.Tests (94)
System\ComponentModel\ItemPropertyInfoTests.cs (1)
11yield return new object?[] { string.Empty, typeof(int), new object() };
System\ComponentModel\PropertyChangedEventManagerTests.cs (26)
45source.OnPropertyChanged(source, new PropertyChangedEventArgs(string.Empty)); 135source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 153source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 180source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 198source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 225source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 243source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 270source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 288source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 315source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 333source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 360source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 378source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 457source.OnPropertyChanged(source, new PropertyChangedEventArgs(string.Empty)); 562source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 580source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 607source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 625source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 652source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 670source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 697source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 715source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 742source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 760source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty)); 787source1.OnPropertyChanged(source1, new PropertyChangedEventArgs(string.Empty)); 805source2.OnPropertyChanged(source2, new PropertyChangedEventArgs(string.Empty));
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (1)
136Assert.Throws<ArgumentException>("value", () => manager.HashAlgorithm = string.Empty);
System\Windows\Converters\Int32RectValueSerializerTests.cs (3)
15yield return new object?[] { string.Empty, false }; 43yield return new object?[] { string.Empty }; 60yield return new object?[] { string.Empty };
System\Windows\Converters\PointValueSerializerTests.cs (3)
15yield return new object?[] { string.Empty, false }; 43yield return new object?[] { string.Empty }; 60yield return new object?[] { string.Empty };
System\Windows\Converters\RectValueSerializerTests.cs (3)
15yield return new object?[] { string.Empty, false }; 43yield return new object?[] { string.Empty }; 60yield return new object?[] { string.Empty };
System\Windows\Converters\SizeValueSerializerTests.cs (3)
15yield return new object?[] { string.Empty, false }; 43yield return new object?[] { string.Empty }; 60yield return new object?[] { string.Empty };
System\Windows\Converters\VectorValueSerializerTests.cs (3)
15yield return new object?[] { string.Empty, false }; 43yield return new object?[] { string.Empty }; 60yield return new object?[] { string.Empty };
System\Windows\DependencyPropertyTests.cs (8)
222Assert.Throws<ArgumentException>("name", () => DependencyProperty.Register(string.Empty, typeof(int), typeof(DependencyPropertyTests))); 537Assert.Throws<ArgumentException>("name", () => DependencyProperty.RegisterAttached(string.Empty, typeof(int), typeof(DependencyPropertyTests))); 538Assert.Throws<ArgumentException>("name", () => DependencyProperty.RegisterAttached(string.Empty, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata())); 539Assert.Throws<ArgumentException>("name", () => DependencyProperty.RegisterAttached(string.Empty, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true)); 822Assert.Throws<ArgumentException>("name", () => DependencyProperty.RegisterReadOnly(string.Empty, typeof(int), typeof(DependencyObject), new PropertyMetadata())); 823Assert.Throws<ArgumentException>("name", () => DependencyProperty.RegisterReadOnly(string.Empty, typeof(int), typeof(DependencyObject), new PropertyMetadata(), value => true)); 1117Assert.Throws<ArgumentException>("name", () => DependencyProperty.RegisterAttachedReadOnly(string.Empty, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata())); 1118Assert.Throws<ArgumentException>("name", () => DependencyProperty.RegisterAttachedReadOnly(string.Empty, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
System\Windows\ExpressionConverterTests.cs (4)
34yield return new object?[] { string.Empty, typeof(object) }; 39yield return new object?[] { string.Empty, typeof(string) }; 44yield return new object?[] { string.Empty, typeof(Expression) }; 62yield return new object?[] { string.Empty };
System\Windows\Input\KeyConverterTests.cs (3)
187yield return new object?[] { string.Empty, typeof(object) }; 193yield return new object?[] { string.Empty, typeof(Key) }; 212yield return new object?[] { string.Empty };
System\Windows\Input\KeyValueSerializerTests.cs (2)
14yield return new object?[] { string.Empty, false }; 85yield return new object?[] { string.Empty };
System\Windows\Input\ModifierKeysConverterTests.cs (3)
153yield return new object?[] { string.Empty, typeof(object) }; 159yield return new object?[] { string.Empty, typeof(Key) }; 178yield return new object?[] { string.Empty };
System\Windows\Input\ModifierKeysValueSerializerTests.cs (2)
14yield return new object?[] { string.Empty, false }; 81yield return new object?[] { string.Empty };
System\Windows\Int32RectConverterTests.cs (3)
63yield return new object?[] { string.Empty, typeof(object) }; 69yield return new object?[] { string.Empty, typeof(Int32Rect) }; 88yield return new object?[] { string.Empty };
System\Windows\Media\Converters\MatrixValueSerializerTests.cs (3)
15yield return new object?[] { string.Empty, false }; 43yield return new object?[] { string.Empty }; 60yield return new object?[] { string.Empty };
System\Windows\Media\MatrixConverterTests.cs (3)
63yield return new object?[] { string.Empty, typeof(object) }; 69yield return new object?[] { string.Empty, typeof(Matrix) }; 88yield return new object?[] { string.Empty };
System\Windows\NameScopeTests.cs (5)
190Assert.Throws<ArgumentException>(() => nameScope.Add(string.Empty, scopedElement)); 311Assert.Throws<ArgumentException>(() => nameScope.Add(string.Empty, scopedElement)); 405Assert.Throws<ArgumentException>(() => nameScope.Add(new KeyValuePair<string, object>(string.Empty, scopedElement))); 908Assert.Throws<ArgumentException>(() => nameScope.RegisterName(string.Empty, scopedElement)); 1152Assert.Throws<ArgumentException>(() => nameScope.UnregisterName(string.Empty));
System\Windows\PointConverterTests.cs (3)
63yield return new object?[] { string.Empty, typeof(object) }; 69yield return new object?[] { string.Empty, typeof(Point) }; 88yield return new object?[] { string.Empty };
System\Windows\RectConverterTests.cs (3)
63yield return new object?[] { string.Empty, typeof(object) }; 69yield return new object?[] { string.Empty, typeof(Rect) }; 88yield return new object?[] { string.Empty };
System\Windows\SizeConverterTests.cs (3)
63yield return new object?[] { string.Empty, typeof(object) }; 69yield return new object?[] { string.Empty, typeof(Size) }; 88yield return new object?[] { string.Empty };
System\Windows\SplashScreenTests.cs (2)
46Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(string.Empty)); 47Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(Assembly.GetEntryAssembly(), string.Empty));
System\Windows\Threading\DispatcherTests.cs (1)
71Dispatcher.ValidatePriority(priority, string.Empty);
System\Windows\VectorConverterTests.cs (3)
63yield return new object?[] { string.Empty, typeof(object) }; 69yield return new object?[] { string.Empty, typeof(Vector) }; 88yield return new object?[] { string.Empty };
WinFormsControlsTest (2)
DragDrop.cs (2)
16private readonly string _nyanCatAscii = string.Empty; 414return string.Empty;
WsFedSample (1)
Startup.cs (1)
161string.IsNullOrEmpty(content) ? string.Empty : HtmlEncoder.Default.Encode(content);
XmlFileLogger (2)
ObjectModel\Build.cs (1)
281return _taskToAssemblyMap.TryGetValue(taskName, out assembly) ? assembly : string.Empty;
ObjectModel\Project.cs (1)
99new XAttribute("Name", Name.Replace("\"", string.Empty)),
xunit.assert (6)
Sdk\AssertHelper.cs (2)
378 VerifyEquivalence(expected, actual, strict, string.Empty, new HashSet<object>(referenceEqualityComparer), new HashSet<object>(referenceEqualityComparer), 1); 695 var prefixDot = prefix.Length == 0 ? string.Empty : prefix + ".";
Sdk\Exceptions\EquivalentException.cs (4)
161 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, ": Mismatched value on member '{0}'", memberName), 191 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 226 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 254 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName),
xunit.console (14)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
97result.Add(string.Empty);
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\PlatformApis.cs (4)
42return NativeMethods.Windows.RtlGetVersion() ?? string.Empty; 44return GetDistroVersionId() ?? string.Empty; 46return GetDarwinVersion() ?? string.Empty; 48return string.Empty;
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\RuntimeEnvironment.cs (4)
39return string.Empty; 53return string.Empty; 60return string.Empty; // Unknown Platform? Unknown Version! 87return string.Empty; // Unknown version
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (4)
58var runtime = string.Empty; 59var framework = string.Empty; 421runtimeAssemblyGroups.Add(new RuntimeAssetGroup(string.Empty, targetLibrary.Runtimes)); 426nativeLibraryGroups.Add(new RuntimeAssetGroup(string.Empty, targetLibrary.Natives));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (1)
71return new string[] { string.Empty };