7051 references to IsNullOrEmpty
AnalyzerRunner (7)
Program.cs (7)
52if (!string.IsNullOrEmpty(options.ProfileRoot)) 73if (!string.IsNullOrEmpty(options.ProfileRoot)) 107if (!string.IsNullOrEmpty(options.ProfileRoot)) 117if (!string.IsNullOrEmpty(options.ProfileRoot)) 127if (!string.IsNullOrEmpty(options.ProfileRoot)) 155if (string.IsNullOrEmpty(description)) 158if (string.IsNullOrEmpty(description))
ApplicationModelWebSite (1)
Conventions\CloneActionConvention.cs (1)
17if (!string.IsNullOrEmpty(actionName))
aspire (10)
Backchannel\ExtensionBackchannel.cs (1)
506Debug.Assert(!string.IsNullOrEmpty(serverCertificate));
Commands\ExecCommand.cs (1)
112if (string.IsNullOrEmpty(targetResource))
Commands\PublishCommandBase.cs (2)
377if (currentStepProgress.TaskCompletionMessages != null && !string.IsNullOrEmpty(activity.Data.CompletionMessage)) 643if (completionMessages.TryGetValue(task.Id, out var completionMessage) && !string.IsNullOrEmpty(completionMessage))
Configuration\ConfigurationService.cs (1)
234var key = string.IsNullOrEmpty(prefix) ? kvp.Key : $"{prefix}.{kvp.Key}";
Configuration\Features.cs (1)
16if (string.IsNullOrEmpty(value))
DotNetCliRunner.cs (1)
621if (!string.IsNullOrEmpty(nugetSource))
src\Shared\PathNormalizer.cs (1)
10if (string.IsNullOrEmpty(path))
Templating\DotNetTemplateFactory.cs (2)
134if (string.IsNullOrEmpty(testFramework)) 160if (string.IsNullOrEmpty(xunitVersion))
Aspire.Azure.AI.Inference (4)
AspireAzureAIInferenceExtensions.cs (2)
120if (!string.IsNullOrEmpty(settings.Key)) 203var chatCompletionsClient = string.IsNullOrEmpty(builder.ServiceKey) ?
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.AI.OpenAI (4)
AspireAzureOpenAIExtensions.cs (1)
103if (!string.IsNullOrEmpty(settings.Key))
AspireConfigurableOpenAIExtensions.cs (1)
94if (serviceUri == null && string.IsNullOrEmpty(apiKey))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Data.Tables (5)
AspireTablesExtensions.cs (2)
105if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 110return !string.IsNullOrEmpty(connectionString) ? new TableServiceClient(connectionString, options) :
AzureDataTablesSettings.cs (1)
54if (!string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Messaging.EventHubs (22)
AzureMessagingEventHubsSettings.cs (1)
103if (!string.IsNullOrEmpty(connectionString))
EventHubBufferedProducerClientComponent.cs (2)
38if (string.IsNullOrEmpty(settings.ConnectionString)) 44if (string.IsNullOrEmpty(settings.EventHubName))
EventHubConsumerClientComponent.cs (2)
39if (string.IsNullOrEmpty(settings.ConnectionString)) 45if (string.IsNullOrEmpty(settings.EventHubName))
EventHubProducerClientComponent.cs (2)
37if (string.IsNullOrEmpty(settings.ConnectionString)) 43if (string.IsNullOrEmpty(settings.EventHubName))
EventHubsComponent.cs (4)
46if (string.IsNullOrEmpty(settings.ConnectionString)) 51else if (string.IsNullOrEmpty(settings.EventHubName)) 124if (string.IsNullOrEmpty(connectionString) && string.IsNullOrEmpty(settings.FullyQualifiedNamespace))
EventProcessorClientComponent.cs (3)
51if (string.IsNullOrEmpty(settings.ConnectionString)) 59if (string.IsNullOrEmpty(settings.EventHubName)) 78var blobClient = !string.IsNullOrEmpty(settings.BlobClientServiceKey) ?
PartitionReceiverClientComponent.cs (3)
38if (string.IsNullOrEmpty(settings.PartitionId)) 46if (string.IsNullOrEmpty(settings.ConnectionString)) 57if (string.IsNullOrEmpty(settings.EventHubName))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
584=> string.IsNullOrEmpty(key) ? $"{prefix}:{suffix}" : $"{prefix}:{key}:{suffix}";
Aspire.Azure.Messaging.ServiceBus (13)
AspireServiceBusExtensions.cs (6)
76if (string.IsNullOrEmpty(connectionString) && string.IsNullOrEmpty(settings.FullyQualifiedNamespace)) 81return !string.IsNullOrEmpty(connectionString) ? 88=> !string.IsNullOrEmpty(settings.HealthCheckQueueName) 115=> !string.IsNullOrEmpty(settings.HealthCheckQueueName) || !string.IsNullOrEmpty(settings.HealthCheckTopicName);
AzureMessagingServiceBusSettings.cs (2)
94if (!string.IsNullOrEmpty(connectionString)) 135if (string.IsNullOrEmpty(entityPath))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Messaging.WebPubSub (10)
AspireWebPubSubExtensions.cs (4)
69if (string.IsNullOrEmpty(settings.HubName)) 108if (string.IsNullOrEmpty(connectionString) && settings.Endpoint == null) 115if (string.IsNullOrEmpty(hubName)) 122return !string.IsNullOrEmpty(connectionString) ?
AzureMessagingWebPubSubSettings.cs (1)
59if (!string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Npgsql (2)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (2)
27if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Username)) 53if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Password))
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (2)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (2)
27if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Username)) 53if (string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Password))
Aspire.Azure.Search.Documents (2)
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Security.KeyVault (3)
AzureSecurityKeyVaultSettings.cs (1)
45if (!string.IsNullOrEmpty(connectionString) &&
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Storage.Blobs (9)
AspireBlobStorageExtensions.BlobStorageComponent.cs (2)
28if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 33return !string.IsNullOrEmpty(connectionString) ? new BlobServiceClient(connectionString, options) :
AspireBlobStorageExtensions.BlobStorageContainerComponent.cs (3)
27if (string.IsNullOrEmpty(settings.BlobContainerName)) 33if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 38var blobServiceClient = !string.IsNullOrEmpty(connectionString) ? new BlobServiceClient(connectionString, options) :
AzureBlobStorageContainerSettings.cs (1)
25if (string.IsNullOrEmpty(connectionString))
AzureStorageBlobsSettings.cs (1)
55if (string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
Aspire.Azure.Storage.Blobs.Tests (1)
AzureBlobStorageContainerSettingsTests.cs (1)
62Assert.True(string.IsNullOrEmpty(settings.ConnectionString));
Aspire.Azure.Storage.Queues (12)
AspireQueueStorageExtensions.cs (5)
190if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 195return !string.IsNullOrEmpty(connectionString) 238if (string.IsNullOrEmpty(settings.QueueName)) 244if (string.IsNullOrEmpty(connectionString) && settings.ServiceUri is null) 249var queueServiceClient = !string.IsNullOrEmpty(connectionString) ? new QueueServiceClient(connectionString, options) :
AzureStorageQueueSettings.cs (1)
25if (string.IsNullOrEmpty(connectionString))
AzureStorageQueuesSettings.cs (1)
55if (string.IsNullOrEmpty(connectionString))
src\Components\Common\AzureComponent.cs (2)
75if (!string.IsNullOrEmpty(serviceKey)) 101if (!string.IsNullOrEmpty(serviceKey))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Azure.Storage.Queues.Tests (1)
AzureStorageQueueSettingsTests.cs (1)
62Assert.True(string.IsNullOrEmpty(settings.ConnectionString));
Aspire.Components.Common.TestUtilities (2)
ConformanceTests.cs (2)
222=> string.IsNullOrEmpty(key) 549=> string.IsNullOrEmpty(key) ? $"{prefix}:{suffix}" : $"{prefix}:{key}:{suffix}";
Aspire.Confluent.Kafka (6)
AspireKafkaConsumerExtensions.cs (1)
226if (string.IsNullOrEmpty(json))
AspireKafkaProducerExtensions.cs (1)
226if (string.IsNullOrEmpty(json))
KafkaProducerSettings.cs (1)
65if (string.IsNullOrEmpty(Config.BootstrapServers))
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (1)
352var spanName = string.IsNullOrEmpty(topicPartitionOffset?.Topic)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (1)
150var spanName = string.IsNullOrEmpty(topicPartitionOffset?.Topic)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (1)
80if (string.IsNullOrEmpty(value))
Aspire.Dashboard (68)
Components\Controls\ApplicationName.razor.cs (1)
51_pageTitle = string.IsNullOrEmpty(AdditionalText)
Components\Controls\SpanDetails.razor.cs (3)
98if (!string.IsNullOrEmpty(_viewModel.Span.Scope.Version)) 102if (!string.IsNullOrEmpty(_viewModel.Span.ParentSpanId)) 106if (!string.IsNullOrEmpty(_viewModel.Span.TraceId))
Components\Controls\StructuredLogDetails.razor.cs (1)
136if (string.IsNullOrEmpty(value))
Components\Dialogs\ExemplarsDialog.razor.cs (1)
69if (!string.IsNullOrEmpty(Content.Instrument.Unit))
Components\Interactions\InteractionsProvider.cs (3)
365if (!string.IsNullOrEmpty(messageBar.LinkText)) 384if (!string.IsNullOrEmpty(primaryButtonText)) 397if (item.ShowSecondaryButton && !string.IsNullOrEmpty(secondaryButtonText))
Components\Pages\ComponentTelemetryContext.cs (1)
76if (value.Value is string s && string.IsNullOrEmpty(s))
Components\Pages\Error.razor.cs (1)
19private bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Components\Pages\Metrics.razor.cs (2)
158if (viewModel.Instruments != null && !string.IsNullOrEmpty(MeterName)) 161if (viewModel.SelectedMeter != null && !string.IsNullOrEmpty(InstrumentName))
Components\Pages\Resources.razor.cs (1)
770return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.Resource.ParentName)));
Components\Pages\StructuredLogs.razor.cs (3)
163if (!string.IsNullOrEmpty(TraceId)) 170if (!string.IsNullOrEmpty(SpanId)) 346if (string.IsNullOrEmpty(_filter))
Configuration\DashboardOptions.cs (10)
40if (!string.IsNullOrEmpty(Url)) 110if (string.IsNullOrEmpty(GrpcEndpointUrl) && string.IsNullOrEmpty(HttpEndpointUrl)) 116if (!string.IsNullOrEmpty(GrpcEndpointUrl) && !OptionsHelpers.TryParseBindingAddress(GrpcEndpointUrl, out _parsedGrpcEndpointAddress)) 122if (!string.IsNullOrEmpty(HttpEndpointUrl) && !OptionsHelpers.TryParseBindingAddress(HttpEndpointUrl, out _parsedHttpEndpointAddress)) 128if (string.IsNullOrEmpty(HttpEndpointUrl) && !string.IsNullOrEmpty(Cors.AllowedOrigins)) 148public bool IsCorsEnabled => !string.IsNullOrEmpty(AllowedOrigins); 182if (string.IsNullOrEmpty(EndpointUrls)) 323if (!string.IsNullOrEmpty(ServerCertificate))
Configuration\PostConfigureDashboardOptions.cs (1)
66if (options.Frontend.AuthMode == FrontendAuthMode.BrowserToken && string.IsNullOrEmpty(options.Frontend.BrowserToken))
Configuration\ValidateDashboardOptions.cs (5)
45if (string.IsNullOrEmpty(options.Frontend.BrowserToken)) 73if (string.IsNullOrEmpty(options.Otlp.PrimaryApiKey)) 82if (string.IsNullOrEmpty(allowedCertRule.Thumbprint)) 119if (string.IsNullOrEmpty(options.ResourceServiceClient.ClientCertificate.FilePath)) 125if (string.IsNullOrEmpty(options.ResourceServiceClient.ClientCertificate.Subject))
DashboardEndpointsBuilder.cs (1)
91if (string.IsNullOrEmpty(redirectUrl))
DashboardWebApplication.cs (2)
222var allowedHeaders = !string.IsNullOrEmpty(corsOptions.AllowedHeaders) 387if (!string.IsNullOrEmpty(dashboardOptions.Otlp.Cors.AllowedOrigins))
Extensions\ResourceViewModelExtensions.cs (1)
52public static bool HasNoState(this ResourceViewModel resource) => string.IsNullOrEmpty(resource.State);
Model\BrowserTimeProvider.cs (1)
30if (string.IsNullOrEmpty(timeZone) || !TimeZoneInfo.TryFindSystemTimeZoneById(timeZone, out var timeZoneInfo))
Model\DefaultInstrumentUnitResolver.cs (1)
16if (!string.IsNullOrEmpty(instrument.Unit))
Model\Otlp\SpanWaterfallViewModel.cs (1)
21public bool HasUninstrumentedPeer => !string.IsNullOrEmpty(UninstrumentedPeer);
Model\ResourceGraph\ResourceGraphMapper.cs (1)
75if (string.IsNullOrEmpty(text))
Model\ResourceGridViewModel.cs (1)
76if (string.IsNullOrEmpty(parentName))
Model\ResourceMenuItems.cs (2)
118var icon = (!string.IsNullOrEmpty(command.IconName) && IconResolver.ResolveIconName(command.IconName, IconSize.Size16, command.IconVariant) is { } i) ? i : null; 134.Where(u => !string.IsNullOrEmpty(u.Url))
Model\ResourceStateViewModel.cs (1)
73else if (!string.IsNullOrEmpty(resource.StateStyle))
Model\ResourceUrlHelpers.cs (3)
25if (!includeNonEndpointUrls && string.IsNullOrEmpty(url.EndpointName)) 38DisplayName = string.IsNullOrEmpty(url.DisplayProperties.DisplayName) ? null : url.DisplayProperties.DisplayName, 40Text = string.IsNullOrEmpty(url.DisplayProperties.DisplayName) ? url.Url.OriginalString : url.DisplayProperties.DisplayName
Model\ThemeManager.cs (1)
108SelectedTheme = !string.IsNullOrEmpty(browserThemeSettings.SelectedTheme) ? browserThemeSettings.SelectedTheme : null;
Model\ValidateTokenMiddleware.cs (2)
55if (!string.IsNullOrEmpty(newQuerystring)) 83if (string.IsNullOrEmpty(incomingBrowserToken) || dashboardOptions.CurrentValue.Frontend.GetBrowserTokenBytes() is not { } expectedBrowserTokenBytes)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
38if (!string.IsNullOrEmpty(options.Cors.AllowedOrigins))
Otlp\Model\OtlpApplication.cs (1)
68if (string.IsNullOrEmpty(metric.Name))
Otlp\Model\OtlpHelpers.cs (3)
54if (string.IsNullOrEmpty(serviceName)) 57if (!string.IsNullOrEmpty(processExecutableName)) 402sb.Append(string.IsNullOrEmpty(kv.Value) ? "\'\'" : kv.Value);
Otlp\Model\OtlpSpan.cs (7)
54if (string.IsNullOrEmpty(ParentSpanId)) 109if (!string.IsNullOrEmpty(StatusMessage)) 138if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "http.method"))) 145else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "db.system"))) 151else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "rpc.system"))) 162if (!string.IsNullOrEmpty(grpcStatusCode) && Enum.TryParse<StatusCode>(grpcStatusCode, out var statusCode)) 172else if (!string.IsNullOrEmpty(OtlpHelpers.GetValue(span.Attributes, "messaging.system")))
Otlp\Model\OtlpTrace.cs (3)
82if (string.IsNullOrEmpty(span.ParentSpanId)) 88if (string.IsNullOrEmpty(existingSpan.ParentSpanId)) 113if (string.IsNullOrEmpty(span.ParentSpanId))
src\Shared\LoggingHelpers.cs (1)
13if (string.IsNullOrEmpty(token))
src\Shared\StringUtils.cs (1)
13if (!string.IsNullOrEmpty(input)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Dashboard.Tests (6)
Integration\MockOpenIdAuthority.cs (1)
81if (string.IsNullOrEmpty(lastCode) && code != lastCode)
Model\ResourceStateViewModelTests.cs (1)
71HealthStatus? healthStatus = string.IsNullOrEmpty(healthStatusString) ? null : Enum.Parse<HealthStatus>(healthStatusString);
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
Aspire.EndToEnd.Tests (11)
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
tests\Shared\TemplatesTesting\AspireProject.cs (3)
352if (string.IsNullOrEmpty(dashboardUrlToUse)) 391if (string.IsNullOrEmpty(DashboardUrl)) 472if (string.IsNullOrEmpty(containerName))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (3)
138if (string.IsNullOrEmpty(EnvironmentVariables.SdkForTemplateTestingPath)) 152if (string.IsNullOrEmpty(EnvironmentVariables.BuiltNuGetsPath) || !Directory.Exists(EnvironmentVariables.BuiltNuGetsPath)) 193if (!string.IsNullOrEmpty(EnvironmentVariables.TestLogPath))
tests\Shared\TemplatesTesting\CommandResult.cs (1)
37if (!string.IsNullOrEmpty(Output))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
Aspire.Hosting (79)
ApplicationModel\AspireStore.cs (1)
83if (!string.IsNullOrEmpty(_basePath))
ApplicationModel\CommandsConfigurationExtensions.cs (1)
122static bool HasNoState(string? state) => string.IsNullOrEmpty(state);
ApplicationModel\ConnectionStringReference.cs (1)
28if (string.IsNullOrEmpty(value) && !Optional)
ApplicationModel\ContainerMountAnnotation.cs (2)
26if (string.IsNullOrEmpty(source)) 37if (type == ContainerMountType.Volume && string.IsNullOrEmpty(source) && isReadOnly)
ApplicationModel\ExpressionResolver.cs (1)
163if (!Preprocess && string.IsNullOrEmpty(value.Value) && !cs.Optional)
ApplicationModel\ResourceExtensions.cs (3)
543var registryPrefix = string.IsNullOrEmpty(imageAnnotation.Registry) ? string.Empty : $"{imageAnnotation.Registry}/"; 545if (string.IsNullOrEmpty(imageAnnotation.SHA256)) 547var tagSuffix = string.IsNullOrEmpty(imageAnnotation.Tag) ? string.Empty : $":{imageAnnotation.Tag}";
ApplicationModel\ResourceNotificationService.cs (1)
101string[] targetStates = !string.IsNullOrEmpty(targetState) ? [targetState] : [KnownResourceStates.Running];
Backchannel\BackchannelService.cs (1)
36if (string.IsNullOrEmpty(unixSocketPath))
Dashboard\DashboardLifecycleHook.cs (5)
228if (string.IsNullOrEmpty(allowedOrigins)) 234if (!string.IsNullOrEmpty(allowedOrigins)) 242if (!string.IsNullOrEmpty(browserToken)) 265if (!string.IsNullOrEmpty(otlpApiKey)) 316if (!string.IsNullOrEmpty(browserToken))
Dashboard\DashboardOptions.cs (3)
48if (string.IsNullOrEmpty(options.DashboardUrl)) 53if (string.IsNullOrEmpty(options.OtlpGrpcEndpointUrl) && string.IsNullOrEmpty(options.OtlpHttpEndpointUrl))
Dashboard\TransportOptionsValidator.cs (5)
23if (string.IsNullOrEmpty(applicationUrls)) 43if (string.IsNullOrEmpty(dashboardOtlpGrpcEndpointUrl) && string.IsNullOrEmpty(dashboardOtlpHttpEndpointUrl)) 59if (string.IsNullOrEmpty(resourceServiceEndpointUrl)) 78if (!string.IsNullOrEmpty(value))
Dcp\DcpDependencyCheck.cs (2)
58if (!string.IsNullOrEmpty(containerRuntime)) 211if (string.IsNullOrEmpty(containerRuntime))
Dcp\DcpExecutor.cs (7)
444if (string.IsNullOrEmpty(applicationName)) 455if (string.IsNullOrEmpty(applicationName)) 946if (!string.IsNullOrEmpty(_configuration[DebugSessionPortVar])) 980if (!string.IsNullOrEmpty(_distributedApplicationOptions.Configuration)) 1016initial.InitialSnapshot.State?.Text is string state && !string.IsNullOrEmpty(state)) 1315if (!string.IsNullOrEmpty(_normalizedApplicationName)) 1550if (string.IsNullOrEmpty(targetHost) || string.Equals(targetHost, "localhost", StringComparison.OrdinalIgnoreCase))
Dcp\DcpHost.cs (4)
178if (!string.IsNullOrEmpty(_dcpOptions.ContainerRuntime)) 194if (!string.IsNullOrEmpty(_dcpOptions.ExtensionsPath)) 199if (!string.IsNullOrEmpty(_dcpOptions.BinPath)) 223if (!string.IsNullOrEmpty(directoryName))
Dcp\DcpKubernetesClient.cs (1)
57if (string.IsNullOrEmpty(namespaceParameter))
Dcp\DcpOptions.cs (8)
105if (string.IsNullOrEmpty(options.CliPath)) 110if (string.IsNullOrEmpty(options.DashboardPath)) 135if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.CliPath)])) 139if (Path.GetDirectoryName(options.CliPath) is string dcpDir && !string.IsNullOrEmpty(dcpDir)) 152if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.DashboardPath)])) 162if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.ContainerRuntime)])) 171if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.DependencyCheckTimeout)])) 190if (!string.IsNullOrEmpty(dcpPublisherConfiguration[nameof(options.ResourceNameSuffix)]))
Dcp\KubernetesService.cs (6)
104var response = string.IsNullOrEmpty(namespaceParameter) 137var response = string.IsNullOrEmpty(namespaceParameter) 170var response = string.IsNullOrEmpty(namespaceParameter) 204var response = string.IsNullOrEmpty(namespaceParameter) 234var response = string.IsNullOrEmpty(namespaceParameter) 272var responseTask = string.IsNullOrEmpty(namespaceParameter)
Dcp\Model\Service.cs (1)
89public bool HasCompleteAddress => AllocatedPort > 0 && !string.IsNullOrEmpty(AllocatedAddress);
Dcp\Process\ProcessUtil.cs (2)
61if (String.IsNullOrEmpty(e.Data)) 75if (String.IsNullOrEmpty(e.Data))
Dcp\ResourceSnapshotBuilder.cs (1)
207var serviceEndpoints = new HashSet<(string EndpointName, string ServiceMetadataName)>(resourceServices.Where(s => !string.IsNullOrEmpty(s.EndpointName)).Select(s => (s.EndpointName!, s.Metadata.Name)));
DistributedApplicationBuilder.cs (2)
403if (!string.IsNullOrEmpty(options.ContainerRegistryOverride)) 535if (!string.IsNullOrEmpty(execOptions.Command))
DistributedApplicationOptions.cs (1)
97if (!string.IsNullOrEmpty(AssemblyName))
ExternalServiceResource.cs (1)
92if (!string.IsNullOrEmpty(uri.Fragment))
IInteractionService.cs (1)
213if (string.IsNullOrEmpty(errorMessage))
Orchestrator\ParameterProcessor.cs (1)
182if (string.IsNullOrEmpty(inputValue))
ProjectResourceBuilderExtensions.cs (2)
327else if (!string.IsNullOrEmpty(options.LaunchProfileName)) 335if (!string.IsNullOrEmpty(appHostDefaultLaunchProfileName))
Publishing\DockerContainerRuntime.cs (5)
23if (string.IsNullOrEmpty(options?.OutputPath)) 43if (!string.IsNullOrEmpty(builderName)) 55if (options?.ImageFormat is not null || !string.IsNullOrEmpty(options?.OutputPath)) 65if (!string.IsNullOrEmpty(options?.OutputPath)) 112if (!string.IsNullOrEmpty(builderName))
Publishing\PodmanContainerRuntime.cs (1)
37if (!string.IsNullOrEmpty(options?.OutputPath))
Publishing\PublishingStep.cs (1)
144var completionText = string.IsNullOrEmpty(CompletionText)
Publishing\ResourceContainerImageBuilder.cs (1)
261if (!string.IsNullOrEmpty(options.OutputPath))
ResourceBuilderExtensions.cs (1)
976if (!string.IsNullOrEmpty(urlValue))
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
34if (string.IsNullOrEmpty(launchProfileName))
src\Shared\LoggingHelpers.cs (1)
13if (string.IsNullOrEmpty(token))
src\Shared\PathNormalizer.cs (1)
10if (string.IsNullOrEmpty(path))
src\Shared\SecretsStore.cs (1)
81if (!string.IsNullOrEmpty(directoryName) && !Directory.Exists(directoryName))
src\Shared\StringUtils.cs (1)
13if (!string.IsNullOrEmpty(input)
Utils\ContainerReferenceParser.cs (1)
14if (string.IsNullOrEmpty(input))
Aspire.Hosting.Azure (11)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (4)
39(!string.IsNullOrEmpty(_options.Location) && !string.IsNullOrEmpty(_options.SubscriptionId))) 205if (string.IsNullOrEmpty(_options.Location)) 213if (string.IsNullOrEmpty(_options.ResourceGroup))
Provisioning\Internal\DefaultUserPrincipalProvider.cs (2)
48if (!string.IsNullOrEmpty(upn)) 57if (!string.IsNullOrEmpty(oid))
Provisioning\Internal\DefaultUserSecretsManager.cs (1)
91var key = string.IsNullOrEmpty(prefix) ? kvp.Key : $"{prefix}:{kvp.Key}";
Provisioning\UserSecretsPathHelper.cs (2)
53if (string.IsNullOrEmpty(root)) 63return !string.IsNullOrEmpty(appData)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (2)
61if (String.IsNullOrEmpty(e.Data)) 75if (String.IsNullOrEmpty(e.Data))
Aspire.Hosting.Azure.AIFoundry (1)
AzureAIFoundryExtensions.cs (1)
282else if (progress.IsCompleted && !string.IsNullOrEmpty(progress.ErrorMessage))
Aspire.Hosting.Azure.CosmosDB (10)
AzureCosmosDBContainerResource.cs (2)
35if (partitionKeyPaths.Any(string.IsNullOrEmpty)) 95if (value.Any(string.IsNullOrEmpty))
AzureCosmosDBExtensions.cs (1)
301if (partitionKeyPathsArray.Any(string.IsNullOrEmpty))
AzureCosmosDBResource.cs (4)
141if (string.IsNullOrEmpty(databaseName) && string.IsNullOrEmpty(containerName)) 163if (!string.IsNullOrEmpty(databaseName)) 167if (!string.IsNullOrEmpty(containerName))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
34if (string.IsNullOrEmpty(launchProfileName))
Aspire.Hosting.Azure.ServiceBus (4)
AzureServiceBusResource.cs (4)
60if (string.IsNullOrEmpty(queueOrTopicName) && string.IsNullOrEmpty(subscriptionName)) 76if (!string.IsNullOrEmpty(queueOrTopicName)) 80if (!string.IsNullOrEmpty(subscriptionName))
Aspire.Hosting.Azure.Storage (2)
AzureBlobStorageResource.cs (1)
32if (string.IsNullOrEmpty(blobContainerName))
AzureQueueStorageResource.cs (1)
32if (string.IsNullOrEmpty(queueName))
Aspire.Hosting.Azure.Tests (3)
AzureEventHubsExtensionsTests.cs (1)
264if (!string.IsNullOrEmpty(imageTag))
AzureServiceBusExtensionsTests.cs (1)
181if (!string.IsNullOrEmpty(imageTag))
ProvisioningContextTests.cs (1)
227Assert.False(string.IsNullOrEmpty(principal.Name));
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
194if (!string.IsNullOrEmpty(file.SourcePath))
Aspire.Hosting.GitHub.Models (1)
GitHubModelsHealthCheck.cs (1)
83var message = !string.IsNullOrEmpty(errorResponse.Error.Message)
Aspire.Hosting.Kafka.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Kubernetes (4)
Extensions\ResourceExtensions.cs (2)
369if (!string.IsNullOrEmpty(context.Parent.DefaultStorageClassName)) 412if (!string.IsNullOrEmpty(context.Parent.DefaultStorageClassName))
Yaml\ByteArrayStringYamlConverter.cs (1)
24return string.IsNullOrEmpty(scalar.Value) ? null : Encoding.UTF8.GetBytes(scalar.Value);
Yaml\IntOrStringConverter.cs (1)
45return string.IsNullOrEmpty(value) ? null : new Int32OrStringV1(value);
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (1)
69Assert.False(string.IsNullOrEmpty(env.Value));
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Nats.Tests (2)
AddNatsTests.cs (2)
43Assert.False(string.IsNullOrEmpty(nats.Resource.PasswordParameter!.Value)); 119arg => Assert.False(string.IsNullOrEmpty(arg))
Aspire.Hosting.NodeJs (1)
src\Shared\PathNormalizer.cs (1)
10if (string.IsNullOrEmpty(path))
Aspire.Hosting.NodeJs.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Oracle.Tests (1)
AddOracleTests.cs (1)
68Assert.False(string.IsNullOrEmpty(env.Value));
Aspire.Hosting.Orleans (1)
ProviderConfiguration.cs (1)
40if (!string.IsNullOrEmpty(serviceKey))
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (1)
93Assert.False(string.IsNullOrEmpty(env.Value));
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (3)
130if (!string.IsNullOrEmpty(instrumentationExecutable)) 141if (!string.IsNullOrEmpty(instrumentationExecutable)) 182if (string.IsNullOrEmpty(scriptArg))
PythonProjectResourceBuilderExtensions.cs (3)
133if (!string.IsNullOrEmpty(instrumentationExecutable)) 144if (!string.IsNullOrEmpty(instrumentationExecutable)) 185if (string.IsNullOrEmpty(scriptArg))
src\Shared\PathNormalizer.cs (1)
10if (string.IsNullOrEmpty(path))
Aspire.Hosting.Qdrant.Tests (1)
AddQdrantTests.cs (1)
73Assert.False(string.IsNullOrEmpty(env.Value));
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
170if (string.IsNullOrEmpty(existingTag)) 217if (string.IsNullOrEmpty(tag))
Aspire.Hosting.RabbitMQ.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Testing (5)
DistributedApplicationFactory.cs (3)
157if (string.IsNullOrEmpty(arg)) 211if (!string.IsNullOrEmpty(appHostProjectPath) && Directory.Exists(appHostProjectPath)) 278if (string.IsNullOrEmpty(launchProfileName))
DistributedApplicationHostingTestingExtensions.cs (1)
100if (!string.IsNullOrEmpty(endpointName))
DistributedApplicationTestingBuilder.cs (1)
163if (string.IsNullOrEmpty(arg))
Aspire.Hosting.Tests (12)
Dashboard\DashboardResourceTests.cs (1)
332var expectedAllowedOrigins = !string.IsNullOrEmpty(explicitCorsAllowedOrigins) ? explicitCorsAllowedOrigins : "http://localhost:8081,http://localhost:58080";
DistributedApplicationBuilderTests.cs (2)
112Assert.False(string.IsNullOrEmpty(config["AppHost:ResourceService:ApiKey"])); 125Assert.True(string.IsNullOrEmpty(config["AppHost:ResourceService:ApiKey"]));
DistributedApplicationTests.cs (3)
493if (!string.IsNullOrEmpty(pidText)) 732Assert.False(string.IsNullOrEmpty(serviceAPortValue)); 737Assert.False(string.IsNullOrEmpty(nodeAppPortValue));
ResourceExtensionsTests.cs (1)
262Assert.False(string.IsNullOrEmpty(env.Value));
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
UserSecretsParameterDefaultTests.cs (1)
78if (!string.IsNullOrEmpty(directoryName) && !Directory.Exists(directoryName))
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Hosting.Yarp (1)
YarpJsonConfigGeneratorBuilder.cs (1)
154if (string.IsNullOrEmpty(name) || !char.IsAsciiLetterUpper(name[0]))
Aspire.Microsoft.Azure.Cosmos (13)
AspireMicrosoftAzureCosmosExtensions.cs (7)
69if (string.IsNullOrEmpty(settings.ContainerName) || string.IsNullOrEmpty(settings.DatabaseName)) 133if (string.IsNullOrEmpty(settings.ContainerName) || string.IsNullOrEmpty(settings.DatabaseName)) 194if (string.IsNullOrEmpty(connectionString)) 257if (!string.IsNullOrEmpty(clientOptions.ApplicationName)) 269if (!string.IsNullOrEmpty(settings.ConnectionString))
CosmosDatabaseBuilder.cs (3)
26if (string.IsNullOrEmpty(settings.DatabaseName)) 42if (string.IsNullOrEmpty(settings.DatabaseName)) 69if (connectionInfo is not null && string.IsNullOrEmpty(connectionInfo?.ContainerName))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Microsoft.Data.SqlClient (6)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
78if (string.IsNullOrEmpty(value))
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (4)
240if (string.IsNullOrEmpty(instanceName)) 271if (!string.IsNullOrEmpty(connectionDetails.InstanceName)) 276if (!string.IsNullOrEmpty(connectionDetails.ServerHostName)) 285if (!string.IsNullOrEmpty(connectionDetails.Port))
Aspire.Microsoft.EntityFrameworkCore.Cosmos (4)
AspireAzureEFCoreCosmosExtensions.cs (1)
132if (!string.IsNullOrEmpty(settings.ConnectionString))
src\Shared\StableConnectionStringBuilder.cs (3)
171if (string.IsNullOrEmpty(connectionString)) 195if (string.IsNullOrEmpty(key)) 213if (!string.IsNullOrEmpty(part))
Aspire.Microsoft.EntityFrameworkCore.SqlServer (6)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
78if (string.IsNullOrEmpty(value))
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (4)
240if (string.IsNullOrEmpty(instanceName)) 271if (!string.IsNullOrEmpty(connectionDetails.InstanceName)) 276if (!string.IsNullOrEmpty(connectionDetails.ServerHostName)) 285if (!string.IsNullOrEmpty(connectionDetails.Port))
Aspire.MongoDB.Driver (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.MySqlConnector (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Npgsql (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.OpenAI (2)
AspireOpenAIClientBuilder.cs (2)
74if (string.IsNullOrEmpty(deploymentName)) 80if (string.IsNullOrEmpty(deploymentName))
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.Playground.Tests (4)
AppHostTests.cs (2)
263if (string.IsNullOrEmpty(s_appHostNameFilter) || candidateTestEndpoint.AppHostType?.Name.Contains(s_appHostNameFilter, StringComparison.OrdinalIgnoreCase) == true) 269if (!theoryData.Any() && !string.IsNullOrEmpty(s_appHostNameFilter))
Infrastructure\DistributedApplicationExtensions.cs (1)
54.Where(m => m.Type == ContainerMountType.Volume && !string.IsNullOrEmpty(m.Source))
tests\Shared\AsyncTestHelpers.cs (1)
194=> string.IsNullOrEmpty(filePath)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\ConnectionStringValidation.cs (1)
12var errorMessage = (!string.IsNullOrEmpty(typeSpecificSectionName))
Aspire.RabbitMQ.Client (2)
src\Components\Aspire.RabbitMQ.Client\AspireRabbitMQExtensions.cs (1)
103if (!string.IsNullOrEmpty(connectionString))
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
83Count = string.IsNullOrEmpty(exData!["InnerException"]?.ToString()) ? 3 : 4;
Aspire.Seq (4)
AspireSeqExtensions.cs (4)
55if (!string.IsNullOrEmpty(settings.ServerUrl)) 60if (!string.IsNullOrEmpty(settings.ApiKey)) 62settings.Logs.Headers = string.IsNullOrEmpty(settings.Logs.Headers) ? $"X-Seq-ApiKey={settings.ApiKey}" : $"{settings.Logs.Headers},X-Seq-ApiKey={settings.ApiKey}"; 63settings.Traces.Headers = string.IsNullOrEmpty(settings.Traces.Headers) ? $"X-Seq-ApiKey={settings.ApiKey}" : $"{settings.Traces.Headers},X-Seq-ApiKey={settings.ApiKey}";
Aspire.StackExchange.Redis (6)
AspireRedisExtensions.cs (1)
156var configurationOptions = string.IsNullOrEmpty(optionsName) ?
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (4)
79if (string.IsNullOrEmpty(name)) 119if (!string.IsNullOrEmpty(commandAndKey) && !string.IsNullOrEmpty(script)) 123else if (!string.IsNullOrEmpty(commandAndKey))
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
86if (string.IsNullOrEmpty(value))
Aspire.Templates.Tests (13)
BuildAndRunTemplateTests.cs (2)
66Assert.False(string.IsNullOrEmpty(projectName)); 166Assert.False(string.IsNullOrEmpty(projectName));
tests\Shared\Playwright\PlaywrightProvider.cs (3)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 28if (OperatingSystem.IsMacOS() && string.IsNullOrEmpty(browserPath)) 42if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(PlaywrightBrowsersPathEnvironmentVariableName)))
tests\Shared\TemplatesTesting\AspireProject.cs (3)
352if (string.IsNullOrEmpty(dashboardUrlToUse)) 391if (string.IsNullOrEmpty(DashboardUrl)) 472if (string.IsNullOrEmpty(containerName))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (3)
138if (string.IsNullOrEmpty(EnvironmentVariables.SdkForTemplateTestingPath)) 152if (string.IsNullOrEmpty(EnvironmentVariables.BuiltNuGetsPath) || !Directory.Exists(EnvironmentVariables.BuiltNuGetsPath)) 193if (!string.IsNullOrEmpty(EnvironmentVariables.TestLogPath))
tests\Shared\TemplatesTesting\CommandResult.cs (1)
37if (!string.IsNullOrEmpty(Output))
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
34_msgPrefix = string.IsNullOrEmpty(_label) ? string.Empty : $"[{_label}] ";
AutobahnTestApp (1)
Program.cs (1)
33else if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ASPNETCORE_PORT")))
BasicTestApp (1)
RouterTest\NavLinkNotIgnoreQueryOrFragmentString.cs (1)
31if (!baseMatch || string.IsNullOrEmpty(hrefAbsolute) || Match != NavLinkMatch.All)
BasketService (1)
BasketService.cs (1)
72if (string.IsNullOrEmpty(queueName))
blazor-devserver (1)
Server\Startup.cs (1)
94if (!string.IsNullOrEmpty(pathBase))
BuildBoss (6)
CompilerNuGetCheckerUtil.cs (2)
313if (string.IsNullOrEmpty(relativeName)) 343Debug.Assert(string.IsNullOrEmpty(folderRelativePath) || folderRelativePath[0] != '\\');
Extensions.cs (1)
17if (!string.IsNullOrEmpty(relativeName) && relativeName[0] == '\\')
Program.cs (1)
65if (string.IsNullOrEmpty(repositoryDirectory))
ProjectCheckerUtil.cs (1)
138if (!string.IsNullOrEmpty(internalsVisibleTo.WorkItem))
ProjectUtil.cs (1)
106.Where(x => !string.IsNullOrEmpty(x));
CatalogDb (1)
ResetDbExtensions.cs (1)
14if (!string.IsNullOrEmpty(resetDbKey))
ClaimsTransformation (1)
Models\ErrorViewModel.cs (1)
12public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
ClientSample (6)
RawSample.cs (1)
33baseUrl = string.IsNullOrEmpty(baseUrl) ? "http://localhost:5000/chat" : baseUrl;
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
CodeGenerator (3)
FeatureCollectionGenerator.cs (2)
129return feature{(string.IsNullOrEmpty(fallbackFeatures) ? "" : $" ?? {fallbackFeatures}?[key]")}; 161}}{(string.IsNullOrEmpty(fallbackFeatures) ? "" : $@"
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
594if (!string.IsNullOrEmpty(firstTermVar))
ConfigurationSchemaGenerator (4)
ConfigSchemaEmitter.cs (3)
293if (!string.IsNullOrEmpty(docComment)) 361if (!string.IsNullOrEmpty(xml) && xml != "<doc />") 496if (!string.IsNullOrEmpty(docComment))
ConfigSchemaGenerator.cs (1)
71if (string.IsNullOrEmpty(path))
Cookies (1)
Models\ErrorViewModel.cs (1)
12public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Crossgen2Tasks (25)
CommonFilePulledFromSdkRepo\RuntimeGraphCache.cs (1)
26if (string.IsNullOrEmpty(runtimeJsonPath))
PrepareForReadyToRunCompilation.cs (3)
74_crossgen2IsVersion5 = !string.IsNullOrEmpty(isVersion5) && bool.Parse(isVersion5); 77_perfmapFormatVersion = !string.IsNullOrEmpty(perfmapVersion) ? int.Parse(perfmapVersion) : 0; 90!string.IsNullOrEmpty(diaSymReaderPath) && File.Exists(diaSymReaderPath);
ResolveReadyToRunCompilers.cs (2)
126if (!string.IsNullOrEmpty(_crossgenTool.DiaSymReaderPath)) 178if (!string.IsNullOrEmpty(PerfmapFormatVersion))
RunReadyToRunCompiler.cs (18)
40private bool IsPdbCompilation => !string.IsNullOrEmpty(_createPDBCommand); 50return !string.IsNullOrEmpty(version5) && bool.Parse(version5); 61if (!string.IsNullOrEmpty(hostPath)) 83_emitSymbols = !string.IsNullOrEmpty(emitSymbolsMetadata) && bool.Parse(emitSymbolsMetadata); 86_createCompositeImage = !string.IsNullOrEmpty(createCompositeImageMetadata) && bool.Parse(createCompositeImageMetadata); 110if (!string.IsNullOrEmpty(hostPath) && !File.Exists(hostPath)) 116if (!string.IsNullOrEmpty(jitPath)) 133if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetOS))) 138if (string.IsNullOrEmpty(Crossgen2Tool.GetMetadata(MetadataKeys.TargetArch))) 170if (!string.IsNullOrEmpty(DiaSymReader) && !File.Exists(DiaSymReader)) 177if (string.IsNullOrEmpty(_outputPDBImage)) 206if (string.IsNullOrEmpty(_outputR2RImage)) 212if (_emitSymbols && string.IsNullOrEmpty(_outputPDBImage)) 251if (ActuallyUseCrossgen2 && !string.IsNullOrEmpty(DotNetHostPath)) 281if (!string.IsNullOrEmpty(DiaSymReader)) 306if (!string.IsNullOrEmpty(jitPath)) 332if (!string.IsNullOrEmpty(perfmapFormatVersion)) 347if (!string.IsNullOrEmpty(Crossgen2ExtraCommandLineArgs))
ShimFilesSimulatingLogicInSdkRepo\SimpleItemUtilities.cs (1)
30return !string.IsNullOrEmpty(value);
CustomPolicyProvider (1)
Controllers\AccountController.cs (1)
23if (string.IsNullOrEmpty(userName))
DemoConsole (3)
DesignSurfaceExtended.cs (1)
337if (string.IsNullOrEmpty(command))
NameCreationService.cs (2)
37if (!string.IsNullOrEmpty(suffix) && suffix.All(char.IsDigit)) 75if (string.IsNullOrEmpty(name))
dotnet-dev-certs (11)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-getdocument (8)
Commands\InvokeCommand.cs (3)
94if (!string.IsNullOrEmpty(projectAssetsFile) && File.Exists(projectAssetsFile)) 118if (!string.IsNullOrEmpty(runtimeFrameworkVersion)) 163if (cleanupExecutable && !string.IsNullOrEmpty(executable))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-openapi (8)
Commands\BaseCommand.cs (3)
176if (!string.IsNullOrEmpty(sourceUrl)) 216if (string.IsNullOrEmpty(muxer)) 552if (!string.IsNullOrEmpty(destinationDirectory) && !Directory.Exists(destinationDirectory))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-sql-cache (10)
Program.cs (5)
72if (string.IsNullOrEmpty(connectionStringArg.Value) 73|| string.IsNullOrEmpty(schemaNameArg.Value) 74|| string.IsNullOrEmpty(tableNameArg.Value)) 114if (string.IsNullOrEmpty(schemaNameArg.Value) 115|| string.IsNullOrEmpty(tableNameArg.Value))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
dotnet-svcutil.xmlserializer (10)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (2)
165if (string.IsNullOrEmpty(dirPath)) 175if (string.IsNullOrEmpty(filename))
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
437if (string.IsNullOrEmpty(smassembly)) 455if (!string.IsNullOrEmpty(smpassembly))
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (4)
36Tool.Assert(!string.IsNullOrEmpty(filepath), "filename must have a valid value"); 37Tool.Assert(!string.IsNullOrEmpty(extension), "extension must have a valid value"); 81if (!string.IsNullOrEmpty(option)) 162if (string.IsNullOrEmpty(ns))
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
65if (!string.IsNullOrEmpty(errMsg))
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (1)
33if (!string.IsNullOrEmpty(_outFile) && assemblies.Count > 1)
dotnet-svcutil-lib (206)
AppInsightsTelemetryClient.cs (2)
32if (string.IsNullOrEmpty(optOut)) 121context.GlobalProperties["Dotnet.Version"] = string.IsNullOrEmpty(sdkVersion) ? "unknown" : sdkVersion;
Bootstrapper\SvcutilBootstrapper.cs (1)
145if (!string.IsNullOrEmpty(this.Options.RuntimeIdentifier))
CodeDomFixup\CodeDomHelpers.cs (1)
229if (!string.IsNullOrEmpty(value))
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (2)
84if (!string.IsNullOrEmpty(s_currentMatchingFullTypeName)) 88typeref.BaseType = string.IsNullOrEmpty(typeNamespace) ? destType : _typeDeclCollection.TypeNamespaceMappings[s_currentMatchingFullTypeName] + "." + destType;
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (1)
24var fullName = string.IsNullOrEmpty(typeNamespace) ? typeDeclaration.Name : typeNamespace + "." + typeDeclaration.Name;
CodeDomFixup\MethodCreationHelper.cs (2)
57if (!string.IsNullOrEmpty(endpointAddress)) 103if (!string.IsNullOrEmpty(ns?.Name))
CodeSerializer.cs (3)
141if (!string.IsNullOrEmpty(wsdl.Name)) 155if (wsdl.Services.Count > 0 && !string.IsNullOrEmpty(wsdl.Services[0].Name)) 171if (!string.IsNullOrEmpty(schema.TargetNamespace))
CommandProcessorOptions.cs (2)
382if (string.IsNullOrEmpty(workingDirectory)) 537if (string.IsNullOrEmpty(relDir))
DebugLogger.cs (2)
20if (!string.IsNullOrEmpty(message)) 44if (!string.IsNullOrEmpty(message))
FrameworkFork\Microsoft.CodeDom\Compiler\RedistVersionInfo.cs (2)
50if (!string.IsNullOrEmpty(comPlus_InstallRoot) && !string.IsNullOrEmpty(comPlus_Version))
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
305if (String.IsNullOrEmpty(tempDir)) tempDir = Path.GetTempPath();
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3326if (String.IsNullOrEmpty(nspace.Name))
FrameworkFork\Microsoft.CodeDom\System\CodeGotoStatement.cs (1)
45if (String.IsNullOrEmpty(value))
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (2)
111if (!String.IsNullOrEmpty(type.Namespace)) 375if (String.IsNullOrEmpty(_baseType))
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (3)
2662if (_ps.baseUri == null && !string.IsNullOrEmpty(_ps.baseUriStr)) 8039if (!string.IsNullOrEmpty(publicId)) 8136if (!string.IsNullOrEmpty(entity.BaseUriString))
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
240TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 241string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc.Name : dataType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (3)
438TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 948return string.IsNullOrEmpty(originalNs) || originalNs == contextNs; 2003if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
296schema.TargetNamespace = string.IsNullOrEmpty(targetNamespace) ? null : targetNamespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
3685if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2399if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializerNamespaces.cs (2)
121if (string.IsNullOrEmpty(ns)) 128if (!string.IsNullOrEmpty(prefix) && (string)_namespaces[prefix] == ns)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
195if (string.IsNullOrEmpty(name))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Attributes.cs (2)
136if (string.IsNullOrEmpty(Id)) 145if (string.IsNullOrEmpty(Ref))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
442if (string.IsNullOrEmpty(clrNamespace)) 763return (string.IsNullOrEmpty(clrNamespace) && _clrNamespaces.ContainsKey(typeName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
1021if (methodBases == null || string.IsNullOrEmpty(methodName))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
510|| (string.IsNullOrEmpty(type.Name) && _dataContractSet.TryGetReferencedType(ImportActualType(type.Annotation, typeName, typeName), dataContract, out referencedType)))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (1)
204if (string.IsNullOrEmpty(contractNs) || contractNs == XmlDictionaryString.GetString(ns))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
99if (string.IsNullOrEmpty(text))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
308if (!string.IsNullOrEmpty(innerException) && innerException.Length < remainingLength)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (2)
650if (string.IsNullOrEmpty(limit)) 816if (string.IsNullOrEmpty(diagnosis))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (3)
142if (string.IsNullOrEmpty(str)) 489if (!string.IsNullOrEmpty(str)) 591keyPrefix = (!string.IsNullOrEmpty(key)) ? (key + "=") : string.Empty;
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (11)
170if (!string.IsNullOrEmpty(value)) 186if (!string.IsNullOrEmpty(value)) 193if (!string.IsNullOrEmpty(value)) 197if (!string.IsNullOrEmpty(value)) 205if (!string.IsNullOrEmpty(value)) 272if (!string.IsNullOrEmpty(value)) 540if (!string.IsNullOrEmpty(value)) 544if (!string.IsNullOrEmpty(value)) 548if (!string.IsNullOrEmpty(value)) 552if (!string.IsNullOrEmpty(value)) 556if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (5)
296if (String.IsNullOrEmpty(value)) 299if (String.IsNullOrEmpty(value)) 302if (String.IsNullOrEmpty(value)) 305if (String.IsNullOrEmpty(value)) 313str.Append(String.IsNullOrEmpty(value) ? "<x509>" : value);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
37if (string.IsNullOrEmpty(networkCredential.UserName))
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (1)
68if (string.IsNullOrEmpty(localId))
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SamlAssertion.cs (1)
35if (string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (1)
129if (!String.IsNullOrEmpty(configurationName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ApplicationContainerSettings.cs (1)
57return !string.IsNullOrEmpty(this.PackageFullName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Binding.cs (3)
28if (string.IsNullOrEmpty(name)) 75if (string.IsNullOrEmpty(value)) 247if (string.IsNullOrEmpty(transport.Scheme))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
82return String.IsNullOrEmpty(_data);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrClientWebSocketFactory.cs (1)
21if (!string.IsNullOrEmpty(settings.SubProtocol))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (3)
573if (!string.IsNullOrEmpty(inputString)) 627if (!string.IsNullOrEmpty(requestProperty.QueryString)) 1083if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
150if (string.IsNullOrEmpty(statusDescription))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
137if (string.IsNullOrEmpty(_contentType)) 334if (!string.IsNullOrEmpty(statusDescription))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (1)
70if (!String.IsNullOrEmpty(value) && string.Compare(value, action, StringComparison.Ordinal) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
622&& string.IsNullOrEmpty(prefix) // attribute prefix
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\PrivacyNoticeBindingElementImporter.cs (1)
40if (string.IsNullOrEmpty(versionString))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
334using (ServiceModelActivity activity = string.IsNullOrEmpty(activityName) ? null : ServiceModelActivity.CreateBoundedActivity())
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
283if (!string.IsNullOrEmpty(relativeAddress))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportImporter.cs (1)
33if (!string.IsNullOrEmpty(transportUri) && transportUri.Equals(UdpConstants.WsdlSoapUdpTransportUri, StringComparison.Ordinal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (1)
116if (string.IsNullOrEmpty(protectionLevelString))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ContractDescription.cs (3)
38if (!string.IsNullOrEmpty(ns)) 93if (!string.IsNullOrEmpty(value)) 208if (string.IsNullOrEmpty(this.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (4)
1329if (string.IsNullOrEmpty(partName)) 2190if (string.IsNullOrEmpty(soapHeaderBinding.Part)) 2202if (string.IsNullOrEmpty(soapFaultBinding.Name)) 2215if (string.IsNullOrEmpty(part.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessagePartDescription.cs (1)
39if (!string.IsNullOrEmpty(ns))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (3)
556if (!String.IsNullOrEmpty(external.SchemaLocation)) 571if (!String.IsNullOrEmpty(import.Location)) 1277if (String.IsNullOrEmpty(contentTypeStr))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
587Fx.Assert(String.IsNullOrEmpty(typeName) || Microsoft.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(typeName), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", typeName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (1)
228if (string.IsNullOrEmpty(id))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
765CodeTypeReference codeTypeReference = new CodeTypeReference(String.IsNullOrEmpty(codeNamespace.Name) ? codeType.Name : codeNamespace.Name + '.' + codeType.Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (6)
99return new XmlName(String.IsNullOrEmpty(name) ? logicalMethodName : name); 119if (String.IsNullOrEmpty(contractName.Namespace)) 170if (string.IsNullOrEmpty(name)) 280private bool IsEmpty { get { return string.IsNullOrEmpty(_encoded) && string.IsNullOrEmpty(_decoded); } } 314if (string.IsNullOrEmpty(EncodedName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
361if (!string.IsNullOrEmpty(knownTypeAttribute.MethodName)) 1535if (string.IsNullOrEmpty(wrapperName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
90if (String.IsNullOrEmpty(identifier))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
492if (!string.IsNullOrEmpty(wsdl.TargetNamespace)) 515if (string.IsNullOrEmpty(wsdl.Name)) 899if (string.IsNullOrEmpty(wsdlFaultBinding.Name)) 978if (string.IsNullOrEmpty(ns))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (9)
520if (string.IsNullOrEmpty(wsdlOperationFault.Name)) 609if (string.IsNullOrEmpty(doc.Identifier)) 1209if (!string.IsNullOrEmpty(wsdlOperationMessage.Name)) 1710if (!string.IsNullOrEmpty(element.NamespaceURI)) 1714if (!string.IsNullOrEmpty(element.Prefix)) 1853if (string.IsNullOrEmpty(messageName)) 2019if (!string.IsNullOrEmpty(xPath)) 2323if (String.IsNullOrEmpty(key)) 2444if (string.IsNullOrEmpty(key))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
291if (String.IsNullOrEmpty(((XmlAnyElementAttribute)attr).Name)) 820XmlName memberName = string.IsNullOrEmpty(part.UniquePartName) ? null : new XmlName(part.UniquePartName, true /*isEncoded*/);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
210if (_codeNamespace != null && !string.IsNullOrEmpty(_codeNamespace.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
16if (string.IsNullOrEmpty(traceName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
320if (string.IsNullOrEmpty(this.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
489if (String.IsNullOrEmpty(endpointContractNames))
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultCode.cs (1)
38if (!string.IsNullOrEmpty(ns))
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultContractAttribute.cs (1)
64if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageContractAttribute.cs (1)
72if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessagePartSpecification.cs (1)
202if (String.IsNullOrEmpty(qname.Name))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (15)
600if (String.IsNullOrEmpty(value)) 603if (String.IsNullOrEmpty(value)) 606if (String.IsNullOrEmpty(value)) 609if (String.IsNullOrEmpty(value)) 617str.Append(String.IsNullOrEmpty(value) ? "<x509>" : value); 639str.Append(String.IsNullOrEmpty(name) ? "<null>" : name); 825string.IsNullOrEmpty(credential.UserName) && 826string.IsNullOrEmpty(credential.Domain) && 827string.IsNullOrEmpty(credential.Password) 960if (!string.IsNullOrEmpty(username) && string.IsNullOrEmpty(domain)) 967if (!string.IsNullOrEmpty(partsWithSlashDelimiter[0]) && !string.IsNullOrEmpty(partsWithSlashDelimiter[1])) 974if (!string.IsNullOrEmpty(partsWithAtDelimiter[0]) && !string.IsNullOrEmpty(partsWithAtDelimiter[1]))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityVersion.cs (1)
118if (headerIndex < 0 && String.IsNullOrEmpty(actor))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\GenericXmlSecurityToken.cs (4)
127if (string.IsNullOrEmpty(id)) 134if (string.IsNullOrEmpty(id)) 140if (string.IsNullOrEmpty(id)) 146if (!string.IsNullOrEmpty(id))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (2)
264if (!string.IsNullOrEmpty(claimValue)) 268if (String.IsNullOrEmpty(optional))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
1930if (String.IsNullOrEmpty(optionalAttribute))
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceContractAttribute.cs (1)
63if (!string.IsNullOrEmpty(value))
FrameworkFork\System.ServiceModel\System\ServiceModel\UriSchemeKeyedCollection.cs (3)
64if (!string.IsNullOrEmpty(uri.UserInfo)) 69if (!string.IsNullOrEmpty(uri.Query)) 74if (!string.IsNullOrEmpty(uri.Fragment))
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (1)
37if (string.IsNullOrEmpty(booleanValue))
HelpGenerator.cs (1)
218Debug.Assert(!string.IsNullOrEmpty(name), "Help category name should have a valid value!");
Metadata\MetadaExchangeResolver.cs (1)
92bool isQueryUri = !string.IsNullOrEmpty(uriQuery);
Metadata\MetadataDocumentLoader.cs (7)
90if (string.IsNullOrEmpty(uri)) 334if (!string.IsNullOrEmpty(externalSchema.SchemaLocation)) 453if (!string.IsNullOrEmpty(uri)) 580var chameleonSchemas = schemas.Where(s => string.IsNullOrEmpty(s.TargetNamespace)); 637if (string.IsNullOrEmpty(wsdl.RetrievalUrl)) 660if (string.IsNullOrEmpty(schema.SourceUri)) 711if (!string.IsNullOrEmpty(metadataUri.Query))
Metadata\MetadataDocumentSaver.cs (6)
168if (!string.IsNullOrEmpty(import.Location) && !this.UnresolvedReferences.Any(r => r.WsdlImport == import)) 192if (!string.IsNullOrEmpty(schemaExternal.SchemaLocation)) 203if (schemaImport != null && !string.IsNullOrEmpty(schemaImport.Namespace)) 251(!string.IsNullOrEmpty(u.Namespace) && u.Namespace == schema.TargetNamespace))).ToList(); 356if (!string.IsNullOrEmpty(id)) 400return string.IsNullOrEmpty(this.Uri) ? base.ToString() : this.Uri;
Metadata\MetadataFileNameManager.cs (5)
169if (!string.IsNullOrEmpty(extension) && (!Path.HasExtension(outputFile) || !Path.GetExtension(outputFile).Equals(extension, StringComparison.OrdinalIgnoreCase))) 217if (string.IsNullOrEmpty(baseUrl)) 221if (string.IsNullOrEmpty(relUrl)) 238if (string.IsNullOrEmpty(dirPath)) 253if (string.IsNullOrEmpty(filename))
OutputPathHelper.cs (2)
92if (!string.IsNullOrEmpty(option)) 112if (string.IsNullOrEmpty(ns))
Shared\MSBuildProj.cs (6)
217if (!string.IsNullOrEmpty(targetFx) && !targetFx.ToString().StartsWith("$")) 228if(string.IsNullOrEmpty(msbuildProj._targetFramework)) 230if(!string.IsNullOrEmpty(tfMoniker) && FrameworkInfo.TryParse(tfMoniker, out FrameworkInfo fxInfo)) 391if (string.IsNullOrEmpty(projectName) || string.CompareOrdinal(projectExtension.ToLowerInvariant(), ".csproj") != 0) 896if (string.IsNullOrEmpty(targetLib)) 1033if (string.IsNullOrEmpty(sdkVersion) || sdkVersion.StartsWith("1", StringComparison.OrdinalIgnoreCase))
Shared\Options\ApplicationOptions.cs (1)
138if (string.IsNullOrEmpty(jsonText))
Shared\ProjectPropertyResolver.cs (1)
157if (!string.IsNullOrEmpty(sdkVersion))
Shared\Utilities\LogTag.cs (2)
37if (string.IsNullOrEmpty(tag) || tag.Length != LogTag.s_tagLength || !tag.StartsWith(s_tagStart, StringComparison.Ordinal) || !tag.EndsWith(s_tagEnd, StringComparison.Ordinal)) 60if (!string.IsNullOrEmpty(message) && message.Length >= LogTag.s_tagLength)
Shared\Utilities\PathHelper.cs (7)
188if (!string.IsNullOrEmpty(str) && int.TryParse(str, out var index)) 249if (!string.IsNullOrEmpty(itemName) && !string.IsNullOrEmpty(workingDir) && Directory.Exists(workingDir)) 251while (string.IsNullOrEmpty(fullPath)) 254if (!string.IsNullOrEmpty(fullPath)) 260if (string.IsNullOrEmpty(workingDir)) 272await safeLogger.WriteMessageAsync($"Item found: {!string.IsNullOrEmpty(fullPath)}", logToUI: false).ConfigureAwait(false);
Tool.cs (3)
30if (string.IsNullOrEmpty(_assemblyName)) 43if (string.IsNullOrEmpty(s_pkgVersion)) 57if (string.IsNullOrEmpty(_fullPath))
dotnet-svcutil-lib.Tests (14)
E2ETests.cs (1)
95var tf = string.IsNullOrEmpty(targetFramework) ? string.Empty : $"-tf {targetFramework}";
FixupUtil.cs (1)
142if (string.IsNullOrEmpty(target))
GlobalToolTests.cs (1)
79var tf = string.IsNullOrEmpty(targetFramework) ? string.Empty : $"-tf {targetFramework}";
ProjectUtils.cs (5)
42if (!string.IsNullOrEmpty(targetFramework)) 56if (!string.IsNullOrEmpty(targetFramework)) 86Assert.False(string.IsNullOrEmpty(options), $"{nameof(options)} not initialized!"); 173Assert.False(string.IsNullOrEmpty(srcParamsFile), $"{nameof(srcParamsFile)} not initialized!"); 174Assert.False(string.IsNullOrEmpty(referenceFolderName), $"{nameof(referenceFolderName)} not initialized!");
TestInit.cs (6)
169Assert.False(string.IsNullOrEmpty(g_SvcutilNugetFeed), $"{nameof(g_SvcutilNugetFeed)} is not initialized!"); 170Assert.False(string.IsNullOrEmpty(g_SvcutilPkgVersion), $"{nameof(g_SvcutilPkgVersion)} is not initialized!"); 384return string.IsNullOrEmpty(failureMessage); 424if (string.IsNullOrEmpty(relativePath)) 440return string.IsNullOrEmpty(failureMessage); 586if (string.IsNullOrEmpty(g_RepositoryRoot))
dotnet-user-jwts (12)
Helpers\DevJwtCliHelpers.cs (2)
20if (string.IsNullOrEmpty(id)) 70if (string.IsNullOrEmpty(project))
Helpers\SigningKeysHandler.cs (1)
45if (!string.IsNullOrEmpty(signingKey?.Value)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
47configuration = !string.IsNullOrEmpty(configuration) 87if (!string.IsNullOrEmpty(d.Data)) 94if (!string.IsNullOrEmpty(d.Data)) 120if (string.IsNullOrEmpty(id))
dotnet-user-secrets (12)
Internal\SetCommand.cs (1)
44if (string.IsNullOrEmpty(nameArg.Value))
Program.cs (2)
83if (string.IsNullOrEmpty(userSecretsId)) 103if (!string.IsNullOrEmpty(options.Id))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (4)
47configuration = !string.IsNullOrEmpty(configuration) 87if (!string.IsNullOrEmpty(d.Data)) 94if (!string.IsNullOrEmpty(d.Data)) 120if (string.IsNullOrEmpty(id))
DynamicSchemes (1)
Pages\Error.cshtml.cs (1)
17public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
FormatterWebSite (1)
Controllers\ValidationController.cs (1)
31if (string.IsNullOrEmpty(developer.Name))
GenerateAnalyzerNuspec (1)
Program.cs (1)
79if (!string.IsNullOrEmpty(repositoryType))
GenerateDocumentationAndConfigFiles (37)
JsonWriter.cs (1)
172if (string.IsNullOrEmpty(value))
Program.cs (16)
417if (string.IsNullOrEmpty(args.PropsFileDir) || string.IsNullOrEmpty(args.PropsFileName)) 420Debug.Assert(string.IsNullOrEmpty(args.PropsFileToDisableNetAnalyzersInNuGetPackageName)); 438if (!string.IsNullOrEmpty(disableNetAnalyzersImport)) 464if (!string.IsNullOrEmpty(args.PropsFileToDisableNetAnalyzersInNuGetPackageName)) 535if (string.IsNullOrEmpty(args.AnalyzerDocumentationFileDir) || string.IsNullOrEmpty(args.AnalyzerDocumentationFileName) || allRulesById.Count == 0) 621if (string.IsNullOrEmpty(args.AnalyzerSarifFileDir) || string.IsNullOrEmpty(args.AnalyzerSarifFileName) || allRulesById.Count == 0) 677writer.Write("fullDescription", !string.IsNullOrEmpty(fullDescription) ? fullDescription.Replace("\r\n", "\n") : descriptor.MessageFormat.ToString(CultureInfo.InvariantCulture)); 681if (!string.IsNullOrEmpty(descriptor.HelpLinkUri)) 767if (string.IsNullOrEmpty(args.AnalyzerDocumentationFileDir) || allRulesById.Count == 0) 1599if (string.IsNullOrEmpty(targetsFileDir) || string.IsNullOrEmpty(targetsFileName)) 1639if (!string.IsNullOrEmpty(category)) 1707if (!string.IsNullOrEmpty(category))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
GetDocument.Insider (7)
Commands\GetDocumentCommandWorker.cs (3)
265if (!string.IsNullOrEmpty(_context.DocumentName)) 286var targetDocumentNames = string.IsNullOrEmpty(_context.DocumentName) 421if (!string.IsNullOrEmpty(outputDirectory))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
HelixTestRunner (1)
TestRunner.cs (1)
303if (string.IsNullOrEmpty(HELIX_WORKITEM_UPLOAD_ROOT))
HostedBlazorWebassemblyApp.Server (1)
Pages\Error.cshtml.cs (1)
21public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
HotAddSample (2)
Startup.cs (2)
40if (!string.IsNullOrEmpty(toAdd)) 66if (!string.IsNullOrEmpty(toRemove))
http2cat (2)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
Identity.DefaultUI.WebSite (1)
Pages\Error.cshtml.cs (1)
15public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Identity.ExternalClaims (4)
Pages\Account\Login.cshtml.cs (1)
55if (!string.IsNullOrEmpty(ErrorMessage))
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (2)
64if (string.IsNullOrEmpty(SharedKey)) 109if (!string.IsNullOrEmpty(unformattedKey))
Pages\Error.cshtml.cs (1)
17public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
IdentitySample.PasskeyUI (3)
Program.cs (3)
61if (!string.IsNullOrEmpty(request.Attestation)) 75var user = !string.IsNullOrEmpty(request.Username) 85if (!string.IsNullOrEmpty(request.UserVerification))
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
59if (!string.IsNullOrEmpty(deploymentParameters.AdditionalPublishParameters))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipVSTSAttribute.cs (1)
13public static bool RunningInVSTS = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SYSTEM_TASKDEFINITIONSURI"));
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
IIS.LongTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
59if (!string.IsNullOrEmpty(deploymentParameters.AdditionalPublishParameters))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipVSTSAttribute.cs (1)
13public static bool RunningInVSTS = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SYSTEM_TASKDEFINITIONSURI"));
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
IIS.NewHandler.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
59if (!string.IsNullOrEmpty(deploymentParameters.AdditionalPublishParameters))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipVSTSAttribute.cs (1)
13public static bool RunningInVSTS = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SYSTEM_TASKDEFINITIONSURI"));
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
IIS.NewShim.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
59if (!string.IsNullOrEmpty(deploymentParameters.AdditionalPublishParameters))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipVSTSAttribute.cs (1)
13public static bool RunningInVSTS = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SYSTEM_TASKDEFINITIONSURI"));
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
IIS.ShadowCopy.Tests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
59if (!string.IsNullOrEmpty(deploymentParameters.AdditionalPublishParameters))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipVSTSAttribute.cs (1)
13public static bool RunningInVSTS = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SYSTEM_TASKDEFINITIONSURI"));
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\PublishedApplicationPublisher.cs (1)
59if (!string.IsNullOrEmpty(deploymentParameters.AdditionalPublishParameters))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipVSTSAttribute.cs (1)
13public static bool RunningInVSTS = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SYSTEM_TASKDEFINITIONSURI"));
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
illink (51)
ILLink.CodeFixProvider (1)
RequiresHelpers.cs (1)
16if (string.IsNullOrEmpty(symbolDisplayName) || hasPublicAccessibility)
ILLink.RoslynAnalyzer (3)
RequiresAssemblyFilesAnalyzer.cs (1)
144if (!string.IsNullOrEmpty(message))
src\tools\illink\src\ILLink.Shared\MessageFormat.cs (2)
13if (!string.IsNullOrEmpty(message)) 21if (!string.IsNullOrEmpty(url))
ILLink.Tasks (14)
LinkTask.cs (14)
243if (!string.IsNullOrEmpty(_dotnetPath)) 247if (string.IsNullOrEmpty(_dotnetPath)) 269if (!string.IsNullOrEmpty(_illinkPath)) 324if (!string.IsNullOrEmpty(rootMode)) 374if (string.IsNullOrEmpty(assemblyTrimMode)) 387if (!string.IsNullOrEmpty(assemblyTrimMode)) 398if (string.IsNullOrEmpty(optimizationValue)) 409if (!string.IsNullOrEmpty(singleWarn)) 487if (string.IsNullOrEmpty(value)) 499if (string.IsNullOrEmpty(featureValue)) 531if (!string.IsNullOrEmpty(beforeStep) && !string.IsNullOrEmpty(afterStep)) 533if (!string.IsNullOrEmpty(beforeStep)) 535if (!string.IsNullOrEmpty(afterStep))
Infrastructure.Common (8)
ConditionalTestDetectors.cs (1)
236if (String.IsNullOrEmpty(result) && IsClientDomainJoined())
OSHelper.cs (2)
129if (string.IsNullOrEmpty(osDescription)) 185if (string.IsNullOrEmpty(testRuntime))
SafeKeychainHandle.cs (1)
76if(!string.IsNullOrEmpty(passphrase))
ServiceUtilHelper.cs (1)
457if (string.IsNullOrEmpty(s_serviceHostName))
TestProperties.cs (1)
58if (String.IsNullOrEmpty(result))
xunit\IssueAttribute.cs (1)
101if (String.IsNullOrEmpty(includeTestsWithIssues))
xunit\WcfTestCase.cs (1)
119if (!string.IsNullOrEmpty(failFastDurationStr))
InMemory.FunctionalTests (2)
ChunkedRequestTests.cs (1)
592Assert.True(string.IsNullOrEmpty(request.Headers["X-Trailer-Header"]));
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
installer.tasks (4)
RegenerateDownloadTable.cs (2)
128if (string.IsNullOrEmpty(branchAbbr)) 134if (string.IsNullOrEmpty(platformAbbr))
StaticFileRegeneration\TpnSectionHeader.cs (2)
32string.IsNullOrEmpty(lineBelow)) 36if (string.IsNullOrEmpty(lineAbove))
InteractiveHost.UnitTests (1)
SynchronizedTextWriter.cs (1)
48Debug.Assert(!string.IsNullOrEmpty(mark));
Interop.FunctionalTests (4)
H2SpecCommands.cs (3)
113if (string.IsNullOrEmpty(line)) 230if (!string.IsNullOrEmpty(args.Data)) 237if (!string.IsNullOrEmpty(args.Data))
Http3\Http3RequestTests.cs (1)
1444Assert.True(!string.IsNullOrEmpty(connectionId1), "ConnectionId should have a value.");
InteropClient (2)
InteropClient.cs (2)
420Assert.IsFalse(string.IsNullOrEmpty(response.OauthScope)); 460Assert.IsFalse(string.IsNullOrEmpty(response.OauthScope));
InteropTests (3)
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
JwtSample (1)
Startup.cs (1)
49if (!string.IsNullOrEmpty(accessToken) &&
Keycloak.Web (1)
AuthorizationHandler.cs (1)
15if (!string.IsNullOrEmpty(accessToken))
Metrics (17)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Metrics.Legacy (17)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
296if (!string.IsNullOrEmpty(details.TargetNamespace))
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (1)
139if (string.IsNullOrEmpty(TargetNamespace))
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonValue.cs (1)
198JsonValueType.String => !string.IsNullOrEmpty((string?)_reference),
Microsoft.Analyzers.Local.Tests (2)
Json\JsonParseExceptionTest.cs (1)
18Assert.False(string.IsNullOrEmpty(ex.Message));
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Arcade.Common (4)
CommandFactory.cs (2)
43if (!string.IsNullOrEmpty(args)) 57if (!string.IsNullOrEmpty(extension))
CommandResult.cs (2)
35if (!string.IsNullOrEmpty(StdOut)) 40if (!string.IsNullOrEmpty(StdErr))
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
248if (string.IsNullOrEmpty(message))
Microsoft.AspNetCore (5)
HostingPathResolver.cs (1)
19if (string.IsNullOrEmpty(contentRootPath))
WebHost.cs (4)
93if (!string.IsNullOrEmpty(url)) 105if (!string.IsNullOrEmpty(applicationName)) 159if (string.IsNullOrEmpty(builder.GetSetting(WebHostDefaults.ContentRootKey))) 177if (!string.IsNullOrEmpty(env.ApplicationName))
Microsoft.AspNetCore.Antiforgery (10)
Internal\DefaultAntiforgery.cs (2)
184Debug.Assert(!string.IsNullOrEmpty(antiforgeryTokenSet.CookieToken)); 185Debug.Assert(!string.IsNullOrEmpty(antiforgeryTokenSet.RequestToken));
Internal\DefaultAntiforgeryAdditionalDataProvider.cs (1)
23return string.IsNullOrEmpty(additionalData);
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
77&& string.IsNullOrEmpty(requestToken.Username) 79&& string.IsNullOrEmpty(requestToken.AdditionalData))
Internal\DefaultAntiforgeryTokenStore.cs (2)
27if (string.IsNullOrEmpty(requestCookie)) 93if (!string.IsNullOrEmpty(pathBase))
Internal\DefaultClaimUidExtractor.cs (3)
57if (subClaim != null && !string.IsNullOrEmpty(subClaim.Value)) 69if (nameIdentifierClaim != null && !string.IsNullOrEmpty(nameIdentifierClaim.Value)) 81if (upnClaim != null && !string.IsNullOrEmpty(upnClaim.Value))
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
249.Where(s => !string.IsNullOrEmpty(s))
Microsoft.AspNetCore.AsyncState (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.AspNetCore.Authentication (8)
RemoteAuthenticationHandler.cs (4)
175if (string.IsNullOrEmpty(ticketContext.ReturnUri)) 263if (string.IsNullOrEmpty(correlationCookie)) 318if (!string.IsNullOrEmpty(context.ReturnUrlParameter) && !string.IsNullOrEmpty(context.ReturnUrl))
RequestPathBaseCookieBuilder.cs (1)
34options.Path = !string.IsNullOrEmpty(path)
SecureDataFormat.cs (2)
40if (!string.IsNullOrEmpty(purpose)) 72if (!string.IsNullOrEmpty(purpose))
TicketSerializer.cs (1)
98if (!string.IsNullOrEmpty(bootstrap))
Microsoft.AspNetCore.Authentication.Abstractions (1)
TokenExtensions.cs (1)
100if (properties.Items.TryGetValue(TokenNamesKey, out var value) && !string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Authentication.Cookies (13)
CookieAuthenticationHandler.cs (6)
153if (string.IsNullOrEmpty(cookie)) 431if (shouldHonorReturnUrlParameter && string.IsNullOrEmpty(redirectUri)) 434if (string.IsNullOrEmpty(redirectUri) || !IsHostRelative(redirectUri)) 450if (string.IsNullOrEmpty(path)) 465if (string.IsNullOrEmpty(returnUrl)) 478if (string.IsNullOrEmpty(redirectUri))
PostConfigureCookieAuthenticationOptions.cs (1)
36if (string.IsNullOrEmpty(options.Cookie.Name))
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
104if (string.IsNullOrEmpty(chunk)) 153if (string.IsNullOrEmpty(value)) 246if (string.IsNullOrEmpty(requestCookies[subkey])) 256var domainHasValue = !string.IsNullOrEmpty(options.Domain); 257var pathHasValue = !string.IsNullOrEmpty(options.Path); 322if (string.IsNullOrEmpty(requestCookies[subkey]))
Microsoft.AspNetCore.Authentication.Core (5)
AuthenticationService.cs (5)
224if (string.IsNullOrEmpty(schemes)) 248if (string.IsNullOrEmpty(schemes)) 264if (string.IsNullOrEmpty(schemes)) 287if (string.IsNullOrEmpty(schemes)) 303if (string.IsNullOrEmpty(schemes))
Microsoft.AspNetCore.Authentication.JwtBearer (20)
JwtBearerConfigureOptions.cs (1)
31if (string.IsNullOrEmpty(name))
JwtBearerHandler.cs (12)
74if (string.IsNullOrEmpty(token)) 79if (string.IsNullOrEmpty(authorization)) 90if (string.IsNullOrEmpty(token)) 298if (string.IsNullOrEmpty(eventContext.Error) && 299string.IsNullOrEmpty(eventContext.ErrorDescription) && 300string.IsNullOrEmpty(eventContext.ErrorUri)) 314if (!string.IsNullOrEmpty(eventContext.Error)) 320if (!string.IsNullOrEmpty(eventContext.ErrorDescription)) 322if (!string.IsNullOrEmpty(eventContext.Error)) 331if (!string.IsNullOrEmpty(eventContext.ErrorUri)) 333if (!string.IsNullOrEmpty(eventContext.Error) || 334!string.IsNullOrEmpty(eventContext.ErrorDescription))
JwtBearerPostConfigureOptions.cs (6)
23if (string.IsNullOrEmpty(options.TokenValidationParameters.ValidAudience) && !string.IsNullOrEmpty(options.Audience)) 34else if (!(string.IsNullOrEmpty(options.MetadataAddress) && string.IsNullOrEmpty(options.Authority))) 36if (string.IsNullOrEmpty(options.MetadataAddress) && !string.IsNullOrEmpty(options.Authority))
src\Shared\StringHelpers.cs (1)
10if (string.IsNullOrEmpty(stringValue))
Microsoft.AspNetCore.Authentication.Negotiate (4)
LdapSettings.cs (2)
87if (string.IsNullOrEmpty(MachineAccountName) && !string.IsNullOrEmpty(MachineAccountPassword))
NegotiateHandler.cs (1)
187if (!string.IsNullOrEmpty(outgoing))
PostConfigureNegotiateOptions.cs (1)
73if (string.IsNullOrEmpty(ldapSettings.MachineAccountName))
Microsoft.AspNetCore.Authentication.Negotiate.Test (6)
EventTests.cs (2)
446Assert.False(string.IsNullOrEmpty(name), "name"); 462if (!string.IsNullOrEmpty(authorizationHeader))
NegotiateHandlerTests.cs (4)
438Assert.False(string.IsNullOrEmpty(name), "name"); 452Assert.False(string.IsNullOrEmpty(name), "name"); 465Assert.False(string.IsNullOrEmpty(name), "name"); 493if (!string.IsNullOrEmpty(authorizationHeader))
Microsoft.AspNetCore.Authentication.OAuth (7)
CustomJsonClaimAction.cs (1)
35if (!string.IsNullOrEmpty(value))
JsonKeyClaimAction.cs (1)
58if (!string.IsNullOrEmpty(value))
OAuthHandler.cs (5)
141if (string.IsNullOrEmpty(tokens.AccessToken)) 153if (!string.IsNullOrEmpty(tokens.RefreshToken)) 158if (!string.IsNullOrEmpty(tokens.TokenType)) 163if (!string.IsNullOrEmpty(tokens.ExpiresIn)) 265if (string.IsNullOrEmpty(properties.RedirectUri))
Microsoft.AspNetCore.Authentication.OpenIdConnect (47)
OpenIdConnectConfigureOptions.cs (1)
31if (string.IsNullOrEmpty(name))
OpenIdConnectHandler.cs (37)
118&& !string.IsNullOrEmpty(Request.ContentType) 164if (!string.IsNullOrEmpty(sid)) 167if (string.IsNullOrEmpty(message.Sid)) 181if (!string.IsNullOrEmpty(iss)) 184if (string.IsNullOrEmpty(message.Iss)) 236if (string.IsNullOrEmpty(properties.RedirectUri)) 263if (!string.IsNullOrEmpty(message.State)) 270if (string.IsNullOrEmpty(message.IssuerAddress)) 320if (!string.IsNullOrEmpty(message.State)) 350if (!string.IsNullOrEmpty(properties?.RedirectUri)) 387if (string.IsNullOrEmpty(properties.RedirectUri)) 472if (!string.IsNullOrEmpty(message.State)) 482if (string.IsNullOrEmpty(message.IssuerAddress)) 494if (!string.IsNullOrEmpty(parEndpoint)) 511if (string.IsNullOrEmpty(parEndpoint)) 569if (!string.IsNullOrEmpty(Options.ClientSecret)) 645if (!string.IsNullOrEmpty(authorizationResponse.IdToken) || !string.IsNullOrEmpty(authorizationResponse.AccessToken)) 657&& !string.IsNullOrEmpty(Request.ContentType) 696if (string.IsNullOrEmpty(authorizationResponse.State)) 729if (!string.IsNullOrEmpty(authorizationResponse.Error)) 762if (!string.IsNullOrEmpty(authorizationResponse.IdToken)) 778if (!string.IsNullOrEmpty(nonce)) 806if (!string.IsNullOrEmpty(authorizationResponse.Code)) 861if (!string.IsNullOrEmpty(nonce)) 951if (!string.IsNullOrEmpty(message.State)) 967if (!string.IsNullOrEmpty(message.SessionState)) 972if (!string.IsNullOrEmpty(_configuration?.CheckSessionIframe)) 995if (string.IsNullOrEmpty(contentMediaType)) 1042if (string.IsNullOrEmpty(userInfoEndpoint)) 1047if (string.IsNullOrEmpty(message.AccessToken)) 1114if (!string.IsNullOrEmpty(message.AccessToken)) 1119if (!string.IsNullOrEmpty(message.IdToken)) 1124if (!string.IsNullOrEmpty(message.RefreshToken)) 1129if (!string.IsNullOrEmpty(message.TokenType)) 1134if (!string.IsNullOrEmpty(message.ExpiresIn)) 1496if (string.IsNullOrEmpty(uri))
OpenIdConnectPostConfigureOptions.cs (7)
40if (string.IsNullOrEmpty(options.SignOutScheme)) 63if (string.IsNullOrEmpty(options.TokenValidationParameters.ValidAudience) && !string.IsNullOrEmpty(options.ClientId)) 82else if (!(string.IsNullOrEmpty(options.MetadataAddress) && string.IsNullOrEmpty(options.Authority))) 84if (string.IsNullOrEmpty(options.MetadataAddress) && !string.IsNullOrEmpty(options.Authority))
src\Shared\StringHelpers.cs (1)
10if (string.IsNullOrEmpty(stringValue))
UniqueJsonKeyClaimAction.cs (1)
33if (string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Authentication.Test (37)
CertificateTests.cs (8)
495if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.SubjectName.Name)) 505if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.SerialNumber)) 515if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false))) 525if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false))) 535if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false))) 545if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false))) 555if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false))) 895if (wireUpHeaderMiddleware && !string.IsNullOrEmpty(headerName))
CookieTests.cs (2)
1913if (!string.IsNullOrEmpty(cookieHeader)) 1926if (!string.IsNullOrEmpty(transaction.SetCookie))
FacebookTests.cs (2)
408Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 446Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"]));
GoogleTests.cs (2)
1047Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 1079Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"]));
JwtBearerTests.cs (7)
420if (!string.IsNullOrEmpty(error)) 426if (!string.IsNullOrEmpty(description)) 428if (!string.IsNullOrEmpty(error)) 437if (!string.IsNullOrEmpty(uri)) 439if (!string.IsNullOrEmpty(error) || 440!string.IsNullOrEmpty(description)) 1250if (!string.IsNullOrEmpty(authorizationHeader))
JwtBearerTests_Handler.cs (7)
391if (!string.IsNullOrEmpty(error)) 397if (!string.IsNullOrEmpty(description)) 399if (!string.IsNullOrEmpty(error)) 408if (!string.IsNullOrEmpty(uri)) 410if (!string.IsNullOrEmpty(error) || 411!string.IsNullOrEmpty(description)) 1318if (!string.IsNullOrEmpty(authorizationHeader))
MicrosoftAccountTests.cs (2)
314Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 346Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"]));
OpenIdConnect\TestServerExtensions.cs (1)
24if (!string.IsNullOrEmpty(cookieHeader))
OpenIdConnect\TestSettings.cs (1)
139var queryDict = string.IsNullOrEmpty(redirectUri.Query) ?
TestExtensions.cs (1)
21if (!string.IsNullOrEmpty(cookieHeader))
WsFederation\TestSecurityTokenValidator.cs (1)
22if (!string.IsNullOrEmpty(securityToken) && securityToken.Contains("ThisIsAValidToken"))
WsFederation\TestTokenHandler.cs (1)
18if (!string.IsNullOrEmpty(token) && token.Contains("ThisIsAValidToken"))
WsFederation\WsFederationTest.cs (1)
258if (!string.IsNullOrEmpty(wctx))
WsFederation\WsFederationTest_Handler.cs (1)
249if (!string.IsNullOrEmpty(wctx))
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
166if (string.IsNullOrEmpty(properties.RedirectUri)) 350string.IsNullOrEmpty(tokenSecret) ? string.Empty : Uri.EscapeDataString(tokenSecret)));
Microsoft.AspNetCore.Authentication.WsFederation (13)
WsFederationHandler.cs (9)
93if (string.IsNullOrEmpty(properties.RedirectUri)) 105if (!string.IsNullOrEmpty(Options.Wreply)) 129if (!string.IsNullOrEmpty(wsFederationMessage.Wctx)) 155&& !string.IsNullOrEmpty(Request.ContentType) 227if (string.IsNullOrEmpty(token)) 436if (properties != null && !string.IsNullOrEmpty(properties.RedirectUri)) 440else if (!string.IsNullOrEmpty(Options.SignOutWreply)) 444else if (!string.IsNullOrEmpty(Options.Wreply)) 505if (string.IsNullOrEmpty(uri))
WsFederationPostConfigureOptions.cs (4)
40if (string.IsNullOrEmpty(options.SignOutScheme)) 52if (!options.CallbackPath.HasValue && !string.IsNullOrEmpty(options.Wreply) && Uri.TryCreate(options.Wreply, UriKind.Absolute, out var wreply)) 58if (string.IsNullOrEmpty(options.TokenValidationParameters.ValidAudience)) 77else if (!string.IsNullOrEmpty(options.MetadataAddress))
Microsoft.AspNetCore.AzureAppServices.HostingStartup (1)
HostingStartupConfigurationExtensions.cs (1)
31return !string.IsNullOrEmpty(value);
Microsoft.AspNetCore.BrowserTesting (2)
ContextInformation.cs (2)
59string.IsNullOrEmpty(uploadDir) ? browserContextOptions.RecordHarPath : uploadDir, 66if (!string.IsNullOrEmpty(uploadDir))
Microsoft.AspNetCore.Components (28)
BindConverter.cs (19)
782if (string.IsNullOrEmpty(text)) 801if (string.IsNullOrEmpty(text)) 847if (string.IsNullOrEmpty(text)) 866if (string.IsNullOrEmpty(text)) 912if (string.IsNullOrEmpty(text)) 931if (string.IsNullOrEmpty(text)) 977if (string.IsNullOrEmpty(text)) 1002if (string.IsNullOrEmpty(text)) 1054if (string.IsNullOrEmpty(text)) 1079if (string.IsNullOrEmpty(text)) 1131if (string.IsNullOrEmpty(text)) 1150if (string.IsNullOrEmpty(text)) 1229if (string.IsNullOrEmpty(text)) 1258if (string.IsNullOrEmpty(text)) 1342if (string.IsNullOrEmpty(text)) 1371if (string.IsNullOrEmpty(text)) 1587if (string.IsNullOrEmpty(text)) 1606if (string.IsNullOrEmpty(text)) 1631if (string.IsNullOrEmpty(text))
CascadingValue.cs (1)
79if (string.IsNullOrEmpty(Name))
NavigationManagerExtensions.cs (2)
164if (string.IsNullOrEmpty(name)) 526if (string.IsNullOrEmpty(name))
Rendering\RenderTreeUpdater.cs (1)
35if (!string.IsNullOrEmpty(frame.AttributeEventUpdatesAttributeNameField))
src\Http\Routing\src\Patterns\RoutePatternLiteralPart.cs (1)
22Debug.Assert(!string.IsNullOrEmpty(content));
src\Http\Routing\src\Patterns\RoutePatternSeparatorPart.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(content));
src\Http\Routing\src\RouteValueEqualityComparer.cs (3)
36if (string.IsNullOrEmpty(stringX) && string.IsNullOrEmpty(stringY)) 50if (string.IsNullOrEmpty(stringObj))
Microsoft.AspNetCore.Components.Authorization (1)
AuthorizeViewCore.cs (1)
124if (!string.IsNullOrEmpty(entry.AuthenticationSchemes))
Microsoft.AspNetCore.Components.Endpoints (10)
Assets\LinkPreload.cs (4)
57if (!string.IsNullOrEmpty(asset.PreloadAs)) 61if (!string.IsNullOrEmpty(asset.PreloadPriority)) 65if (!string.IsNullOrEmpty(asset.PreloadCrossorigin)) 69if (!string.IsNullOrEmpty(asset.Integrity))
FormMapping\Converters\NullableConverter.cs (1)
17if (string.IsNullOrEmpty(value) && IsSupportedUnderlyingType(typeof(T)))
FormMapping\HttpContextFormValueMapper.cs (1)
68if (string.IsNullOrEmpty(currentMappingScopeName))
Rendering\EndpointHtmlRenderer.EventDispatch.cs (4)
27if (string.IsNullOrEmpty(handlerName)) 89if (string.IsNullOrEmpty(_notFoundUrl)) 113if (string.IsNullOrEmpty(path)) 116if (string.IsNullOrEmpty(pathFormat))
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Builder\TestFileProvider\TestFileProvider.cs (1)
109if (string.IsNullOrEmpty(filePath))
FormMapping\Converters\NullableConverterTests.cs (1)
223if (string.IsNullOrEmpty(s))
Microsoft.AspNetCore.Components.QuickGrid (3)
Columns\PropertyColumn.cs (1)
48if (!string.IsNullOrEmpty(Format))
src\Components\Shared\src\AttributeUtilities.cs (2)
19if (string.IsNullOrEmpty(classAttributeValue)) 24if (string.IsNullOrEmpty(classNames))
Microsoft.AspNetCore.Components.Server (12)
Circuits\RemoteJSDataStream.cs (1)
92if (!string.IsNullOrEmpty(error))
ComponentHub.cs (5)
127var store = !string.IsNullOrEmpty(applicationState) ? 203store = !string.IsNullOrEmpty(applicationState) ? 314if (RootComponentIsEmpty(rootComponents) && string.IsNullOrEmpty(applicationState)) 325else if (!RootComponentIsEmpty(rootComponents) && !string.IsNullOrEmpty(applicationState)) 396string.IsNullOrEmpty(rootComponents) || rootComponents == "[]";
src\Components\Shared\src\RenderBatchWriter.cs (1)
160WriteString(attributeValueString, allowDeduplication: string.IsNullOrEmpty(attributeValueString));
src\Components\Shared\src\WebRootComponentManager.cs (1)
187if (!string.IsNullOrEmpty(_key.FormattedComponentKey))
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (4)
80if (string.IsNullOrEmpty(invocationId)) 431if (string.IsNullOrEmpty(message.InvocationId)) 560if (string.IsNullOrEmpty(message.Error)) 709if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (1)
219var identity = !string.IsNullOrEmpty(username)
Microsoft.AspNetCore.Components.Web (16)
Forms\EditForm.cs (1)
159if (!string.IsNullOrEmpty(FormName))
Forms\InputBase.cs (1)
119if (_nullableUnderlyingType != null && string.IsNullOrEmpty(value))
Forms\InputDate.cs (1)
78_parsingErrorMessage = string.IsNullOrEmpty(ParsingErrorMessage)
Forms\InputExtensions.cs (1)
66if (string.IsNullOrEmpty(value))
Forms\InputRadio.cs (1)
51Context = string.IsNullOrEmpty(Name) ? CascadedContext : CascadedContext?.FindContextInAncestors(Name);
Forms\InputRadioGroup.cs (2)
49if (!string.IsNullOrEmpty(Name)) 54else if (!string.IsNullOrEmpty(NameAttributeValue))
Forms\Mapping\FormMappingScope.cs (1)
42if (string.IsNullOrEmpty(Name))
Forms\Mapping\SupplyParameterFromFormValueProvider.cs (1)
79Action<string, FormattableString, string?> errorHandler = string.IsNullOrEmpty(restrictToFormName) ?
Forms\RenderTreeBuilderExtensions.cs (1)
13if (!string.IsNullOrEmpty(value))
Head\HeadOutlet.cs (1)
44if (!string.IsNullOrEmpty(_defaultTitle))
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (3)
136if (isTextArea && !string.IsNullOrEmpty(capturedValueAttribute)) 235scopeQualifiedEventName = string.IsNullOrEmpty(mappingScopeName) 318!string.IsNullOrEmpty(frame.AttributeValue as string))
src\Components\Shared\src\AttributeUtilities.cs (2)
19if (string.IsNullOrEmpty(classAttributeValue)) 24if (string.IsNullOrEmpty(classNames))
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
87if (string.IsNullOrEmpty(mappingScopeName))
Microsoft.AspNetCore.Components.WebAssembly (4)
Hosting\WebAssemblyHost.cs (1)
135var store = !string.IsNullOrEmpty(_persistedState) ?
Services\WebAssemblyConsoleLogger.cs (2)
55if (!string.IsNullOrEmpty(message) || exception != null) 116if (!string.IsNullOrEmpty(message))
src\Components\Shared\src\WebRootComponentManager.cs (1)
187if (!string.IsNullOrEmpty(_key.FormattedComponentKey))
Microsoft.AspNetCore.Components.WebAssembly.Server (14)
DebugProxyLauncher.cs (4)
120if (string.IsNullOrEmpty(environment.ApplicationName)) 178if (!string.IsNullOrEmpty(eventArgs.Data)) 188if (string.IsNullOrEmpty(eventArgs.Data)) 202if (!string.IsNullOrEmpty(capturedUrl))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
TargetPickerUi.cs (8)
170if (string.IsNullOrEmpty(consoleActorId)) 202if (string.IsNullOrEmpty(consoleActorId)) 208if (!string.IsNullOrEmpty(consoleActorId)) 226if (hasConsoleActor && !string.IsNullOrEmpty(consoleActor.GetString())) 231else if (hasActor && !string.IsNullOrEmpty(actor.GetString())) 244else if (!string.IsNullOrEmpty(toCmd)) 303var matchingTabs = string.IsNullOrEmpty(targetApplicationUrl) 317var suffix = string.IsNullOrEmpty(targetApplicationUrl)
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
34var isFirefox = string.IsNullOrEmpty(queryParams.Get("isFirefox")) ? false : true;
Microsoft.AspNetCore.Components.WebView (4)
src\Components\Shared\src\RenderBatchWriter.cs (1)
160WriteString(attributeValueString, allowDeduplication: string.IsNullOrEmpty(attributeValueString));
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
99var fileCandidate = string.IsNullOrEmpty(candidateDirectoryPath) ? result.Name : $"{candidateDirectoryPath}/{result.Name}";
StaticContentProvider.cs (1)
67if (!string.IsNullOrEmpty(relativePath))
WebViewManager.cs (1)
299if (string.IsNullOrEmpty(assembly?.Location))
Microsoft.AspNetCore.Components.WebView.Maui (2)
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
14 if (string.IsNullOrEmpty(url))
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
79 if (!string.IsNullOrEmpty(values.ContentType))
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\TestDocument.cs (1)
329if (firstTwoChars != "on" || string.IsNullOrEmpty(eventName))
Microsoft.AspNetCore.Components.WebView.WindowsForms (4)
BlazorWebView.cs (2)
96 private bool ShouldSerializeHostPage() => !string.IsNullOrEmpty(HostPage); 178 if (!string.IsNullOrEmpty(entryAssemblyLocation))
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
14 if (string.IsNullOrEmpty(url))
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
79 if (!string.IsNullOrEmpty(values.ContentType))
Microsoft.AspNetCore.Components.WebView.Wpf (3)
BlazorWebView.cs (1)
261 if (!string.IsNullOrEmpty(entryAssemblyLocation))
src\BlazorWebView\src\SharedSource\QueryStringHelper.cs (1)
14 if (string.IsNullOrEmpty(url))
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
79 if (!string.IsNullOrEmpty(values.ContentType))
Microsoft.AspNetCore.CookiePolicy.Test (7)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
104if (string.IsNullOrEmpty(chunk)) 153if (string.IsNullOrEmpty(value)) 246if (string.IsNullOrEmpty(requestCookies[subkey])) 256var domainHasValue = !string.IsNullOrEmpty(options.Domain); 257var pathHasValue = !string.IsNullOrEmpty(options.Path); 322if (string.IsNullOrEmpty(requestCookies[subkey]))
TestExtensions.cs (1)
18if (!string.IsNullOrEmpty(cookieHeader))
Microsoft.AspNetCore.DataProtection (17)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (2)
70if (String.IsNullOrEmpty(configuration.HashAlgorithm)) 104if (String.IsNullOrEmpty(configuration.EncryptionAlgorithm))
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
71if (String.IsNullOrEmpty(configuration.EncryptionAlgorithm))
DataProtectionServiceCollectionExtensions.cs (1)
92if (!string.IsNullOrEmpty(dpOptions.Value.ApplicationDiscriminator))
DataProtectionUtilityExtensions.cs (1)
46return (string.IsNullOrEmpty(discriminator)) ? null : discriminator;
Internal\HostingApplicationDiscriminator.cs (1)
35if (string.IsNullOrEmpty(contentRoot) ||
Internal\KeyManagementOptionsPostSetup.cs (1)
44if (string.IsNullOrEmpty(dirPath))
RegistryPolicyResolver.cs (2)
52if (!string.IsNullOrEmpty(candidate)) 94else if (!string.IsNullOrEmpty(encryptionType))
Repositories\DefaultKeyStorageDirectories.cs (4)
41if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && !string.IsNullOrEmpty(localAppDataFromSystemPath)) 63else if (!string.IsNullOrEmpty(localAppDataFromSystemPath)) 93if (!String.IsNullOrEmpty(Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID"))) 96if (!string.IsNullOrEmpty(homeEnvVar))
Repositories\FileSystemXmlRepository.cs (1)
99return (!String.IsNullOrEmpty(filename) && filename.All(c =>
Repositories\RegistryXmlRepository.cs (2)
119return (!String.IsNullOrEmpty(filename) && filename.All(c => 132return (!string.IsNullOrEmpty(data)) ? XElement.Parse(data) : null;
XmlEncryption\CertificateResolver.cs (1)
26if (String.IsNullOrEmpty(thumbprint))
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreXmlRepository.cs (1)
56if (!string.IsNullOrEmpty(key.Xml))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (6)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
Microsoft.AspNetCore.Diagnostics (33)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
369if (!string.IsNullOrEmpty(badRequestReasonPhrase))
DeveloperExceptionPage\Views\CompilationErrorPage.Designer.cs (4)
350if (!string.IsNullOrEmpty(fileName)) 375if (!string.IsNullOrEmpty(errorDetail.ErrorMessage)) 422if (!string.IsNullOrEmpty(frame.ErrorDetails)) 619if (!string.IsNullOrEmpty(Model.CompiledContent[i]))
DeveloperExceptionPage\Views\ErrorPage.Designer.cs (6)
375if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File)) 419else if (!string.IsNullOrEmpty(location)) 605if (string.IsNullOrEmpty(frame.File)) 1179if (!string.IsNullOrEmpty(Model.Endpoint.RoutePattern)) 1243if (!string.IsNullOrEmpty(Model.Endpoint.HttpMethods))
ExceptionHandler\ExceptionHandlerExtensions.cs (1)
128if (!string.IsNullOrEmpty(options.Value.ExceptionHandlingPath) && options.Value.ExceptionHandler is null)
src\Shared\Diagnostics\ActivityCreator.cs (4)
47activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 71if (!string.IsNullOrEmpty(requestId)) 98if (!string.IsNullOrEmpty(requestId)) 100if (!string.IsNullOrEmpty(traceState))
src\Shared\Diagnostics\BaseView.cs (5)
110Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 119Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 256if (!string.IsNullOrEmpty(value)) 279if (!string.IsNullOrEmpty(value)) 287if (string.IsNullOrEmpty(input))
src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
104if (string.IsNullOrEmpty(stackFrame.File)) 122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath))
src\Shared\StackTrace\StackFrame\MethodDisplayInfo.cs (2)
36if (!string.IsNullOrEmpty(DeclaringTypeName)) 50if (!string.IsNullOrEmpty(SubMethod))
src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs (1)
20if (!string.IsNullOrEmpty(Prefix))
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
StatusCodePage\StatusCodePagesMiddleware.cs (1)
77|| !string.IsNullOrEmpty(context.Response.ContentType))
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (14)
src\Shared\Diagnostics\ActivityCreator.cs (4)
47activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 71if (!string.IsNullOrEmpty(requestId)) 98if (!string.IsNullOrEmpty(requestId)) 100if (!string.IsNullOrEmpty(traceState))
src\Shared\Diagnostics\BaseView.cs (5)
110Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 119Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 256if (!string.IsNullOrEmpty(value)) 279if (!string.IsNullOrEmpty(value)) 287if (string.IsNullOrEmpty(input))
src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
226string.IsNullOrEmpty(remaining)));
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Latency\RequestLatencyTelemetryMiddleware.cs (1)
61if (!string.IsNullOrEmpty(_applicationName))
Logging\IncomingHttpRouteUtility.cs (1)
26if (string.IsNullOrEmpty(httpRoute))
Logging\RequestHeadersLogEnricher.cs (1)
69if (request.Headers.TryGetValue(header.Key, out var headerValue) && !string.IsNullOrEmpty(headerValue))
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Logging\AcceptanceTests.cs (6)
233Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 293Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 346Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 407Assert.Single(requestState, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 463Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 669Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
Logging\AcceptanceTests.Mvc.cs (5)
81Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 119Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 170Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 206Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value)); 249Assert.Single(state, x => x.Key == HttpLoggingTagNames.Host && !string.IsNullOrEmpty(x.Value));
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Internal\Json\StructConverter.cs (1)
35if (string.IsNullOrEmpty(k) || v == null)
Internal\JsonTranscodingRouteAdapter.cs (2)
156if (!string.IsNullOrEmpty(catchAllSuffix)) 209if (!string.IsNullOrEmpty(pattern))
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
222if (string.IsNullOrEmpty(identifier))
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
410if (!string.IsNullOrEmpty(body)) 456if (!string.IsNullOrEmpty(responseBody))
Microsoft.AspNetCore.Grpc.Swagger (3)
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
222if (string.IsNullOrEmpty(identifier))
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
410if (!string.IsNullOrEmpty(body)) 456if (!string.IsNullOrEmpty(responseBody))
Microsoft.AspNetCore.HeaderParsing (2)
HostHeaderValue.cs (1)
78if (!string.IsNullOrEmpty(parsedHost))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.AspNetCore.Hosting (41)
GenericHost\GenericWebHostBuilder.cs (1)
90if (!string.IsNullOrEmpty(webHostOptions.StartupAssembly))
GenericHost\GenericWebHostService.cs (6)
74if (string.IsNullOrEmpty(urls)) 81if (string.IsNullOrEmpty(urls)) 95else if (!string.IsNullOrEmpty(httpPorts) || !string.IsNullOrEmpty(httpsPorts)) 100if (!string.IsNullOrEmpty(urls)) 106if (!string.IsNullOrEmpty(preferHostingUrlsConfig))
Internal\HostingEnvironmentExtensions.cs (2)
41if (!string.IsNullOrEmpty(hostingEnvironment.WebRootPath)) 92if (!string.IsNullOrEmpty(hostingEnvironment.WebRootPath))
Internal\StartupLoader.cs (1)
240if (string.IsNullOrEmpty(startupAssemblyName))
Internal\WebHost.cs (1)
266if (!string.IsNullOrEmpty(urls))
Internal\WebHostLifetime.cs (1)
60if (!string.IsNullOrEmpty(_shutdownMessage))
Internal\WebHostOptions.cs (2)
37if (!string.IsNullOrEmpty(timeout) 85if (string.IsNullOrEmpty(environment))
src\Shared\Diagnostics\ActivityCreator.cs (4)
47activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 71if (!string.IsNullOrEmpty(requestId)) 98if (!string.IsNullOrEmpty(requestId)) 100if (!string.IsNullOrEmpty(traceState))
src\Shared\ErrorPage\ErrorPage.Designer.cs (4)
321if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File)) 365else if (!string.IsNullOrEmpty(location)) 504if (string.IsNullOrEmpty(frame.File))
src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
104if (string.IsNullOrEmpty(stackFrame.File)) 122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath))
src\Shared\StackTrace\StackFrame\MethodDisplayInfo.cs (2)
36if (!string.IsNullOrEmpty(DeclaringTypeName)) 50if (!string.IsNullOrEmpty(SubMethod))
src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs (1)
20if (!string.IsNullOrEmpty(Prefix))
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
99var fileCandidate = string.IsNullOrEmpty(candidateDirectoryPath) ? result.Name : $"{candidateDirectoryPath}/{result.Name}";
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
StaticWebAssets\StaticWebAssetsLoader.cs (2)
71if (string.IsNullOrEmpty(environment.ApplicationName)) 77var basePath = string.IsNullOrEmpty(assemblyLocation) ? AppContext.BaseDirectory : Path.GetDirectoryName(assemblyLocation);
WebHostBuilder.cs (4)
45if (string.IsNullOrEmpty(GetSetting(WebHostDefaults.EnvironmentKey))) 52if (string.IsNullOrEmpty(GetSetting(WebHostDefaults.ServerUrlsKey))) 302if (!string.IsNullOrEmpty(_options.StartupAssembly)) 364if (string.IsNullOrEmpty(contentRootPath))
WebHostExtensions.cs (1)
129if (!string.IsNullOrEmpty(startupMessage))
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
ShutdownTests.cs (1)
73if (!string.IsNullOrEmpty(data) && data.StartsWith(StartedMessage, StringComparison.Ordinal))
Microsoft.AspNetCore.Html.Abstractions (2)
HtmlContentBuilder.cs (2)
62if (!string.IsNullOrEmpty(unencoded)) 85if (!string.IsNullOrEmpty(encoded))
Microsoft.AspNetCore.Http (19)
BindingAddress.cs (1)
241if (string.IsNullOrEmpty(host))
Features\QueryFeature.cs (1)
99if (string.IsNullOrEmpty(queryString) || (queryString.Length == 1 && queryString[0] == '?'))
HeaderDictionary.cs (1)
126!string.IsNullOrEmpty(rawValue[0]) &&
Internal\DefaultHttpResponse.cs (1)
101if (string.IsNullOrEmpty(value))
Internal\ResponseCookies.cs (2)
117var domainHasValue = !string.IsNullOrEmpty(options.Domain); 118var pathHasValue = !string.IsNullOrEmpty(options.Path);
src\Http\Shared\CookieHeaderParserShared.cs (1)
33while (!string.IsNullOrEmpty(value) && index < value.Length)
src\Shared\Debugger\HttpContextDebugFormatter.cs (12)
18if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 23if (!string.IsNullOrEmpty(response.ContentType)) 34if (!string.IsNullOrEmpty(request.Method)) 40if (!string.IsNullOrEmpty(request.Protocol)) 45if (!string.IsNullOrEmpty(request.ContentType)) 56if (!string.IsNullOrEmpty(context.Request.Method)) 62if (!string.IsNullOrEmpty(context.Request.Protocol)) 67if (!string.IsNullOrEmpty(context.Request.ContentType)) 75if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 92if (string.IsNullOrEmpty(request.Scheme) && 104if (string.IsNullOrEmpty(scheme)) 109if (string.IsNullOrEmpty(host))
Microsoft.AspNetCore.Http.Abstractions (32)
CookieBuilder.cs (1)
22set => _name = !string.IsNullOrEmpty(value)
FragmentString.cs (4)
28if (!string.IsNullOrEmpty(value) && value[0] != '#') 48get { return !string.IsNullOrEmpty(_value); } 82if (String.IsNullOrEmpty(uriComponent)) 99if (!string.IsNullOrEmpty(fragmentValue))
HostString.cs (2)
83get { return !string.IsNullOrEmpty(_value); } 164if (!string.IsNullOrEmpty(uriComponent))
Internal\ParsingHelpers.cs (3)
28if (!string.IsNullOrEmpty(value)) 67if (!string.IsNullOrEmpty(value) && 78if (!string.IsNullOrEmpty(value) &&
PathString.cs (4)
39if (!string.IsNullOrEmpty(value) && value[0] != '/') 57get { return !string.IsNullOrEmpty(Value); } 77if (string.IsNullOrEmpty(value)) 509=> string.IsNullOrEmpty(s) ? new PathString(s) : FromUriComponent(s);
QueryString.cs (6)
30if (!string.IsNullOrEmpty(value) && value[0] != '?') 46public bool HasValue => !string.IsNullOrEmpty(Value); 79if (string.IsNullOrEmpty(uriComponent)) 96if (!string.IsNullOrEmpty(queryValue)) 113if (!string.IsNullOrEmpty(value)) 284if (!string.IsNullOrEmpty(value))
src\Shared\Debugger\HttpContextDebugFormatter.cs (12)
18if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 23if (!string.IsNullOrEmpty(response.ContentType)) 34if (!string.IsNullOrEmpty(request.Method)) 40if (!string.IsNullOrEmpty(request.Protocol)) 45if (!string.IsNullOrEmpty(request.ContentType)) 56if (!string.IsNullOrEmpty(context.Request.Method)) 62if (!string.IsNullOrEmpty(context.Request.Protocol)) 67if (!string.IsNullOrEmpty(context.Request.ContentType)) 75if (!string.IsNullOrEmpty(resolvedReasonPhrase)) 92if (string.IsNullOrEmpty(request.Scheme) && 104if (string.IsNullOrEmpty(scheme)) 109if (string.IsNullOrEmpty(host))
Microsoft.AspNetCore.Http.Connections (3)
Internal\ConnectionLogScope.cs (2)
33public int Count => string.IsNullOrEmpty(ConnectionId) ? 0 : 1; 52if (!string.IsNullOrEmpty(ConnectionId))
Internal\HttpConnectionDispatcher.cs (1)
411if (!string.IsNullOrEmpty(error))
Microsoft.AspNetCore.Http.Connections.Client (11)
HttpConnection.cs (2)
492if (!string.IsNullOrEmpty(negotiateResponse.Error)) 647if (string.IsNullOrEmpty(header.Value))
Internal\AccessTokenHttpMessageHandler.cs (2)
25if (string.IsNullOrEmpty(_accessToken) || 59if (!string.IsNullOrEmpty(accessToken))
Internal\ConnectionLogScope.cs (2)
41public int Count => string.IsNullOrEmpty(ConnectionId) ? 0 : 1; 60if (!string.IsNullOrEmpty(ConnectionId))
Internal\Constants.cs (3)
56if (!string.IsNullOrEmpty(detailedVersion)) 65if (!string.IsNullOrEmpty(os)) 76if (!string.IsNullOrEmpty(runtimeVersion))
Internal\Utils.cs (2)
36if (string.IsNullOrEmpty(qs)) 43if (!string.IsNullOrEmpty(builder.Query))
Microsoft.AspNetCore.Http.Connections.Common (5)
NegotiateProtocol.cs (5)
59if (!string.IsNullOrEmpty(response.Error)) 75if (!string.IsNullOrEmpty(response.Url)) 80if (!string.IsNullOrEmpty(response.AccessToken)) 85if (!string.IsNullOrEmpty(response.ConnectionId)) 90if (response.Version > 0 && !string.IsNullOrEmpty(response.ConnectionToken))
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3222if (!string.IsNullOrEmpty(accessToken) && 3384if (!string.IsNullOrEmpty(accessToken) &&
Microsoft.AspNetCore.Http.Extensions (10)
RequestDelegateFactory.cs (4)
760if (!string.IsNullOrEmpty(formAttribute.Name)) 774if (!string.IsNullOrEmpty(formAttribute.Name)) 795: BindComplexParameterFromFormItem(parameter, string.IsNullOrEmpty(formAttribute.Name) ? parameter.Name : formAttribute.Name, factoryContext); 2100var key = formAttribute == null || string.IsNullOrEmpty(formAttribute.Name) ? parameter.Name! : formAttribute.Name;
SendFileResponseExtensions.cs (1)
87if (string.IsNullOrEmpty(file.PhysicalPath))
src\Components\Endpoints\src\FormMapping\Converters\NullableConverter.cs (1)
17if (string.IsNullOrEmpty(value) && IsSupportedUnderlyingType(typeof(T)))
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
198if (!string.IsNullOrEmpty(reasonPhrase))
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
UriHelper.cs (2)
76if (string.IsNullOrEmpty(pathText)) 78if (string.IsNullOrEmpty(pathBaseText))
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsDefaultWriterTest.cs (1)
684if (!string.IsNullOrEmpty(contentType))
Microsoft.AspNetCore.Http.Results (15)
Accepted.cs (1)
67if (!string.IsNullOrEmpty(Location))
AcceptedAtRoute.cs (1)
88if (string.IsNullOrEmpty(url))
AcceptedAtRouteOfT.cs (1)
102if (string.IsNullOrEmpty(url))
AcceptedOfT.cs (1)
79if (!string.IsNullOrEmpty(Location))
Created.cs (1)
67if (!string.IsNullOrEmpty(Location))
CreatedAtRoute.cs (1)
88if (string.IsNullOrEmpty(url))
CreatedAtRouteOfT.cs (1)
102if (string.IsNullOrEmpty(url))
CreatedOfT.cs (1)
78if (!string.IsNullOrEmpty(Location))
PhysicalFileHttpResult.cs (1)
170if (fileInfo.Exists && !string.IsNullOrEmpty(fileInfo.LinkTarget))
RedirectToRouteHttpResult.cs (1)
169if (string.IsNullOrEmpty(destinationUrl))
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
198if (!string.IsNullOrEmpty(reasonPhrase))
src\Shared\ResponseContentTypeHelper.cs (1)
46if (!string.IsNullOrEmpty(httpResponseContentType))
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
345if (!string.IsNullOrEmpty(result.FileDownloadName))
src\Shared\ResultsHelpers\SharedUrlHelper.cs (2)
16if (string.IsNullOrEmpty(contentPath)) 35if (string.IsNullOrEmpty(url))
Microsoft.AspNetCore.Http.Tests (3)
DefaultHttpContextTests.cs (2)
87Assert.True(string.IsNullOrEmpty(context.User.Identity.AuthenticationType)); 94Assert.True(string.IsNullOrEmpty(context.User.Identity.AuthenticationType));
HeaderDictionaryTests.cs (1)
50var expectedResult = segments.Where(s => !string.IsNullOrEmpty(s));
Microsoft.AspNetCore.HttpLogging (5)
FileLoggerProcessor.cs (2)
51if (string.IsNullOrEmpty(_path)) 87if (!string.IsNullOrEmpty(loggerOptions.LogDirectory))
MediaTypeHelpers.cs (1)
25if (mediaTypeList == null || mediaTypeList.Count == 0 || string.IsNullOrEmpty(contentType))
W3CLogger.cs (2)
53if (string.IsNullOrEmpty(elements[i])) 75if (string.IsNullOrEmpty(additionalHeaders[i]))
Microsoft.AspNetCore.HttpOverrides (7)
CertificateForwardingServiceExtensions.cs (1)
26services.AddOptions<CertificateForwardingOptions>().Validate(o => !string.IsNullOrEmpty(o.CertificateHeader), "CertificateForwarderOptions.CertificateHeader cannot be null or empty.");
ForwardedHeadersMiddleware.cs (4)
243else if (!string.IsNullOrEmpty(set.IpAndPortText)) 261if (!string.IsNullOrEmpty(set.Scheme) && set.Scheme.AsSpan().IndexOfAnyExcept(SchemeChars) < 0) 275if (!string.IsNullOrEmpty(set.Host) && TryValidateHost(set.Host) 290if (!string.IsNullOrEmpty(set.Prefix) && set.Prefix[0] == '/')
HttpMethodOverrideMiddleware.cs (2)
50if (!string.IsNullOrEmpty(xHttpMethodOverrideValue)) 63if (!string.IsNullOrEmpty(methodType))
Microsoft.AspNetCore.Identity (13)
DefaultPasskeyHandler.cs (1)
87if (string.IsNullOrEmpty(originInfo.Origin))
IdentityApiEndpointRouteBuilderExtensions.cs (11)
71if (string.IsNullOrEmpty(email) || !_emailAddressAttribute.IsValid(email)) 103if (!string.IsNullOrEmpty(login.TwoFactorCode)) 107else if (!string.IsNullOrEmpty(login.TwoFactorRecoveryCode)) 163if (string.IsNullOrEmpty(changedEmail)) 278if (string.IsNullOrEmpty(tfaRequest.TwoFactorCode)) 315if (string.IsNullOrEmpty(key)) 320if (string.IsNullOrEmpty(key)) 357if (!string.IsNullOrEmpty(infoRequest.NewEmail) && !_emailAddressAttribute.IsValid(infoRequest.NewEmail)) 362if (!string.IsNullOrEmpty(infoRequest.NewPassword)) 364if (string.IsNullOrEmpty(infoRequest.OldPassword)) 377if (!string.IsNullOrEmpty(infoRequest.NewEmail))
SignInManager.cs (1)
1240return schemes.Where(s => !string.IsNullOrEmpty(s.DisplayName));
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
431if (!string.IsNullOrEmpty(cookieHeader)) 448if (!string.IsNullOrEmpty(transaction.SetCookie))
Microsoft.AspNetCore.Identity.UI (6)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
105if (!string.IsNullOrEmpty(ErrorMessage))
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
165if (string.IsNullOrEmpty(unformattedKey))
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
29public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
105if (!string.IsNullOrEmpty(ErrorMessage))
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
165if (string.IsNullOrEmpty(unformattedKey))
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
29public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
Microsoft.AspNetCore.InternalTesting (10)
AssemblyTestLog.cs (4)
43return string.IsNullOrEmpty(maxPathString) ? defaultMaxPath : int.Parse(maxPathString, CultureInfo.InvariantCulture); 118if (!string.IsNullOrEmpty(_baseDirectory)) 188if (!string.IsNullOrEmpty(baseDirectory)) 241if (!string.IsNullOrEmpty(assemblyBaseDirectory) &&
HelixHelper.cs (2)
11public static bool OnHelix() => !string.IsNullOrEmpty(GetTargetHelixQueue()); 19var uploadPath = string.IsNullOrEmpty(uploadRoot)
src\Shared\TaskExtensions.cs (1)
144=> string.IsNullOrEmpty(filePath)
TestFileOutputContext.cs (2)
41if (!string.IsNullOrEmpty(AssemblyOutputDirectory)) 86if (string.IsNullOrEmpty(baseDirectory))
xunit\SkipOnCIAttribute.cs (1)
40public static bool OnAzdo() => !string.IsNullOrEmpty(GetIfOnAzdo());
Microsoft.AspNetCore.InternalTesting.Tests (4)
QuarantinedTestAttributeTest.cs (2)
16if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX")) || !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AGENT_OS")))
SkipOnCITests.cs (2)
16if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX")) || !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AGENT_OS")))
Microsoft.AspNetCore.JsonPatch (1)
Internal\JObjectAdapter.cs (1)
102if (currentValue == null || string.IsNullOrEmpty(currentValue.ToString()))
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Internal\JsonObjectAdapter.cs (1)
104if (currentValue == null || string.IsNullOrEmpty(currentValue.ToString()))
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (29)
Internal\DictionaryAdapterTest.cs (12)
29Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 49Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 68Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 96Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 123Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 132Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 151Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 171Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 250Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 270Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 289Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 314Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
Internal\ListAdapterTest.cs (8)
135Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 153Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 173Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 241Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 296Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 407Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 443Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 462Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
Internal\ObjectVisitorTest.cs (4)
55Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 89Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 133Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 187Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
Internal\PocoAdapterTest.cs (5)
29Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 69Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 110Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 150Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 239Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message");
Microsoft.AspNetCore.JsonPatch.Tests (31)
Internal\DictionaryAdapterTest.cs (12)
32Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 52Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 71Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 99Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 126Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 135Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 154Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 174Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 252Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 272Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 291Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 316Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
Internal\DynamicObjectAdapterTest.cs (1)
273Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message");
Internal\ListAdapterTest.cs (8)
135Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 153Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 173Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 241Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 296Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 407Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 443Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 460Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
Internal\ObjectVisitorTest.cs (5)
55Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 88Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 118Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 150Assert.True(string.IsNullOrEmpty(message), "Expected no error message"); 204Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
Internal\PocoAdapterTest.cs (5)
35Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 75Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 116Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 156Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message"); 240Assert.True(string.IsNullOrEmpty(errorMessage), "Expected no error message");
Microsoft.AspNetCore.Localization (1)
CookieRequestCultureProvider.cs (1)
35if (string.IsNullOrEmpty(cookie))
Microsoft.AspNetCore.Localization.Routing (2)
RouteDataRequestCultureProvider.cs (2)
35if (!string.IsNullOrEmpty(RouteDataStringKey)) 40if (!string.IsNullOrEmpty(UIRouteDataStringKey))
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisMiddleware.cs (1)
33if (string.IsNullOrEmpty(middlewareName))
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelStateDictionary.cs (2)
213&& !string.IsNullOrEmpty(exception.Message)) 306&& !string.IsNullOrEmpty(exception.Message))
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
694var propertyName = !string.IsNullOrEmpty(metadata.BinderModelName) ? metadata.BinderModelName : metadata.PropertyName;
Microsoft.AspNetCore.Mvc.Core (76)
AcceptedAtActionResult.cs (1)
85if (string.IsNullOrEmpty(url))
AcceptedAtRouteResult.cs (1)
81if (string.IsNullOrEmpty(url))
AcceptedResult.cs (1)
75if (!string.IsNullOrEmpty(Location))
ActionConstraints\HttpMethodActionConstraint.cs (1)
39if (string.IsNullOrEmpty(method))
ApplicationModels\AttributeRouteModel.cs (1)
164if (right.Name == null && string.IsNullOrEmpty(right.Template))
ApplicationParts\RelatedAssemblyAttribute.cs (2)
70var assemblyDirectory = string.IsNullOrEmpty(assembly.Location) ? 74if (string.IsNullOrEmpty(assemblyDirectory))
ConsumesAttribute.cs (2)
121if (!string.IsNullOrEmpty(requestContentType) && !IsSubsetOfAnyContentType(requestContentType)) 166if (string.IsNullOrEmpty(requestContentType))
CreatedAtActionResult.cs (1)
85if (string.IsNullOrEmpty(url))
CreatedAtRouteResult.cs (1)
81if (string.IsNullOrEmpty(url))
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
80if (string.IsNullOrEmpty(entryAssemblyName))
Filters\ResponseCacheFilterExecutor.cs (1)
76if (!string.IsNullOrEmpty(VaryByHeader))
Formatters\AcceptHeaderParser.cs (2)
28while (!string.IsNullOrEmpty(value) && charIndex < value.Length) 59if (string.IsNullOrEmpty(value) || (index == value.Length))
Formatters\FormatFilter.cs (3)
43return string.IsNullOrEmpty(routeValue) ? null : routeValue; 151!string.IsNullOrEmpty(context.HttpContext.Response.ContentType)) 159if (!string.IsNullOrEmpty(contentType))
Formatters\FormatterMappings.cs (1)
55if (string.IsNullOrEmpty(format))
Formatters\InputFormatter.cs (1)
56if (string.IsNullOrEmpty(contentType))
Formatters\StringOutputFormatter.cs (1)
49if (string.IsNullOrEmpty(valueAsString))
Formatters\TextInputFormatter.cs (1)
85var requestMediaType = string.IsNullOrEmpty(requestContentType) ? default : new MediaType(requestContentType);
Infrastructure\ObjectResultExecutor.cs (1)
129if (result.ContentTypes.Count == 0 && !string.IsNullOrEmpty(responseContentType))
Infrastructure\PhysicalFileResultExecutor.cs (1)
129if (fileInfo.Exists && !string.IsNullOrEmpty(fileInfo.LinkTarget))
Infrastructure\RedirectToActionResultExecutor.cs (1)
48if (string.IsNullOrEmpty(destinationUrl))
Infrastructure\RedirectToPageResultExecutor.cs (1)
48if (string.IsNullOrEmpty(destinationUrl))
Infrastructure\RedirectToRouteResultExecutor.cs (1)
44if (string.IsNullOrEmpty(destinationUrl))
Infrastructure\StringArrayComparer.cs (2)
43if (string.IsNullOrEmpty(x[i]) && string.IsNullOrEmpty(y[i]))
ModelBinding\Binders\ByteArrayModelBinder.cs (1)
48if (string.IsNullOrEmpty(value))
ModelBinding\Binders\CollectionModelBinder.cs (2)
382var name = string.IsNullOrEmpty(bindingContext.ModelName) ? 383(string.IsNullOrEmpty(bindingContext.OriginalModelName) &&
ModelBinding\Binders\FormFileModelBinder.cs (1)
148if (file.Length == 0 && string.IsNullOrEmpty(file.FileName))
ModelBinding\FormFileValueProvider.cs (1)
51if (file.Length == 0 && string.IsNullOrEmpty(file.FileName))
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
42if (string.IsNullOrEmpty(key))
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (2)
45if (!string.IsNullOrEmpty(propertyName)) 58if (string.IsNullOrEmpty(propertyName))
ModelBinding\ModelBindingHelper.cs (1)
391if (string.IsNullOrEmpty(modelKey))
ModelBinding\ModelNames.cs (2)
45if (string.IsNullOrEmpty(prefix)) 50if (string.IsNullOrEmpty(propertyName))
ModelBinding\ParameterBinder.cs (1)
213if (string.IsNullOrEmpty(modelBindingContext.ModelName) &&
Routing\KnownRouteValueConstraint.cs (1)
104!string.IsNullOrEmpty(value))
Routing\MvcAttributeRouteHandler.cs (1)
63if (!string.IsNullOrEmpty(kvp.Value))
Routing\NormalizedRouteValue.cs (1)
36!string.IsNullOrEmpty(value))
Routing\UrlHelperBase.cs (17)
133if (string.IsNullOrEmpty(protocol) && string.IsNullOrEmpty(host)) 144protocol = string.IsNullOrEmpty(protocol) ? "http" : protocol; 149host = string.IsNullOrEmpty(host) ? ActionContext.HttpContext.Request.Host.Value : host; 194if (string.IsNullOrEmpty(protocol) && string.IsNullOrEmpty(host)) 206protocol = string.IsNullOrEmpty(protocol) ? "http" : protocol; 211host = string.IsNullOrEmpty(host) ? ActionContext.HttpContext.Request.Host.Value : host; 267if (string.IsNullOrEmpty(page)) 280if (string.IsNullOrEmpty(handler)) 298if (string.IsNullOrEmpty(contentPath)) 317if (string.IsNullOrEmpty(url)) 396if (string.IsNullOrEmpty(currentPagePath)) 457if (!string.IsNullOrEmpty(fragment)) 473if (string.IsNullOrEmpty(protocol) 474&& string.IsNullOrEmpty(host) 475&& string.IsNullOrEmpty(fragment)
Routing\ViewEnginePath.cs (2)
18Debug.Assert(!string.IsNullOrEmpty(first)); 48Debug.Assert(!string.IsNullOrEmpty(path));
SerializableError.cs (1)
46return string.IsNullOrEmpty(error.ErrorMessage) ?
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (6)
104if (string.IsNullOrEmpty(chunk)) 153if (string.IsNullOrEmpty(value)) 246if (string.IsNullOrEmpty(requestCookies[subkey])) 256var domainHasValue = !string.IsNullOrEmpty(options.Domain); 257var pathHasValue = !string.IsNullOrEmpty(options.Path); 322if (string.IsNullOrEmpty(requestCookies[subkey]))
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
198if (!string.IsNullOrEmpty(reasonPhrase))
src\Shared\ResponseContentTypeHelper.cs (1)
46if (!string.IsNullOrEmpty(httpResponseContentType))
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
345if (!string.IsNullOrEmpty(result.FileDownloadName))
src\Shared\ResultsHelpers\SharedUrlHelper.cs (2)
16if (string.IsNullOrEmpty(contentPath)) 35if (string.IsNullOrEmpty(url))
ValidationProblemDetails.cs (1)
67return string.IsNullOrEmpty(error.ErrorMessage) ?
Microsoft.AspNetCore.Mvc.Core.Test (8)
Routing\ActionEndpointFactoryTest.cs (1)
468if (!string.IsNullOrEmpty(pattern))
Routing\ControllerActionEndpointDataSourceTest.cs (1)
572if (!string.IsNullOrEmpty(pattern))
Routing\UrlHelperBaseTest.cs (2)
120appRoot = string.IsNullOrEmpty(appRoot) ? string.Empty : appRoot; 121host = string.IsNullOrEmpty(host) ? "localhost" : host;
Routing\UrlHelperTestBase.cs (4)
1125appRoot = string.IsNullOrEmpty(appRoot) ? string.Empty : appRoot; 1126host = string.IsNullOrEmpty(host) ? "localhost" : host; 1147appRoot = string.IsNullOrEmpty(appRoot) ? string.Empty : appRoot; 1148host = string.IsNullOrEmpty(host) ? "localhost" : host;
Microsoft.AspNetCore.Mvc.DataAnnotations (12)
CompareAttributeAdapter.cs (2)
59if (!string.IsNullOrEmpty(attribute.ErrorMessage) || 60!string.IsNullOrEmpty(attribute.ErrorMessageResourceName) ||
DataAnnotationsMetadataProvider.cs (6)
107!string.IsNullOrEmpty(displayAttribute.Description) && 129!string.IsNullOrEmpty(displayAttribute.Name) && 142!string.IsNullOrEmpty(displayNameAttribute.DisplayName)) 206if (!string.IsNullOrEmpty(displayFormatAttribute?.DataFormatString) && 257!string.IsNullOrEmpty(displayAttribute.Prompt) && 398if (stringLocalizer != null && !string.IsNullOrEmpty(name) && display.ResourceType == null)
DataAnnotationsModelValidator.cs (2)
88!string.IsNullOrEmpty(Attribute.ErrorMessage) && 89string.IsNullOrEmpty(Attribute.ErrorMessageResourceName) &&
ValidationAttributeAdapterOfTAttribute.cs (2)
70!string.IsNullOrEmpty(Attribute.ErrorMessage) && 71string.IsNullOrEmpty(Attribute.ErrorMessageResourceName) &&
Microsoft.AspNetCore.Mvc.Formatters.Xml (10)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (1)
50if (string.IsNullOrEmpty(mapping))
DependencyInjection\XmlSerializerMvcOptionsSetup.cs (1)
38if (string.IsNullOrEmpty(mapping))
ProblemDetailsWrapper.cs (6)
90ProblemDetails.Status = string.IsNullOrEmpty(value) ? 117if (!string.IsNullOrEmpty(ProblemDetails.Detail)) 124if (!string.IsNullOrEmpty(ProblemDetails.Instance)) 138if (!string.IsNullOrEmpty(ProblemDetails.Title)) 145if (!string.IsNullOrEmpty(ProblemDetails.Type)) 157if (string.IsNullOrEmpty(key))
SerializableErrorWrapper.cs (1)
91if (string.IsNullOrEmpty(key))
ValidationProblemDetailsWrapper.cs (1)
93if (string.IsNullOrEmpty(key))
Microsoft.AspNetCore.Mvc.IntegrationTests (9)
BindingSourceMetadataProviderIntegrationTest.cs (2)
130if (string.IsNullOrEmpty(data) || string.IsNullOrEmpty(name))
BodyValidationIntegrationTests.cs (1)
906if (!string.IsNullOrEmpty(errorMessage))
CompanyNameAttribute.cs (1)
13if (string.IsNullOrEmpty(valueString))
FormFileModelBindingIntegrationTest.cs (2)
1264if (string.IsNullOrEmpty(data) || string.IsNullOrEmpty(name))
ProductValidatorAttribute.cs (2)
15if (!product.Country.Equals("USA") || string.IsNullOrEmpty(product.Name)) 27if (!software.Country.Equals("USA") || string.IsNullOrEmpty(software.Name))
TryValidateModelIntegrationTest.cs (1)
237if (!string.IsNullOrEmpty(errorMessage))
Microsoft.AspNetCore.Mvc.Localization (3)
ViewLocalizer.cs (3)
33if (string.IsNullOrEmpty(hostingEnvironment.ApplicationName)) 85if (string.IsNullOrEmpty(path)) 90Debug.Assert(!string.IsNullOrEmpty(path), "Couldn't determine a path for the view");
Microsoft.AspNetCore.Mvc.NewtonsoftJson (5)
JsonPatchExtensions.cs (1)
52var key = string.IsNullOrEmpty(prefix) ? affectedObjectName : prefix + "." + affectedObjectName;
NewtonsoftJsonInputFormatter.cs (1)
269var addMember = !string.IsNullOrEmpty(member) && eventArgs.ErrorContext.Error is JsonSerializationException;
NewtonsoftJsonValidationMetadataProvider.cs (2)
44if (!string.IsNullOrEmpty(propertyName)) 57if (string.IsNullOrEmpty(propertyName))
src\Shared\ResponseContentTypeHelper.cs (1)
46if (!string.IsNullOrEmpty(httpResponseContentType))
Microsoft.AspNetCore.Mvc.Razor (19)
LanguageViewLocationExpander.cs (1)
61if (!string.IsNullOrEmpty(value))
RazorPageBase.cs (7)
440if (!string.IsNullOrEmpty(value)) 469if (!string.IsNullOrEmpty(value)) 546if (!string.IsNullOrEmpty(prefix)) 644if (!string.IsNullOrEmpty(prefix)) 694if (!IsLayoutBeingRendered && !string.IsNullOrEmpty(Layout)) 761return string.IsNullOrEmpty(prefix) && 769return string.IsNullOrEmpty(prefix) &&
RazorView.cs (1)
206while (!string.IsNullOrEmpty(previousPage.Layout))
RazorViewEngine.cs (10)
278if (string.IsNullOrEmpty(pagePath)) 296if (string.IsNullOrEmpty(executingFilePath)) 311if (!string.IsNullOrEmpty(context.AreaName) && 312!string.IsNullOrEmpty(context.ControllerName)) 316else if (!string.IsNullOrEmpty(context.ControllerName)) 320else if (!string.IsNullOrEmpty(context.AreaName) && 321!string.IsNullOrEmpty(context.PageName)) 325else if (!string.IsNullOrEmpty(context.PageName)) 482Debug.Assert(!string.IsNullOrEmpty(name)); 488Debug.Assert(!string.IsNullOrEmpty(name));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (8)
CompilationFailedExceptionFactory.cs (1)
98if (string.IsNullOrEmpty(filePath) || string.Equals(codeDocument.Source.FilePath, filePath, StringComparison.Ordinal))
CSharpCompiler.cs (3)
91if (!string.IsNullOrEmpty(_hostingEnvironment.ApplicationName)) 127if (string.IsNullOrEmpty(dependencyContextOptions.DebugType)) 218if (string.IsNullOrEmpty(dependencyContextOptions.LanguageVersion))
FileProviderRazorProjectItem.cs (1)
78!string.IsNullOrEmpty(PhysicalPath) &&
PageActionDescriptorChangeProvider.cs (1)
32Debug.Assert(!string.IsNullOrEmpty(rootDirectory));
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (2)
140Debug.Assert(!string.IsNullOrEmpty(areaName)); 141Debug.Assert(!string.IsNullOrEmpty(viewEnginePath));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
TestInfrastructure\DirectoryNode.cs (1)
113Debug.Assert(!string.IsNullOrEmpty(path));
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageTest.cs (1)
1424if (!string.IsNullOrEmpty(viewPath))
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\PageRouteModelFactory.cs (2)
140Debug.Assert(!string.IsNullOrEmpty(areaName)); 141Debug.Assert(!string.IsNullOrEmpty(viewEnginePath));
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (1)
26Debug.Assert(!string.IsNullOrEmpty(rootDirectory));
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
150if (!string.IsNullOrEmpty(handlerName))
Infrastructure\PageViewLocationExpander.cs (1)
16if ((context.ActionContext.ActionDescriptor is PageActionDescriptor) && !string.IsNullOrEmpty(context.PageName))
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
280if (!string.IsNullOrEmpty(pattern))
Microsoft.AspNetCore.Mvc.TagHelpers (36)
AttributeMatcher.cs (1)
68if (attribute.Value is string valueAsString && string.IsNullOrEmpty(valueAsString))
Cache\CacheTagKey.cs (2)
130if (!string.IsNullOrEmpty(_varyBy)) 270if (string.IsNullOrEmpty(keys))
EnvironmentTagHelper.cs (1)
82if (string.IsNullOrEmpty(currentEnvironmentName))
FileProviderGlobbingDirectory.cs (1)
34else if (!string.IsNullOrEmpty(parent?.RelativePath))
FormTagHelper.cs (1)
199if (string.IsNullOrEmpty(attributeValue))
GlobbingUrlBuilder.cs (3)
101if (string.IsNullOrEmpty(include)) 185if (string.IsNullOrEmpty(x) || string.IsNullOrEmpty(y))
InputTagHelper.cs (9)
193if (string.IsNullOrEmpty(InputTypeName)) 212if (string.IsNullOrEmpty(For.Name) && 213string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) && 214!string.IsNullOrEmpty(Name)) 337!string.IsNullOrEmpty(Name)) 402if (string.IsNullOrEmpty(format)) 482string.IsNullOrEmpty(modelExplorer.Metadata.EditFormatString)) 526if (!string.IsNullOrEmpty(modelExplorer.Metadata.TemplateHint)) 531if (!string.IsNullOrEmpty(modelExplorer.Metadata.DataTypeName))
LinkTagHelper.cs (2)
292if (mode == Mode.GlobbedHref || mode == Mode.Fallback && !string.IsNullOrEmpty(HrefInclude)) 295if (string.IsNullOrEmpty(Href))
PartialTagHelper.cs (2)
115if (!result.Success && !string.IsNullOrEmpty(FallbackName)) 131if (!string.IsNullOrEmpty(FallbackName))
ScriptTagHelper.cs (2)
305if (mode == Mode.GlobbedSrc || mode == Mode.Fallback && !string.IsNullOrEmpty(SrcInclude)) 308if (string.IsNullOrEmpty(Src))
SelectTagHelper.cs (3)
135if (string.IsNullOrEmpty(For.Name) && 136string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) && 137!string.IsNullOrEmpty(Name))
TagHelperOutputExtensions.cs (4)
144if (string.IsNullOrEmpty(classValue)) 217if (string.IsNullOrEmpty(currentClassValue)) 370if (!string.IsNullOrEmpty(stringValue)) 378if (!string.IsNullOrEmpty(_right))
TextAreaTagHelper.cs (3)
73if (string.IsNullOrEmpty(For.Name) && 74string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) && 75!string.IsNullOrEmpty(Name))
ValidationMessageTagHelper.cs (2)
63if (string.IsNullOrEmpty(For.Name) && 64string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) &&
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
InputTagHelperTest.cs (7)
959Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement))); 1079Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement))); 1238if (!string.IsNullOrEmpty(inputTypeName)) 1382Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement))); 1404if (!string.IsNullOrEmpty(inputTypeName)) 1503if (!string.IsNullOrEmpty(inputTypeName)) 1616if (!string.IsNullOrEmpty(inputTypeName))
LabelTagHelperTest.cs (1)
206if (!string.IsNullOrEmpty(tagHelperOutputContent.OriginalContent))
Microsoft.AspNetCore.Mvc.Testing (1)
Handlers\CookieContainerHandler.cs (1)
45if (!string.IsNullOrEmpty(cookieHeader))
Microsoft.AspNetCore.Mvc.ViewFeatures (64)
Buffers\ViewBufferTextWriter.cs (1)
94if (string.IsNullOrEmpty(value))
CookieTempDataProvider.cs (3)
71if (!string.IsNullOrEmpty(encodedValue)) 125if (!string.IsNullOrEmpty(_options.Cookie.Path)) 132if (!string.IsNullOrEmpty(pathBase))
DefaultDisplayTemplates.cs (1)
236if (!string.IsNullOrEmpty(label))
DefaultEditorTemplates.cs (1)
480HasContent |= !string.IsNullOrEmpty(value);
DefaultHtmlGenerator.cs (19)
104return !string.IsNullOrEmpty(value) ? _htmlEncoder.Encode(value) : string.Empty; 246if (!string.IsNullOrEmpty(fullName)) 266if (string.IsNullOrEmpty(method)) 571if (!string.IsNullOrEmpty(fullName)) 660if (!string.IsNullOrEmpty(fullName)) 746modelError = modelErrors.FirstOrDefault(m => !string.IsNullOrEmpty(m.ErrorMessage)) ?? modelErrors[0]; 756if (string.IsNullOrEmpty(tag)) 771if (!string.IsNullOrEmpty(message)) 787if (!string.IsNullOrEmpty(fullName)) 792var replaceValidationMessageContents = string.IsNullOrEmpty(message); 826if (string.IsNullOrEmpty(message)) 832if (string.IsNullOrEmpty(headerTag)) 855if (!string.IsNullOrEmpty(errorText)) 995else if (!string.IsNullOrEmpty(stringValue)) 1101if (string.IsNullOrEmpty(method)) 1168if (!string.IsNullOrEmpty(fullName)) 1314if (!string.IsNullOrEmpty(placeholder)) 1526if (string.IsNullOrEmpty(fullName)) 1538if (string.IsNullOrEmpty(attributeString))
ExpressionMetadataProvider.cs (1)
158string.IsNullOrEmpty(expression))
Filters\SaveTempDataPropertyFilterBase.cs (1)
103if (string.IsNullOrEmpty(key))
Filters\ViewDataAttributePropertyProvider.cs (1)
30if (string.IsNullOrEmpty(key))
HtmlHelper.cs (2)
1070string.IsNullOrEmpty(forAttribute)) 1391if (!string.IsNullOrEmpty(keyValuePair.Key.Group))
ModelStateDictionaryExtensions.cs (1)
122if (string.IsNullOrEmpty(modelKey))
NameAndIdProvider.cs (5)
37if (string.IsNullOrEmpty(fullName)) 101if (string.IsNullOrEmpty(fullName)) 112if (!string.IsNullOrEmpty(sanitizedId)) 131if (string.IsNullOrEmpty(expression)) 136if (string.IsNullOrEmpty(htmlFieldPrefix))
PartialViewResultExecutor.cs (1)
176!string.IsNullOrEmpty(value))
RemoteAttributeBase.cs (4)
86if (!string.IsNullOrEmpty(delimitedAdditionalFields)) 153if (!string.IsNullOrEmpty(HttpMethod)) 196!string.IsNullOrEmpty(ErrorMessage) && 197string.IsNullOrEmpty(ErrorMessageResourceName) &&
Rendering\MultiSelectList.cs (3)
143return (!string.IsNullOrEmpty(DataValueField)) ? 205if (!string.IsNullOrEmpty(expression)) 222if (string.IsNullOrEmpty(groupName))
Rendering\TagBuilder.cs (4)
157if (string.IsNullOrEmpty(name)) 216if (string.IsNullOrEmpty(name)) 227if (!string.IsNullOrEmpty(sanitizedId)) 243string.IsNullOrEmpty(attribute.Value))
TemplateBuilder.cs (1)
92else if (!string.IsNullOrEmpty(formatString))
TemplateInfo.cs (2)
90if (string.IsNullOrEmpty(partialFieldName)) 95if (string.IsNullOrEmpty(HtmlFieldPrefix))
TemplateRenderer.cs (1)
155foreach (var templateHint in templateHints.Where(s => !string.IsNullOrEmpty(s)))
ValidationHelpers.cs (2)
15if (!string.IsNullOrEmpty(modelError.ErrorMessage)) 33if (!string.IsNullOrEmpty(modelError.ErrorMessage))
ViewComponents\ViewComponentConventions.cs (3)
28if (attribute != null && !string.IsNullOrEmpty(attribute.Name)) 55if (!string.IsNullOrEmpty(attribute?.Name)) 63if (string.IsNullOrEmpty(componentType.Namespace))
ViewComponents\ViewViewComponentResult.cs (1)
74var isNullOrEmptyViewName = string.IsNullOrEmpty(ViewName);
ViewDataDictionary.cs (1)
405if (string.IsNullOrEmpty(format))
ViewDataEvaluator.cs (4)
50if (string.IsNullOrEmpty(expression)) 126while (!string.IsNullOrEmpty(leftExpression)); 140if (string.IsNullOrEmpty(expression)) 193if (string.IsNullOrEmpty(propertyName) || container is ViewDataDictionary)
ViewResultExecutor.cs (1)
176!string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
RemoteAttributeTest.cs (1)
403if (!string.IsNullOrEmpty(currentArea))
Rendering\DefaultTemplatesUtilities.cs (1)
232if (!string.IsNullOrEmpty(idAttributeDotReplacement))
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
109if (string.IsNullOrEmpty(filePath))
Microsoft.AspNetCore.OpenApi (3)
Extensions\ApiDescriptionExtensions.cs (1)
46if (string.IsNullOrEmpty(apiDescription.RelativePath))
Services\Schemas\OpenApiSchemaService.cs (1)
238if (!string.IsNullOrEmpty(targetReferenceId))
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.AspNetCore.OpenApi.Build.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
Microsoft.AspNetCore.OpenApi.SourceGenerators (12)
XmlCommentGenerator.Emitter.cs (1)
616var exampleLiteral = string.IsNullOrEmpty(parameter.Example)
XmlComments\XmlComment.cs (6)
162if (string.IsNullOrEmpty(xmlText) || 169return !string.IsNullOrEmpty(resolvedComment) ? new XmlComment(compilation, resolvedComment!) : null; 180if (node == null || string.IsNullOrEmpty(elementName)) 191if (string.IsNullOrEmpty(cref)) 212if (node == null || string.IsNullOrEmpty(elementName)) 223if (string.IsNullOrEmpty(langword))
XmlComments\XmlComment.InheritDoc.cs (3)
29if (string.IsNullOrEmpty(xmlText)) 199if (string.IsNullOrEmpty(pathAttribute?.Value)) 371=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
XmlComments\XmlParameterComment.cs (1)
28if (!string.IsNullOrEmpty(name))
XmlComments\XmlResponseComment.cs (1)
29if (!string.IsNullOrEmpty(code))
Microsoft.AspNetCore.OutputCaching (8)
CacheEntryHelpers.cs (1)
44if (!string.IsNullOrEmpty(stringValue))
OutputCacheEntryFormatter.cs (1)
191if (string.IsNullOrEmpty(value))
OutputCacheKeyProvider.cs (2)
71return !string.IsNullOrEmpty(value) && value.AsSpan().IndexOfAny(KeyDelimiter, KeySubDelimiter) >= 0; 78if (!string.IsNullOrEmpty(cacheKeyPrefix))
OutputCacheMiddleware.cs (3)
335if (string.IsNullOrEmpty(cacheContext.CacheKey)) 377if (!string.IsNullOrEmpty(context.CacheKey)) 434if (string.IsNullOrEmpty(context.CacheKey))
StringBuilderExtensions.cs (1)
12if (!string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Owin (3)
DictionaryStringValuesWrapper.cs (1)
56!string.IsNullOrEmpty(rawValue[0]) &&
Utilities.cs (2)
14if (!string.IsNullOrEmpty(queryString)) 26if (!string.IsNullOrEmpty(queryString))
Microsoft.AspNetCore.ResponseCaching (5)
CacheEntry\CacheEntryHelpers.cs (2)
53if (!string.IsNullOrEmpty(cachedVaryByRules.VaryByKeyPrefix)) 77if (!string.IsNullOrEmpty(stringValue))
ResponseCachingFeature.cs (1)
24if (string.IsNullOrEmpty(value[i]))
ResponseCachingMiddleware.cs (1)
264if (string.IsNullOrEmpty(context.BaseKey))
StringBuilderExtensions.cs (1)
12if (!string.IsNullOrEmpty(value))
Microsoft.AspNetCore.ResponseCaching.Tests (4)
TestUtils.cs (4)
37if (!string.IsNullOrEmpty(expires)) 47MaxAge = string.IsNullOrEmpty(expires) ? TimeSpan.FromSeconds(10) : (TimeSpan?)null 53headers.CacheControl.MaxAge = string.IsNullOrEmpty(expires) ? TimeSpan.FromSeconds(10) : (TimeSpan?)null; 59if (!string.IsNullOrEmpty(contentLength))
Microsoft.AspNetCore.ResponseCompression (2)
ResponseCompressionProvider.cs (2)
190if (string.IsNullOrEmpty(mimeType)) 221if (string.IsNullOrEmpty(context.Request.Headers.AcceptEncoding))
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionMiddlewareTest.cs (1)
195var expected = string.IsNullOrEmpty(contentType) ? "(null)" : contentType;
Microsoft.AspNetCore.Rewrite (19)
ApacheModRewrite\CookieActionFactory.cs (2)
72action!.Domain = string.IsNullOrEmpty(value) || value == ";" 77if (string.IsNullOrEmpty(value))
ApacheModRewrite\FileParser.cs (1)
18if (string.IsNullOrEmpty(line))
ApacheModRewrite\RuleBuilder.cs (1)
206if (string.IsNullOrEmpty(statusCode))
ApacheModRewrite\RuleRegexParser.cs (1)
10if (string.IsNullOrEmpty(regex))
ApacheModRewrite\Tokenizer.cs (3)
27if (string.IsNullOrEmpty(rule)) 67if (!string.IsNullOrEmpty(token)) 91if (!string.IsNullOrEmpty(done))
IISUrlRewrite\UrlRewriteFileParser.cs (4)
150if (string.IsNullOrEmpty(parsedPatternString)) 175if (string.IsNullOrEmpty(parsedPatternString)) 203if (string.IsNullOrEmpty(url)) 237if (!string.IsNullOrEmpty(urlAction.Attribute(RewriteTags.SubStatusCode)?.Value))
PatternSegments\QueryStringSegment.cs (1)
12if (!string.IsNullOrEmpty(queryString))
RedirectRule.cs (1)
53if (string.IsNullOrEmpty(newPath))
RewriteRule.cs (1)
50if (string.IsNullOrEmpty(result))
UrlActions\CustomResponseAction.cs (2)
27if (!string.IsNullOrEmpty(StatusReason)) 32if (!string.IsNullOrEmpty(StatusDescription))
UrlActions\RedirectAction.cs (1)
40if (string.IsNullOrEmpty(pattern))
UrlActions\RewriteAction.cs (1)
50if (string.IsNullOrEmpty(pattern))
Microsoft.AspNetCore.Rewrite.Tests (2)
MiddlewareTests.cs (2)
167if (!string.IsNullOrEmpty(baseAddress)) 322if (!string.IsNullOrEmpty(baseAddress))
Microsoft.AspNetCore.Routing (24)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (5)
77if (responseType is Type && string.IsNullOrEmpty(contentType)) 104if (string.IsNullOrEmpty(contentType)) 125if (string.IsNullOrEmpty(contentType)) 146if (string.IsNullOrEmpty(contentType)) 170if (string.IsNullOrEmpty(contentType))
Constraints\RequiredRouteConstraint.cs (1)
33return !string.IsNullOrEmpty(valueString);
EndpointDataSource.cs (1)
103template = string.IsNullOrEmpty(template) ? "\"\"" : template;
Matching\AcceptsMatcherPolicy.cs (3)
93var mediaType = string.IsNullOrEmpty(contentType) ? (ReadOnlyMediaTypeHeaderValue?)null : new(contentType); 308return !string.IsNullOrEmpty(mediaType) ? new ReadOnlyMediaTypeHeaderValue(mediaType) : default; 360if (string.IsNullOrEmpty(contentType))
Matching\FastPathTokenizer.cs (1)
18if (string.IsNullOrEmpty(path))
Patterns\RoutePatternLiteralPart.cs (1)
22Debug.Assert(!string.IsNullOrEmpty(content));
Patterns\RoutePatternSeparatorPart.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(content));
RouteCollection.cs (3)
51if (!string.IsNullOrEmpty(namedRouter.Name)) 101if (!string.IsNullOrEmpty(context.RouteName)) 154if (!string.IsNullOrEmpty(url) && (_options.LowercaseUrls || _options.AppendTrailingSlash))
RouteValueEqualityComparer.cs (3)
36if (string.IsNullOrEmpty(stringX) && string.IsNullOrEmpty(stringY)) 50if (string.IsNullOrEmpty(stringObj))
RouteValuesAddressScheme.cs (2)
30if (string.IsNullOrEmpty(address.RouteName)) 127if (string.IsNullOrEmpty(entry.RouteName))
Template\TemplateBinder.cs (1)
622if (!string.IsNullOrEmpty(converted))
UriBuildingContext.cs (2)
62if (string.IsNullOrEmpty(value)) 144if (string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Routing.Abstractions (1)
VirtualPathData.cs (1)
81if (string.IsNullOrEmpty(path))
Microsoft.AspNetCore.Routing.Tests (2)
RouteValuesAddressSchemeTest.cs (1)
436if (!string.IsNullOrEmpty(routeName))
Tree\LinkGenerationDecisionTreeTest.cs (1)
747if (!string.IsNullOrEmpty(routeTemplate))
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
675if (string.IsNullOrEmpty(cacheControlHeader))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
AuthenticationTests.cs (1)
190Assert.False(string.IsNullOrEmpty(userName));
OpaqueUpgradeTests.cs (2)
421if (!string.IsNullOrEmpty(extraHeader)) 442while (!string.IsNullOrEmpty(reader.ReadLine()))
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
RequestHeaderBenchmarks.cs (1)
107if (!string.IsNullOrEmpty(headerValue))
Microsoft.AspNetCore.Server.HttpSys.Tests (1)
RequestHeaderTests.cs (1)
422if (!string.IsNullOrEmpty(headerName.Value))
Microsoft.AspNetCore.Server.IIS (22)
Core\IISHttpContext.cs (4)
179else if (string.IsNullOrEmpty(pathBase) || pathBase == "/") 579var reasonPhrase = string.IsNullOrEmpty(ReasonPhrase) ? ReasonPhrases.GetReasonPhrase(StatusCode) : ReasonPhrase; 608if (string.IsNullOrEmpty(headerValue)) 654if (string.IsNullOrEmpty(headerValue))
Core\IISHttpServer.cs (1)
53&& !string.IsNullOrEmpty(webSocketsSupported);
src\Shared\ErrorPage\ErrorPage.Designer.cs (4)
321if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File)) 365else if (!string.IsNullOrEmpty(location)) 504if (string.IsNullOrEmpty(frame.File))
src\Shared\RazorViews\BaseView.cs (5)
128if (!string.IsNullOrEmpty(value)) 150Debug.Assert(string.IsNullOrEmpty(AttributeEnding)); 159Debug.Assert(!string.IsNullOrEmpty(AttributeEnding)); 269if (!string.IsNullOrEmpty(value)) 277if (string.IsNullOrEmpty(input))
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
104if (string.IsNullOrEmpty(stackFrame.File)) 122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath))
src\Shared\StackTrace\StackFrame\MethodDisplayInfo.cs (2)
36if (!string.IsNullOrEmpty(DeclaringTypeName)) 50if (!string.IsNullOrEmpty(SubMethod))
src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs (1)
20if (!string.IsNullOrEmpty(Prefix))
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.AspNetCore.Server.IISIntegration (4)
WebHostBuilderIISExtensions.cs (4)
54if (!string.IsNullOrEmpty(port) && !string.IsNullOrEmpty(path) && !string.IsNullOrEmpty(pairingToken)) 60if (string.IsNullOrEmpty(iisAuth))
Microsoft.AspNetCore.Server.IntegrationTesting (31)
ApplicationPublisher.cs (1)
25if (string.IsNullOrEmpty(deploymentParameters.TargetFramework))
CachingApplicationPublisher.cs (1)
28if (!string.IsNullOrEmpty(deploymentParameters.PublishedApplicationRootPath))
Common\DeploymentParameters.cs (3)
19if (configAttribute != null && !string.IsNullOrEmpty(configAttribute.Configuration)) 30if (configAttribute != null && !string.IsNullOrEmpty(configAttribute.Configuration)) 69if (configAttribute != null && !string.IsNullOrEmpty(configAttribute.Configuration))
Common\DotNetCommands.cs (5)
28if (!string.IsNullOrEmpty(dotnetHome)) 32else if (!string.IsNullOrEmpty(dotnetRoot)) 44else if (!string.IsNullOrEmpty(dotnetInstallDir)) 48else if (!string.IsNullOrEmpty(userProfile)) 52else if (!string.IsNullOrEmpty(home))
Common\ProcessLoggingExtensions.cs (2)
15if (!string.IsNullOrEmpty(dataArgs.Data)) 23if (!string.IsNullOrEmpty(dataArgs.Data))
Common\TestUriHelper.cs (1)
25if (string.IsNullOrEmpty(hint))
Deployers\ApplicationDeployer.cs (2)
37if (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.None && !string.IsNullOrEmpty(DeploymentParameters.TargetFramework)) 51if (string.IsNullOrEmpty(DeploymentParameters.ApplicationName))
Deployers\NginxDeployer.cs (2)
34var uri = string.IsNullOrEmpty(DeploymentParameters.ApplicationBaseUriHint) ? 107if (!string.IsNullOrEmpty(retVal))
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (9)
37if (string.IsNullOrEmpty(_deploymentParameters.ServerName)) 42if (string.IsNullOrEmpty(_deploymentParameters.ServerAccountName)) 48if (string.IsNullOrEmpty(_deploymentParameters.ServerAccountPassword)) 55&& string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 61if (string.IsNullOrEmpty(_deploymentParameters.RemoteServerFileSharePath)) 67if (string.IsNullOrEmpty(_deploymentParameters.ApplicationBaseUriHint)) 159if (!string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 218if (!string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 225if (!string.IsNullOrEmpty(executableParameters))
Deployers\SelfHostDeployer.cs (2)
149if (!string.IsNullOrEmpty(dataArgs.Data) && dataArgs.Data.Contains(ApplicationStartedMessage)) 153else if (!string.IsNullOrEmpty(dataArgs.Data))
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (7)
IISDeployer.cs (2)
81if (string.IsNullOrEmpty(DeploymentParameters.ServerConfigTemplateContent)) 180if (string.IsNullOrEmpty(debugLogLocation))
IISExpressDeployer.cs (5)
117if (!string.IsNullOrEmpty(DeploymentParameters.ApplicationPath)) 170var parameters = string.IsNullOrEmpty(DeploymentParameters.ServerConfigLocation) ? 209else if (!string.IsNullOrEmpty(dataArgs.Data)) 277if (string.IsNullOrEmpty(serverConfig)) 412if (!string.IsNullOrEmpty(DeploymentParameters.ServerConfigLocation)
Microsoft.AspNetCore.Server.Kestrel.Core (25)
Internal\AddressBinder.cs (1)
114if (!string.IsNullOrEmpty(parsedAddress.PathBase))
Internal\Certificates\CertificateConfigLoader.cs (2)
180var storeName = string.IsNullOrEmpty(certInfo.Store) ? StoreName.My.ToString() : certInfo.Store; 183if (!string.IsNullOrEmpty(location))
Internal\ConfigurationReader.cs (4)
98if (string.IsNullOrEmpty(url)) 147if (string.IsNullOrEmpty(sniChild.Key)) 394public bool IsFileCert => !string.IsNullOrEmpty(Path); 411public bool IsStoreCert => !string.IsNullOrEmpty(Subject);
Internal\Http\HttpHeaders.cs (2)
63if (string.IsNullOrEmpty(key)) 195if (string.IsNullOrEmpty(key))
Internal\Http\ReasonPhrases.cs (2)
84Debug.Assert(!string.IsNullOrEmpty(reasonPhrase)); 170if (candidate is not null && (string.IsNullOrEmpty(reasonPhrase) || WebUtilities.ReasonPhrases.GetReasonPhrase(statusCode) == reasonPhrase))
Internal\Http3\Http3Stream.cs (2)
1045if (!string.IsNullOrEmpty(HttpRequestHeaders.HeaderScheme) || !string.IsNullOrEmpty(HttpRequestHeaders.HeaderPath))
Internal\Infrastructure\HttpUtilities.cs (2)
272if (string.IsNullOrEmpty(value)) 493if (string.IsNullOrEmpty(hostText))
Internal\SniOptionsSelector.cs (1)
120if (!string.IsNullOrEmpty(serverName) && !_exactNameOptions.TryGetValue(serverName, out sniOptions))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
TlsConfigurationLoader.cs (1)
173else if (!string.IsNullOrEmpty(certificatePath))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
ReasonPhrasesTests.cs (1)
32if (!string.IsNullOrEmpty(reasonPhrase))
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
594if (!string.IsNullOrEmpty(firstTermVar))
Microsoft.AspNetCore.Session (2)
CookieProtection.cs (2)
15if (string.IsNullOrEmpty(data)) 30if (string.IsNullOrEmpty(protectedText))
Microsoft.AspNetCore.Shared.Tests (11)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
112if (string.IsNullOrEmpty(data)) 193if (string.IsNullOrEmpty(data))
src\Shared\StackTrace\StackFrame\MethodDisplayInfo.cs (2)
36if (!string.IsNullOrEmpty(DeclaringTypeName)) 50if (!string.IsNullOrEmpty(SubMethod))
src\Shared\StackTrace\StackFrame\ParameterDisplayInfo.cs (1)
20if (!string.IsNullOrEmpty(Prefix))
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
127else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.AspNetCore.SignalR.Client.Core (9)
HubConnection.cs (5)
1118if (!string.IsNullOrEmpty(_serviceName)) 1305if (!string.IsNullOrEmpty(bindingFailure.InvocationId)) 1339if (string.IsNullOrEmpty(close.Error)) 1376var expectsResult = !string.IsNullOrEmpty(invocation.InvocationId); 1626if (string.IsNullOrEmpty(invocationMessage.InvocationId))
Internal\ConnectionLogScope.cs (2)
42public int Count => string.IsNullOrEmpty(ConnectionId) ? 0 : 1; 61if (!string.IsNullOrEmpty(ConnectionId))
Internal\InvocationRequest.cs (2)
107if (!string.IsNullOrEmpty(completionMessage.Error)) 180if (!string.IsNullOrEmpty(completionMessage.Error))
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (12)
HubClientProxyGenerator.Emitter.cs (6)
25if (string.IsNullOrEmpty(_spec.SetterClassAccessibility) || 26string.IsNullOrEmpty(_spec.SetterMethodAccessibility) || 27string.IsNullOrEmpty(_spec.SetterClassName) || 28string.IsNullOrEmpty(_spec.SetterMethodName) || 29string.IsNullOrEmpty(_spec.SetterTypeParameterName) || 30string.IsNullOrEmpty(_spec.SetterHubConnectionParameterName))
HubServerProxyGenerator.Emitter.cs (6)
25if (string.IsNullOrEmpty(_spec.GetterClassAccessibility) || 26string.IsNullOrEmpty(_spec.GetterMethodAccessibility) || 27string.IsNullOrEmpty(_spec.GetterClassName) || 28string.IsNullOrEmpty(_spec.GetterMethodName) || 29string.IsNullOrEmpty(_spec.GetterTypeParameterName) || 30string.IsNullOrEmpty(_spec.GetterHubConnectionParameterName))
Microsoft.AspNetCore.SignalR.Common (1)
Protocol\HandshakeProtocol.cs (1)
93if (!string.IsNullOrEmpty(responseMessage.Error))
Microsoft.AspNetCore.SignalR.Core (9)
DefaultHubLifetimeManager.cs (1)
233if (string.IsNullOrEmpty(groupName))
Internal\DefaultHubDispatcher.cs (4)
289if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 442if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId)) 650if (string.IsNullOrEmpty(invocationId)) 696if (!string.IsNullOrEmpty(hubMethodInvocationMessage.InvocationId))
src\Shared\Diagnostics\ActivityCreator.cs (4)
47activity = activitySource.CreateActivity(activityName, kind, string.IsNullOrEmpty(requestId) ? null : requestId, tags: tags, links: links); 71if (!string.IsNullOrEmpty(requestId)) 98if (!string.IsNullOrEmpty(requestId)) 100if (!string.IsNullOrEmpty(traceState))
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
DefaultHubDispatcherBenchmark.cs (1)
98if (!string.IsNullOrEmpty(completionMessage.Error))
Microsoft.AspNetCore.SignalR.Protocols.Json (11)
Protocol\JsonHubProtocol.cs (11)
226if (string.IsNullOrEmpty(invocationId)) 263if (!string.IsNullOrEmpty(invocationId)) 298if (string.IsNullOrEmpty(target)) 595if (!string.IsNullOrEmpty(message.Error)) 717if (!string.IsNullOrEmpty(message.InvocationId)) 730if (string.IsNullOrEmpty(invocationId)) 740if (string.IsNullOrEmpty(invocationId)) 760if (string.IsNullOrEmpty(invocationId)) 776if (string.IsNullOrEmpty(invocationId)) 786if (string.IsNullOrEmpty(target)) 799if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Protocol\MessagePackHubProtocolWorker.cs (4)
80if (string.IsNullOrEmpty(invocationId)) 431if (string.IsNullOrEmpty(message.InvocationId)) 560if (string.IsNullOrEmpty(message.Error)) 709if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (11)
Protocol\NewtonsoftJsonHubProtocol.cs (11)
204if (string.IsNullOrEmpty(invocationId)) 253if (!string.IsNullOrEmpty(invocationId)) 285if (string.IsNullOrEmpty(target)) 594if (!string.IsNullOrEmpty(message.Error)) 696if (!string.IsNullOrEmpty(message.InvocationId)) 723if (string.IsNullOrEmpty(invocationId)) 733if (string.IsNullOrEmpty(invocationId)) 753if (string.IsNullOrEmpty(invocationId)) 768if (string.IsNullOrEmpty(invocationId)) 778if (string.IsNullOrEmpty(target)) 790if (string.IsNullOrEmpty(target))
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
Internal\TaskExtensions.cs (1)
61=> string.IsNullOrEmpty(filePath)
src\Shared\TaskExtensions.cs (1)
144=> string.IsNullOrEmpty(filePath)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (7)
Internal\RedisProtocol.cs (2)
51if (!string.IsNullOrEmpty(returnChannel)) 76if (!string.IsNullOrEmpty(returnChannel))
RedisHubLifetimeManager.cs (5)
104if (!string.IsNullOrEmpty(connection.UserIdentifier)) 144if (!string.IsNullOrEmpty(connection.UserIdentifier)) 265if (!string.IsNullOrEmpty(groupName)) 283if (!string.IsNullOrEmpty(userId)) 539if (!string.IsNullOrEmpty(invocation.InvocationId))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Docker.cs (1)
233if (!string.IsNullOrEmpty(data))
RedisEndToEnd.cs (1)
323if (!string.IsNullOrEmpty(userName))
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTestUtils\Hubs.cs (1)
1467if (!string.IsNullOrEmpty(id))
Startup.cs (1)
58if (!string.IsNullOrEmpty(accessToken) &&
TestAuthHandler.cs (1)
19var hasClaim = context.User.HasClaim(o => o.Type == ClaimTypes.NameIdentifier && !string.IsNullOrEmpty(o.Value));
Microsoft.AspNetCore.SpaProxy (1)
SpaDevelopmentServerOptions.cs (1)
14if (!String.IsNullOrEmpty(RedirectUrl))
Microsoft.AspNetCore.SpaServices.Extensions (7)
AngularCli\AngularCliBuilder.cs (1)
43if (string.IsNullOrEmpty(sourcePath))
AngularCli\AngularCliMiddleware.cs (1)
30if (string.IsNullOrEmpty(sourcePath))
AngularCli\AngularCliMiddlewareExtensions.cs (1)
31if (string.IsNullOrEmpty(spaOptions.SourcePath))
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
30if (string.IsNullOrEmpty(sourcePath))
ReactDevelopmentServer\ReactDevelopmentServerMiddlewareExtensions.cs (1)
31if (string.IsNullOrEmpty(spaOptions.SourcePath))
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
24if (string.IsNullOrEmpty(options.RootPath))
StaticFiles\SpaStaticFilesExtensions.cs (1)
36if (string.IsNullOrEmpty(options.RootPath))
Microsoft.AspNetCore.StaticAssets (3)
LoggerExtensions.cs (1)
19if (string.IsNullOrEmpty(physicalPath))
StaticAssetsInvoker.cs (2)
95if (!string.IsNullOrEmpty(_contentType)) 232var logPath = !string.IsNullOrEmpty(FileInfo.PhysicalPath) ? FileInfo.PhysicalPath : Route;
Microsoft.AspNetCore.StaticFiles (3)
LoggerExtensions.cs (1)
22if (string.IsNullOrEmpty(physicalPath))
StaticFileContext.cs (2)
254if (!string.IsNullOrEmpty(_contentType)) 387var logPath = !string.IsNullOrEmpty(_fileInfo.PhysicalPath) ? _fileInfo.PhysicalPath : SubPath;
Microsoft.AspNetCore.Testing (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (3)
1208Assert.True(string.IsNullOrEmpty(app.Configuration["A"])); 1209Assert.True(string.IsNullOrEmpty(app.Configuration["C"])); 1252Assert.True(string.IsNullOrEmpty(app.Configuration["B"]));
Microsoft.AspNetCore.WebSockets.ConformanceTests (4)
Autobahn\Executable.cs (1)
66if (!string.IsNullOrEmpty(data))
Autobahn\Wstest.cs (1)
29if (string.IsNullOrEmpty(location))
AutobahnTests.cs (1)
36var outDir = !string.IsNullOrEmpty(reportDir) ?
SkipIfWsTestNotPresentAttribute.cs (1)
16!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("TEAMCITY_VERSION")) ||
Microsoft.AspNetCore.WebUtilities (3)
HttpResponseStreamWriter.cs (2)
273if (string.IsNullOrEmpty(value)) 475if (string.IsNullOrEmpty(value) && NewLine.Length == 0)
MultipartReader.cs (1)
111while (!string.IsNullOrEmpty(line))
Microsoft.Build.Framework (37)
BuildException\BuildExceptionBase.cs (2)
41public override string? StackTrace => string.IsNullOrEmpty(_remoteStackTrace) ? base.StackTrace : _remoteStackTrace; 43public override string ToString() => string.IsNullOrEmpty(_remoteTypeName) ? base.ToString() : $"{_remoteTypeName}->{base.ToString()}";
ChangeWaves.cs (1)
133if (string.IsNullOrEmpty(msbuildDisableFeaturesFromVersion))
EncodingUtilities.cs (1)
240string useUtf8 = string.IsNullOrEmpty(encodingSpecification) ? EncodingUtilities.UseUtf8Detect : encodingSpecification;
FileClassifier.cs (5)
123if (!string.IsNullOrEmpty(programFiles)) 160if (processName == null || string.IsNullOrEmpty(processFileName)) 295if (!string.IsNullOrEmpty(path)) 331return string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/'); // .Replace("//", "/"); 399if (string.IsNullOrEmpty(filePath))
Logging\AnsiDetector.cs (1)
39if (string.IsNullOrEmpty(termType))
ProjectStartedEventArgs.cs (1)
548if (!string.IsNullOrEmpty(TargetNames))
TargetStartedEventArgs.cs (2)
183if (!string.IsNullOrEmpty(parentTarget)) 194if (!string.IsNullOrEmpty(parentTarget))
Traits.cs (23)
32DebugScheduler = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDDEBUGSCHEDULER")); 33DebugNodeCommunication = DebugEngine || !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDDEBUGCOMM")); 43public readonly bool UseLazyWildCardEvaluation = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildSkipEagerWildCardEvaluationRegexes")); 44public readonly bool LogExpandedWildcards = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGEXPANDEDWILDCARDS")); 50public readonly bool CacheFileExistence = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildCacheFileExistence")); 52public readonly bool UseSimpleProjectRootElementCacheConcurrency = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildUseSimpleProjectRootElementCacheConcurrency")); 57public readonly bool MSBuildCacheFileEnumerations = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildCacheFileEnumerations")); 74public readonly bool ForceEvaluateAsFullFramework = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildForceEvaluateAsFullFramework")); 87public readonly bool EmitSolutionMetaproj = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildEmitSolution")); 97public readonly bool SolutionBatchTargets = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildSolutionBatchTargets")); 102public readonly bool LogPropertyFunctionsRequiringReflection = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildLogPropertyFunctionsRequiringReflection")); 107public readonly bool LogAllAssemblyLoads = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGALLASSEMBLYLOADS")); 112public static bool LogAllEnvironmentVariables = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGALLENVIRONMENTVARIABLES")); 128public readonly bool EnableRarNode = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildRarNode")); 135public readonly bool DebugEngine = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildDebugEngine")); 138public readonly bool DebugUnitTests = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildDebugUnitTests")); 155public readonly bool SlnParsingWithSolutionPersistenceOptIn = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILD_PARSE_SLN_WITH_SOLUTIONPERSISTENCE")); 200public readonly bool DoNotSendDeferredMessagesToBuildManager = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MsBuildDoNotSendDeferredMessagesToBuildManager")); 206public readonly bool DoNotExpandQualifiedMetadataInUpdateOperation = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBuildDoNotExpandQualifiedMetadataInUpdateOperation")); 259_logProjectImports = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDLOGIMPORTS")); 296if (!string.IsNullOrEmpty(variable)) 347public readonly bool WarnOnUninitializedProperty = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("MSBUILDWARNONUNINITIALIZEDPROPERTY")); 448if (string.IsNullOrEmpty(value))
XamlTypes\ContentType.cs (1)
99if (String.IsNullOrEmpty(metadataName))
Microsoft.Build.Tasks.CodeAnalysis (31)
src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (2)
215if (!String.IsNullOrEmpty(splits[i].Trim())) 302if (!string.IsNullOrEmpty(argument))
src\Compilers\Core\MSBuildTask\Csc.cs (7)
158if (!string.IsNullOrEmpty(value)) 285var interceptorsNamespacesIsNullOrEmpty = string.IsNullOrEmpty(interceptorsNamespaces); 286var interceptorsPreviewNamespacesIsNullOrEmpty = string.IsNullOrEmpty(interceptorsPreviewNamespaces); 354if (string.IsNullOrEmpty(aliasString)) 631if (!string.IsNullOrEmpty(Win32Manifest)) 649if (!string.IsNullOrEmpty(ApplicationConfiguration)) 662if (!string.IsNullOrEmpty(PreferredUILang) && !string.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
109return string.IsNullOrEmpty(FileName.ItemSpec) ? true : WriteMSBuildEditorConfig();
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (6)
563var pipeName = !string.IsNullOrEmpty(SharedCompilationId) 600if (!string.IsNullOrEmpty(ProjectName)) 602return string.IsNullOrEmpty(TargetFramework) 631if (string.IsNullOrEmpty(workingDirectory)) 1193if (string.IsNullOrEmpty(win32Manifest) && string.IsNullOrEmpty(Win32Resource))
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
47protected bool UsingBuiltinTool => string.IsNullOrEmpty(ToolPath) && ToolExe == ToolName;
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (5)
128if (!string.IsNullOrEmpty(root.GetMetadata(Names.SourceControl)) == sourceControlled) 132if (string.IsNullOrEmpty(nestedRoot)) 168if (!string.IsNullOrEmpty(nestedRoot)) 212if (!string.IsNullOrEmpty(leftValue) && !string.IsNullOrEmpty(rightValue) && leftValue != rightValue)
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
25=> string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/');
src\Compilers\Core\MSBuildTask\Vbc.cs (5)
296if (RoslynString.IsNullOrEmpty(PdbFile) || String.IsNullOrEmpty(outputAssembly)) 909if (!String.IsNullOrEmpty(ModuleAssemblyName)) 919if (!String.IsNullOrEmpty(Win32Manifest)) 931else if (!String.IsNullOrEmpty(LangVersion) && !UsedCommandLineTool) 956if (!String.IsNullOrEmpty(PreferredUILang) && !String.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (31)
src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (2)
215if (!String.IsNullOrEmpty(splits[i].Trim())) 302if (!string.IsNullOrEmpty(argument))
src\Compilers\Core\MSBuildTask\Csc.cs (7)
158if (!string.IsNullOrEmpty(value)) 285var interceptorsNamespacesIsNullOrEmpty = string.IsNullOrEmpty(interceptorsNamespaces); 286var interceptorsPreviewNamespacesIsNullOrEmpty = string.IsNullOrEmpty(interceptorsPreviewNamespaces); 354if (string.IsNullOrEmpty(aliasString)) 631if (!string.IsNullOrEmpty(Win32Manifest)) 649if (!string.IsNullOrEmpty(ApplicationConfiguration)) 662if (!string.IsNullOrEmpty(PreferredUILang) && !string.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
109return string.IsNullOrEmpty(FileName.ItemSpec) ? true : WriteMSBuildEditorConfig();
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (6)
563var pipeName = !string.IsNullOrEmpty(SharedCompilationId) 600if (!string.IsNullOrEmpty(ProjectName)) 602return string.IsNullOrEmpty(TargetFramework) 631if (string.IsNullOrEmpty(workingDirectory)) 1193if (string.IsNullOrEmpty(win32Manifest) && string.IsNullOrEmpty(Win32Resource))
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
47protected bool UsingBuiltinTool => string.IsNullOrEmpty(ToolPath) && ToolExe == ToolName;
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (5)
128if (!string.IsNullOrEmpty(root.GetMetadata(Names.SourceControl)) == sourceControlled) 132if (string.IsNullOrEmpty(nestedRoot)) 168if (!string.IsNullOrEmpty(nestedRoot)) 212if (!string.IsNullOrEmpty(leftValue) && !string.IsNullOrEmpty(rightValue) && leftValue != rightValue)
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
25=> string.IsNullOrEmpty(path) || Path.DirectorySeparatorChar == '\\' ? path : path.Replace('\\', '/');
src\Compilers\Core\MSBuildTask\Vbc.cs (5)
296if (RoslynString.IsNullOrEmpty(PdbFile) || String.IsNullOrEmpty(outputAssembly)) 909if (!String.IsNullOrEmpty(ModuleAssemblyName)) 919if (!String.IsNullOrEmpty(Win32Manifest)) 931else if (!String.IsNullOrEmpty(LangVersion) && !UsedCommandLineTool) 956if (!String.IsNullOrEmpty(PreferredUILang) && !String.Equals(PreferredUILang, System.Globalization.CultureInfo.CurrentUICulture.Name, StringComparison.OrdinalIgnoreCase))
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (4)
CopyRefAssemblyTests.cs (2)
39Assert.False(string.IsNullOrEmpty(engine.Log)); 57Assert.False(string.IsNullOrEmpty(engine.Log));
CscTests.cs (1)
550Assert.False(string.IsNullOrEmpty(engine.Log));
VbcTests.cs (1)
520Assert.False(string.IsNullOrEmpty(engine.Log));
Microsoft.Cci.Extensions (10)
HostEnvironment.cs (6)
394string referringDir = string.IsNullOrEmpty(referringUnit.Location) ? null 397result = string.IsNullOrEmpty(referringDir) ? null 483if (string.IsNullOrEmpty(coreAssemblyFile)) 501if (!string.IsNullOrEmpty(coreAssemblySimpleName)) 609if (!string.IsNullOrEmpty(coreAssemblySimpleName)) 666if (!string.IsNullOrEmpty(coreAssemblySimpleName))
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
145if (!string.IsNullOrEmpty(prefix))
Writers\CSharp\CSharpWriter.cs (3)
122if (ns != null && string.IsNullOrEmpty(ns.Name.Value)) 337if (!string.IsNullOrEmpty(condition)) 346if (!string.IsNullOrEmpty(condition))
Microsoft.CodeAnalysis (62)
CodeGen\PermissionSetAttribute.cs (1)
81Debug.Assert(!String.IsNullOrEmpty(fileName));
CommandLine\AnalyzerConfig.cs (3)
189if (pathToFile is null || !Path.IsPathRooted(pathToFile) || string.IsNullOrEmpty(Path.GetFileName(pathToFile))) 227Debug.Assert(!string.IsNullOrEmpty(sectionName)); 241Debug.Assert(!string.IsNullOrEmpty(key));
CommandLine\CommandLineParser.cs (3)
726if (string.IsNullOrEmpty(value)) 753if (string.IsNullOrEmpty(value)) 1262var resolvedDirectoryPath = string.IsNullOrEmpty(directory) ?
CommandLine\CommandLineReference.cs (1)
22Debug.Assert(!string.IsNullOrEmpty(reference));
CommandLine\CommandLineSourceFile.cs (1)
21Debug.Assert(!string.IsNullOrEmpty(path));
CommandLine\CommonCompiler.cs (1)
1260if (Arguments.ParseOptions.Features.ContainsKey("pdb-path-determinism") && !string.IsNullOrEmpty(emitOptions.PdbFilePath))
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(suppressionId));
CommandLine\ErrorLogOptions.cs (1)
31if (string.IsNullOrEmpty(path))
CommandLine\SarifErrorLogger.cs (2)
120return !string.IsNullOrEmpty(location.GetLineSpan().Path); 127Debug.Assert(!string.IsNullOrEmpty(path));
CommandLine\SarifV1ErrorLogger.cs (2)
177if (!string.IsNullOrEmpty(descriptor.HelpLinkUri)) 184if (!string.IsNullOrEmpty(descriptor.Category))
CommandLine\SarifV2ErrorLogger.cs (5)
191if (!string.IsNullOrEmpty(_totalAnalyzerExecutionTime)) 238var reportAnalyzerExecutionTime = !string.IsNullOrEmpty(_totalAnalyzerExecutionTime); 262if (!string.IsNullOrEmpty(descriptor.HelpLinkUri)) 279if (!string.IsNullOrEmpty(descriptor.Category) || isEverSuppressed || reportAnalyzerExecutionTime || descriptor.ImmutableCustomTags.Any()) 283if (!string.IsNullOrEmpty(descriptor.Category))
Compilation\Compilation.cs (4)
2192string.IsNullOrEmpty(StrongNameKeys.KeyContainer) && 2498if (!string.IsNullOrEmpty(tree.FilePath) && tree.GetText().Encoding == null) 2516Debug.Assert(!string.IsNullOrEmpty(text.FilePath)); 2534if (!string.IsNullOrEmpty(tree.FilePath))
Compilation\CompilationOptions.cs (1)
302this.CryptoKeyFile = string.IsNullOrEmpty(cryptoKeyFile) ? null : cryptoKeyFile;
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
32if (!string.IsNullOrEmpty(id))
Diagnostic\DiagnosticFormatter.cs (1)
110if (string.IsNullOrEmpty(uri) || HasDefaultHelpLinkUri(diagnostic))
Diagnostic\DiagnosticInfo.cs (1)
318if (string.IsNullOrEmpty(message))
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
438if (string.IsNullOrEmpty(language))
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
68if (string.IsNullOrEmpty(_name))
DiaSymReader\SymUnmanagedFactory.cs (1)
115if (string.IsNullOrEmpty(dir))
Emit\AnonymousTypeValue.cs (1)
18Debug.Assert(!string.IsNullOrEmpty(name));
FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Interop\ClrStrongName.cs (2)
39if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("COMPLUS_InstallRoot"))) 42if (!string.IsNullOrEmpty(version))
MetadataReader\MetadataHelpers.cs (2)
730if (!string.IsNullOrEmpty(qualifier)) 966return !string.IsNullOrEmpty(str) && str.IsValidUnicodeString() && str.IndexOf('\0') == -1;
MetadataReader\TypeNameDecoder.cs (1)
50if (string.IsNullOrEmpty(s))
MetadataReference\AssemblyIdentity.cs (1)
244return !string.IsNullOrEmpty(name) && name.IndexOf('\0') < 0;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
756if (string.IsNullOrEmpty(name))
MetadataReference\MetadataReference.cs (2)
355if (string.IsNullOrEmpty(location)) 378return !assembly.IsDynamic && !string.IsNullOrEmpty(assembly.Location);
NativePdbWriter\PdbWriter.cs (1)
208if (!string.IsNullOrEmpty(defaultNamespace))
PEWriter\MetadataWriter.cs (1)
3715if (!string.IsNullOrEmpty(identity.CultureName))
RuleSet\RuleSetInclude.cs (1)
117else if (!string.IsNullOrEmpty(parentRulesetPath))
RuleSet\RuleSetProcessor.cs (1)
261if (string.IsNullOrEmpty(attribute.Value))
SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
321builder.Add(string.IsNullOrEmpty(value) ? null : value); 583if (string.IsNullOrEmpty(import))
StrongName\DesktopStrongNameProvider.cs (5)
71if (!string.IsNullOrEmpty(keyFilePath)) 90else if (!string.IsNullOrEmpty(keyContainerName)) 164Debug.Assert(string.IsNullOrEmpty(keys.KeyFilePath) != string.IsNullOrEmpty(keys.KeyContainer)); 166if (!string.IsNullOrEmpty(keys.KeyFilePath))
StrongName\StrongNameKeys.cs (4)
105if (string.IsNullOrEmpty(keyFilePath)) 168if (string.IsNullOrEmpty(keyFilePath) && string.IsNullOrEmpty(keyContainerName)) 229if (string.IsNullOrEmpty(publicKey) || publicKey.Length % 2 != 0)
Microsoft.CodeAnalysis.Analyzers (25)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
715return !string.IsNullOrEmpty(filePath); 945!string.IsNullOrEmpty(value))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (1)
355if (!string.IsNullOrEmpty(helpLink))
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (1)
140!string.IsNullOrEmpty(fixValue);
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
61if (!string.IsNullOrEmpty(propertyValue))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Microsoft.CodeAnalysis.AnalyzerUtilities (17)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.CodeAnalysis.BannedApiAnalyzers (20)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Microsoft.CodeAnalysis.CodeStyle (18)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (1)
57if (string.IsNullOrEmpty(fileHeaderTemplate))
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
65|| string.IsNullOrEmpty(projectDir))
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
116if (string.IsNullOrEmpty(symbol.Name))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
96RoslynDebug.Assert(!string.IsNullOrEmpty(targetSymbolString)); 104if (!string.IsNullOrEmpty(docCommentId))
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
68if (string.IsNullOrEmpty(_name))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
111if (string.IsNullOrEmpty(name))
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
115if (string.IsNullOrEmpty(current.Name))
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
213if (string.IsNullOrEmpty(line))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
167return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
259if (!string.IsNullOrEmpty(parameterName))
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
298return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
93if (!string.IsNullOrEmpty(formatString))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder.ValueChecks.cs (1)
2816if (string.IsNullOrEmpty(parameterName))
Binder\Binder_Conversions.cs (1)
1864if (string.IsNullOrEmpty(methodName))
Binder\Binder_Crefs.cs (1)
173if (string.IsNullOrEmpty(memberName))
Binder\Binder_Lambda.cs (1)
382if (string.IsNullOrEmpty(name))
Binder\Binder_NameConflicts.cs (3)
40if (string.IsNullOrEmpty(name)) 63if (string.IsNullOrEmpty(name)) 116if (string.IsNullOrEmpty(name))
Binder\ForEachLoopBinder.cs (1)
793if (string.IsNullOrEmpty(collectionExprType.Name) && collectionExpr.HasErrors)
CommandLine\CSharpCommandLineParser.cs (10)
377if (string.IsNullOrEmpty(value)) 616if (string.IsNullOrEmpty(unquotedModuleName)) 953if (string.IsNullOrEmpty(value) || 1023if (string.IsNullOrEmpty(value)) 1044if (string.IsNullOrEmpty(value)) 1086if (string.IsNullOrEmpty(value) || !TryParseUInt64(value, out newBaseAddress)) 1127if (string.IsNullOrEmpty(unquoted)) 1155if (string.IsNullOrEmpty(unquoted)) 1290if (string.IsNullOrEmpty(unquoted)) 1417if (!string.IsNullOrEmpty(additionalReferenceDirectories))
Compiler\DocumentationCommentCompiler.cs (1)
813if (string.IsNullOrEmpty(lines[numLines - 1]))
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
254return string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name); 259return string.IsNullOrEmpty(attribute.Name.NamespaceName) && DocumentationCommentXmlNames.AttributeEquals(attribute.Name.LocalName, name);
CSharpCompilationOptions.cs (1)
330if (string.IsNullOrEmpty(path))
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
556Debug.Assert(!string.IsNullOrEmpty(sourceMember.MetadataName));
Emitter\Model\PEModuleBuilder.cs (1)
179!string.IsNullOrEmpty(refIdentity.CultureName) &&
Errors\ErrorFacts.cs (2)
138RoslynDebug.Assert(!string.IsNullOrEmpty(message), $"{code}"); 146RoslynDebug.Assert(!string.IsNullOrEmpty(message), $"{code}");
Errors\XmlSyntaxDiagnosticInfo.cs (1)
43RoslynDebug.Assert(!string.IsNullOrEmpty(message));
FlowAnalysis\AbstractFlowPass.cs (1)
246if (string.IsNullOrEmpty(name))
FlowAnalysis\DefiniteAssignment.cs (3)
2338if (symbol.DeclarationKind != LocalDeclarationKind.PatternVariable && !string.IsNullOrEmpty(symbol.Name)) // avoid diagnostics for parser-inserted names 2357if (!string.IsNullOrEmpty(symbol.Name)) // avoid diagnostics for parser-inserted names 2861string.IsNullOrEmpty(id.Symbol.Name) ? "<anon>" + id.Symbol.GetHashCode() :
Parser\Lexer.cs (4)
1067if (string.IsNullOrEmpty(valueText)) 3823if (!string.IsNullOrEmpty(valueText) && actualText != valueText) 4450if (!String.IsNullOrEmpty(text)) 4496if (!String.IsNullOrEmpty(text))
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
397string.IsNullOrEmpty(symbolName))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
28Debug.Assert(!string.IsNullOrEmpty(name));
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
203if (string.IsNullOrEmpty(specifierText))
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
353bool hasNameInMetadata = !string.IsNullOrEmpty(_name);
Symbols\ObsoleteAttributeHelpers.cs (1)
192if (string.IsNullOrEmpty(data.Message))
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
74if (!string.IsNullOrEmpty(aliasQualifierOpt))
Symbols\Source\SourceAssemblySymbol.cs (9)
493if (!string.IsNullOrEmpty(keyFile) && !PathUtilities.IsAbsolute(keyFile)) 505if (string.IsNullOrEmpty(keyFile)) 517if (string.IsNullOrEmpty(keyContainer)) 527var hasCounterSignature = !string.IsNullOrEmpty(this.SignatureKey); 785if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer)) 832if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile)) 2020if (!string.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) && 2030if (!String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) && 2433if (!string.IsNullOrEmpty(cultureString))
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1198if (string.IsNullOrEmpty(methodName))
Symbols\SymbolDistinguisher.cs (2)
169if (!string.IsNullOrEmpty(path)) 184if (!string.IsNullOrEmpty(path))
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
34Debug.Assert(!string.IsNullOrEmpty(name)); 95Debug.Assert(!string.IsNullOrEmpty(name));
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
32Debug.Assert(!string.IsNullOrEmpty(name));
Symbols\Tuples\TupleTypeSymbol.cs (2)
668if (defaultImplicitlyDeclared && !string.IsNullOrEmpty(providedName)) 765if (defaultImplicitlyDeclared && !String.IsNullOrEmpty(providedName))
Syntax\AttributeSyntax.cs (1)
25Debug.Assert(!String.IsNullOrEmpty(namedArgName));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
312if (!string.IsNullOrEmpty(triviaString) && SyntaxFacts.IsNewLine(triviaString[^1]))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (11)
CommandLineTests.cs (11)
10638Assert.True(string.IsNullOrEmpty(output)); 10642Assert.True(string.IsNullOrEmpty(output)); 10675Assert.True(string.IsNullOrEmpty(output)); 10683Assert.True(string.IsNullOrEmpty(output)); 10716Assert.True(string.IsNullOrEmpty(output)); 10720Assert.True(string.IsNullOrEmpty(output)); 10746Assert.True(string.IsNullOrEmpty(output)); 10754Assert.True(string.IsNullOrEmpty(output)); 10942Assert.True(string.IsNullOrEmpty(output)); 14613.. string.IsNullOrEmpty(pathMapArgument) ? default(Span<string>) : [pathMapArgument] 15321if (!string.IsNullOrEmpty(additionalArg))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
202if (string.IsNullOrEmpty(expectedDescription))
QuickInfo\SyntacticQuickInfoSourceTests.cs (1)
630if (string.IsNullOrEmpty(expectedContent))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenInterpolatedString.cs (2)
48Assert.False(string.IsNullOrEmpty(token.Text)); 49Assert.False(string.IsNullOrEmpty(token.ValueText));
CodeGen\DestructorTests.cs (1)
777string.IsNullOrEmpty(peFileReader.GetString(pair.row.Namespace)));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
725if (string.IsNullOrEmpty(title)) 737if (string.IsNullOrEmpty(title))
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (6)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\ExpressionEvaluator\CSharp\Source\ResultProvider\CSharpFormatter.TypeNames.cs (1)
92if (!string.IsNullOrEmpty(nameOpt))
src\ExpressionEvaluator\CSharp\Source\ResultProvider\CSharpFormatter.Values.cs (3)
111Debug.Assert(!string.IsNullOrEmpty(argument)); 112Debug.Assert(!string.IsNullOrEmpty(type)); 200Debug.Assert(!string.IsNullOrEmpty(type));
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeLens\CSharpCodeLensDisplayInfoService.cs (2)
163return string.IsNullOrEmpty(enclosingScopeString) ? "Using" : enclosingScopeString + " Using"; 170return string.IsNullOrEmpty(enclosingScopeString) ? "Alias" : enclosingScopeString + " Alias";
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
77p => p.NameColon?.Name.Identifier.ValueText).Where(s => !string.IsNullOrEmpty(s))!);
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (2)
102if (!string.IsNullOrEmpty(name)) 124if (!string.IsNullOrEmpty(identifierAlias))
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
189if (!string.IsNullOrEmpty(elementName))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\ColorColorTests.cs (1)
2235if (string.IsNullOrEmpty(constraint))
Semantics\UnsafeTests.cs (1)
5243if (!string.IsNullOrEmpty(text))
SourceGeneration\GeneratorDriverTests.cs (1)
1353if (string.IsNullOrEmpty(x.Location))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\EnumTests.cs (1)
303if (!string.IsNullOrEmpty(value))
Symbols\Metadata\PE\TypeForwarders.cs (1)
1239var childName = string.IsNullOrEmpty(baseName) ? child.Name : (baseName + "." + child.Name);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (1)
46Assert.False(string.IsNullOrEmpty(ErrorFacts.GetMessage(code, CultureInfo.InvariantCulture)), $"Message for error {code} is null or empty.");
LexicalAndXml\PreprocessorTests.cs (1)
267if (!string.IsNullOrEmpty(target.ValueText))
Syntax\SyntaxFactoryTests.cs (1)
222if (string.IsNullOrEmpty(valueText))
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
CSharpTestBase.cs (1)
1782string.IsNullOrEmpty(assemblyName) ? GetUniqueName() : assemblyName,
CSharpTestSource.cs (5)
53Debug.Assert(string.IsNullOrEmpty(sourceFileName)); 56Debug.Assert(string.IsNullOrEmpty(sourceFileName)); 59Debug.Assert(string.IsNullOrEmpty(sourceFileName)); 63Debug.Assert(string.IsNullOrEmpty(sourceFileName)); 67Debug.Assert(string.IsNullOrEmpty(sourceFileName));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Rename\CSharpRenameRewriterLanguageService.cs (2)
582if (!string.IsNullOrEmpty(prefix)) 587if (!string.IsNullOrEmpty(suffix))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
312if (!string.IsNullOrEmpty(triviaString) && SyntaxFacts.IsNewLine(triviaString[^1]))
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingTests.cs (1)
9407if (!string.IsNullOrEmpty(lines[i]))
Microsoft.CodeAnalysis.Debugging.Package (2)
CustomDebugInfoReader.cs (2)
321builder.Add(string.IsNullOrEmpty(value) ? null : value); 583if (string.IsNullOrEmpty(import))
Microsoft.CodeAnalysis.EditorFeatures (13)
DocumentationComments\CopilotGenerateDocumentationCommentProvider.cs (6)
234if (edit.TagType == DocumentationCommentTagType.Summary && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Summary.ToString(), out var summary) && !string.IsNullOrEmpty(summary)) 238else if (edit.TagType == DocumentationCommentTagType.Remarks && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Remarks.ToString(), out var remarks) && !string.IsNullOrEmpty(remarks)) 242else if (edit.TagType == DocumentationCommentTagType.TypeParam && documentationCommentDictionary.TryGetValue(symbolKey!, out var typeParam) && !string.IsNullOrEmpty(typeParam)) 246else if (edit.TagType == DocumentationCommentTagType.Param && documentationCommentDictionary.TryGetValue(symbolKey!, out var param) && !string.IsNullOrEmpty(param)) 250else if (edit.TagType == DocumentationCommentTagType.Returns && documentationCommentDictionary.TryGetValue(DocumentationCommentTagType.Returns.ToString(), out var returns) && !string.IsNullOrEmpty(returns)) 254else if (edit.TagType == DocumentationCommentTagType.Exception && documentationCommentDictionary.TryGetValue(symbolKey!, out var exception) && !string.IsNullOrEmpty(exception))
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
359if (!_isReplacementTextValid && !string.IsNullOrEmpty(IdentifierText))
IntelliSense\AbstractController.cs (1)
101name = String.IsNullOrEmpty(name)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
423!string.IsNullOrEmpty(_filterText) &&
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
189if (string.IsNullOrEmpty(responseString))
Shared\Extensions\HostWorkspaceServicesExtensions.cs (1)
74.Where(lz => !string.IsNullOrEmpty(lz.Metadata.DefaultContentType))
Shared\Extensions\IProjectionBufferFactoryServiceExtensions.cs (1)
247if (exposedLineSpans[0].Start > 0 && !string.IsNullOrEmpty(separator))
SignatureHelp\Controller.Session_UpdateModel.cs (1)
55if (!string.IsNullOrEmpty(parameterName))
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
NavigateTo\AbstractNavigateToTests.cs (1)
179if (!string.IsNullOrEmpty(expectedItem.SecondarySort))
QuickInfo\ToolTipAssert.cs (1)
178if (classifiedTextRun.NavigationAction is object || !string.IsNullOrEmpty(classifiedTextRun.Tooltip))
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
213if (!string.IsNullOrEmpty(expectedTestItem.MethodDocumentation))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeActions\CodeChangeProviderMetadataTests.cs (1)
68if (string.IsNullOrEmpty(namedGroup.Key))
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
PseudoVariableUtilities.cs (2)
26RoslynDebug.Assert(!string.IsNullOrEmpty(fullName)); 27RoslynDebug.Assert(!string.IsNullOrEmpty(type));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (7)
FunctionResolverBase.cs (1)
153if (string.IsNullOrEmpty(moduleName))
MetadataDecoder.cs (1)
253if (string.IsNullOrEmpty(namespaceName))
MetadataResolver.cs (1)
162if (string.IsNullOrEmpty(namespaceName))
Name.cs (1)
65Debug.Assert(!string.IsNullOrEmpty(name));
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
TypeSignature.cs (1)
67Debug.Assert(!string.IsNullOrEmpty(name));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
FunctionResolverTestBase.cs (1)
80if (!string.IsNullOrEmpty(namespaceName))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (4)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.TypeNames.cs (1)
281if (!string.IsNullOrEmpty(@namespace))
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
825Debug.Assert(!string.IsNullOrEmpty(name));
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ValueHelpers.cs (1)
23if (!string.IsNullOrEmpty(alias))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.TypeNames.cs (1)
281if (!string.IsNullOrEmpty(@namespace))
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
825Debug.Assert(!string.IsNullOrEmpty(name));
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ValueHelpers.cs (1)
23if (!string.IsNullOrEmpty(alias))
Microsoft.CodeAnalysis.Extensions.Package (2)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorMappedSpanResult.cs (1)
20if (string.IsNullOrEmpty(filePath))
Microsoft.CodeAnalysis.Features (50)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (3)
42if (!string.IsNullOrEmpty(formattingOptions.FileHeaderTemplate)) 103if (!string.IsNullOrEmpty(fileName)) 112if (!string.IsNullOrEmpty(fileName))
AddFileBanner\AbstractAddFileBannerNewDocumentFormattingProvider.cs (1)
28if (!string.IsNullOrEmpty(fileHeaderTemplate))
AddFileBanner\AddFileBannerHelpers.cs (2)
56if (string.IsNullOrEmpty(sourceName) || string.IsNullOrEmpty(destinationName))
AddImport\SymbolResult.cs (1)
36return !string.IsNullOrEmpty(DesiredName) &&
CodeFixes\Configuration\ConfigurationUpdater.cs (7)
85Debug.Assert(configurationKind != ConfigurationKind.OptionValue || !string.IsNullOrEmpty(newOptionValueOpt)); 86Debug.Assert(!string.IsNullOrEmpty(newSeverity)); 163Contract.ThrowIfFalse(!string.IsNullOrEmpty(category)); 236Debug.Assert(!string.IsNullOrEmpty(optionName)); 368if (!string.IsNullOrEmpty(editorConfigString)) 689var newEntry = !string.IsNullOrEmpty(_optionNameOpt) && !string.IsNullOrEmpty(_newOptionValueOpt)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (1)
77if (!string.IsNullOrEmpty(diagnostic.Descriptor.Category))
CodeFixes\FixAllOccurrences\AbstractFixAllCodeFixCodeAction.cs (1)
36return !string.IsNullOrEmpty(exportAttribute.Name)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (4)
49if (!string.IsNullOrEmpty(_project.FilePath)) 53if (!string.IsNullOrEmpty(directory)) 56if (!string.IsNullOrEmpty(suppressionsFilePath)) 79var fullPath = !string.IsNullOrEmpty(filePath) ? Path.GetFullPath(filePath) : filePath;
CodeLens\CodeLensReferencesService.cs (1)
256return !string.IsNullOrEmpty(fullName) ? new ReferenceMethodDescriptor(fullName, document.FilePath, document.Project.OutputFilePath) : null;
CodeRefactorings\CodeRefactoringService.cs (1)
56var documentExtensions = provider.Metadata.DocumentExtensions.Where(e => !string.IsNullOrEmpty(e));
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
275if (!string.IsNullOrEmpty(publicKey))
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
251=> string.IsNullOrEmpty(containingNamespace) ? name : containingNamespace + "." + name;
Completion\Providers\RecommendedKeyword.cs (1)
37if (!string.IsNullOrEmpty(toolTip))
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
64var kind = string.IsNullOrEmpty(prefix) ? NumericKind.Decimal
EditAndContinue\SourceFileSpan.cs (1)
74=> string.IsNullOrEmpty(Path) ? Span.ToString() : $"{Path}: {Span}";
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
535includeUsingsOrImports = string.IsNullOrEmpty(includeUsingsOrImports)
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
93if (string.IsNullOrEmpty(parameter?.Name))
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
192if (string.IsNullOrEmpty(rawXmlText))
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
289Debug.Assert(symbol != null && !string.IsNullOrEmpty(targetNamespace));
SemanticSearch\QueryExecutionContext.cs (1)
187var projectDisplay = string.IsNullOrEmpty(projectFlavor) ? projectName : $"{projectName} ({projectFlavor})";
Shared\Utilities\ExtractTypeHelpers.cs (1)
82var namespaceParts = namespaceWithoutRoot.Split('.').Where(s => !string.IsNullOrEmpty(s));
Snippets\SnippetFunctionService.cs (1)
97if (string.IsNullOrEmpty(xmlFunctionText))
Snippets\SnippetPlaceholder.cs (1)
35if (string.IsNullOrEmpty(text))
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (1)
57if (string.IsNullOrEmpty(fileHeaderTemplate))
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
65|| string.IsNullOrEmpty(projectDir))
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
116if (string.IsNullOrEmpty(symbol.Name))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
96RoslynDebug.Assert(!string.IsNullOrEmpty(targetSymbolString)); 104if (!string.IsNullOrEmpty(docCommentId))
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
111if (string.IsNullOrEmpty(name))
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
115if (string.IsNullOrEmpty(current.Name))
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
213if (string.IsNullOrEmpty(line))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
167return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
259if (!string.IsNullOrEmpty(parameterName))
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
298return string.IsNullOrEmpty(name) ? ITypeSymbolExtensions.DefaultParameterName : name;
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
93if (!string.IsNullOrEmpty(formatString))
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
68if (string.IsNullOrEmpty(_name))
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
321builder.Add(string.IsNullOrEmpty(value) ? null : value); 583if (string.IsNullOrEmpty(import))
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Microsoft.CodeAnalysis.LanguageServer (6)
DotnetCliHelper.cs (1)
44if (!string.IsNullOrEmpty(e.Data))
HostWorkspace\WorkspaceProject.cs (1)
159var valueOrNull = string.IsNullOrEmpty(value) ? null : value;
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationHandler.cs (1)
57if (string.IsNullOrEmpty(flavor))
Services\StarredCompletions\StarredCompletionsAssemblyHelper.cs (1)
45if (string.IsNullOrEmpty(completionsAssemblyLocation))
Testing\RunTestsHandler.cs (2)
62{ DotnetCliHelper.DotnetRootEnvVar, string.IsNullOrEmpty(dotnetRootUser) || dotnetRootUser == "EMPTY" ? string.Empty : dotnetRootUser } 172if (string.IsNullOrEmpty(runSettingsPath))
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Extensions\ProtocolConversions.cs (1)
989if (!string.IsNullOrEmpty(taggedText.NavigationHint) && taggedText.NavigationHint == taggedText.NavigationTarget)
Extensions\ProtocolConversions.Diagnostics.cs (2)
118var expandedMessage = string.IsNullOrEmpty(diagnosticData.Description) ? null : diagnosticData.Description; 178if (string.IsNullOrEmpty(diagnosticData.Message))
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (3)
104if (!string.IsNullOrEmpty(valueFromClient)) 199RoslynDebug.Assert(!string.IsNullOrEmpty(optionGroupName)); 200RoslynDebug.Assert(!string.IsNullOrEmpty(option.Definition.ConfigName));
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
28=> !string.IsNullOrEmpty(Document.FilePath)
Handler\Diagnostics\DiagnosticSources\AbstractProjectDiagnosticSource.cs (1)
32=> !string.IsNullOrEmpty(Project.FilePath)
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
46if (string.IsNullOrEmpty(request.Character))
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
211var lspTextForField = string.IsNullOrEmpty(field.DefaultText) ? $"${{{field.EditIndex}}}" : $"${{{field.EditIndex}:{field.DefaultText}}}";
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
245var fieldPart = string.IsNullOrEmpty(field.FunctionName)
Handler\References\FindUsagesLSPContext.cs (1)
276if (string.IsNullOrEmpty(declarationFile.FilePath))
Handler\Symbols\DocumentSymbolsHandler.cs (1)
153return String.IsNullOrEmpty(proposedName) ? "." : proposedName;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (20)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Microsoft.CodeAnalysis.PublicApiAnalyzers (17)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.CodeAnalysis.Rebuild (4)
CompilationOptionsReader.cs (1)
396if (string.IsNullOrEmpty(externAliases))
CSharpCompilationFactory.cs (2)
95!string.IsNullOrEmpty(checkedString) && bool.Parse(checkedString), 96!string.IsNullOrEmpty(unsafeString) && bool.Parse(unsafeString),
VisualBasicCompilationFactory.cs (1)
66if (!string.IsNullOrEmpty(globalNamespacesString))
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
BasicDeterministicKeyBuilderTests.cs (1)
315Assert.True(string.IsNullOrEmpty(output));
CSharpDeterministicKeyBuilderTests.cs (1)
499Assert.True(string.IsNullOrEmpty(output));
RoundTripUtil.cs (1)
71Assert.True(original.SyntaxTrees.All(x => !string.IsNullOrEmpty(x.FilePath)));
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Host\RemoteExportProviderBuilder.cs (1)
96if (!string.IsNullOrEmpty(codeBasePath))
Host\ThrowingTraceListener.cs (2)
15(string.IsNullOrEmpty(message) ? "Assertion failed" : message) + 16(string.IsNullOrEmpty(detailMessage) ? "" : Environment.NewLine + detailMessage));
Microsoft.CodeAnalysis.ResxSourceGenerator (21)
AbstractResxGenerator.cs (4)
132ResourceName: string.IsNullOrEmpty(rootNamespace) ? resourceName : string.Join(".", rootNamespace, resourceName), 380if (string.IsNullOrEmpty(ResourceInformation.ResourceName)) 386var resourceAccessName = string.IsNullOrEmpty(ResourceInformation.ResourceClassName) ? ResourceInformation.ResourceName : ResourceInformation.ResourceClassName; 585if (string.IsNullOrEmpty(ResourceInformation.ResourceClassName) || ResourceInformation.ResourceName == ResourceInformation.ResourceClassName)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Verifiers\CSharpSourceGeneratorVerifier`1+Test.cs (1)
63if (string.IsNullOrEmpty(_identifier))
Verifiers\VisualBasicSourceGeneratorVerifier`1+Test.cs (1)
60if (string.IsNullOrEmpty(_identifier))
Microsoft.CodeAnalysis.Scripting (5)
Hosting\ObjectFormatter\CommonObjectFormatter.Builder.cs (1)
66if (string.IsNullOrEmpty(ellipsis))
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (4)
159else if (debuggerDisplay != null && !string.IsNullOrEmpty(debuggerDisplay.Value)) 447if (!string.IsNullOrEmpty(name)) 473if (string.IsNullOrEmpty(name)) 779if (string.IsNullOrEmpty(format))
Microsoft.CodeAnalysis.Test.Utilities (20)
Assert\ArtifactUploadUtil.cs (1)
61if (string.IsNullOrEmpty(uploadDir))
Assert\AssertEx.cs (4)
281string.IsNullOrEmpty(message) 701if (!string.IsNullOrEmpty(prefix)) 799if (!string.IsNullOrEmpty(prefix)) 860internal static bool DiffToolAvailable => !string.IsNullOrEmpty(s_diffToolPath);
Assert\ConditionalFactAttribute.cs (1)
244if (string.IsNullOrEmpty(CultureInfo.CurrentCulture.Name))
Compilation\CompilationExtensions.cs (3)
40!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ROSLYN_TEST_IOPERATION")); 47!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ROSLYN_TEST_USEDASSEMBLIES")); 224if (!string.IsNullOrEmpty(symbolToVerify) && !declaration.DeclaredSymbol.Name.Equals(symbolToVerify, StringComparison.Ordinal))
Compilation\OperationTreeVerifier.cs (3)
252if (!string.IsNullOrEmpty(header)) 326Debug.Assert(!string.IsNullOrEmpty(header)); 337Debug.Assert(!string.IsNullOrEmpty(header));
CompilationVerifier.cs (1)
1046.Where(t => t.text.CanBeEmbedded && !string.IsNullOrEmpty(t.filePath))
FX\ProcessResult.cs (1)
44get { return this.ExitCode != 0 || !string.IsNullOrEmpty(this.Errors); }
MarkedSource\SourceWithMarkedNodes.cs (3)
60var id = string.IsNullOrEmpty(idOpt) ? 0 : int.Parse(idOpt); 62var parentId = string.IsNullOrEmpty(parentIdOpt) ? 0 : int.Parse(parentIdOpt); 63var parsedKind = string.IsNullOrEmpty(syntaxKindOpt) ? 0 : getSyntaxKind(syntaxKindOpt);
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
145string.IsNullOrEmpty(externAliases)
ThrowingTraceListener.cs (2)
27(string.IsNullOrEmpty(message) ? "Assertion failed" : message) + 28(string.IsNullOrEmpty(detailMessage) ? "" : Environment.NewLine + detailMessage));
Microsoft.CodeAnalysis.VisualBasic (98)
Analysis\MissingRuntimeMemberDiagnosticHelper.vb (1)
32If embedVBCoreRuntime AndAlso (Not String.IsNullOrEmpty(verifiedTypename)) Then
Binding\Binder.vb (1)
501If Not String.IsNullOrEmpty(rootNamespace) Then
Binding\Binder_AnonymousTypes.vb (1)
187If String.IsNullOrEmpty(fieldName) Then
Binding\Binder_Expressions.vb (4)
2465If String.IsNullOrEmpty(name) Then 2880If String.IsNullOrEmpty(rightName) Then 2907If String.IsNullOrEmpty(rightName) Then 2930If String.IsNullOrEmpty(rightName) Then
Binding\Binder_Symbols.vb (1)
847If String.IsNullOrEmpty(idText) Then
Binding\Binder_XmlLiterals.vb (5)
378Dim localName = If(String.IsNullOrEmpty(prefix), StringConstants.XmlnsPrefix, prefix) 379Dim [namespace] = If(String.IsNullOrEmpty(prefix), StringConstants.DefaultXmlNamespace, StringConstants.XmlnsNamespace) 1218String.IsNullOrEmpty(namespaceName) AndAlso 1219Not String.IsNullOrEmpty(prefix) Then 1272If Not String.IsNullOrEmpty(prefixName) Then
Binding\DocumentationCommentCrefBinder.vb (2)
718Debug.Assert(Not String.IsNullOrEmpty(name)) 749Debug.Assert(Not String.IsNullOrEmpty(name))
Binding\DocumentationCommentCrefBinder_Compat.vb (2)
238Debug.Assert(Not String.IsNullOrEmpty(name)) 240If String.IsNullOrEmpty(name) Then
Binding\DocumentationCommentParamBinder.vb (1)
59If String.IsNullOrEmpty(name) Then
Binding\DocumentationCommentTypeParamBinder.vb (1)
30If String.IsNullOrEmpty(name) Then
CommandLine\VisualBasicCommandLineParser.vb (35)
182If String.IsNullOrEmpty(unquoted) Then 235If String.IsNullOrEmpty(value) Then 246If String.IsNullOrEmpty(value) Then 336If String.IsNullOrEmpty(value) Then 352If String.IsNullOrEmpty(value) Then 400If (String.IsNullOrEmpty(value)) Then 421If String.IsNullOrEmpty(value) Then 479If String.IsNullOrEmpty(value) Then 506If String.IsNullOrEmpty(unquoted) Then 532If String.IsNullOrEmpty(value) Then 545If String.IsNullOrEmpty(value) Then 611If String.IsNullOrEmpty(value) Then 625If String.IsNullOrEmpty(value) Then 641If String.IsNullOrEmpty(value) Then 656If String.IsNullOrEmpty(value) Then 669If String.IsNullOrEmpty(value) Then 722If String.IsNullOrEmpty(value) Then 885If String.IsNullOrEmpty(value) Then 946If String.IsNullOrEmpty(value) Then 1091If String.IsNullOrEmpty(value) Then 1101If String.IsNullOrEmpty(value) Then 1116If (String.IsNullOrEmpty(unquoted)) Then 1239If String.IsNullOrEmpty(value) Then 1251If String.IsNullOrEmpty(value) Then 1260If String.IsNullOrEmpty(value) Then 1352If Not String.IsNullOrEmpty(additionalReferenceDirectories) Then 1360If publicSign AndAlso Not String.IsNullOrEmpty(keyFileSetting) Then 1391If Not String.IsNullOrEmpty(baseDirectory) Then 1395If Not String.IsNullOrEmpty(outputDirectory) AndAlso baseDirectory <> outputDirectory Then 1684If String.IsNullOrEmpty(value) Then 1695If String.IsNullOrEmpty(value) Then 1716If String.IsNullOrEmpty(resourceDescriptor) Then 1765If String.IsNullOrEmpty(name) Then 2182If String.IsNullOrEmpty(value) Then 2203If String.IsNullOrEmpty(value) Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
112If String.IsNullOrEmpty(elementName) Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
432Return String.IsNullOrEmpty(element.Name.NamespaceName) AndAlso 437Return String.IsNullOrEmpty(attribute.Name.NamespaceName) AndAlso
Compilation\SyntaxTreeSemanticModel.vb (1)
1320If Not String.IsNullOrEmpty(aliasName) Then
Compilation\VisualBasicCompilation.vb (1)
772If Not String.IsNullOrEmpty(Options.RootNamespace) Then
Declarations\DeclarationTreeBuilder.vb (1)
103Function(d) Not d.File.ContainsDiagnostics AndAlso Not String.IsNullOrEmpty(d.File.ValueText))
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
203Debug.Assert(properties.All(Function(f) Not String.IsNullOrEmpty(f.Name)))
Emit\PEModuleBuilder.vb (1)
151Not String.IsNullOrEmpty(refIdentity.CultureName) AndAlso
Parser\ParseXml.vb (1)
1675If Not String.IsNullOrEmpty(text) Then
Scanner\CharacterInfo.vb (1)
329If String.IsNullOrEmpty(name) Then
Scanner\Scanner.vb (1)
413Debug.Assert(Not String.IsNullOrEmpty(chars))
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
246String.IsNullOrEmpty(symbolName) Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1107Return If(String.IsNullOrEmpty(_lazyDefaultPropertyName), Nothing, _lazyDefaultPropertyName)
Symbols\Metadata\PE\PEParameterSymbol.vb (1)
272hasNameInMetadata = Not String.IsNullOrEmpty(name)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
249Return (Not String.IsNullOrEmpty(defaultPropertyName)) AndAlso
Symbols\ObsoleteAttributeHelpers.vb (3)
151If String.IsNullOrEmpty(data.Message) Then 165If String.IsNullOrEmpty(data.Message) Then 173If String.IsNullOrEmpty(data.Message) Then
Symbols\Source\SourceAssemblySymbol.vb (9)
1065If Not String.IsNullOrEmpty(cultureString) Then 1294If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) Then 1319If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) Then 1613If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) AndAlso 1622If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) AndAlso 1704If Not String.IsNullOrEmpty(keyFile) AndAlso Not PathUtilities.IsAbsolute(keyFile) Then 1719If String.IsNullOrEmpty(keyFile) Then 1729If String.IsNullOrEmpty(keyContainer) Then 1737Dim hasCounterSignature = Not String.IsNullOrEmpty(SignatureKey)
Symbols\Source\SourceMethodSymbol.vb (2)
263If String.IsNullOrEmpty(moduleName) AndAlso Not syntax.LibraryName.IsMissing Then 272If String.IsNullOrEmpty(entryPointName) Then
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2304If Not String.IsNullOrEmpty(defaultProperty) AndAlso 2534If Not String.IsNullOrEmpty(DefaultPropertyName) AndAlso Not HasDefaultMemberAttribute() Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
45If Not String.IsNullOrEmpty(strVal) Then 51If Not String.IsNullOrEmpty(strVal) Then 57If Not String.IsNullOrEmpty(strVal) Then
Symbols\Source\SourcePropertySymbol.vb (2)
247Dim omitFurtherDiagnostics As Boolean = String.IsNullOrEmpty(name) 364Dim omitFurtherDiagnostics As Boolean = String.IsNullOrEmpty(_name)
Symbols\Symbol.vb (1)
641Return Not String.IsNullOrEmpty(Me.Name) AndAlso SyntaxFacts.IsIdentifierStartCharacter(Me.Name(0))
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (1)
26Debug.Assert(Not String.IsNullOrEmpty(name))
Symbols\Tuples\TupleTypeSymbol.vb (2)
767If defaultImplicitlyDeclared AndAlso Not String.IsNullOrEmpty(providedName) Then 860If defaultImplicitlyDeclared AndAlso Not String.IsNullOrEmpty(providedName) Then
Syntax\SyntaxNormalizer.vb (1)
599String.IsNullOrEmpty(nextToken.ValueText) Then
VisualBasicCompilationOptions.vb (3)
380If String.IsNullOrEmpty(_rootNamespace) OrElse Not OptionsValidator.IsValidNamespaceName(_rootNamespace) Then 741If String.IsNullOrEmpty(path) Then 1058If Not String.IsNullOrEmpty(RootNamespace) AndAlso Not OptionsValidator.IsValidNamespaceName(RootNamespace) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
882If Not containsGlobalKeyword AndAlso Not String.IsNullOrEmpty(rootNamespace) Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
10495If Not String.IsNullOrEmpty(additionalArg) Then
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EvaluationContext.vb (1)
597If Not String.IsNullOrEmpty(qualifiedName) Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (1)
112If Not String.IsNullOrEmpty(identifierName.Identifier.ValueText) Then
SignatureHelp\SignatureHelpUtilities.vb (1)
45Return If(String.IsNullOrEmpty(value), Nothing, value)
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (5)
src\Compilers\VisualBasic\Portable\Scanner\CharacterInfo.vb (1)
329If String.IsNullOrEmpty(name) Then
src\ExpressionEvaluator\VisualBasic\Source\ResultProvider\VisualBasicFormatter.TypeNames.vb (1)
79If Not String.IsNullOrEmpty(nameOpt) Then
src\ExpressionEvaluator\VisualBasic\Source\ResultProvider\VisualBasicFormatter.Values.vb (3)
75Debug.Assert(Not String.IsNullOrEmpty(argument)) 76Debug.Assert(Not String.IsNullOrEmpty(type)) 151Debug.Assert(Not String.IsNullOrEmpty(type))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Diagnostics\DiagnosticAnalyzerTests.vb (2)
475If String.IsNullOrEmpty(title) Then 486If String.IsNullOrEmpty(title) Then
Diagnostics\DiagnosticTests.vb (1)
39Assert.False(String.IsNullOrEmpty(message))
SourceGeneration\GeneratorDriverTests.vb (1)
777If String.IsNullOrEmpty(x.Location) Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\PE\TypeForwarders.vb (1)
988Dim childName = If(String.IsNullOrEmpty(baseName), child.Name, baseName + "." + child.Name)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
67If(String.IsNullOrEmpty(assemblyName), GetUniqueName(), assemblyName),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
82If Not String.IsNullOrEmpty(name) AndAlso name <> token.ValueText Then 235If String.IsNullOrEmpty(symbol.Name) Then
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
536If Not String.IsNullOrEmpty(prefix) Then 540If Not String.IsNullOrEmpty(suffix) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
882If Not containsGlobalKeyword AndAlso Not String.IsNullOrEmpty(rootNamespace) Then
Microsoft.CodeAnalysis.Workspaces (47)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
173if (string.IsNullOrEmpty(text))
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
253private static readonly Predicate<string> s_isNotNullOrEmpty = s => !string.IsNullOrEmpty(s);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
95if (string.IsNullOrEmpty(typeName)) 319return string.IsNullOrEmpty(fullyQualifiedContainerName)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
239if (!string.IsNullOrEmpty(argumentName))
Rename\Renamer.cs (3)
50if (string.IsNullOrEmpty(newName)) 152Contract.ThrowIfTrue(string.IsNullOrEmpty(newName)); 197Contract.ThrowIfTrue(string.IsNullOrEmpty(newName));
Shared\Extensions\ILanguageMetadataExtensions.cs (1)
53if (!string.IsNullOrEmpty(language))
Shared\Extensions\ISymbolExtensions.cs (3)
229if (string.IsNullOrEmpty(xmlText)) 393if (string.IsNullOrEmpty(pathAttribute?.Value)) 634=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
SymbolSearch\ISymbolSearchService.cs (1)
28public bool IsDefault => string.IsNullOrEmpty(Name);
Workspace\CommandLineProject.cs (2)
151var absolutePath = Path.IsPathRooted(fileArg.Path) || string.IsNullOrEmpty(projectDirectory) 194if (string.IsNullOrEmpty(directory))
Workspace\Host\DocumentService\ISpanMappingService.cs (1)
72if (string.IsNullOrEmpty(filePath))
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
85if (Environment.GetEnvironmentVariable("DOTNET_ROOT") is string dotnetRoot && !string.IsNullOrEmpty(dotnetRoot))
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (4)
101if (string.IsNullOrEmpty(fullPath)) 249if (string.IsNullOrEmpty(fullPath)) 269if (string.IsNullOrEmpty(fullPath)) 386if (string.IsNullOrEmpty(fullPath))
Workspace\ProjectSystem\ProjectSystemProject.cs (4)
984if (string.IsNullOrEmpty(fileInfo.FilePath)) 1090if (string.IsNullOrEmpty(fullPath)) 1216if (string.IsNullOrEmpty(fullPath)) 1262if (string.IsNullOrEmpty(fullPath))
Workspace\Solution\ProjectState.cs (2)
424if (!string.IsNullOrEmpty(documentState.FilePath)) 503if (!string.IsNullOrEmpty(documentState.FilePath))
Workspace\Solution\SolutionState.cs (3)
1198if (string.IsNullOrEmpty(filePath)) 1275if (string.IsNullOrEmpty(filePath)) 1333if (string.IsNullOrEmpty(filePath))
Workspace\Workspace.cs (2)
1481if (!string.IsNullOrEmpty(p.OutputFilePath)) 1486if (!string.IsNullOrEmpty(p.OutputRefFilePath))
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
48if (!string.IsNullOrEmpty(categoryName))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (2)
29if (string.IsNullOrEmpty(name) || name.Any(char.IsWhiteSpace)) 46if (string.IsNullOrEmpty(value) || (addQuoteIfValueContainsWhitespace && value.Any(char.IsWhiteSpace)))
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
SolutionGeneration.cs (2)
258if (string.IsNullOrEmpty(OutputType)) 263if (string.IsNullOrEmpty(OutputPath))
WorkspaceTestBase.cs (1)
49if (!string.IsNullOrEmpty(subdirectory))
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
MEF\ExportProviderCache.cs (1)
261if (!string.IsNullOrEmpty(codeBasePath))
Workspaces\AbstractTestHostProject.cs (1)
31if (string.IsNullOrEmpty(outputFilePath))
Workspaces\TestWorkspace`1.cs (1)
103var fullMessage = string.IsNullOrEmpty(title)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Options\EditorConfigNamingStyleParserTests.cs (1)
464Assert.True(!string.IsNullOrEmpty(editorConfigString));
Remote\ServiceDescriptorTests.cs (1)
359Assert.False(string.IsNullOrEmpty(expectedName), $"Service name for '{serviceInterface.GetType()}' not available.");
SolutionTests\SolutionTests.cs (2)
5544projectPath = string.IsNullOrEmpty(projectPath) ? projectPath : Path.Combine(TempRoot.Root, projectPath); 5546sourcePath = string.IsNullOrEmpty(sourcePath) ? sourcePath : Path.Combine(TempRoot.Root, sourcePath);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
438if (!string.IsNullOrEmpty(argName))
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
260if (string.IsNullOrEmpty(methodName))
Microsoft.Data.Analysis (2)
DataFrame.IO.cs (2)
35if (!string.IsNullOrEmpty(columnValue)) 274return string.IsNullOrEmpty(columnNames[columnIndex]) ? defaultColumnName : columnNames[columnIndex];
Microsoft.Data.Analysis.Tests (2)
DataFrame.IOTests.cs (2)
1108Assert.True(string.IsNullOrEmpty(text[2])); 1657if (string.IsNullOrEmpty(item) || string.Equals(item, "null", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Arcade.Sdk (14)
src\ExtractNgenMethodList.cs (1)
79var outputFileNameSuffix = string.IsNullOrEmpty(AssemblyTargetFramework)
src\GenerateChecksums.cs (1)
28if (string.IsNullOrEmpty(destinationPath))
src\GenerateResxSource.cs (3)
77if (string.IsNullOrEmpty(ResourceName)) 83string resourceAccessName = string.IsNullOrEmpty(ResourceClassName) ? ResourceName : ResourceClassName; 264if (string.IsNullOrEmpty(ResourceClassName) || ResourceName == ResourceClassName)
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
64if (string.IsNullOrEmpty(url))
src\GetAssemblyFullName.cs (1)
29var assemblyPath = string.IsNullOrEmpty(PathMetadata) ? item.ItemSpec : item.GetMetadata(PathMetadata);
src\GroupItemsBy.cs (2)
69(string.IsNullOrEmpty(left) || left == right) ? right : string.IsNullOrEmpty(right) ? left : left + ";" + right);
src\InstallDotNetCore.cs (3)
129if (!string.IsNullOrEmpty(architecture)) 158if (!String.IsNullOrEmpty(e.Data)) 165if (!String.IsNullOrEmpty(e.Data))
src\SaveItems.cs (1)
47if (!string.IsNullOrEmpty(path))
src\SetCorFlags.cs (1)
58if (string.IsNullOrEmpty(value))
Microsoft.DotNet.ArcadeAzureIntegration (10)
AzureCliCredentialWithAzNoUpdateWrapper.cs (2)
45return !string.IsNullOrEmpty(str) ? str : null; 73string path = !string.IsNullOrEmpty(EnvPath) ? EnvPath : DefaultPath;
DefaultIdentityTokenCredential.cs (8)
125if (!string.IsNullOrEmpty(idToken) && 126!string.IsNullOrEmpty(tenantId) && 127!string.IsNullOrEmpty(servicePrincipalId)) 158if (!string.IsNullOrEmpty(systemAccessToken) && 159!string.IsNullOrEmpty(clientId) && 160!string.IsNullOrEmpty(tenantId) && 161!string.IsNullOrEmpty(serviceConnectionId) && 162!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SYSTEM_OIDCREQUESTURI")))
Microsoft.DotNet.ArcadeLogging (12)
MessageBuilder.cs (2)
48if (!string.IsNullOrEmpty(message)) 64if (string.IsNullOrEmpty(value))
PipelinesLogger.cs (10)
38Verbosity = !string.IsNullOrEmpty(verbosityString) && Enum.TryParse(verbosityString, out LoggerVerbosity verbosity) 53if (!string.IsNullOrEmpty(targetsNotLogged)) 94if (string.IsNullOrEmpty(telemetryCategory)) 142if (!string.IsNullOrEmpty(order)) 158if (!string.IsNullOrEmpty(progress)) 210if (string.IsNullOrEmpty(telemetryCategory)) 281if (!string.IsNullOrEmpty(_solutionDirectory) && 298if (string.IsNullOrEmpty(projectFile)) 309string targetNamesQualifier = string.IsNullOrEmpty(e.TargetNames) ? string.Empty : $" ({e.TargetNames})"; 332if (string.IsNullOrEmpty(paramString))
Microsoft.DotNet.Build.Manifest (20)
ArtifactModel.cs (2)
39if (!string.IsNullOrEmpty(val)) 56if (string.IsNullOrEmpty(val))
BlobArtifactModelFactory.cs (1)
36if (string.IsNullOrEmpty(path))
BuildIdentity.cs (9)
105if (string.IsNullOrEmpty(value)) 134if (string.IsNullOrEmpty(value)) 169if (string.IsNullOrEmpty(value)) 191if (string.IsNullOrEmpty(value)) 218if (string.IsNullOrEmpty(value)) 236if (!string.IsNullOrEmpty(ProductVersion)) 240if (!string.IsNullOrEmpty(Branch)) 244if (!string.IsNullOrEmpty(Commit)) 248if (!string.IsNullOrEmpty(BuildId))
BuildModelFactory.cs (2)
93if (string.IsNullOrEmpty(item.GetMetadata("Kind"))) 226if (!string.IsNullOrEmpty(parsedUri.UserInfo))
MSBuildListSplitter.cs (2)
13if (string.IsNullOrEmpty(input)) 38if (string.IsNullOrEmpty(key))
PackageArtifactModel.cs (1)
39if (!string.IsNullOrEmpty(val))
PdbArtifactModelFactory.cs (1)
34if (string.IsNullOrEmpty(path))
VersionIdentifier.cs (1)
226if (!string.IsNullOrEmpty(pathSegments[i]))
XElementParsingExtensions.cs (1)
16if (string.IsNullOrEmpty(value))
Microsoft.DotNet.Build.Manifest.Tests (3)
VersionIdentiferTests.cs (3)
72if (!string.IsNullOrEmpty(line)) 79string expectedVersion = string.IsNullOrEmpty(elements[1]) ? null : elements[1]; 80string nameWithoutVersions = string.IsNullOrEmpty(elements[2]) ? null : elements[2];
Microsoft.DotNet.Build.Tasks.Feed (59)
src\ArtifactUrlHelper.cs (2)
43if (string.IsNullOrEmpty(fileName)) 73if (string.IsNullOrEmpty(fileName))
src\AssetPublisherFactory.cs (2)
32if (!string.IsNullOrEmpty(feedConfig.Token)) 59ManagedIdentityClientId = string.IsNullOrEmpty(mi) ? null : mi
src\BlobFeedAction.cs (3)
51hasToken = !string.IsNullOrEmpty(m.Groups["token"].Value); 80if (string.IsNullOrEmpty(relativeBlobPath)) 87if (!string.IsNullOrEmpty(relativeBlobPath))
src\BlobUrlInfo.cs (1)
67if (!String.IsNullOrEmpty(uri.Query))
src\common\AzureConnectionStringBuildTask.cs (5)
31if (!string.IsNullOrEmpty(ConnectionString)) 33if (!(string.IsNullOrEmpty(AccountKey) && string.IsNullOrEmpty(AccountName))) 54else if (string.IsNullOrEmpty(AccountKey) || string.IsNullOrEmpty(AccountName))
src\common\UploadToAzure.cs (1)
92if (string.IsNullOrEmpty(relativeBlobPath))
src\CreateAzureDevOpsFeed.cs (2)
108string extraContentInfo = !string.IsNullOrEmpty(ContentIdentifier) ? $"-{ContentIdentifier}" : ""; 124if (string.IsNullOrEmpty(AzureDevOpsPersonalAccessToken))
src\GetEnvProxy.cs (1)
19if (string.IsNullOrEmpty(value))
src\model\SetupTargetFeedConfigV3.cs (3)
184if (feedType == FeedType.AzDoNugetFeed && string.IsNullOrEmpty(key)) 215if (string.IsNullOrEmpty(StableSymbolsFeed)) 243if (string.IsNullOrEmpty(StablePackagesFeed))
src\model\SetupTargetFeedConfigV4.cs (2)
157if (feedType == FeedType.AzDoNugetFeed && string.IsNullOrEmpty(key)) 188if (string.IsNullOrEmpty(StablePackagesFeed))
src\PublishArtifactsInManifest.cs (2)
343AkaMSClientCertificate = !string.IsNullOrEmpty(AkaMSClientCertificate) ? 392AkaMSClientCertificate = !string.IsNullOrEmpty(AkaMSClientCertificate) ?
src\PublishArtifactsInManifestBase.cs (16)
316Asset assetRecord = string.IsNullOrEmpty(assetVersion) ? 322string versionMsg = string.IsNullOrEmpty(assetVersion) ? string.Empty : $"and version {assetVersion}"; 453if (string.IsNullOrEmpty(symbolAsset.PipelineArtifactPath) || string.IsNullOrEmpty(symbolAsset.PipelineArtifactName)) 739if (string.IsNullOrEmpty(pdb.PipelineArtifactPath) || string.IsNullOrEmpty(pdb.PipelineArtifactName)) 1230if (string.IsNullOrEmpty(package.PipelineArtifactPath) || string.IsNullOrEmpty(package.PipelineArtifactName)) 1620if (string.IsNullOrEmpty(asset.PipelineArtifactPath) || string.IsNullOrEmpty(asset.PipelineArtifactName)) 1839if (string.IsNullOrEmpty(value)) 1853if (string.IsNullOrEmpty(BlobAssetsBasePath)) 1858if (string.IsNullOrEmpty(PackageAssetsBasePath)) 1868if (string.IsNullOrEmpty(MaestroApiEndpoint)) 1873if (UseStreamingPublishing && string.IsNullOrEmpty(AzdoApiToken)) 1878if (UseStreamingPublishing && string.IsNullOrEmpty(ArtifactsBasePath))
src\PublishArtifactsInManifestV3.cs (1)
226return (AllowFeedOverrides && !string.IsNullOrEmpty(feedOverride)) ? feedOverride : feed;
src\PublishArtifactsInManifestV4.cs (1)
221return (AllowFeedOverrides && !string.IsNullOrEmpty(feedOverride)) ? feedOverride : feed;
src\PublishBuildToMaestro.cs (2)
186if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("BUILD_BUILDID"))) 410if (string.IsNullOrEmpty(version))
src\PublishSignedAssets.cs (1)
60if (string.IsNullOrEmpty(AzureDevOpsPersonalAccessToken))
src\PushToBuildStorage.cs (14)
208if (string.IsNullOrEmpty(AssetsLocalStorageDir) || 209string.IsNullOrEmpty(ShippingPackagesLocalStorageDir) || 210string.IsNullOrEmpty(NonShippingPackagesLocalStorageDir) || 211string.IsNullOrEmpty(PdbArtifactsLocalStorageDir) || 212string.IsNullOrEmpty(AssetManifestsLocalStorageDir)) 228if (!string.IsNullOrEmpty(FutureArtifactName) || 229!string.IsNullOrEmpty(FutureArtifactPublishBasePath)) 236if (string.IsNullOrEmpty(FutureArtifactName) != 237string.IsNullOrEmpty(FutureArtifactPublishBasePath)) 281!string.IsNullOrEmpty(ManifestRepoName) ? ManifestRepoName : ManifestRepoUri, 321if (string.IsNullOrEmpty(PdbArtifactsLocalStorageDir) && buildModel.Artifacts.Pdbs.Count > 0) 379if (_publishingVersion == PublishingInfraVersion.V4 && !string.IsNullOrEmpty(FutureArtifactPublishBasePath)) 433string.IsNullOrEmpty(relativeBlobPath) ? filename : relativeBlobPath); 442string.IsNullOrEmpty(relativePdbPath) ? filename : relativePdbPath);
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
GeneralTests.cs (1)
119if (!string.IsNullOrEmpty(feedResponseContentName))
Microsoft.DotNet.Build.Tasks.Installers (6)
src\CreateControlFile.cs (1)
58if (!string.IsNullOrEmpty(version))
src\GenerateCurrentVersion.cs (3)
53if (string.IsNullOrEmpty(OfficialBuildId)) 87if (string.IsNullOrEmpty(GeneratedVersion)) 120if (string.IsNullOrEmpty(comparisonDate))
src\RpmBuilder.cs (1)
144if (string.IsNullOrEmpty(version))
src\StabilizeWixFileId.cs (1)
61if (string.IsNullOrEmpty(replacement))
Microsoft.DotNet.Build.Tasks.Packaging (75)
ApplyMetaPackages.cs (1)
70if (string.IsNullOrEmpty(tfmSpecificSupression))
ApplyPreReleaseSuffix.cs (2)
58if (String.IsNullOrEmpty(PreReleaseSuffix)) 156if (!string.IsNullOrEmpty(suffix) && suffix[0] != '-')
CreateTrimDependencyGroups.cs (1)
200if (string.IsNullOrEmpty(versionString))
Extensions.cs (8)
23return String.IsNullOrEmpty(metadataValue) ? null : metadataValue; 41if (!string.IsNullOrEmpty(metadataValue)) 53if (!string.IsNullOrEmpty(metadataValue)) 64if (string.IsNullOrEmpty(packageDirectoryName)) 78if (!string.IsNullOrEmpty(metadataValue)) 89if (!string.IsNullOrEmpty(metadataValue)) 99if (!string.IsNullOrEmpty(metadataValue)) 101return metadataValue.Split(';').Where(v => !String.IsNullOrEmpty(v.Trim())).ToArray();
FrameworkUtilities.cs (1)
44if (String.IsNullOrEmpty(versionString))
GenerateNuSpec.cs (9)
120if (!String.IsNullOrEmpty(directory) && !Directory.Exists(directory)) 153if (!string.IsNullOrEmpty(PackageLicenseExpression) && string.IsNullOrEmpty(LicenseUrl)) 179if (!string.IsNullOrEmpty(InputFileName)) 204if (!string.IsNullOrEmpty(IconUrl)) 208if (!string.IsNullOrEmpty(Icon)) 215if (!string.IsNullOrEmpty(PackageLicenseExpression)) 225else if (!string.IsNullOrEmpty(LicenseUrl)) 234if (!string.IsNullOrEmpty(ProjectUrl))
GeneratePackageReport.cs (2)
106if (runtimeIds.All(rid => !String.IsNullOrEmpty(rid))) 121string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}";
GenerateRuntimeDependencies.cs (8)
55if (String.IsNullOrEmpty(PackageId)) 80if (String.IsNullOrEmpty(alias)) 96if (String.IsNullOrEmpty(targetRuntimeId)) 132if (!String.IsNullOrEmpty(sourceRuntimeFilePath)) 139if (!String.IsNullOrEmpty(destRuntimeFileDir) && !Directory.Exists(destRuntimeFileDir)) 154if (!String.IsNullOrEmpty(targetPackageAlias) && !packageAliases.TryGetValue(targetPackageAlias, out targetPackageId)) 163if (String.IsNullOrEmpty(targetPackageId)) 177if (String.IsNullOrEmpty(dependencyVersionString))
GetApplicableAssetsFromPackageReports.cs (1)
64string targetString = String.IsNullOrEmpty(TargetRuntime) ? fx.ToString() : $"{fx}/{TargetRuntime}";
GetApplicableAssetsFromPackages.cs (2)
137if (!string.IsNullOrEmpty(TargetRuntime) && RuntimeAssets == null) 214if (!String.IsNullOrEmpty(packageItem.TargetPath))
GetInboxFrameworks.cs (1)
49if (String.IsNullOrEmpty(AssemblyName))
GetLayoutFiles.cs (1)
50return String.IsNullOrEmpty(rids) ? new HashSet<string>() : new HashSet<string>(rids.Split(';'));
GetPackageDescription.cs (3)
47if (String.IsNullOrEmpty(PackageId)) 78if (String.IsNullOrEmpty(description)) 119if (String.IsNullOrEmpty(metadata.Description))
GetPackageDestination.cs (4)
83var packageTargetFrameworks = PackageTargetFrameworks.NullAsEmpty().Where(p => !String.IsNullOrEmpty(p.ItemSpec)); 138if (!String.IsNullOrEmpty(runtime) && !IsReferenceAssembly) 152if (!String.IsNullOrEmpty(runtime) && PackageDesktopAsLib) 168if (!String.IsNullOrEmpty(framework))
GetPackageVersion.cs (1)
36var versionsToConsider = Files.Where(f => !String.IsNullOrEmpty(f.GetMetadata("AssemblyVersion")))
GetRuntimeJsonValues.cs (1)
31if (string.IsNullOrEmpty(JsonFilename) || !File.Exists(JsonFilename))
GetRuntimeTargets.cs (1)
30if (string.IsNullOrEmpty(JsonFilename) || !File.Exists(JsonFilename))
GetSupportedPackagesFromPackageReports.cs (1)
47if (!String.IsNullOrEmpty(ridList))
HarvestPackage.cs (6)
214string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}"; 325if (!String.IsNullOrEmpty(remappedTargetPath)) 333if (!String.IsNullOrEmpty(additionalTargetPaths)) 337if (!String.IsNullOrEmpty(additionalTargetPath)) 543!String.IsNullOrEmpty(probePath); 560!String.IsNullOrEmpty(probePath);
NuGetAssetResolver.cs (2)
28if (!string.IsNullOrEmpty(runtimeFile)) 167if (!String.IsNullOrEmpty(runtimeFile))
NuGetPack.cs (7)
143if (String.IsNullOrEmpty(OutputDirectory)) 198string baseDirectoryPath = (string.IsNullOrEmpty(BaseDirectory)) ? Path.GetDirectoryName(nuspecPath) : BaseDirectory; 213if (String.IsNullOrEmpty(id)) 220if (!string.IsNullOrEmpty(PackageVersion)) 235if (String.IsNullOrEmpty(version)) 243if (isSymbolsPackage && !string.IsNullOrEmpty(SymbolPackageOutputDirectory)) 259string baseDirectoryPath = (string.IsNullOrEmpty(BaseDirectory)) ? Path.GetDirectoryName(nuspecPath) : BaseDirectory;
PackageIndex.cs (2)
79if (!String.IsNullOrEmpty(directory) && !Directory.Exists(directory)) 671if (!String.IsNullOrEmpty(framework.Profile))
SplitDependenciesBySupport.cs (2)
70if (!String.IsNullOrEmpty(fx)) 80if (!String.IsNullOrEmpty(minNSFx))
SplitReferences.cs (1)
70if (!string.IsNullOrEmpty(TargetFramework) && index != null && index.IsInbox(referenceName, targetFx, referenceVersion))
UpdatePackageIndex.cs (1)
198if (!String.IsNullOrEmpty(PreRelease))
ValidateFrameworkPackage.cs (2)
88var targetKey = string.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}"; 97return string.IsNullOrEmpty(Runtime) ? target.CompileAssets : target.RuntimeAssets;
ValidateHarvestVersionIsLatestForRelease.cs (3)
77if (!string.IsNullOrEmpty(compileAsset.HarvestedFrom)) 85if (!string.IsNullOrEmpty(runtimeAsset.HarvestedFrom)) 93if (!string.IsNullOrEmpty(nativeAsset.HarvestedFrom))
ValidatePackage.cs (1)
193string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}";
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
GenerateNuSpecAndPackTests.cs (1)
68if (!String.IsNullOrEmpty(targetFramework))
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
ChooseBestP2PTargetFrameworkTask.cs (1)
85if (string.IsNullOrEmpty(referencedProjectFrameworkString))
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
30if (string.IsNullOrEmpty(key))
Microsoft.DotNet.Build.Tasks.VisualStudio (5)
OptProf\FindLatestDrop.cs (1)
72if (string.IsNullOrEmpty((string)item["Name"]))
OptProf\GenerateTrainingPropsFile.cs (2)
43bool hasDropName = !string.IsNullOrEmpty(ProductDropName); 51var outputFileNameNoExt = string.IsNullOrEmpty(RepositoryName) ? "ProfilingInputs" : RepositoryName.Replace('/', '.');
Vsix\GetPkgDefAssemblyDependencyGuid.cs (2)
45var value = string.IsNullOrEmpty(InputMetadata) ? item.ItemSpec : item.GetMetadata(InputMetadata); 46if (string.IsNullOrEmpty(value))
Microsoft.DotNet.Build.Tasks.Workloads (8)
Swix\MsiSwixProject.wix.cs (4)
100relativePath += !string.IsNullOrEmpty(Chip) ? $",chip={Chip}" : string.Empty; 101relativePath += !string.IsNullOrEmpty(ProductArch) ? $",productarch={ProductArch}" : string.Empty; 102relativePath += !string.IsNullOrEmpty(Chip) ? $",machinearch={MachineArch}" : string.Empty; 133if (!string.IsNullOrEmpty(MachineArch))
Swix\SwixComponent.cs (3)
171resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Title)) ? resourceItem.GetMetadata(Metadata.Title) : workload.Description ?? throw new Exception(Strings.ComponentTitleCannotBeNull), 172resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Description)) ? resourceItem.GetMetadata(Metadata.Description) : workload.Description ?? throw new Exception(Strings.ComponentDescriptionCannotBeNull), 174resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Category)) ? resourceItem.GetMetadata(Metadata.Category) : DefaultValues.ComponentCategory ?? throw new Exception(Strings.ComponentCategoryCannotBeNull),
WorkloadPackageBase.cs (1)
282if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Split('.').Any(s => string.Equals("ci", s) || string.Equals("dev", s)))
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
125if (String.IsNullOrEmpty(altMsg))
Microsoft.DotNet.Deployment.Tasks.Links (6)
Microsoft.DotNet.GenAPI (2)
GenAPITask.cs (2)
264if (!string.IsNullOrEmpty(headerFile)) 288if (Directory.Exists(outFilePath) && !string.IsNullOrEmpty(filename))
Microsoft.DotNet.GenFacades (10)
GenPartialFacadeSourceGenerator.cs (1)
61return defineConstants?.Split(';', ',').Where(t => !string.IsNullOrEmpty(t)).ToArray();
NotSupportedAssemblyGenerator.cs (2)
47if (!string.IsNullOrEmpty(ApiExclusionListPath) && File.Exists(ApiExclusionListPath)) 74if (!String.IsNullOrEmpty(LangVersion) && !LanguageVersionFacts.TryParse(LangVersion, out languageVersion))
SourceGenerator.cs (1)
109if (!string.IsNullOrEmpty(alias))
src\Common\Internal\AssemblyResolver.cs (2)
44if (!String.IsNullOrEmpty(assemblyPath)) 56if (!String.IsNullOrEmpty(assemblyPath))
TypeParser.cs (4)
21if (!string.IsNullOrEmpty(langVersion) && !LanguageVersionFacts.TryParse(langVersion, out languageVersion)) 99return string.IsNullOrEmpty(nested) ? withoutNested : withoutNested + "." + nested; 102return GetFullyQualifiedName((BaseTypeDeclarationSyntax)node.Parent, string.IsNullOrEmpty(nested) ? typeName : typeName + "." + nested); 139if (string.IsNullOrEmpty(sourceFile))
Microsoft.DotNet.Git.IssueManager (6)
Helpers\RepositoryHelper.cs (4)
23if (string.IsNullOrEmpty(gitHubPersonalAccessToken)) 31if (string.IsNullOrEmpty(azureDevOpsPersonalAccessToken)) 55if (string.IsNullOrEmpty(gitHubPersonalAccessToken)) 86if (string.IsNullOrEmpty(gitHubPersonalAccessToken))
IssueManager.cs (2)
33if (string.IsNullOrEmpty(repositoryUrl)) 38if (string.IsNullOrEmpty(commit))
Microsoft.DotNet.Helix.Client (196)
generated-code\Aggregate.cs (51)
156if (string.IsNullOrEmpty(workitem)) 170if (!string.IsNullOrEmpty(creator)) 174if (!string.IsNullOrEmpty(source)) 178if (!string.IsNullOrEmpty(type)) 182if (!string.IsNullOrEmpty(build)) 186if (!string.IsNullOrEmpty(name)) 190if (!string.IsNullOrEmpty(workitem)) 366if (string.IsNullOrEmpty(buildNumber)) 404if (!string.IsNullOrEmpty(buildNumber)) 489if (!string.IsNullOrEmpty(creator)) 493if (!string.IsNullOrEmpty(source)) 497if (!string.IsNullOrEmpty(type)) 501if (!string.IsNullOrEmpty(build)) 505if (!string.IsNullOrEmpty(name)) 600if (!string.IsNullOrEmpty(creator)) 604if (!string.IsNullOrEmpty(source)) 608if (!string.IsNullOrEmpty(type)) 612if (!string.IsNullOrEmpty(build)) 616if (!string.IsNullOrEmpty(name)) 694if (string.IsNullOrEmpty(analysisName)) 699if (string.IsNullOrEmpty(analysisType)) 704if (string.IsNullOrEmpty(build)) 714if (string.IsNullOrEmpty(source)) 719if (string.IsNullOrEmpty(type)) 724if (string.IsNullOrEmpty(workitem)) 738if (!string.IsNullOrEmpty(source)) 742if (!string.IsNullOrEmpty(type)) 746if (!string.IsNullOrEmpty(build)) 750if (!string.IsNullOrEmpty(workitem)) 754if (!string.IsNullOrEmpty(analysisType)) 758if (!string.IsNullOrEmpty(analysisName)) 843if (!string.IsNullOrEmpty(creator)) 847if (!string.IsNullOrEmpty(source)) 851if (!string.IsNullOrEmpty(type)) 855if (!string.IsNullOrEmpty(build)) 859if (!string.IsNullOrEmpty(name)) 924if (string.IsNullOrEmpty(id)) 1020if (!string.IsNullOrEmpty(creator)) 1024if (!string.IsNullOrEmpty(source)) 1028if (!string.IsNullOrEmpty(type)) 1032if (!string.IsNullOrEmpty(build)) 1036if (!string.IsNullOrEmpty(name)) 1121if (string.IsNullOrEmpty(analysisName)) 1126if (string.IsNullOrEmpty(analysisType)) 1131if (string.IsNullOrEmpty(source)) 1136if (string.IsNullOrEmpty(type)) 1141if (string.IsNullOrEmpty(workitem)) 1155if (!string.IsNullOrEmpty(source)) 1159if (!string.IsNullOrEmpty(type)) 1163if (!string.IsNullOrEmpty(workitem)) 1167if (!string.IsNullOrEmpty(analysisName))
generated-code\Analysis.cs (12)
62if (string.IsNullOrEmpty(analysisName)) 67if (string.IsNullOrEmpty(analysisType)) 77if (string.IsNullOrEmpty(job)) 82if (string.IsNullOrEmpty(workitem)) 96if (!string.IsNullOrEmpty(workitem)) 100if (!string.IsNullOrEmpty(analysisName)) 165if (string.IsNullOrEmpty(analysisName)) 170if (string.IsNullOrEmpty(analysisType)) 175if (string.IsNullOrEmpty(job)) 180if (string.IsNullOrEmpty(workitem)) 194if (!string.IsNullOrEmpty(workitem)) 198if (!string.IsNullOrEmpty(analysisName))
generated-code\Information.cs (1)
57if (string.IsNullOrEmpty(queueId))
generated-code\Job.cs (14)
101if (string.IsNullOrEmpty(idempotencyKey)) 123if (!string.IsNullOrEmpty(idempotencyKey)) 206if (!string.IsNullOrEmpty(creator)) 210if (!string.IsNullOrEmpty(source)) 214if (!string.IsNullOrEmpty(type)) 218if (!string.IsNullOrEmpty(build)) 222if (!string.IsNullOrEmpty(name)) 291if (string.IsNullOrEmpty(job)) 366if (string.IsNullOrEmpty(job)) 441if (string.IsNullOrEmpty(job)) 516if (string.IsNullOrEmpty(job)) 592if (string.IsNullOrEmpty(job)) 606if (!string.IsNullOrEmpty(jobCancellationToken)) 662if (string.IsNullOrEmpty(job))
generated-code\LogSearch.cs (4)
77if (!string.IsNullOrEmpty(repository)) 81if (!string.IsNullOrEmpty(searchString)) 167if (!string.IsNullOrEmpty(repository)) 171if (!string.IsNullOrEmpty(searchString))
generated-code\Machine.cs (4)
61if (string.IsNullOrEmpty(machineName)) 66if (string.IsNullOrEmpty(queueId)) 139if (string.IsNullOrEmpty(machineName)) 144if (string.IsNullOrEmpty(queueId))
generated-code\Models\AggregateAnalysisDetail.cs (2)
41if (string.IsNullOrEmpty(Job)) 45if (string.IsNullOrEmpty(WorkItem))
generated-code\Models\AggregateAnalysisSummary.cs (2)
33if (string.IsNullOrEmpty(Type)) 37if (string.IsNullOrEmpty(Name))
generated-code\Models\AnalysisCount.cs (1)
29if (string.IsNullOrEmpty(Name))
generated-code\Models\BuildAggregation.cs (1)
29if (string.IsNullOrEmpty(BuildNumber))
generated-code\Models\BuildHistoryItem.cs (1)
33if (string.IsNullOrEmpty(BuildNumber))
generated-code\Models\ContainerCreationRequest.cs (2)
33if (string.IsNullOrEmpty(DesiredName)) 37if (string.IsNullOrEmpty(TargetQueue))
generated-code\Models\ContainerExtensionRequest.cs (3)
41if (string.IsNullOrEmpty(ContainerName)) 45if (string.IsNullOrEmpty(StorageAccountName)) 49if (string.IsNullOrEmpty(Region))
generated-code\Models\ContainerInformation.cs (4)
55if (string.IsNullOrEmpty(Creator)) 59if (string.IsNullOrEmpty(ContainerName)) 63if (string.IsNullOrEmpty(StorageAccountName)) 67if (string.IsNullOrEmpty(Region))
generated-code\Models\DetailedVMScalingHistory.cs (2)
43if (string.IsNullOrEmpty(ScaleSetName)) 47if (string.IsNullOrEmpty(VMState))
generated-code\Models\InvestigationAnalysis.cs (3)
37if (string.IsNullOrEmpty(Job)) 41if (string.IsNullOrEmpty(WorkItem)) 45if (string.IsNullOrEmpty(Name))
generated-code\Models\JobCreationRequest.cs (3)
63if (string.IsNullOrEmpty(Type)) 67if (string.IsNullOrEmpty(ListUri)) 71if (string.IsNullOrEmpty(QueueId))
generated-code\Models\JobCreationResult.cs (3)
40if (string.IsNullOrEmpty(Name)) 44if (string.IsNullOrEmpty(SummaryUrl)) 48if (string.IsNullOrEmpty(ResultsUri))
generated-code\Models\JobDetails.cs (6)
73if (string.IsNullOrEmpty(JobList)) 81if (string.IsNullOrEmpty(Name)) 85if (string.IsNullOrEmpty(WaitUrl)) 89if (string.IsNullOrEmpty(Source)) 93if (string.IsNullOrEmpty(Type)) 97if (string.IsNullOrEmpty(Build))
generated-code\Models\JobInfo.cs (4)
46if (string.IsNullOrEmpty(QueueId)) 50if (string.IsNullOrEmpty(Source)) 54if (string.IsNullOrEmpty(Type)) 58if (string.IsNullOrEmpty(Build))
generated-code\Models\JobSummary.cs (6)
69if (string.IsNullOrEmpty(DetailsUrl)) 73if (string.IsNullOrEmpty(Name)) 77if (string.IsNullOrEmpty(WaitUrl)) 81if (string.IsNullOrEmpty(Source)) 85if (string.IsNullOrEmpty(Type)) 89if (string.IsNullOrEmpty(Build))
generated-code\Models\JobWorkItemCounts.cs (1)
41if (string.IsNullOrEmpty(ListUrl))
generated-code\Models\WorkItemDetails.cs (5)
80if (string.IsNullOrEmpty(Id)) 84if (string.IsNullOrEmpty(MachineName)) 88if (string.IsNullOrEmpty(Job)) 92if (string.IsNullOrEmpty(Name)) 96if (string.IsNullOrEmpty(State))
generated-code\Models\WorkItemError.cs (2)
32if (string.IsNullOrEmpty(Id)) 36if (string.IsNullOrEmpty(Message))
generated-code\Models\WorkItemFile.cs (2)
29if (string.IsNullOrEmpty(FileName)) 33if (string.IsNullOrEmpty(Uri))
generated-code\Models\WorkItemLog.cs (2)
29if (string.IsNullOrEmpty(Module)) 33if (string.IsNullOrEmpty(Uri))
generated-code\Models\WorkItemSummary.cs (4)
37if (string.IsNullOrEmpty(DetailsUrl)) 41if (string.IsNullOrEmpty(Job)) 45if (string.IsNullOrEmpty(Name)) 49if (string.IsNullOrEmpty(State))
generated-code\ScaleSets.cs (1)
66if (!string.IsNullOrEmpty(scaleSet))
generated-code\Telemetry.cs (39)
190if (string.IsNullOrEmpty(buildUri)) 195if (string.IsNullOrEmpty(xHelixJobToken)) 209if (!string.IsNullOrEmpty(buildUri)) 221if (!string.IsNullOrEmpty(xHelixJobToken)) 283if (string.IsNullOrEmpty(id)) 288if (string.IsNullOrEmpty(xHelixJobToken)) 310if (!string.IsNullOrEmpty(logUri)) 322if (!string.IsNullOrEmpty(xHelixJobToken)) 372if (string.IsNullOrEmpty(friendlyName)) 377if (string.IsNullOrEmpty(xHelixJobToken)) 391if (!string.IsNullOrEmpty(friendlyName)) 403if (!string.IsNullOrEmpty(xHelixJobToken)) 465if (string.IsNullOrEmpty(id)) 470if (string.IsNullOrEmpty(resultsXmlUri)) 475if (string.IsNullOrEmpty(xHelixJobToken)) 493if (!string.IsNullOrEmpty(resultsXmlUri)) 497if (!string.IsNullOrEmpty(logUri)) 509if (!string.IsNullOrEmpty(xHelixJobToken)) 562if (string.IsNullOrEmpty(eid)) 567if (string.IsNullOrEmpty(id)) 572if (string.IsNullOrEmpty(xHelixJobToken)) 586if (!string.IsNullOrEmpty(eid)) 590if (!string.IsNullOrEmpty(message)) 594if (!string.IsNullOrEmpty(logUri)) 606if (!string.IsNullOrEmpty(xHelixJobToken)) 659if (string.IsNullOrEmpty(eid)) 664if (string.IsNullOrEmpty(id)) 669if (string.IsNullOrEmpty(xHelixJobToken)) 683if (!string.IsNullOrEmpty(eid)) 687if (!string.IsNullOrEmpty(message)) 691if (!string.IsNullOrEmpty(logUri)) 703if (!string.IsNullOrEmpty(xHelixJobToken)) 756if (string.IsNullOrEmpty(id)) 761if (string.IsNullOrEmpty(logUri)) 766if (string.IsNullOrEmpty(xHelixJobToken)) 780if (!string.IsNullOrEmpty(logUri)) 784if (!string.IsNullOrEmpty(format)) 788if (!string.IsNullOrEmpty(module)) 800if (!string.IsNullOrEmpty(xHelixJobToken))
generated-code\WorkItem.cs (10)
76if (string.IsNullOrEmpty(file)) 81if (string.IsNullOrEmpty(id)) 86if (string.IsNullOrEmpty(job)) 162if (string.IsNullOrEmpty(id)) 167if (string.IsNullOrEmpty(job)) 247if (string.IsNullOrEmpty(id)) 252if (string.IsNullOrEmpty(job)) 322if (string.IsNullOrEmpty(job)) 398if (string.IsNullOrEmpty(id)) 403if (string.IsNullOrEmpty(job))
Job.cs (1)
15if (string.IsNullOrEmpty(jobCorrelationId)) throw new ArgumentNullException(nameof(jobCorrelationId));
Microsoft.DotNet.Helix.JobSender (5)
JobDefinition.cs (4)
150if (string.IsNullOrEmpty(StorageAccountConnectionString)) 205if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("BUILD_REPOSITORY_NAME")) && !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("BUILD_SOURCEBRANCH"))) 230if (string.IsNullOrEmpty(Source))
Payloads\DirectoryPayload.cs (1)
64if (!string.IsNullOrEmpty(ArchiveEntryPrefix))
Microsoft.DotNet.Helix.Sdk (54)
AzureDevOpsTask.cs (2)
23private bool InAzurePipeline => !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("BUILD_BUILDNUMBER")); 28if (string.IsNullOrEmpty(result))
CancelHelixJob.cs (1)
48else if (!string.IsNullOrEmpty(AccessToken))
CheckAzurePipelinesTestResults.cs (3)
35if (!string.IsNullOrEmpty(EnableFlakyTestSupport)) 142if (helixData != null && !string.IsNullOrEmpty(jobId) && !string.IsNullOrEmpty(workItemName))
CheckHelixJobStatus.cs (1)
34string accessTokenSuffix = string.IsNullOrEmpty(AccessToken) ? "" : "?access_token={Get this from helix.dot.net}";
CreateXHarnessAndroidWorkItems.cs (4)
100if (string.IsNullOrEmpty(androidPackageName)) 143var passthroughArgs = !string.IsNullOrEmpty(AppArguments) ? $" -- {AppArguments}" : string.Empty; 186(string.IsNullOrEmpty(deviceOutputPath) ? string.Empty : $"{dash}device_output_path \"{deviceOutputPath}\" ") + 187(string.IsNullOrEmpty(androidInstrumentationName) ? string.Empty : $"{dash}instrumentation \"{androidInstrumentationName}\" ");
CreateXHarnessAppleWorkItems.cs (4)
119if (isAlreadyArchived && appBundleItem.TryGetMetadata(MetadataNames.AppBundlePath, out string metadata) && !string.IsNullOrEmpty(metadata)) 216(!string.IsNullOrEmpty(AppArguments) ? "-- " + AppArguments : string.Empty); 237(!string.IsNullOrEmpty(XcodeVersion) ? $" --xcode-version \"{XcodeVersion}\"" : string.Empty) + 238(!string.IsNullOrEmpty(AppArguments) ? $" --app-arguments \"{AppArguments}\"" : string.Empty);
CreateXUnitWorkItems.cs (2)
117if (string.IsNullOrEmpty(DotNetCliVersion) || 140if (!string.IsNullOrEmpty(XUnitWorkItemTimeout))
DownloadFromResultsContainer.cs (3)
35if (string.IsNullOrEmpty(OutputDirectory)) 40if (string.IsNullOrEmpty(JobId)) 111if (string.IsNullOrEmpty(resultsUri.ResultsUriRSAS))
FindDotNetCliPackage.cs (2)
148if (!string.IsNullOrEmpty(sasToken) && !sasToken.StartsWith("?")) 233if (!string.IsNullOrEmpty(sasToken) && !sasToken.StartsWith("?"))
GetHelixWorkItems.cs (1)
101if (!string.IsNullOrEmpty(AccessToken))
HelixTask.cs (1)
40if (string.IsNullOrEmpty(AccessToken))
InstallDotNetTool.cs (6)
134if (!string.IsNullOrEmpty(TargetFramework)) 140if (!string.IsNullOrEmpty(TargetArchitecture)) 146if (!string.IsNullOrEmpty(Source)) 159var executable = string.IsNullOrEmpty(DotnetPath) ? "dotnet" : DotnetPath; 164if (!string.IsNullOrEmpty(WorkingDirectory)) 175Environment.NewLine + (string.IsNullOrEmpty(result.StdErr) ? result.StdOut : result.StdErr));
ProvisioningProfileProvider.cs (2)
97if (string.IsNullOrEmpty(_tmpDir)) 103if (string.IsNullOrEmpty(_profileUrlTemplate))
SendHelixJob.cs (14)
155if (string.IsNullOrEmpty(AccessToken) && string.IsNullOrEmpty(Creator)) 161if (!string.IsNullOrEmpty(AccessToken) && !string.IsNullOrEmpty(Creator)) 181if (!string.IsNullOrEmpty(Creator)) 272if (string.IsNullOrEmpty(value)) 358if (!string.IsNullOrEmpty(payloadUri)) 363else if (!string.IsNullOrEmpty(payloadDirectory)) 368else if (!string.IsNullOrEmpty(payloadArchive)) 381if (!string.IsNullOrEmpty(timeoutString)) 461if (!string.IsNullOrEmpty(part)) 485if (!string.IsNullOrEmpty(part)) 498if (!string.IsNullOrEmpty(uri)) 502if (!string.IsNullOrEmpty(destination))
src\Common\Internal\AssemblyResolver.cs (2)
44if (!String.IsNullOrEmpty(assemblyPath)) 56if (!String.IsNullOrEmpty(assemblyPath))
TaskItemExtensions.cs (2)
14return !string.IsNullOrEmpty(value); 20if (string.IsNullOrEmpty(value))
WaitForHelixJobCompletion.cs (1)
82if (string.IsNullOrEmpty(helixJobCancellationToken))
XharnessTaskBase.cs (3)
58if (string.IsNullOrEmpty(customCommands)) 82else if (!string.IsNullOrEmpty(testTimeoutProp)) 188if (item.TryGetMetadata(pathMetadataName, out string appPathMetadata) && !string.IsNullOrEmpty(appPathMetadata))
Microsoft.DotNet.Helix.Sdk.Tests (1)
HelpersTests.cs (1)
52if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DOCKER_ENTRYPOINT")))
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
65Debug.Assert(!string.IsNullOrEmpty(symbolToolPath) && (File.Exists(symbolToolPath) || options.IsDryRun));
Microsoft.DotNet.MacOsPkg.Core (14)
ExecuteHelper.cs (1)
14if (string.IsNullOrEmpty(command))
MacOsPkgCore.cs (5)
13if (string.IsNullOrEmpty(srcPath)) 45if (string.IsNullOrEmpty(srcPath)) 50if (string.IsNullOrEmpty(dstPath)) 90if (string.IsNullOrEmpty(srcPath)) 95if (string.IsNullOrEmpty(dstPath))
Package.cs (7)
19if (!string.IsNullOrEmpty(distribution)) 26if (!string.IsNullOrEmpty(packageInfo)) 38if (!string.IsNullOrEmpty(distribution)) 45if (!string.IsNullOrEmpty(packageInfo)) 126if (!string.IsNullOrEmpty(resources)) 132if (!string.IsNullOrEmpty(scripts)) 167if (!string.IsNullOrEmpty(script))
Utilities.cs (1)
38if (!string.IsNullOrEmpty(parent))
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\UpdatePackageVersionTask.cs (1)
55if (string.IsNullOrEmpty(VersionKind))
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
264if (string.IsNullOrEmpty(message))
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiTestBase.cs (1)
111Assert.True(string.IsNullOrEmpty(_error.ToString()), $"Threw error: {_error}");
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Microsoft.DotNet.PackageTesting (3)
GetCompatiblePackageTargetFrameworks.cs (1)
76if (!string.IsNullOrEmpty(minDotnetTargetFramework) && frameworksToTest.Any(t => t.Framework == ".NETStandard"))
VerifyClosure.cs (2)
66if (!String.IsNullOrEmpty(DependencyGraphFilePath)) 137if (!string.IsNullOrEmpty(versionString))
Microsoft.DotNet.RemoteExecutor (2)
RemoteExecutor.cs (2)
91static string GetDirectoryName(string path) => string.IsNullOrEmpty(path) ? string.Empty : IOPath.GetDirectoryName(path); 508if (!string.IsNullOrEmpty(options.RollForward))
Microsoft.DotNet.SharedFramework.Sdk (13)
src\Common\Internal\AssemblyResolver.cs (2)
44if (!String.IsNullOrEmpty(assemblyPath)) 56if (!String.IsNullOrEmpty(assemblyPath))
src\CreateFrameworkListFile.cs (2)
219if (!string.IsNullOrEmpty(profile)) 226if (!string.IsNullOrEmpty(referencedByDefault))
src\GeneratePlatformManifestEntriesFromTemplate.cs (4)
62assemblyVersion = !string.IsNullOrEmpty(localAssemblyVersionFallback) ? localAssemblyVersionFallback : FallbackAssemblyVersion; 71fileVersion = !string.IsNullOrEmpty(localFileVersionFallback) ? localFileVersionFallback : FallbackFileVersion; 86if (string.IsNullOrEmpty(entry.AssemblyVersion) && !entry.IsNative) 91if (string.IsNullOrEmpty(entry.FileVersion))
src\GenerateSharedFrameworkDepsFile.cs (3)
57if (!string.IsNullOrEmpty(file.GetMetadata("GeneratedBuildFile"))) 66if (!string.IsNullOrEmpty(cultureMaybe)) 113var depsFileName = string.IsNullOrEmpty(SharedFrameworkDepsNameOverride) ? $"{SharedFrameworkName}.deps.json" : $"{SharedFrameworkDepsNameOverride}.deps.json";
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
66if (!String.IsNullOrEmpty(DependencyGraphFilePath)) 137if (!string.IsNullOrEmpty(versionString))
Microsoft.DotNet.SignCheckLibrary (33)
Interop\PortableExecutable\ImageCor20Header.cs (1)
48if (String.IsNullOrEmpty(path))
Interop\PortableExecutable\ImageDosHeader.cs (1)
99if (String.IsNullOrEmpty(path))
Logging\FileLogger.cs (4)
39if (!String.IsNullOrEmpty(messageFile)) 48if (!String.IsNullOrEmpty(errorFile)) 58if (!String.IsNullOrEmpty(resultsFile)) 183if (!String.IsNullOrEmpty(value))
Utils.cs (3)
91if (string.IsNullOrEmpty(timestamp)) 167if (string.IsNullOrEmpty(workingDirectory)) 270if (!string.IsNullOrEmpty(timezone) && timezone.Equals("GMT"))
Verification\ArchiveVerifier.cs (2)
167string hashedPath = String.IsNullOrEmpty(directoryName) ? Utils.GetHash(@".\", HashAlgorithmName.SHA256.Name) : 188=> string.IsNullOrEmpty(RelativePath) || ContentStream == Stream.Null || ContentSize == 0;
Verification\AuthentiCode.cs (2)
20string.IsNullOrEmpty(path) ? false : IsSignedInternal(path, svr, securityInfoProvider); 23string.IsNullOrEmpty(path) ? Enumerable.Empty<Timestamp>() : GetTimestampsInternal(path, securityInfoProvider);
Verification\Exclusion.cs (5)
40if (!String.IsNullOrEmpty(exclusion)) 75.Select(e => !string.IsNullOrEmpty(e) ? $"{e}*" : e) 87return FilePatterns.Length != 0 && !FilePatterns.All(fp => String.IsNullOrEmpty(fp)); 98return ParentFiles.Length != 0 && !ParentFiles.All(pf => String.IsNullOrEmpty(pf)); 172if (!string.IsNullOrEmpty(value))
Verification\Exclusions.cs (3)
53if (!String.IsNullOrEmpty(line)) 185if (String.IsNullOrEmpty(pattern) || String.IsNullOrEmpty(value))
Verification\FileVerifier.cs (3)
165Log.WriteMessage(LogVerbosity.Detailed, String.Format(SignCheckResources.ProcessingFile, Path.GetFileName(path), String.IsNullOrEmpty(parent) ? SignCheckResources.NA : parent)); 194if (String.IsNullOrEmpty(parent)) 199if (!String.IsNullOrEmpty(virtualPath))
Verification\Jar\JarAttributes.cs (1)
43if (String.IsNullOrEmpty(rawText))
Verification\Jar\JarFile.cs (1)
89if (String.IsNullOrEmpty(path))
Verification\Jar\JarIndividualEntry.cs (1)
76if (!String.IsNullOrEmpty(digestAttributeKey))
Verification\Jar\JarSignatureFile.cs (1)
177if (String.IsNullOrEmpty(SignatureBlockFilePath))
Verification\SignatureVerificationManager.cs (2)
211if (!String.IsNullOrEmpty(extension)) 230if (String.IsNullOrEmpty(path))
Verification\SignatureVerificationResult.cs (3)
187if (String.IsNullOrEmpty(_tempPath)) 198if (String.IsNullOrEmpty(path)) 221if (String.IsNullOrEmpty(currentValue))
Microsoft.DotNet.SignCheckTask (6)
src\SignCheck.cs (6)
165if (!String.IsNullOrEmpty(Options.ExclusionsFile)) 216if (String.IsNullOrEmpty(fileSearchPath)) 288if (!String.IsNullOrEmpty(Options.ErrorLogFile)) 293if (!String.IsNullOrEmpty(Options.LogFile)) 398options |= !String.IsNullOrEmpty(Options.ExclusionsOutput) ? SignatureVerificationOptions.GenerateExclusion : SignatureVerificationOptions.None; 417if (!String.IsNullOrEmpty(Options.ExclusionsOutput))
Microsoft.DotNet.SignTool (18)
src\BatchSignUtil.cs (2)
140!string.IsNullOrEmpty(collisionPriorityId)) 473bool isVsixCert = (!string.IsNullOrEmpty(fileName.SignInfo.Certificate) && IsVsixCertificate(fileName.SignInfo.Certificate)) ||
src\Configuration.cs (7)
326if (string.IsNullOrEmpty(collisionPriorityId) && parentContainer != null) 365if (!string.IsNullOrEmpty(collisionPriorityId)) 391if (!string.IsNullOrEmpty(collisionPriorityId)) 480var additionalCertInfo = additionalInfo.FirstOrDefault(a => string.IsNullOrEmpty(a.CollisionPriorityId) || 501if (isAlreadyAuthenticodeSigned && !dualCertsAllowed && string.IsNullOrEmpty(macNotarizationAppName)) 508if (!string.IsNullOrEmpty(macNotarizationAppName)) 699if (string.IsNullOrEmpty(copyright))
src\SignInfo.cs (2)
56public bool ShouldStrongName => !IsAlreadyStrongNamed && !string.IsNullOrEmpty(StrongName); 58public bool ShouldNotarize => !string.IsNullOrEmpty(NotarizationAppName) && !ShouldIgnore;
src\SignTool.cs (1)
165var filesToNotarize = filesToSign.Where(f => !string.IsNullOrEmpty(f.SignInfo.NotarizationAppName));
src\SignToolTask.cs (5)
331if (string.IsNullOrEmpty(macSigningOperation) != string.IsNullOrEmpty(macNotarizationAppName)) 336if (!string.IsNullOrEmpty(dualSigningAllowed) && !bool.TryParse(dualSigningAllowed, out dualSignAllowedValue)) 544if (!string.IsNullOrEmpty(targetFramework) && !IsValidTargetFrameworkName(targetFramework)) 556if (!string.IsNullOrEmpty(publicKeyToken) && !IsValidPublicKeyToken(publicKeyToken))
src\Telemetry.cs (1)
29(!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SIGNTOOL_DISABLE_TELEMETRY")));
Microsoft.DotNet.SourceBuild.Tasks (9)
src\UsageReport\Usage.cs (3)
69if (!string.IsNullOrEmpty(RuntimePackageRid)) 86(string.IsNullOrEmpty(RuntimePackageRid) ? "" : $"({RuntimePackageRid}) ") + 87(string.IsNullOrEmpty(AssetsFile) ? "with unknown use" : $"used by '{AssetsFile}'");
src\UsageReport\UsagePattern.cs (2)
28if (!string.IsNullOrEmpty(IdentityRegex)) 33if (!string.IsNullOrEmpty(IdentityGlob))
src\UsageReport\WritePackageUsageData.cs (1)
146if (!string.IsNullOrEmpty(ProjectAssetsJsonArchiveFile))
src\UsageReport\WriteUsageReports.cs (3)
194if (string.IsNullOrEmpty(creationTime)) 229if (!string.IsNullOrEmpty(id) && 230!string.IsNullOrEmpty(origin))
Microsoft.DotNet.StrongName (2)
Signing.cs (1)
102if (!string.IsNullOrEmpty(snPath))
Verification.cs (1)
37if (!string.IsNullOrEmpty(snPath))
Microsoft.DotNet.SwaggerGenerator.CmdLine (2)
Program.cs (2)
73if (string.IsNullOrEmpty(input)) 78if (string.IsNullOrEmpty(output))
Microsoft.DotNet.XliffTasks (8)
Tasks\GatherTranslatedSource.cs (4)
61if (string.IsNullOrEmpty(link)) 88if (!string.IsNullOrEmpty(manifestResourceName)) 98if (!string.IsNullOrEmpty(logicalName)) 109if (!string.IsNullOrEmpty(dependentUpon))
Tasks\GatherXlf.cs (1)
56if (string.IsNullOrEmpty(translatedFileName))
Tasks\TaskItemExtensions.cs (2)
14if (string.IsNullOrEmpty(value)) 26if (string.IsNullOrEmpty(value))
Tasks\XlfTask.cs (1)
79Release.Assert(!string.IsNullOrEmpty(language));
Microsoft.DotNet.XliffTasks.Tests (1)
XlfDocumentTests.cs (1)
633if (string.IsNullOrEmpty(xliff))
Microsoft.DotNet.XUnitExtensions (4)
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (1)
31(platforms.HasFlag(TestPlatforms.LinuxBionic) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANDROID_STORAGE"))) ||
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\SkipOnCIDiscoverer.cs (3)
21if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_CI")) || 22!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT")) || 23!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AGENT_OS")))
Microsoft.DotNet.XUnitV3Extensions (4)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnCIAttribute.cs (3)
27if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_CI")) || 28!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT")) || 29!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AGENT_OS")))
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (1)
31(platforms.HasFlag(TestPlatforms.LinuxBionic) && RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ANDROID_STORAGE"))) ||
Microsoft.Extensions.AI (4)
ChatCompletion\ChatResponse{T}.cs (1)
131if (string.IsNullOrEmpty(json))
ChatCompletion\OpenTelemetryChatClient.cs (1)
68string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
66string name = string.IsNullOrEmpty(sourceName) ? OpenTelemetryConsts.DefaultSourceName : sourceName!;
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Abstractions (3)
AITool.cs (1)
42if (Description is string description && !string.IsNullOrEmpty(description))
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (1)
107metaParameter = string.IsNullOrEmpty(parameter.Name) ? metaMethod.ReturnParameter : GetMetaParameter(metaMethod, parameter);
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.AzureAIInference (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Console (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.NLP (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Quality (4)
EvaluationMetricExtensions.cs (1)
114string.IsNullOrEmpty(trimmedMatchText))
IntentResolutionEvaluator.cs (1)
332if (string.IsNullOrEmpty(evaluationResponseText))
RelevanceTruthAndCompletenessEvaluator.cs (1)
277if (string.IsNullOrEmpty(evaluationResponseText))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Reporting (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
EmbeddingTests.cs (1)
17if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("TF_BUILD")))
Microsoft.Extensions.AI.Evaluation.Safety (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Integration.Tests (4)
PromptBasedFunctionCallingChatClient.cs (1)
110if (!string.IsNullOrEmpty(toolCallParsed?.Name))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
VerbatimMultiPartHttpHandler.cs (2)
53if (!string.IsNullOrEmpty(ExpectedRequestUriContains)) 64if (string.IsNullOrEmpty(boundary))
Microsoft.Extensions.AI.Ollama (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.OpenAI (4)
OpenAIAssistantChatClient.cs (1)
360if (!string.IsNullOrEmpty(toAppend))
OpenAIResponseChatClient.cs (2)
94if (!string.IsNullOrEmpty(openAIResponse.EndUserId)) 385result.Instructions = string.IsNullOrEmpty(result.Instructions) ?
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\TestCommand.cs (1)
28if (string.IsNullOrEmpty(FileName))
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
824if (!string.IsNullOrEmpty(result))
Microsoft.Extensions.AmbientMetadata.Application (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.ApiDescription.Client (7)
GetOpenApiReferenceMetadata.cs (6)
59if (string.IsNullOrEmpty(codeGenerator)) 62var type = string.IsNullOrEmpty(item.GetMetadata("SourceProject")) ? 83if (string.IsNullOrEmpty(outputPath)) 95if (!Path.IsPathRooted(outputPath) && !string.IsNullOrEmpty(OutputDirectory)) 111if (string.IsNullOrEmpty(className)) 120if (string.IsNullOrEmpty(@namespace))
MetadataSerializer.cs (1)
116if (string.IsNullOrEmpty(value))
Microsoft.Extensions.ApiDescription.Client.Tests (4)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Microsoft.Extensions.AsyncState (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Caching.Hybrid (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Caching.Hybrid.Tests (1)
PayloadTests.cs (1)
43var tags = string.IsNullOrEmpty(delimitedTags)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
104if (!string.IsNullOrEmpty(instanceName))
Microsoft.Extensions.Compliance.Abstractions (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Compliance.Redaction (3)
src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Compliance.Testing (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Configuration (1)
ChainedConfigurationProvider.cs (1)
44return !string.IsNullOrEmpty(value);
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationPath.cs (2)
52if (string.IsNullOrEmpty(path)) 68if (string.IsNullOrEmpty(path))
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
499if (!string.IsNullOrEmpty(configValue)) 988if (string.IsNullOrEmpty(value))
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
65if (!string.IsNullOrEmpty(_prefix))
Microsoft.Extensions.Configuration.FileExtensions (3)
FileConfigurationProvider.cs (1)
68if (!string.IsNullOrEmpty(file?.PhysicalPath))
FileConfigurationSource.cs (2)
76!string.IsNullOrEmpty(Path) && 81while (!string.IsNullOrEmpty(directory) && !Directory.Exists(directory))
Microsoft.Extensions.Configuration.Ini (1)
IniConfigurationExtensions.cs (1)
69if (string.IsNullOrEmpty(path))
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationExtensions.cs (1)
69if (string.IsNullOrEmpty(path))
Microsoft.Extensions.Configuration.UserSecrets (5)
PathHelper.cs (3)
43if (string.IsNullOrEmpty(userSecretsId)) 68if (string.IsNullOrEmpty(root)) 78return !string.IsNullOrEmpty(appData)
UserSecretsConfigurationExtensions.cs (1)
177if (string.IsNullOrEmpty(secretPath))
UserSecretsIdAttribute.cs (1)
25if (string.IsNullOrEmpty(userSecretId))
Microsoft.Extensions.Configuration.Xml (6)
XmlConfigurationElement.cs (1)
40SiblingName = string.IsNullOrEmpty(Name) ? ElementName : ElementName + ":" + Name;
XmlConfigurationExtensions.cs (1)
78if (string.IsNullOrEmpty(path))
XmlStreamConfigurationProvider.cs (4)
216if (!string.IsNullOrEmpty(reader.NamespaceURI)) 240if (!string.IsNullOrEmpty(reader.NamespaceURI)) 267if (!string.IsNullOrEmpty(root.Name)) 359var hasName = !string.IsNullOrEmpty(child.Name);
Microsoft.Extensions.DependencyInjection (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.DependencyModel (41)
CollectionExtensions.cs (3)
15if (string.IsNullOrEmpty(runtime)) 30if (string.IsNullOrEmpty(runtime)) 54if (string.IsNullOrEmpty(runtime))
Dependency.cs (2)
14if (string.IsNullOrEmpty(name)) 18if (string.IsNullOrEmpty(version))
DependencyContextJsonReader.cs (12)
223if (!string.IsNullOrEmpty(runtimeTargetName)) 357if (string.IsNullOrEmpty(targetName)) 380if (string.IsNullOrEmpty(targetLibraryName)) 459if (string.IsNullOrEmpty(name)) 463if (string.IsNullOrEmpty(version)) 486if (string.IsNullOrEmpty(libraryName)) 513if (string.IsNullOrEmpty(path)) 553if (string.IsNullOrEmpty(runtimePath)) 604if (string.IsNullOrEmpty(path)) 644if (string.IsNullOrEmpty(libraryName)) 698if (string.IsNullOrEmpty(type)) 725if (string.IsNullOrEmpty(runtime))
DependencyContextLoader.cs (4)
91if (!string.IsNullOrEmpty(location)) 114if (!string.IsNullOrEmpty(depsJsonFile)) 131if (string.IsNullOrEmpty(assemblyLocation)) 144if (!string.IsNullOrEmpty(assemblyCodeBase) &&
DependencyContextWriter.cs (1)
308using IEnumerator<RuntimeAssetGroup> groups = assetGroups.Where(g => !string.IsNullOrEmpty(g.Runtime)).GetEnumerator();
Library.cs (3)
43if (string.IsNullOrEmpty(type)) 47if (string.IsNullOrEmpty(name)) 51if (string.IsNullOrEmpty(version))
Resolution\AppBaseCompilationAssemblyResolver.cs (1)
82if (isPublished && isPackage && !string.IsNullOrEmpty(sharedPath))
Resolution\DotNetReferenceAssembliesPathResolver.cs (1)
17if (!string.IsNullOrEmpty(path))
Resolution\PackageCompilationAssemblyResolver.cs (3)
47if (!string.IsNullOrEmpty(listOfDirectories)) 54if (!string.IsNullOrEmpty(packageDirectory)) 61if (string.IsNullOrEmpty(basePath))
Resolution\ReferenceAssemblyPathResolver.cs (3)
118if (!string.IsNullOrEmpty(referenceAssembliesPath)) 134if (string.IsNullOrEmpty(programFiles)) 140if (string.IsNullOrEmpty(programFiles))
Resolution\ResolverUtils.cs (1)
13if (string.IsNullOrEmpty(path))
ResourceAssembly.cs (2)
12if (string.IsNullOrEmpty(path)) 16if (string.IsNullOrEmpty(locale))
RuntimeAssembly.cs (2)
16if (string.IsNullOrEmpty(assemblyName)) 20if (string.IsNullOrEmpty(path))
RuntimeFallbacks.cs (1)
18if (string.IsNullOrEmpty(runtime))
RuntimeFile.cs (1)
12if (string.IsNullOrEmpty(path))
TargetInfo.cs (1)
14if (string.IsNullOrEmpty(framework))
Microsoft.Extensions.Diagnostics (13)
Metrics\ListenerSubscription.cs (13)
148if (!string.IsNullOrEmpty(rule.ListenerName) 155if (!string.IsNullOrEmpty(rule.InstrumentName) 214if (!string.IsNullOrEmpty(rule.ListenerName) && string.IsNullOrEmpty(best.ListenerName)) 218else if (string.IsNullOrEmpty(rule.ListenerName) && !string.IsNullOrEmpty(best.ListenerName)) 224if (!string.IsNullOrEmpty(rule.MeterName)) 226if (string.IsNullOrEmpty(best.MeterName)) 237else if (!string.IsNullOrEmpty(best.MeterName)) 243if (!string.IsNullOrEmpty(rule.InstrumentName) && string.IsNullOrEmpty(best.InstrumentName)) 247else if (string.IsNullOrEmpty(rule.InstrumentName) && !string.IsNullOrEmpty(best.InstrumentName))
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.Probes (3)
src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\TestResources.cs (1)
60if (string.IsNullOrEmpty(files.Value))
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogger.cs (1)
41Category = string.IsNullOrEmpty(category) ? null : category;
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.FileProviders.Embedded (9)
EmbeddedFileProvider.cs (7)
53_baseNamespace = string.IsNullOrEmpty(baseNamespace) ? string.Empty : baseNamespace + "."; 59if (!string.IsNullOrEmpty(assemblyLocation)) 84if (string.IsNullOrEmpty(subpath)) 103if (!string.IsNullOrEmpty(everettId)) 218if (string.IsNullOrEmpty(subName)) { return; } 254if (string.IsNullOrEmpty(name)) { return; } 284if (string.IsNullOrEmpty(name)) { return name; }
Manifest\EmbeddedFilesManifest.cs (1)
31if (string.IsNullOrEmpty(path) || HasInvalidPathChars(path))
ManifestEmbeddedFileProvider.cs (1)
131if (!string.IsNullOrEmpty(assemblyLocation))
Microsoft.Extensions.FileProviders.Physical (3)
Internal\PathUtils.cs (1)
45if (!string.IsNullOrEmpty(path) &&
PhysicalFileProvider.cs (1)
265if (string.IsNullOrEmpty(subpath) || PathUtils.HasInvalidPathChars(subpath))
PhysicalFilesWatcher.cs (1)
367if (string.IsNullOrEmpty(path))
Microsoft.Extensions.FileSystemGlobbing (2)
InMemoryDirectoryInfo.cs (1)
33if (string.IsNullOrEmpty(rootDir))
Internal\MatcherContext.cs (1)
171if (string.IsNullOrEmpty(left))
Microsoft.Extensions.Hosting (6)
HostBuilder.cs (2)
236if (string.IsNullOrEmpty(applicationName)) 255if (string.IsNullOrEmpty(contentRootPath))
HostOptions.cs (4)
65if (!string.IsNullOrEmpty(timeoutSeconds) 72if (!string.IsNullOrEmpty(timeoutSeconds) 79if (!string.IsNullOrEmpty(servicesStartConcurrently) 86if (!string.IsNullOrEmpty(servicesStopConcurrently)
Microsoft.Extensions.Hosting.Systemd (3)
SystemdHelpers.cs (2)
48return !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NOTIFY_SOCKET")) || 49!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("LISTEN_PID"));
SystemdNotifier.cs (1)
65if (string.IsNullOrEmpty(socketPath))
Microsoft.Extensions.Hosting.Testing (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetimeHostBuilderExtensions.cs (1)
140if (string.IsNullOrEmpty(settings.SourceName))
Microsoft.Extensions.Http (2)
Logging\LoggingHttpMessageHandlerBuilderFilter.cs (1)
47string loggerName = !string.IsNullOrEmpty(builder.Name) ? builder.Name : "Default";
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.Extensions.Http.Diagnostics (5)
Http\DownstreamDependencyMetadataManager.cs (2)
104if (!string.IsNullOrEmpty(route)) 343if (!string.IsNullOrEmpty(trieCurrent.DependencyName))
Http\HttpDiagnosticsHttpWebRequestExtensions.cs (2)
51RequestName = string.IsNullOrEmpty(requestName) ? TelemetryConstants.Unknown : requestName, 52DependencyName = string.IsNullOrEmpty(dependencyName) ? TelemetryConstants.Unknown : dependencyName
Logging\Internal\MediaTypeCollectionExtensions.cs (1)
22if (!string.IsNullOrEmpty(sample))
Microsoft.Extensions.Http.Resilience (3)
src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Identity.Core (2)
UserClaimsPrincipalFactory.cs (1)
83if (!string.IsNullOrEmpty(email))
UserValidator.cs (1)
61else if (!string.IsNullOrEmpty(manager.Options.User.AllowedUserNameCharacters) &&
Microsoft.Extensions.Localization (3)
Internal\ResourceManagerStringProvider.cs (1)
47if (!string.IsNullOrEmpty(culture.Name))
ResourceManagerStringLocalizerFactory.cs (2)
46if (!string.IsNullOrEmpty(_resourcesRelativePath)) 82if (string.IsNullOrEmpty(resourcesRelativePath))
Microsoft.Extensions.Logging (1)
LoggerRuleSelector.cs (1)
28|| (!string.IsNullOrEmpty(providerAlias) && IsBetter(rule, current, providerAlias, category)))
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
143else if (!string.IsNullOrEmpty(type.Namespace))
Microsoft.Extensions.Logging.AzureAppServices (3)
BatchLoggerConfigureOptions.cs (1)
27if (string.IsNullOrEmpty(text) ||
WebAppContext.cs (2)
30public bool IsRunningInAzureWebApp => !string.IsNullOrEmpty(HomeFolder) && 31!string.IsNullOrEmpty(SiteName);
Microsoft.Extensions.Logging.Configuration (1)
LoggerFilterConfigureOptions.cs (1)
74if (string.IsNullOrEmpty(value))
Microsoft.Extensions.Logging.Console (4)
ConfigurationConsoleLoggerSettings.cs (2)
44if (string.IsNullOrEmpty(value)) 87if (string.IsNullOrEmpty(value))
SimpleConsoleFormatter.cs (1)
134if (!string.IsNullOrEmpty(message))
SystemdConsoleFormatter.cs (1)
88if (!string.IsNullOrEmpty(message))
Microsoft.Extensions.Logging.Debug (2)
DebugLogger.cs (2)
50if (string.IsNullOrEmpty(formatted) && exception == null) 57if (string.IsNullOrEmpty(formatted))
Microsoft.Extensions.Logging.EventLog (5)
EventLogLogger.cs (1)
86if (string.IsNullOrEmpty(message))
EventLogSettings.cs (4)
45string logName = string.IsNullOrEmpty(LogName) ? "Application" : LogName; 46string machineName = string.IsNullOrEmpty(MachineName) ? "." : MachineName; 47string sourceName = string.IsNullOrEmpty(SourceName) ? ".NET Runtime" : SourceName; 50if (string.IsNullOrEmpty(SourceName))
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
343if (paramSyntax != null && !string.IsNullOrEmpty(paramSyntax.Identifier.Text)) 740if (string.IsNullOrEmpty(message))
Microsoft.Extensions.Logging.TraceSource (5)
TraceSourceLogger.cs (2)
47string exceptionDelimiter = string.IsNullOrEmpty(message) ? string.Empty : " "; 51if (!string.IsNullOrEmpty(message))
TraceSourceLoggerProvider.cs (3)
65if (string.IsNullOrEmpty(parentSourceName)) 109return string.IsNullOrEmpty(traceSource.Switch.DisplayName) == string.IsNullOrEmpty(traceSource.Name) &&
Microsoft.Extensions.ML (3)
ModelLoaders\FileModelLoader.cs (1)
47if (string.IsNullOrEmpty(directory))
PredictionEnginePool.cs (2)
96if (string.IsNullOrEmpty(modelName)) 144if (string.IsNullOrEmpty(modelName))
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Options.Contextual (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Primitives (2)
StringValues.cs (2)
4341 => string.IsNullOrEmpty(values[0]), 441return string.IsNullOrEmpty(Unsafe.As<string>(data));
Microsoft.Extensions.Resilience (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.SecretManager.Tools.Tests (1)
UserSecretsTestFixture.cs (1)
58var prop = string.IsNullOrEmpty(userSecretsId)
Microsoft.Extensions.ServiceDiscovery (1)
PassThrough\PassThroughServiceEndpointProviderFactory.cs (1)
55else if (!string.IsNullOrEmpty(host))
Microsoft.Extensions.ServiceDiscovery.Dns (2)
DnsSrvServiceEndpointProviderFactory.cs (2)
119if (string.IsNullOrEmpty(host) || string.IsNullOrEmpty(port))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Program.cs (1)
48if (string.IsNullOrEmpty(inputFiles))
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
95if (!string.IsNullOrEmpty(originalConfig.Host))
Microsoft.Extensions.Telemetry (5)
Logging\Import\LoggerRuleSelector.cs (1)
33|| (!string.IsNullOrEmpty(providerAlias) && IsBetter(rule, current, providerAlias, category)))
src\Shared\Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (1)
69if (string.IsNullOrEmpty(str))
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Telemetry.Abstractions (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.TimeProvider.Testing (1)
src\Shared\Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
Microsoft.Extensions.Validation (6)
ValidatableParameterInfo.cs (4)
79var key = string.IsNullOrEmpty(context.CurrentValidationPath) ? Name : $"{context.CurrentValidationPath}.{Name}"; 94var key = string.IsNullOrEmpty(context.CurrentValidationPath) ? Name : $"{context.CurrentValidationPath}.{Name}"; 100var key = string.IsNullOrEmpty(context.CurrentValidationPath) ? Name : $"{context.CurrentValidationPath}.{Name}"; 115context.CurrentValidationPath = string.IsNullOrEmpty(currentPrefix)
ValidatablePropertyInfo.cs (1)
69if (string.IsNullOrEmpty(originalPrefix))
ValidatableTypeInfo.cs (1)
109var key = string.IsNullOrEmpty(originalPrefix) ?
Microsoft.Extensions.Validation.Tests (2)
ValidatableTypeInfoTests.cs (2)
611if (string.IsNullOrEmpty(FirstName) || string.IsNullOrEmpty(LastName))
Microsoft.Gen.ComplianceReports (2)
Emitter.cs (2)
65if (!string.IsNullOrEmpty(c.Notes)) 109if (!string.IsNullOrEmpty(c.Notes))
Microsoft.Gen.ContextualOptions (2)
Emitter.cs (2)
31$@"{(!string.IsNullOrEmpty(optionsContextType.Namespace) ? $"namespace {optionsContextType.Namespace}" + 42{(!string.IsNullOrEmpty(optionsContextType.Namespace) ? "}" : string.Empty)}";
Microsoft.Gen.Logging (10)
Emission\Emitter.Method.cs (5)
38if (!string.IsNullOrEmpty(lm.Message)) 107if (!string.IsNullOrEmpty(lm.Message) && 128else if (string.IsNullOrEmpty(lm.Message)) 312if (!string.IsNullOrEmpty(lm.Message)) 327if (!string.IsNullOrEmpty(lm.Message))
Parsing\Parser.cs (2)
180else if (lp.IsNormalParameter && !parameterInTemplate && !loggingProperties && !string.IsNullOrEmpty(lm.Message)) 524if (!string.IsNullOrEmpty(paramSyntax!.Identifier.Text))
Parsing\Parser.LogProperties.cs (1)
214if (!string.IsNullOrEmpty(propertyIdentifier))
Parsing\TemplateProcessor.cs (2)
23if (string.IsNullOrEmpty(message)) 80if (string.IsNullOrEmpty(message))
Microsoft.Gen.MetadataExtractor (12)
MetadataReportsGenerator.cs (2)
102.Append((string.IsNullOrEmpty(metadataReport.complianceReport) ? "{}" : metadataReport.complianceReport)) 105.Append((string.IsNullOrEmpty(metadataReport.metricReport) ? "[]" : metadataReport.metricReport) + " }");
src\Generators\Microsoft.Gen.ComplianceReports\Emitter.cs (2)
65if (!string.IsNullOrEmpty(c.Notes)) 109if (!string.IsNullOrEmpty(c.Notes))
src\Generators\Microsoft.Gen.Metrics\Parser.cs (7)
339if (string.IsNullOrEmpty(xmlComment)) 385if (!string.IsNullOrEmpty(xmlDefinition)) 461if (!string.IsNullOrEmpty(xmlDefinition)) 747if (!string.IsNullOrEmpty(xmlDefinition)) 749tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 779if (!string.IsNullOrEmpty(xmlDefinition)) 781tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (1)
94if (!string.IsNullOrEmpty(metricMethod.Summary))
Microsoft.Gen.Metrics (11)
Emitter.cs (3)
295if (string.IsNullOrEmpty(metricMethod.StrongTypeObjectName)) 318var access = string.IsNullOrEmpty(config.Path) 329if (string.IsNullOrEmpty(metricMethod.StrongTypeObjectName))
MetricFactoryEmitter.cs (1)
41if (string.IsNullOrEmpty(str) ||
Parser.cs (7)
339if (string.IsNullOrEmpty(xmlComment)) 385if (!string.IsNullOrEmpty(xmlDefinition)) 461if (!string.IsNullOrEmpty(xmlDefinition)) 747if (!string.IsNullOrEmpty(xmlDefinition)) 749tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 779if (!string.IsNullOrEmpty(xmlDefinition)) 781tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Gen.MetricsReports (8)
MetricDefinitionEmitter.cs (1)
94if (!string.IsNullOrEmpty(metricMethod.Summary))
src\Generators\Microsoft.Gen.Metrics\Parser.cs (7)
339if (string.IsNullOrEmpty(xmlComment)) 385if (!string.IsNullOrEmpty(xmlDefinition)) 461if (!string.IsNullOrEmpty(xmlDefinition)) 747if (!string.IsNullOrEmpty(xmlDefinition)) 749tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition); 779if (!string.IsNullOrEmpty(xmlDefinition)) 781tagDescriptionDictionary.Add(string.IsNullOrEmpty(tagName) ? member.Name : tagName, xmlDefinition);
Microsoft.Maui (9)
Handlers\HybridWebView\HybridWebViewHandler.cs (2)
104 if (string.IsNullOrEmpty(rawMessage)) 179 if (string.IsNullOrEmpty(invokeDataString))
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (2)
12 if (string.IsNullOrEmpty(url)) 33 if (!string.IsNullOrEmpty(url))
Platform\TimeExtensions.cs (1)
21 if (string.IsNullOrEmpty(format))
WeakEventManager.cs (4)
19 if (IsNullOrEmpty(eventName)) 30 if (IsNullOrEmpty(eventName)) 85 if (IsNullOrEmpty(eventName)) 96 if (IsNullOrEmpty(eventName))
Microsoft.Maui.Controls (55)
Accelerator.cs (1)
18 if (string.IsNullOrEmpty(text))
AcceleratorTypeConverter.cs (1)
29 if (string.IsNullOrEmpty(strValue))
AnimatableKey.cs (1)
16 if (string.IsNullOrEmpty(handle))
BindableObject.cs (1)
467 if (string.IsNullOrEmpty(key))
BindingExpression.cs (1)
693 if (!string.IsNullOrEmpty(name))
Brush\BrushTypeConverter.cs (2)
342 if (!hasPositionX && !string.IsNullOrEmpty(directionX)) 345 if (!hasPositionY && !string.IsNullOrEmpty(directionY))
DeviceStateTrigger.cs (1)
40 if (string.IsNullOrEmpty(Device))
FileImageSource.cs (1)
14 public override bool IsEmpty => string.IsNullOrEmpty(File);
FlyoutPage\FlyoutPage.cs (1)
100 if (string.IsNullOrEmpty(value.Title))
FontAttributes.cs (1)
34 if (string.IsNullOrEmpty(strValue))
FontImageSource.cs (1)
10 public override bool IsEmpty => string.IsNullOrEmpty(Glyph);
HybridWebView\HybridWebView.cs (2)
90 if (string.IsNullOrEmpty(methodName)) 119 if (string.IsNullOrEmpty(methodName))
Interactivity\EventTrigger.cs (1)
51 if (!string.IsNullOrEmpty(Event))
Internals\ImageParser.cs (1)
265 return !string.IsNullOrEmpty(TypeIdentifier) && TypeIdentifier.StartsWith("GIF", StringComparison.OrdinalIgnoreCase);
Internals\TextTransformUtilites.cs (2)
24 if (string.IsNullOrEmpty(source)) 55 if ((string.IsNullOrEmpty(formsText) && platformText.Length == 0))
LegacyLayouts\ConstraintExpression.cs (3)
41 if (string.IsNullOrEmpty(Property)) 48 if (string.IsNullOrEmpty(Property)) 50 if (string.IsNullOrEmpty(ElementName))
Page\Page.cs (1)
340 if (string.IsNullOrEmpty(cancel))
PlatformBindingHelpers.cs (4)
23 if (IsNullOrEmpty(updateSourceEventName) && binding != null && !IsNullOrEmpty(binding.UpdateSourceEventName)) 26 if (!IsNullOrEmpty(updateSourceEventName)) 37 if (IsNullOrEmpty(targetProperty))
PropertyChangedEventArgsExtensions.cs (5)
12 if (string.IsNullOrEmpty(args.PropertyName)) 21 if (string.IsNullOrEmpty(args.PropertyName)) 31 if (string.IsNullOrEmpty(args.PropertyName)) 42 if (string.IsNullOrEmpty(args.PropertyName)) 54 if (string.IsNullOrEmpty(args.PropertyName))
RadioButton\RadioButton.cs (6)
382 if (!IsChecked || string.IsNullOrEmpty(GroupName)) 395 if (!string.IsNullOrEmpty(newGroupName)) 397 if (string.IsNullOrEmpty(oldGroupName)) 410 if (!string.IsNullOrEmpty(oldGroupName)) 426 if (!IsChecked || selected == this || string.IsNullOrEmpty(GroupName) || GroupName != selected.GroupName || (Value is not null && object.Equals(Value, args.Value)) || !MatchesScope(args)) 436 if (IsChecked || string.IsNullOrEmpty(GroupName) || GroupName != args.GroupName || !object.Equals(Value, args.Value) || !MatchesScope(args))
RadioButton\RadioButtonGroup.cs (2)
59 Element scope = string.IsNullOrEmpty(groupName) 81 if (rb != null && rb != radioButton && string.IsNullOrEmpty(rb.GroupName) && (rb.IsChecked == true))
RadioButton\RadioButtonGroupController.cs (3)
25 if (!string.IsNullOrEmpty(_groupName)) 77 if (string.IsNullOrEmpty(_groupName)) 122 if (string.IsNullOrEmpty(currentName) || currentName == oldName)
ResourceDictionary.cs (1)
345 if (string.IsNullOrEmpty(style.Class))
Setter.cs (2)
71 if (!string.IsNullOrEmpty(TargetName) && target is Element element) 95 if (!string.IsNullOrEmpty(TargetName) && target is Element element)
SettersExtensions.cs (1)
29 if (string.IsNullOrEmpty(key))
Shapes\MatrixTypeConverter.cs (1)
22 if (string.IsNullOrEmpty(value))
Shell\ShellNavigationManager.cs (1)
288 if (string.IsNullOrEmpty(route) || Routing.IsImplicit(route))
ShellToolbar.cs (1)
115 !String.IsNullOrEmpty(Title) ||
StyleSheets\Style.cs (2)
39 if (!string.IsNullOrEmpty(propertyName) && !string.IsNullOrEmpty(propertyValue))
TypedBinding.cs (1)
502 if (!string.IsNullOrEmpty(e.PropertyName) && string.CompareOrdinal(e.PropertyName, PropertyName) != 0)
VisualElement\VisualElement.cs (2)
226 if (string.IsNullOrEmpty(transform) || openBracket < 0 || closeBracket < 0) 2444 if (!string.IsNullOrEmpty(strValue))
VisualStateManager.cs (1)
554 if (states.Any(state => string.IsNullOrEmpty(state.Name)))
Microsoft.Maui.Controls.Build.Tasks (25)
CompiledConverters\BindablePropertyConverter.cs (1)
19 if (IsNullOrEmpty(value))
CompiledConverters\BoundsTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledConverters\BrushTypeConverter.cs (1)
15 if (!string.IsNullOrEmpty(value))
CompiledConverters\ColorTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledConverters\ConstraintTypeConverter.cs (1)
19 if (string.IsNullOrEmpty(value) || !double.TryParse(value, NumberStyles.Number, CultureInfo.InvariantCulture, out size))
CompiledConverters\CornerRadiusTypeConverter.cs (1)
17 if (!string.IsNullOrEmpty(value))
CompiledConverters\EnumTypeConverter.cs (1)
13 if (!string.IsNullOrEmpty(value))
CompiledConverters\FlexBasisTypeConverter.cs (1)
16 if (!string.IsNullOrEmpty(value))
CompiledConverters\FontSizeTypeConverter.cs (1)
16 if (!string.IsNullOrEmpty(value))
CompiledConverters\ImageSourceTypeConverter.cs (1)
14 if (!string.IsNullOrEmpty(value))
CompiledConverters\LayoutOptionsConverter.cs (1)
19 if (string.IsNullOrEmpty(value))
CompiledConverters\PointTypeConverter.cs (1)
15 if (!string.IsNullOrEmpty(value) && Point.TryParse(value.Trim(), out var point))
CompiledConverters\RDSourceTypeConverter.cs (2)
81 if (!string.IsNullOrEmpty(asmName)) 137 if (!string.IsNullOrEmpty(asmName))
CompiledConverters\RectangleTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledConverters\StrokeShapeTypeConverter.cs (1)
20 if (!string.IsNullOrEmpty(value))
CompiledConverters\ThicknessTypeConverter.cs (1)
17 if (!string.IsNullOrEmpty(value))
CompiledConverters\TypeTypeConverter.cs (1)
18 if (string.IsNullOrEmpty(value))
CompiledMarkupExtensions\StaticExtension.cs (1)
20 if (IsNullOrEmpty(member) || !member.Contains("."))
DebugXamlCTask.cs (1)
32 var debug = DebugSymbols || (!string.IsNullOrEmpty(DebugType) && DebugType.ToLowerInvariant() != "none");
ExpandMarkupsVisitor.cs (2)
135 if (!string.IsNullOrEmpty(prefix) && string.IsNullOrEmpty(namespaceuri))
SetPropertiesVisitor.cs (1)
1954 if (string.IsNullOrEmpty(runTimeName))
XamlCTask.cs (2)
170 if (GenerateFullPaths && string.IsNullOrEmpty(FullPathPrefix)) 193 var debug = DebugSymbols || (!string.IsNullOrEmpty(DebugType) && DebugType.ToLowerInvariant() != "none");
Microsoft.Maui.Controls.DesignTools (6)
BoundsDesignTypeConverter.cs (1)
13 if (string.IsNullOrEmpty(strValue))
ButtonContentDesignTypeConverter.cs (1)
22 if (string.IsNullOrEmpty(stringValue))
ColorDesignTypeConverter.cs (1)
211 if (!string.IsNullOrEmpty(funcName) && funcValues != null)
DesignTypeConverterHelper.cs (1)
13 if (string.IsNullOrEmpty(numberCollection))
GridLengthDesignTypeConverter.cs (1)
22 if (string.IsNullOrEmpty(value))
ThicknessTypeDesignConverter.cs (1)
13 if (string.IsNullOrEmpty(strValue))
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (2)
286 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_'); 633 var hintName = $"{(string.IsNullOrEmpty(Path.GetDirectoryName(projItem.TargetPath)) ? "" : Path.GetDirectoryName(projItem.TargetPath) + Path.DirectorySeparatorChar)}{Path.GetFileNameWithoutExtension(projItem.TargetPath)}.{projItem.Kind.ToLowerInvariant()}.sg.cs".Replace(Path.DirectorySeparatorChar, '_');
Microsoft.Maui.Controls.Xaml (9)
ApplyPropertiesVisitor.cs (1)
466 if (eventInfo == null || IsNullOrEmpty(stringValue))
MarkupExtensions\DataTemplateExtension.cs (1)
19 if (string.IsNullOrEmpty(TypeName))
MarkupExtensions\StaticExtension.cs (1)
23 if (string.IsNullOrEmpty(Member) || Member.IndexOf(".", StringComparison.Ordinal) == -1)
MarkupExtensions\StyleSheetExtension.cs (2)
23 if (!string.IsNullOrEmpty(Style) && Source != null) 42 if (!string.IsNullOrEmpty(Style))
MarkupExtensions\TypeExtension.cs (1)
18 if (string.IsNullOrEmpty(TypeName))
SimplifyOnPlatformVisitor.cs (1)
13 if (string.IsNullOrEmpty(targetFramework))
XamlLoader.cs (2)
51 if (string.IsNullOrEmpty(xaml)) 323 if (!string.IsNullOrEmpty(info.FileName) &&
Microsoft.Maui.Essentials (6)
Share\Share.shared.cs (2)
112 if (string.IsNullOrEmpty(request.Text) && string.IsNullOrEmpty(request.Uri))
TextToSpeech\TextToSpeech.shared.cs (1)
158 if (string.IsNullOrEmpty(text))
Types\Shared\WebUtils.shared.cs (3)
17 if (!string.IsNullOrEmpty(uri.Query)) 21 if (!string.IsNullOrEmpty(uri.Fragment)) 95 if (!string.IsNullOrEmpty(expectedUrl.Host))
Microsoft.Maui.Graphics (11)
Font.cs (1)
60 => string.IsNullOrEmpty(Name);
PathBuilder.cs (1)
12 if (string.IsNullOrEmpty(definition))
Point.cs (1)
133 if (!string.IsNullOrEmpty(value))
PointF.cs (1)
132 if (!string.IsNullOrEmpty(value))
Rect.cs (1)
225 if (!string.IsNullOrEmpty(value))
RectF.cs (1)
225 if (!string.IsNullOrEmpty(value))
Size.cs (1)
110 if (!string.IsNullOrEmpty(value))
SizeF.cs (1)
126 if (!string.IsNullOrEmpty(value))
Text\TextColors.cs (2)
155 if (string.IsNullOrEmpty(color)) 198 if (string.IsNullOrEmpty(color))
Text\XmlAttributedTextWriter.cs (1)
24 if (attributedText != null && !string.IsNullOrEmpty(attributedText.Text))
Microsoft.Maui.Graphics.Skia (6)
FontExtensions.cs (1)
12 if (string.IsNullOrEmpty(font?.Name))
SkiaCanvas.cs (2)
622 if (string.IsNullOrEmpty(value)) 656 if (string.IsNullOrEmpty(value))
SkiaStringSizeService.cs (2)
9 if (string.IsNullOrEmpty(value)) 23 if (string.IsNullOrEmpty(value))
SkiaTextLayout.cs (1)
69 if (string.IsNullOrEmpty(_value))
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\SimpleCssParser.cs (1)
10 if (string.IsNullOrEmpty(css))
Microsoft.Maui.Resizetizer (47)
CreatePartialInfoPlistTask.cs (1)
55 if (!string.IsNullOrEmpty(Storyboard))
DpiPath.cs (1)
378 if (!string.IsNullOrEmpty(r.Path))
GeneratePackageAppxManifest.cs (27)
77 if (!string.IsNullOrEmpty(ApplicationId) || !string.IsNullOrEmpty(ApplicationDisplayVersion) || !string.IsNullOrEmpty(ApplicationVersion)) 89 if (!string.IsNullOrEmpty(ApplicationId)) 93 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PackageNamePlaceholder) 100 if (!string.IsNullOrEmpty(ApplicationDisplayVersion) || !string.IsNullOrEmpty(ApplicationVersion)) 104 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PackageVersionPlaceholder) 121 if (!string.IsNullOrEmpty(ApplicationTitle) || appIconInfo != null) 133 if (!string.IsNullOrEmpty(ApplicationTitle)) 137 if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == DefaultPlaceholder) 146 if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == PngPlaceholder) 167 if (!string.IsNullOrEmpty(ApplicationTitle) || appIconInfo != null || splashInfo != null) 196 if (!string.IsNullOrEmpty(ApplicationTitle)) 202 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == DefaultPlaceholder) 210 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == DefaultPlaceholder) 219 if (attr == null || string.IsNullOrEmpty(attr.Value)) 229 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 241 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 265 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 277 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 289 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 299 if (!string.IsNullOrEmpty(ApplicationTitle)) 303 if (attr == null || string.IsNullOrEmpty(attr.Value)) 339 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == PngPlaceholder) 358 if (parts.Length > 3 && !string.IsNullOrEmpty(version)) 372 if (!string.IsNullOrEmpty(version))
GenerateSplashStoryboard.cs (1)
135 if (!string.IsNullOrEmpty(image))
GenerateTizenManifest.cs (5)
101 if (!string.IsNullOrEmpty(ApplicationId)) 107 if (!string.IsNullOrEmpty(ApplicationDisplayVersion)) 120 if (!string.IsNullOrEmpty(ApplicationTitle)) 193 if (attr == null || string.IsNullOrEmpty(attr.Value) || attr.Value == placeholder) 201 if (string.IsNullOrEmpty(element.Value) || element.Value == placeholder)
GetMauiAssetPath.cs (3)
47 var path = string.IsNullOrEmpty(link) 61 if (!string.IsNullOrEmpty(FolderName)) 78 if (string.IsNullOrEmpty(projectDirectory))
ResizeImageInfo.cs (4)
103 if (info.TintColor is null && !string.IsNullOrEmpty(tintColor)) 108 if (info.Color is null && !string.IsNullOrEmpty(color)) 118 if (!string.IsNullOrEmpty(fgFile)) 128 if (info.IsAppIcon && string.IsNullOrEmpty(info.ForegroundFilename))
Resizer.cs (1)
50 if (!string.IsNullOrEmpty(intermediateOutputPath))
SkiaSharpTools.cs (2)
31 if (string.IsNullOrEmpty(retryVariable) || !int.TryParse(retryVariable, out fileWriteRetry)) 48 if (string.IsNullOrEmpty(delayVariable) || !int.TryParse(delayVariable, out fileWriteRetryDelay))
Utils.cs (2)
20 if (string.IsNullOrEmpty(tint)) 38 if (string.IsNullOrEmpty(size))
Microsoft.ML.AutoML (4)
ColumnInference\ColumnTypeInference.cs (1)
84return !string.IsNullOrEmpty(x.ToString()) &&
Utils\SweepableParamAttributes.cs (3)
114var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 163var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 210var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", ";
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
155if (string.IsNullOrEmpty(textToAppend))
Template\SearchSpace.cs (1)
172if (string.IsNullOrEmpty(textToAppend))
Template\SweepableEstimator.cs (1)
174if (string.IsNullOrEmpty(textToAppend))
Template\SweepableEstimator_T_.cs (1)
179if (string.IsNullOrEmpty(textToAppend))
Template\SweepableEstimatorFactory.cs (1)
150if (string.IsNullOrEmpty(textToAppend))
Microsoft.ML.CodeGenerator (16)
Templates\Azure\Console\AzureModelBuilder.cs (1)
249if (string.IsNullOrEmpty(textToAppend))
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
190if (string.IsNullOrEmpty(textToAppend))
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
190if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ConsumeModel.cs (1)
201if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelBuilder.cs (6)
46if(!string.IsNullOrEmpty(TestPath)){ 71if(!string.IsNullOrEmpty(TestPath)){ 91if(string.IsNullOrEmpty(TestPath) && !HasOnnxModel){ 95if(!string.IsNullOrEmpty(TestPath) && !HasOnnxModel){ 161if(!string.IsNullOrEmpty(TestPath)){ 566if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelInputClass.cs (1)
164if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelOutputClass.cs (1)
207if (string.IsNullOrEmpty(textToAppend))
Templates\Console\ModelProject.cs (1)
196if (string.IsNullOrEmpty(textToAppend))
Templates\Console\PredictProgram.cs (1)
223if (string.IsNullOrEmpty(textToAppend))
Templates\Console\PredictProject.cs (1)
201if (string.IsNullOrEmpty(textToAppend))
Utils.cs (1)
135if (!string.IsNullOrEmpty(input) && int.TryParse(input.Substring(0, 1), out int val))
Microsoft.ML.Core (43)
CommandLine\CmdLexer.cs (2)
322if (string.IsNullOrEmpty(str)) 406if (string.IsNullOrEmpty(str))
CommandLine\CmdParser.cs (11)
442if (string.IsNullOrEmpty(name)) 569Contracts.Assert(!string.IsNullOrEmpty(str)); 1003if (string.IsNullOrEmpty(args)) 1075if (string.IsNullOrEmpty(text)) 1148string[] argsArray = string.IsNullOrEmpty(args) ? Array.Empty<string>() : new string[] { args }; 1575if (i < values.Count && IsCurlyGroup((string)values[i].Value) && string.IsNullOrEmpty(values[i].Key)) 1682Contracts.Assert(string.IsNullOrEmpty(tag) || tag.StartsWith("[") && tag.EndsWith("]")); 1743if (string.IsNullOrEmpty(data)) 2039if (!string.IsNullOrEmpty(tag)) 2345if (settings == null || (settings.Length == 1 && string.IsNullOrEmpty(settings[0]))) 2359if (string.IsNullOrEmpty(Name) && Settings.Length == 0)
ComponentModel\AssemblyLoadingUtils.cs (1)
272if (!string.IsNullOrEmpty(path))
ComponentModel\ComponentCatalog.cs (1)
1026if (!string.IsNullOrEmpty(options))
Data\ModelHeader.cs (1)
177if (!string.IsNullOrEmpty(loaderAssemblyName))
Data\ModelLoading.cs (2)
57if (string.IsNullOrEmpty(name)) 286if (!string.IsNullOrEmpty(LoaderAssemblyName))
Data\ModelSaveContext.cs (1)
223_ectx.CheckParam(!string.IsNullOrEmpty(str), nameof(str));
Data\Repository.cs (1)
404if (!string.IsNullOrEmpty(path))
Data\RoleMappedSchema.cs (1)
223if (string.IsNullOrEmpty(kvp.Value))
EntryPoints\ModuleArgs.cs (3)
394var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 447var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", "; 498var name = string.IsNullOrEmpty(Name) ? "" : $"\"{Name}\", ";
Environment\HostEnvironmentBase.cs (3)
49ParentFullName = string.IsNullOrEmpty(parentFullName) ? null : parentFullName; 50ShortName = string.IsNullOrEmpty(shortName) ? null : shortName; 60if (string.IsNullOrEmpty(ParentFullName))
Utilities\Contracts.cs (8)
600if (string.IsNullOrEmpty(s)) 606if (string.IsNullOrEmpty(s)) 626if (string.IsNullOrEmpty(s)) 632if (string.IsNullOrEmpty(s)) 904if (string.IsNullOrEmpty(s)) 910if (string.IsNullOrEmpty(s)) 930if (string.IsNullOrEmpty(s)) 936if (string.IsNullOrEmpty(s))
Utilities\PathUtils.cs (1)
134if (!string.IsNullOrEmpty(folder))
Utilities\ResourceManagerUtils.cs (7)
46if (!string.IsNullOrEmpty(envUrl)) 111if (File.Exists(filePath) || !string.IsNullOrEmpty(error)) 136if (string.IsNullOrEmpty(thisDownloadResult)) 207var absDir = Path.Combine(string.IsNullOrEmpty(envDir) ? appDataDir : envDir, dir); 211if (!Directory.Exists(appDataBaseDir) && string.IsNullOrEmpty(envDir)) 338var errorResult = result.FirstOrDefault(res => !string.IsNullOrEmpty(res.ErrorMessage)); 341else if (string.IsNullOrEmpty(errorResult.DownloadUrl))
Microsoft.ML.Core.Tests (2)
UnitTests\TestEntryPoints.cs (2)
2560if (string.IsNullOrEmpty(transforms)) 2565var scorerModel = string.IsNullOrEmpty(transforms) ? "Model" : "CombinedModel";
Microsoft.ML.CpuMath (8)
src\Microsoft.ML.Core\Utilities\Contracts.cs (8)
600if (string.IsNullOrEmpty(s)) 606if (string.IsNullOrEmpty(s)) 626if (string.IsNullOrEmpty(s)) 632if (string.IsNullOrEmpty(s)) 904if (string.IsNullOrEmpty(s)) 910if (string.IsNullOrEmpty(s)) 930if (string.IsNullOrEmpty(s)) 936if (string.IsNullOrEmpty(s))
Microsoft.ML.Data (62)
Commands\CrossValidationCommand.cs (2)
158if (!string.IsNullOrEmpty(ImplOptions.OutputDataFile)) 201validDataCreator, ApplyAllTransformsToData, inputPredictor, cmd, loader, !string.IsNullOrEmpty(ImplOptions.OutputDataFile));
Commands\EvaluateCommand.cs (2)
78if (string.IsNullOrEmpty(_groupName) || string.IsNullOrEmpty(_nameFormat))
Commands\TestCommand.cs (1)
66Host.CheckUserArg(!string.IsNullOrEmpty(ImplOptions.InputModelFile), nameof(ImplOptions.InputModelFile), "The input model file is required.");
Commands\TrainCommand.cs (2)
290if (!string.IsNullOrEmpty(inputModelFile)) 458if (string.IsNullOrEmpty(featureColumn))
Commands\TrainTestCommand.cs (1)
190bool hasOutfile = !string.IsNullOrEmpty(ImplOptions.OutputModelFile);
DataLoadSave\Binary\BinaryLoader.cs (1)
337ch.CheckDecode(!string.IsNullOrEmpty(kind), "Metadata kind must be non-empty string");
DataLoadSave\Binary\BinarySaver.cs (1)
283_host.Check(!string.IsNullOrEmpty(metaColumn.Name), "Metadata with null or empty kind detected, disallowed");
DataLoadSave\Binary\CodecFactory.cs (1)
162Contracts.CheckDecode(!string.IsNullOrEmpty(signature), "Non-empty signature string expected");
DataLoadSave\LegacyCompositeDataLoader.cs (2)
152if (!string.IsNullOrEmpty(pair.Key) && composite._transforms.Any(x => x.Tag == pair.Key)) 222if (string.IsNullOrEmpty(tag))
DataLoadSave\Text\TextLoader.cs (3)
386if (string.IsNullOrEmpty(rest) || rest == "*") 992if (!string.IsNullOrEmpty(result)) 1229if (string.IsNullOrEmpty(s))
DataLoadSave\Text\TextLoaderCursor.cs (1)
508if (string.IsNullOrEmpty(line))
DataLoadSave\Text\TextSaver.cs (1)
279Contracts.CheckUserArg(!string.IsNullOrEmpty(sep), nameof(Arguments.Separator), "Must specify a separator");
DataView\InternalSchemaDefinition.cs (1)
259var colName = string.IsNullOrEmpty(col.ColumnName) ? col.MemberName : col.ColumnName;
DataView\TypedCursor.cs (1)
282var colName = string.IsNullOrEmpty(col.ColumnName) ? col.MemberName : col.ColumnName;
Deprecated\Instances\HeaderSchema.cs (2)
208names[i] = string.IsNullOrEmpty(name) ? null : name; 225if (!string.IsNullOrEmpty(name))
Dirty\PredictionUtils.cs (2)
110if (string.IsNullOrEmpty(sep)) 130if (string.IsNullOrEmpty(s))
EntryPoints\EntryPointNode.cs (3)
532if (string.IsNullOrEmpty(colField)) 538if (!string.IsNullOrEmpty(colName) && Utils.Size(_entryPoint.InputKinds) > 0 && 773if (!string.IsNullOrEmpty(StageId))
Evaluators\BinaryClassifierEvaluator.cs (9)
1070if (string.IsNullOrEmpty(_probCol) || !schema.TryGetColumnIndex(_probCol, out _probIndex)) 1098Host.CheckDecode(!string.IsNullOrEmpty(_probCol) || _useRaw); 1131Contracts.Assert(!string.IsNullOrEmpty(_probCol) || _useRaw); 1274Host.Assert(!string.IsNullOrEmpty(_probCol)); 1332evalArgs.NumRocExamples = string.IsNullOrEmpty(args.PRFilename) ? 0 : args.NumRocExamples; 1398ch.Assert(string.IsNullOrEmpty(weightedConf) == string.IsNullOrEmpty(weightedFold)); 1399if (!string.IsNullOrEmpty(weightedConf)) 1417if (!string.IsNullOrEmpty(_prFileName))
Evaluators\EvaluatorBase.cs (2)
488if (!string.IsNullOrEmpty(LabelCol) && !schema.TryGetColumnIndex(LabelCol, out LabelIndex)) 504if (!string.IsNullOrEmpty(LabelCol) && !schema.TryGetColumnIndex(LabelCol, out LabelIndex))
Evaluators\EvaluatorUtils.cs (2)
239if (!string.IsNullOrEmpty(str)) 1710if (!string.IsNullOrEmpty(filename))
Evaluators\MamlEvaluator.cs (2)
146if (!string.IsNullOrEmpty(weight)) 178if (!string.IsNullOrEmpty(weightedMetrics))
Evaluators\MulticlassClassificationEvaluator.cs (3)
942ch.Assert(string.IsNullOrEmpty(weightedConf) == string.IsNullOrEmpty(weightedFold)); 943if (!string.IsNullOrEmpty(weightedConf))
Evaluators\QuantileRegressionEvaluator.cs (1)
501if (!string.IsNullOrEmpty(weightedMetrics))
Evaluators\RankingEvaluator.cs (2)
886evalOpts.OutputGroupSummary = !string.IsNullOrEmpty(args.GroupSummaryFilename); 904if (!string.IsNullOrEmpty(_groupSummaryFilename))
Model\Pfa\ModelUtils.cs (1)
14if (string.IsNullOrEmpty(name))
Model\Pfa\SavePfaCommand.cs (1)
127if (string.IsNullOrEmpty(ImplOptions.InputModelFile))
TrainCatalog.cs (1)
455var eval = new ClusteringEvaluator(Environment, new ClusteringEvaluator.Arguments() { CalculateDbi = !string.IsNullOrEmpty(featureColumnName) });
Transforms\ColumnBindingsBase.cs (2)
151return Source.All(s => !string.IsNullOrEmpty(s)); 194return Source.All(s => !string.IsNullOrEmpty(s));
Transforms\ColumnConcatenatingEstimator.cs (1)
59_host.CheckParam(!inputColumnNames.Any(r => string.IsNullOrEmpty(r)), nameof(inputColumnNames),
Transforms\ColumnConcatenatingTransformer.cs (1)
96if (Source == null || Source.Any(kvp => !string.IsNullOrEmpty(kvp.Key)))
Transforms\TransformBase.cs (1)
393host.CheckDecode(!string.IsNullOrEmpty(src));
Transforms\TypeConverting.cs (1)
121else if (!string.IsNullOrEmpty(Range))
Transforms\ValueMapping.cs (2)
610var keyColumnName = (string.IsNullOrEmpty(options.KeyColumn)) ? DefaultKeyColumnName : options.KeyColumn; 611var valueColumnName = (string.IsNullOrEmpty(options.ValueColumn)) ? DefaultValueColumnName : options.ValueColumn;
Transforms\ValueToKeyMappingTransformer.cs (2)
72if (MaxNumTerms != null || !string.IsNullOrEmpty(Term) || Sort != null || TextKeyValues != null) 277if ((options.Terms != null || !string.IsNullOrEmpty(options.Term)) &&
Utilities\TypeParsingUtils.cs (1)
132if (string.IsNullOrEmpty(str) || str == "*")
Microsoft.ML.DataView (9)
DataViewSchema.cs (9)
38if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); 63if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); 107if (string.IsNullOrEmpty(name)) 150if (string.IsNullOrEmpty(name)) 297if (string.IsNullOrEmpty(name)) 320if (string.IsNullOrEmpty(name)) 340if (string.IsNullOrEmpty(name)) 363Debug.Assert(!string.IsNullOrEmpty(name)); 398if (string.IsNullOrEmpty(name))
Microsoft.ML.Ensemble (5)
PipelineEnsemble.cs (2)
738while (string.IsNullOrEmpty(firstLine)) 740if (!string.IsNullOrEmpty(firstLine))
Selector\SubModelSelector\BestPerformanceRegressionSelector.cs (1)
44Host.Assert(!string.IsNullOrEmpty(_metricName));
Selector\SubModelSelector\BestPerformanceSelector.cs (1)
44Host.Assert(!string.IsNullOrEmpty(_metricName));
Selector\SubModelSelector\BestPerformanceSelectorMulticlass.cs (1)
44Host.Assert(!string.IsNullOrEmpty(_metricName));
Microsoft.ML.FastTree (3)
FastTree.cs (2)
3158if (string.IsNullOrEmpty(name)) 3218if (string.IsNullOrEmpty(name))
GamModelParameters.cs (1)
818Name = string.IsNullOrEmpty(name) ? $"f{index}" : name;
Microsoft.ML.GenAI.Mistral (1)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
97TextMessage when message.GetRole() == Role.User && !string.IsNullOrEmpty(systemMessage) => $"[INST]{systemMessage}{Newline}{Newline}{content.Trim()}[/INST]",
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
107if (String.IsNullOrEmpty(imageFolder))
Microsoft.ML.InternalCodeAnalyzer (4)
NameAnalyzer.cs (1)
141=> !string.IsNullOrEmpty(name) && name.StartsWith("_", StringComparison.OrdinalIgnoreCase) && Utils.NameIsGood(name, 1, false);
NameFixProvider.cs (3)
135if (string.IsNullOrEmpty(name)) 150if (string.IsNullOrEmpty(name)) 169if (string.IsNullOrEmpty(token))
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
453var catBoundaries = !String.IsNullOrEmpty(modelParameters["categorical_feature"]) ? modelParameters["categorical_feature"].Split(',').Select(x => int.Parse(x, CultureInfo.InvariantCulture)).ToArray() : null;
Microsoft.ML.Parquet (5)
PartitionedFileLoader.cs (3)
111if (string.IsNullOrEmpty(str)) 520if (String.IsNullOrEmpty(curPath)) 538} while (String.IsNullOrEmpty(path));
PartitionedPathParser.cs (2)
334if (string.IsNullOrEmpty(path)) 373if (string.IsNullOrEmpty(dir))
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
89if (!string.IsNullOrEmpty(WeightColumn) || Rank != null || Oversampling != null ||
Microsoft.ML.StandardTrainers (3)
Standard\LinearPredictorUtils.cs (1)
73if (string.IsNullOrEmpty(featureName))
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
225Contracts.Assert(!string.IsNullOrEmpty(_labelNames[i]));
Standard\ModelStatistics.cs (1)
447if (string.IsNullOrEmpty(name))
Microsoft.ML.Sweeper (3)
ConfigRunner.cs (3)
70Host.CheckUserArg(!string.IsNullOrEmpty(options.OptionsPattern), nameof(options.OptionsPattern), "The command pattern is missing"); 71Host.CheckUserArg(!string.IsNullOrEmpty(options.OutputFolderName), nameof(options.OutputFolderName), "Please specify an output folder"); 74Prefix = string.IsNullOrEmpty(options.Prefix) ? "" : options.Prefix;
Microsoft.ML.TensorFlow (4)
TensorflowTransform.cs (2)
450var isFrozen = string.IsNullOrEmpty(_savedModelPath); 525if (!string.IsNullOrEmpty(_savedModelPath) && _isTemporarySavedModel)
TensorflowUtils.cs (2)
200if (!string.IsNullOrEmpty(modelFile)) 237if (string.IsNullOrEmpty(modelFile))
Microsoft.ML.TestFramework (8)
BaseTestPredictorsMaml.cs (4)
310if (!string.IsNullOrEmpty(extraTag)) 317string filePrefix = (string.IsNullOrEmpty(predictor.Tag) ? predictor.Trainer.Kind : predictor.Tag); 330if (!string.IsNullOrEmpty(dataset.loaderSettings)) 332if (!string.IsNullOrEmpty(dataset.labelFilename))
DataPipe\TestDataPipeBase.cs (1)
316if (string.IsNullOrEmpty(pathData))
SubComponent.cs (3)
49set { _settings = string.IsNullOrEmpty(value) ? _empty : new string[] { value }; } 85if (settings == null || settings.Length == 1 && string.IsNullOrEmpty(settings[0])) 94if (string.IsNullOrEmpty(settings))
Microsoft.ML.TestFrameworkCommon (3)
Utility\LibraryLoader.cs (2)
42if (string.IsNullOrEmpty(name)) 121if (string.IsNullOrEmpty(functionName))
Utility\PathResolver.cs (1)
44if (!string.IsNullOrEmpty(AppContext.BaseDirectory))
Microsoft.ML.Tests (1)
Scenarios\Api\TestApi.cs (1)
272.Where(line => !string.IsNullOrEmpty(line) && !line.StartsWith("//"))
Microsoft.ML.TimeSeries (7)
PredictionEngine.cs (1)
88env.CheckParam(!string.IsNullOrEmpty(modelPath), nameof(modelPath));
SequentialForecastingTransformBase.cs (3)
130if (!string.IsNullOrEmpty(_parent.ConfidenceUpperBoundColumn)) 159var getters = string.IsNullOrEmpty(_parent.ConfidenceUpperBoundColumn) ? new Delegate[1] : new Delegate[3]; 171if (!string.IsNullOrEmpty(_parent.ConfidenceUpperBoundColumn))
SequentialTransformerBase.cs (1)
501if (!string.IsNullOrEmpty(forecastingConfidenceIntervalMinOutputColumnName))
SSaForecasting.cs (1)
343if (!string.IsNullOrEmpty(_options.ConfidenceUpperBoundColumn))
SsaForecastingBase.cs (1)
139options.DiscountFactor, options.RankSelectionMethod, options.Rank, options.MaxRank, !string.IsNullOrEmpty(options.ConfidenceLowerBoundColumn),
Microsoft.ML.Tokenizers (45)
Model\BertTokenizer.cs (2)
665string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), 722Stream stream = string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath);
Model\BPETokenizer.cs (5)
433if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 492if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 559if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 640if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 692if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\CodeGenTokenizer.cs (9)
149if (!string.IsNullOrEmpty(UnknownToken)) 159if (!string.IsNullOrEmpty(BeginningOfSentenceToken)) 169if (!string.IsNullOrEmpty(EndOfSentenceToken)) 179if (AddBeginningOfSentence && string.IsNullOrEmpty(BeginningOfSentenceToken)) 184if (AddEndOfSentence && string.IsNullOrEmpty(EndOfSentenceToken)) 329if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 585if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 804if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 941if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\EnglishRobertaTokenizer.cs (4)
316if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 417if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 503if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 549if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\LlamaTokenizer.cs (1)
52if (modelProto.NormalizerSpec.Name != "identity" && !string.IsNullOrEmpty(modelProto.NormalizerSpec.Name))
Model\SentencePieceBpeModel.cs (2)
69if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 289if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Model\SentencePieceUnigramModel.cs (4)
102ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 561ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 950ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 1220ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan();
Model\TiktokenTokenizer.cs (8)
47this(string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), preTokenizer, specialTokens, normalizer, cacheSize, disposeStream: true) 260if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 370if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 539if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 664if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 1382if (string.IsNullOrEmpty(modelName)) 1422if (string.IsNullOrEmpty(modelName)) 1463if (string.IsNullOrEmpty(encodingName))
Model\WordPieceTokenizer.cs (6)
134Create(string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), options, disposeStream: true); 192string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), 274if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 397if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 549if (string.IsNullOrEmpty(text) && textSpan.IsEmpty) 609if (string.IsNullOrEmpty(text) && textSpan.IsEmpty)
Normalizer\BertNormalizer.cs (1)
31if (string.IsNullOrEmpty(original))
Normalizer\SentencePieceNormalizer.cs (1)
91if (string.IsNullOrEmpty(original))
PreTokenizer\RegexPreTokenizer.cs (1)
50if (string.IsNullOrEmpty(text))
PreTokenizer\RobertaPreTokenizer.cs (1)
27if (string.IsNullOrEmpty(text))
Microsoft.ML.Tokenizers.Tests (3)
LlamaTests.cs (1)
264bool isEmptyInput = string.IsNullOrEmpty(input);
NormalizerTests.cs (1)
143if (string.IsNullOrEmpty(original))
PreTokenizerTests.cs (1)
118if (string.IsNullOrEmpty(text))
Microsoft.ML.Transforms (13)
Dracula\CountTableTransformer.cs (2)
470if (!string.IsNullOrEmpty(options.InitialCountsModel)) 579Host.Assert(!string.IsNullOrEmpty(_labelClassNames[i]));
Dracula\CountTargetEncodingTransformer.cs (2)
173if (!string.IsNullOrEmpty(options.InitialCountsModel)) 513inputColumnName = string.IsNullOrEmpty(inputColumnName) ? outputColumnName : inputColumnName;
HashJoiningTransform.cs (1)
99if (Join != null || !string.IsNullOrEmpty(CustomSlotMap) || NumberOfBits != null ||
MissingValueReplacing.cs (1)
414if (!string.IsNullOrEmpty(srcStr))
PermutationFeatureImportanceExtensions.cs (1)
714if (string.IsNullOrEmpty(name))
Text\StopWordsRemovingTransformer.cs (1)
378if (!string.IsNullOrEmpty(_parent._columns[i].LanguageColumn))
Text\TextFeaturizingEstimator.cs (4)
343public bool NeedsWordTokenizationTransform { get { return WordExtractorFactory != null || NeedsRemoveStopwordsTransform || !string.IsNullOrEmpty(OutputTextTokensColumnName); } } 530if (!string.IsNullOrEmpty(tparams.OutputTextTokensColumnName)) 598Contracts.Assert(charFeatureCol != null || wordFeatureCol != null || !string.IsNullOrEmpty(tparams.OutputTextTokensColumnName)); 659if (!string.IsNullOrEmpty(OptionalSettings.OutputTokensColumnName))
UngroupTransform.cs (1)
332ectx.CheckUserArg(!string.IsNullOrEmpty(name), nameof(Options.Columns), "Column name cannot be empty");
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (1)
302if (!string.IsNullOrEmpty(options.LearningRateOperation))
ImageClassificationTrainer.cs (3)
539if (string.IsNullOrEmpty(options.WorkspacePath)) 550if (string.IsNullOrEmpty(options.TrainSetBottleneckCachedValuesFileName)) 556if (string.IsNullOrEmpty(options.ValidationSetBottleneckCachedValuesFileName))
Microsoft.Net.Http.Headers (7)
HeaderUtilities.cs (4)
234if (StringValues.IsNullOrEmpty(headerValues) || string.IsNullOrEmpty(targetValue)) 291if (StringValues.IsNullOrEmpty(cacheControlDirectives) || string.IsNullOrEmpty(targetDirectives)) 372if (string.IsNullOrEmpty(value.Buffer) || value.Length == 0) 398if (string.IsNullOrEmpty(value.Buffer) || value.Length == 0)
HttpHeaderParser.cs (2)
73while (!string.IsNullOrEmpty(value) && index < value.Length) 130while (!string.IsNullOrEmpty(value) && index < value.Length)
src\Http\Shared\CookieHeaderParserShared.cs (1)
33while (!string.IsNullOrEmpty(value) && index < value.Length)
Microsoft.NET.StringTools (1)
SpanBasedStringBuilder.cs (1)
218if (!string.IsNullOrEmpty(value))
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
91If Not String.IsNullOrEmpty(file) AndAlso
Microsoft.VisualBasic.Forms (9)
Microsoft\VisualBasic\Devices\Audio.vb (1)
43If String.IsNullOrEmpty(location) Then
Microsoft\VisualBasic\Devices\Network.DownloadFile.vb (1)
355If String.IsNullOrEmpty(targetDirectory) Then
Microsoft\VisualBasic\Helpers\FileSystemUtils.vb (2)
26Debug.Assert(Not String.IsNullOrEmpty(fullPath) AndAlso IO.Path.IsPathRooted(fullPath), "Must be full path") 122If String.IsNullOrEmpty(path) Then
Microsoft\VisualBasic\Interaction.vb (1)
210If String.IsNullOrEmpty(Title) Then
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
99If String.IsNullOrEmpty(_hostName) Then 143If String.IsNullOrEmpty(CustomLocation) Then 253If String.IsNullOrEmpty(value) Then
Microsoft\VisualBasic\Logging\Log.vb (1)
196If Not String.IsNullOrEmpty(additionalInfo) Then
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (2)
697Assert.False(string.IsNullOrEmpty(TestFileName)); 699if (!string.IsNullOrEmpty(PathFromBase))
Microsoft.VisualStudio.IntegrationTest.Setup (2)
TestTraceListener.cs (2)
21if (string.IsNullOrEmpty(message)) 25else if (string.IsNullOrEmpty(detailMessage))
Microsoft.VisualStudio.LanguageServices (37)
ChangeSignature\AddParameterDialogViewModel.cs (2)
121if (string.IsNullOrEmpty(VerbatimTypeName) || string.IsNullOrEmpty(ParameterName))
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (1)
45return !string.IsNullOrEmpty(value)
CodeMarkers\ManagedCodeMarkers.cs (1)
364return !string.IsNullOrEmpty(defaultValue);
CommonControls\NewTypeDestinationSelectionViewModel.cs (1)
83string.IsNullOrEmpty(_defaultNamespace) ? string.Empty : _defaultNamespace + ".",
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
220var currentStringValue = string.IsNullOrEmpty(currentValue as string) ? null : (string)currentValue;
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (1)
86string.IsNullOrEmpty(assemblyPath))
Interactive\VsResetInteractive.cs (4)
124Debug.Assert(!string.IsNullOrEmpty(projectDir)); 125Debug.Assert(!string.IsNullOrEmpty(outputFileName)); 126Debug.Assert(!string.IsNullOrEmpty(relativeOutputPath)); 150if (!string.IsNullOrEmpty(defaultNamespace))
LanguageService\AbstractLanguageService`2.IVsContainedLanguageFactory.cs (2)
51if (string.IsNullOrEmpty(projectName)) 59if (string.IsNullOrEmpty(projectName))
Library\VsNavInfo\Extensions.cs (1)
46if (string.IsNullOrEmpty(name))
MoveStaticMembers\MoveStaticMembersDialogViewModel.cs (2)
34_prependedNamespace = string.IsNullOrEmpty(prependedNamespace) ? prependedNamespace : prependedNamespace + "."; 118if (string.IsNullOrEmpty(typeName))
MoveToNamespace\MoveToNamespaceDialogViewModel.cs (1)
77if (string.IsNullOrEmpty(namespaceName))
Options\LocalUserRegistryOptionPersister.cs (1)
33Contract.ThrowIfTrue(string.IsNullOrEmpty(rootPath));
ProjectSystem\Extensions\IVsHierarchyExtensions.cs (1)
78if (ErrorHandler.Succeeded(((IVsProject3)hierarchy).GetMkDocument((uint)VSConstants.VSITEMID.Root, out var projectFilePath)) && !string.IsNullOrEmpty(projectFilePath))
ProjectSystem\Legacy\AbstractLegacyProject.cs (3)
210if (!string.IsNullOrEmpty(linkMetadata)) 215else if (!string.IsNullOrEmpty(ProjectSystemProject.FilePath)) 284if (ErrorHandler.Succeeded(storage.GetPropertyValue("TargetRefPath", null, (uint)_PersistStorageType.PST_PROJECT_FILE, out var targetRefPath)) && !string.IsNullOrEmpty(targetRefPath))
ProjectSystem\Legacy\AbstractLegacyProject_IAnalyzerHost.cs (1)
25if (!string.IsNullOrEmpty(ruleSetFileFullPath))
ProjectSystem\OpenTextBufferProvider.cs (1)
327return !string.IsNullOrEmpty(moniker);
Snippets\AbstractSnippetInfoService.cs (1)
199if (!string.IsNullOrEmpty(snippetInfo.shortcut))
Snippets\SnippetFunctions\SnippetFunctionSimpleTypeName.cs (1)
48if (string.IsNullOrEmpty(simplifiedTypeName))
StackTraceExplorer\StackTraceExplorerRootViewModel.cs (1)
67if (string.IsNullOrEmpty(text))
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (6)
160string.IsNullOrEmpty(filePath); 216if (entryHandle.TryGetValue(StandardTableColumnDefinitions.ErrorCode, out string errorCode) && !string.IsNullOrEmpty(errorCode) && 217entryHandle.TryGetValue(StandardTableColumnDefinitions.ErrorCategory, out string category) && !string.IsNullOrEmpty(category) && 218entryHandle.TryGetValue(StandardTableColumnDefinitions.Text, out string message) && !string.IsNullOrEmpty(message) && 219entryHandle.TryGetValue(StandardTableColumnDefinitions.ProjectName, out string projectName) && !string.IsNullOrEmpty(projectName)) 239entryHandle.TryGetValue(StandardTableColumnDefinitions.DocumentName, out filePath) && !string.IsNullOrEmpty(filePath) &&
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
201var description = string.IsNullOrEmpty(diagnostic.Description) ? null : diagnostic.Description;
TaskList\ProjectExternalErrorReporter.cs (1)
331if (!string.IsNullOrEmpty(errorId) && errorId.Length > 2)
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (1)
177if (string.IsNullOrEmpty(projectFilePath))
Venus\ContainedDocument.cs (1)
902if (!string.IsNullOrEmpty(baseIndentationString))
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (2)
1696if (string.IsNullOrEmpty(target)) 1779if (!string.IsNullOrEmpty(name))
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (3)
186if (string.IsNullOrEmpty(path)) 193if (!string.IsNullOrEmpty(directory)) 206if (string.IsNullOrEmpty(value))
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
124if (string.IsNullOrEmpty(namespaceToImport))
Utilities\CSharpParseOptionsChangingService.cs (1)
35if (string.IsNullOrEmpty(maxLangVersion))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Interactive\Commands\InteractiveCommandHandlerTests.cs (1)
219if (!string.IsNullOrEmpty(submissionBuffer))
Microsoft.VisualStudio.LanguageServices.LiveShare (3)
Client\RemoteLanguageServiceWorkspace.cs (3)
263if (!string.IsNullOrEmpty(remoteWorkspaceRoot)) 267else if (!string.IsNullOrEmpty(remoteExternalRoot)) 300if (string.IsNullOrEmpty(text.ToString()))
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (3)
CallHierarchy\CallHierarchyTestState.vb (2)
157If Not String.IsNullOrEmpty(root.ContainingTypeName) Then 161If Not String.IsNullOrEmpty(root.ContainingNamespaceName) Then
ProjectSystemShim\VisualBasicHelpers\MockCompilerHost.vb (1)
42If String.IsNullOrEmpty(sdkPath) Then
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
PullMemberUp\PullMemberUpViewModelTest.vb (2)
178Assert.False(String.IsNullOrEmpty(member.TooltipText)) 225Assert.True(String.IsNullOrEmpty(member.TooltipText))
Microsoft.VisualStudio.LanguageServices.VisualBasic (7)
CodeModel\VisualBasicCodeModelService.vb (4)
1798If Not String.IsNullOrEmpty(value) Then 1893If Not String.IsNullOrEmpty(name) Then 1906If Not String.IsNullOrEmpty([alias]) Then 1972Return If(Not String.IsNullOrEmpty(parameterName) AndAlso SyntaxFactsService.IsTypeCharacter(parameterName.Last()),
Snippets\VisualBasicSnippetExpansionLanguageHelper.vb (1)
129If String.IsNullOrEmpty(namespaceToImport) Then
Venus\ContainedLanguageStaticEventBinding.vb (2)
44(String.IsNullOrEmpty(objectName) AndAlso handleClauseItem.EventContainer.IsKind(SyntaxKind.MeKeyword, SyntaxKind.MyBaseKeyword, SyntaxKind.MyClassKeyword)) Then 121If String.IsNullOrEmpty(objectName) AndAlso handlesClauseItem.EventContainer.IsKind(SyntaxKind.MeKeyword, SyntaxKind.MyBaseKeyword, SyntaxKind.MyClassKeyword) Then
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Implementation\LanguageServer\Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
36if (string.IsNullOrEmpty(request.Character))
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
97=> string.Join("\r\n", description.Select(section => section.Text).Where(text => !string.IsNullOrEmpty(text)));
Implementation\XamlProjectService.cs (1)
73if (string.IsNullOrEmpty(filePath))
Microsoft.Web.Xdt.Extensions (2)
InsertOrAppendAttribute.cs (2)
55if (!string.IsNullOrEmpty(arg)) 114if (string.IsNullOrEmpty(att.Value))
MvcFormSample (1)
Models\ErrorViewModel.cs (1)
9public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
MyFrontend (1)
Services\BasketServiceClient.cs (1)
15var result = !string.IsNullOrEmpty(response.BuyerId) ? MapToCustomerBasket(response) : null;
Negotiate.Client (4)
Controllers\AuthTestController.cs (4)
286if (string.IsNullOrEmpty(details.GetProperty("name").GetString())) 292if (string.IsNullOrEmpty(details.GetProperty("authenticationType").GetString())) 306if (!string.IsNullOrEmpty(details.GetProperty("name").GetString())) 312if (!string.IsNullOrEmpty(details.GetProperty("authenticationType").GetString()))
OpenIdConnectSample (3)
Startup.cs (3)
46if (string.IsNullOrEmpty(userAgent)) 239if (string.IsNullOrEmpty(refreshToken)) 359string.IsNullOrEmpty(content) ? string.Empty : HtmlEncoder.Default.Encode(content);
PathSchemeSelection (1)
Models\ErrorViewModel.cs (1)
12public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
PresentationBuildTasks (90)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (2)
111if (String.IsNullOrEmpty(errorId)) 323if (!string.IsNullOrEmpty(Culture))
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (7)
586if (xmlProjectDoc == null || String.IsNullOrEmpty(sItemName)) 699if (xmlProjectDoc == null || String.IsNullOrEmpty(sItemName) || pItemList == null) 732if (!String.IsNullOrEmpty(embedInteropTypesMetadata)) 740if (!String.IsNullOrEmpty(aliases)) 770if (!string.IsNullOrEmpty(property.PropertyValue)) 878if (!string.IsNullOrEmpty(sdkReference.Version)) 885if (!string.IsNullOrEmpty(sdkReference.MinimumVersion))
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (11)
184if (String.IsNullOrEmpty(errorId)) 693if (String.IsNullOrEmpty(xamlFile)) 1142if (IsApplicationTarget && !String.IsNullOrEmpty(CompilerAnalyzer.RecompileApplicationFile.Path)) 1146if (!String.IsNullOrEmpty(codeFile)) 1151if (!String.IsNullOrEmpty(bamlFile)) 1163if (!String.IsNullOrEmpty(codeFile)) 1168if (!String.IsNullOrEmpty(bamlFile)) 1313if (!String.IsNullOrEmpty(_localXamlApplication)) 1464if (!String.IsNullOrEmpty(genLangFilePath) && outputCodeFileList != null) 1478if (!String.IsNullOrEmpty(bamlFile)) 1705if (!string.IsNullOrEmpty(UICulture))
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (2)
138if (String.IsNullOrEmpty(errorId)) 663if (!String.IsNullOrEmpty(_internalTypeHelperFile) && !compilerWrapper.HasInternals)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (5)
208if (string.IsNullOrEmpty(errorId)) 345if (!string.IsNullOrEmpty(logicalName)) 356filePath = !string.IsNullOrEmpty(linkAlias) ? linkAlias : filePath; 369if (string.IsNullOrEmpty(relPath)) 374if (string.IsNullOrEmpty(relPath))
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
106if (String.IsNullOrEmpty(errorId))
MS\Internal\MarkupCompiler\MarkupCompiler.cs (11)
626Guid hashGuid = !string.IsNullOrEmpty(ChecksumAlgorithm) && ChecksumAlgorithm.Equals("SHA256", StringComparison.OrdinalIgnoreCase) 2140if (String.IsNullOrEmpty(LanguageSourceExtension)) 2500if (!string.IsNullOrEmpty(baseClassFullName)) 2528Debug.Assert(!string.IsNullOrEmpty(baseName)); 2670string version = hasWildcard || String.IsNullOrEmpty(AssemblyVersion) 2674string token = String.IsNullOrEmpty(AssemblyPublicKeyToken) 2976if (IsLanguageVB && !string.IsNullOrEmpty(DefaultNamespace)) 3131if (String.IsNullOrEmpty(clrNS)) 3238if (!string.IsNullOrEmpty(_splashImage) && !HostInBrowser) 3351if (string.IsNullOrEmpty(relPath)) 3356if (!string.IsNullOrEmpty(relPath))
MS\Internal\MarkupCompiler\ParserExtension.cs (2)
188if (!string.IsNullOrEmpty(ns)) 760|| string.IsNullOrEmpty(((ClrNamespaceAssemblyPair)XamlTypeMapper.PITable[xamlPIMappingNode.XmlNamespace]).AssemblyName);
MS\Internal\MarkupCompiler\PathInternal.cs (2)
256if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) return 0;
MS\Internal\Shared\SourceFileInfo.cs (1)
43if (!string.IsNullOrEmpty(file.Path) && file.Path.ToUpperInvariant().EndsWith(XAML, StringComparison.Ordinal))
MS\Internal\Tasks\CompilerLocalReference.cs (4)
77if (!String.IsNullOrEmpty(FilePath)) 111if (!String.IsNullOrEmpty(cacheInfo)) 176Debug.Assert(!String.IsNullOrEmpty(_localCacheFile), "_localCacheFile must not be empty."); 238Debug.Assert(!String.IsNullOrEmpty(_localCacheFile), "_localCacheFile must not be empty.");
MS\Internal\Tasks\CompilerState.cs (2)
90Debug.Assert(!String.IsNullOrEmpty(_stateFilePath), "StateFilePath must not be empty."); 151Debug.Assert(!String.IsNullOrEmpty(_stateFilePath), "_stateFilePath must be not be empty.");
MS\Internal\Tasks\CompilerWrapper.cs (2)
300if (String.IsNullOrEmpty(strErrorCode)) 353if (String.IsNullOrEmpty(sourceFileInfo.OriginalFilePath))
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (3)
333bool isSrcEmpty = String.IsNullOrEmpty(textSource); 334bool istgtEmpty = String.IsNullOrEmpty(textTarget); 498if (String.IsNullOrEmpty(relContentFilePath))
MS\Internal\Tasks\TaskFileService.cs (4)
124if (string.IsNullOrEmpty(srcFile)) 215if (string.IsNullOrEmpty(srcFile)) 285if (string.IsNullOrEmpty(destinationFile)) 329if (string.IsNullOrEmpty(destinationFileBaseName))
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Knowncolors.cs (1)
276if (!string.IsNullOrEmpty(colorString))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (3)
947if (!string.IsNullOrEmpty(parameterName)) 1451if(!String.IsNullOrEmpty(prefix)) 1515if (String.IsNullOrEmpty(attribNamespaceURI))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (1)
1229if (!String.IsNullOrEmpty(xamlClrEventNode.LocalAssemblyName))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (1)
1364if (!String.IsNullOrEmpty(xamlClrEventNode.LocalAssemblyName))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (7)
2344if (String.IsNullOrEmpty(attribValue)) 2724if(!String.IsNullOrEmpty(prefix)) 2742if (String.IsNullOrEmpty(attribNamespaceURI)) 3460if (!String.IsNullOrEmpty(propertyName)) 3488if (!String.IsNullOrEmpty(propertyName)) 3495if (!String.IsNullOrEmpty(assembly)) 3895if (!string.IsNullOrEmpty(text))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (5)
3139if (String.IsNullOrEmpty(xmlNamespace)) 3159!String.IsNullOrEmpty(newXmlNamespace); 3281(!(String.IsNullOrEmpty(mapping.AssemblyName)) && !(String.IsNullOrEmpty(mapping.ClrNamespace))) ) 3302if (!String.IsNullOrEmpty(mapping.ClrNamespace))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (5)
110if (!String.IsNullOrEmpty(assemblyFullPath) && File.Exists(assemblyFullPath)) 311if (string.IsNullOrEmpty(xmlns) || string.IsNullOrEmpty(clrns) ) 385if (String.IsNullOrEmpty(oldXmlns) || String.IsNullOrEmpty(newXmlns))
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
345!string.IsNullOrEmpty(_nsDeclarations[thisDecl].Uri))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
542if (String.IsNullOrEmpty(fullPathToAssembly)) 550else if (!String.IsNullOrEmpty(assemblyName) && _cachedMetadataLoadContextAssemblies.TryGetValue(assemblyName, out assembly))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
121if (!string.IsNullOrEmpty(converterName))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (4)
821if (string.IsNullOrEmpty(mappedNamespace) || namespaceName == mappedNamespace) 958if (!string.IsNullOrEmpty(pair)) 1006if (!string.IsNullOrEmpty(prefix)) 1220if (string.IsNullOrEmpty(requiresValue))
PresentationCore (38)
MS\Internal\AppModel\CookieHandler.cs (1)
35if(!string.IsNullOrEmpty(cookies))
MS\Internal\FontCache\FontCacheUtil.cs (3)
421if (string.IsNullOrEmpty(s) || s[0] == '#') 486if (!String.IsNullOrEmpty(fragment)) 679if (!string.IsNullOrEmpty(location))
MS\Internal\FontCache\FontSource.cs (1)
71Debug.Assert(_isInternalCompositeFont || String.IsNullOrEmpty(_fontUri.Fragment));
MS\Internal\FontCache\FontSourceCollection.cs (1)
142if (String.IsNullOrEmpty(resourceName))
MS\Internal\FontFace\CompositeFontInfo.cs (1)
47if (string.IsNullOrEmpty(familyMap.Target))
MS\Internal\FontFace\CompositeFontParser.cs (3)
122if (string.IsNullOrEmpty(s)) 541if (string.IsNullOrEmpty(familyName)) 838return string.IsNullOrEmpty(ns) || ns == CompositeFontNamespace;
MS\Internal\Shaping\TypefaceMap.cs (1)
605else if (!string.IsNullOrEmpty(targetFamilyName))
MS\Internal\TextFormatting\CultureMapper.cs (1)
55if (!string.IsNullOrEmpty(cultureName))
MS\Internal\WpfWebRequestHelper.cs (1)
84if (string.IsNullOrEmpty(httpRequest.UserAgent))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
138if (!String.IsNullOrEmpty(extensionWithDot))
src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (3)
99if (!String.IsNullOrEmpty(subFolder)) 116if (!String.IsNullOrEmpty(extension)) 149if (!String.IsNullOrEmpty(filePath))
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
348if (string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
392if (string.IsNullOrEmpty(result))
System\Windows\Input\Command\KeyGesture.cs (3)
158if (!String.IsNullOrEmpty(_displayString)) 245while (!String.IsNullOrEmpty(keyGestures)) 289if (!String.IsNullOrEmpty(keyDisplayString))
System\Windows\Input\Command\KeyGestureConverter.cs (1)
160if (!String.IsNullOrEmpty(keyGesture.DisplayString))
System\Windows\Media\FontFamilyValueSerializer.cs (1)
34if (string.IsNullOrEmpty(value))
System\Windows\Media\Fonts.cs (2)
88if (!string.IsNullOrEmpty(location) && Uri.TryCreate(location, UriKind.Absolute, out fontLocation)) 105if (string.IsNullOrEmpty(location))
System\Windows\Media\ImageSourceConverter.cs (1)
91if (((value is string) && (!string.IsNullOrEmpty((string)value))) || (value is Uri))
System\Windows\Media\ImageSourceValueSerializer.cs (1)
43if (!string.IsNullOrEmpty(value))
System\Windows\Media\Knowncolors.cs (1)
276if (!string.IsNullOrEmpty(colorString))
System\Windows\Navigation\BaseUriHelper.cs (9)
173if (string.IsNullOrEmpty(assemblyName)) 201if (!String.IsNullOrEmpty(assemblyVersion)) 289if (string.IsNullOrEmpty(assemblyVersion)) 300if (string.IsNullOrEmpty(assemblyKey)) 436if (uri != null && !string.IsNullOrEmpty(version)) 464bool assemblyKeyProvided = !string.IsNullOrEmpty(assemblyKey); 472if (!string.IsNullOrEmpty(assemblyName) && string.IsNullOrEmpty(assemblyVersion) && 610if (!string.IsNullOrEmpty(assemblyKey))
PresentationFramework (235)
Microsoft\Win32\CommonItemDialog.cs (4)
376if (!string.IsNullOrEmpty(DefaultDirectory)) 385if (!string.IsNullOrEmpty(InitialDirectory)) 391if (string.IsNullOrEmpty(DefaultDirectory)) 399if (!string.IsNullOrEmpty(RootDirectory))
Microsoft\Win32\FileDialog.cs (2)
314if (!string.IsNullOrEmpty(updatedFilter)) 640if (!string.IsNullOrEmpty(filter))
Microsoft\Win32\OpenFileDialog.cs (2)
69if (string.IsNullOrEmpty(filename)) 101if (string.IsNullOrEmpty(filename))
Microsoft\Win32\SaveFileDialog.cs (1)
70if (string.IsNullOrEmpty(filename))
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
411if (String.IsNullOrEmpty(id))
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
126if (!String.IsNullOrEmpty(processorString))
MS\Internal\AppModel\ResourceContainer.cs (1)
263if (!string.IsNullOrEmpty(assemblyName))
MS\Internal\AppModel\ShellProvider.cs (1)
964if (string.IsNullOrEmpty(path))
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
398if (string.IsNullOrEmpty(node.InnerText))
MS\Internal\Controls\WebBrowserEvent.cs (3)
58Uri source = String.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 197Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString); 225Uri source = string.IsNullOrEmpty(urlString) ? null : new Uri(urlString);
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
24Debug.Assert(!(String.IsNullOrEmpty(displayMemberPath) && String.IsNullOrEmpty(stringFormat)));
MS\Internal\Data\LiveShapingItem.cs (2)
106if (!String.IsNullOrEmpty(path)) 148if (!String.IsNullOrEmpty(path))
MS\Internal\Data\LiveShapingList.cs (2)
409return String.IsNullOrEmpty(path) ? String.Empty : path; 477(dp == null && String.IsNullOrEmpty(infos[k].Path)))
MS\Internal\Data\PropertyPathWorker.cs (1)
440(String.IsNullOrEmpty(propertyName) ||
MS\Internal\Data\SortFieldComparer.cs (1)
116if (String.IsNullOrEmpty(sortFields[k].PropertyName))
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
347if (!String.IsNullOrEmpty(propertyName))
MS\Internal\Globalization\BamlTreeMap.cs (3)
501if (!string.IsNullOrEmpty(className)) 663if (!string.IsNullOrEmpty(attributes)) 687if (!string.IsNullOrEmpty(stringComment))
MS\Internal\Globalization\BamlTreeUpdater.cs (4)
474bool invalidResult = string.IsNullOrEmpty(className); 480invalidResult = string.IsNullOrEmpty(assemblyName); 500if (!string.IsNullOrEmpty(tagUid)) 659if (!string.IsNullOrEmpty(contentProperty))
MS\Internal\Ink\TextClipboardData.cs (3)
55return !string.IsNullOrEmpty(_text); 74if ( String.IsNullOrEmpty(text) ) 80if ( !String.IsNullOrEmpty(text) )
MS\Internal\Ink\XamlClipboardData.cs (1)
93if ( !String.IsNullOrEmpty(xml) )
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (1)
180if (string.IsNullOrEmpty(message))
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (1)
61if (string.IsNullOrEmpty(desc))
MS\Win32\UxThemeWrapper.cs (1)
284if (!String.IsNullOrEmpty(s))
System\Windows\Annotations\Annotation.cs (7)
89if (String.IsNullOrEmpty(annotationType.Name)) 93if (String.IsNullOrEmpty(annotationType.Namespace)) 125if (String.IsNullOrEmpty(annotationType.Name)) 129if (String.IsNullOrEmpty(annotationType.Namespace)) 185if (String.IsNullOrEmpty(writer.LookupPrefix(AnnotationXmlConstants.Namespaces.CoreSchemaNamespace))) 189if (String.IsNullOrEmpty(writer.LookupPrefix(AnnotationXmlConstants.Namespaces.BaseSchemaNamespace))) 608if (string.IsNullOrEmpty(value))
System\Windows\Annotations\AnnotationResource.cs (1)
112if (String.IsNullOrEmpty(writer.LookupPrefix(AnnotationXmlConstants.Namespaces.CoreSchemaNamespace)))
System\Windows\Annotations\LocatorPart.cs (2)
46if (String.IsNullOrEmpty(partType.Name)) 50if (String.IsNullOrEmpty(partType.Namespace))
System\Windows\Annotations\LocatorPartList.cs (1)
156if (String.IsNullOrEmpty(prefix))
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
564if (String.IsNullOrEmpty(nodeId)) 875if (!String.IsNullOrEmpty(xmlNamespace))
System\Windows\Application.cs (1)
2282if (!string.IsNullOrEmpty(soundFile))
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (5)
24if (uiCommand != null && !string.IsNullOrEmpty(uiCommand.Text)) 36if (string.IsNullOrEmpty(result)) 43if (!string.IsNullOrEmpty(commandName)) 59if (!string.IsNullOrEmpty(result)) 69if (uiCommand != null && !string.IsNullOrEmpty(uiCommand.Text))
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
224if (string.IsNullOrEmpty(name))
System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (1)
52if (!string.IsNullOrEmpty(owner.Name))
System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (4)
33if (string.IsNullOrEmpty(result)) 39if (string.IsNullOrEmpty(result)) 53if (string.IsNullOrEmpty(result)) 59if (string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (6)
20if (string.IsNullOrEmpty(result)) 26if (string.IsNullOrEmpty(result)) 40if (string.IsNullOrEmpty(result)) 46if (string.IsNullOrEmpty(result)) 57if (string.IsNullOrEmpty(result)) 63if (string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\GroupBoxAutomationPeer.cs (1)
32if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
522if (string.IsNullOrEmpty(name) && item != null) 529if(string.IsNullOrEmpty(name))
System\Windows\Automation\Peers\LabelAutomationPeer.cs (1)
32if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
143if (!string.IsNullOrEmpty(accessKey)) 320if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\TabItemAutomationPeer.cs (1)
35if (!string.IsNullOrEmpty(result))
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
70if (string.IsNullOrEmpty(result))
System\Windows\Controls\AccessText.cs (2)
679if (!string.IsNullOrEmpty(text)) 700if (!string.IsNullOrEmpty(key))
System\Windows\Controls\ContentPresenter.cs (3)
897template = (String.IsNullOrEmpty(format)) ? AccessTextContentTemplate : FormattingAccessTextContentTemplate; 901template = (String.IsNullOrEmpty(format)) ? StringContentTemplate : FormattingStringContentTemplate; 940return (String.IsNullOrEmpty(ContentStringFormat)) ? XmlNodeContentTemplate : FormattingXmlNodeContentTemplate;
System\Windows\Controls\Control.cs (1)
496if (!String.IsNullOrEmpty(plainText))
System\Windows\Controls\DataErrorValidationRule.cs (3)
54if (!String.IsNullOrEmpty(error)) 68if (!String.IsNullOrEmpty(name)) 98if (!String.IsNullOrEmpty(error))
System\Windows\Controls\DataGrid.cs (2)
5391if (!e.Handled && !String.IsNullOrEmpty(e.Text) && IsTextSearchEnabled) 7156if (!string.IsNullOrEmpty(sortPropertyName))
System\Windows\Controls\DataGridBoundColumn.cs (2)
31if (string.IsNullOrEmpty(sortMemberPath)) 34if (!string.IsNullOrEmpty(bindingSortMemberPath))
System\Windows\Controls\DataGridCell.cs (1)
272if (!string.IsNullOrEmpty(propertyName))
System\Windows\Controls\DataGridComboBoxColumn.cs (2)
56if (string.IsNullOrEmpty(sortMemberPath)) 59if (!string.IsNullOrEmpty(bindingSortMemberPath))
System\Windows\Controls\DataGridHelper.cs (1)
684if (!string.IsNullOrEmpty(binding.XPath))
System\Windows\Controls\DataGridTemplateColumn.cs (1)
40if (string.IsNullOrEmpty(templateColumn.SortMemberPath))
System\Windows\Controls\DatePicker.cs (4)
534if (string.IsNullOrEmpty(dp._textBox.Text)) 722if (!string.IsNullOrEmpty(this._defaultText)) 1186if (!string.IsNullOrEmpty(this._textBox.Text)) 1242if (string.IsNullOrEmpty(s))
System\Windows\Controls\ItemsControl.cs (4)
398if (!String.IsNullOrEmpty(displayMemberPath) || !String.IsNullOrEmpty(itemStringFormat)) 646if (string.IsNullOrEmpty(DisplayMemberPath)) 1645if (!String.IsNullOrEmpty(e.Text) && IsTextSearchEnabled &&
System\Windows\Controls\MenuItem.cs (1)
1124if (String.IsNullOrEmpty((string)value) && !menuItem.HasNonDefaultValue(InputGestureTextProperty)
System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
105if (!string.IsNullOrEmpty(this.Text)) 133if (this.Watermark != null && string.IsNullOrEmpty(this.Text))
System\Windows\Controls\Primitives\Selector.cs (6)
575if (string.IsNullOrEmpty(SelectedValuePath)) 580Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 581if (string.IsNullOrEmpty(path)) 2166if (String.IsNullOrEmpty(SelectedValuePath)) 2171Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 2173if (string.IsNullOrEmpty(path))
System\Windows\Controls\RadioButton.cs (4)
58if (!string.IsNullOrEmpty(currentlyRegisteredGroupName)) 62if (!string.IsNullOrEmpty(groupName)) 134if (!string.IsNullOrEmpty(groupName)) 173if (rb != null && rb != this && string.IsNullOrEmpty(rb.GroupName) && (rb.IsChecked == true))
System\Windows\Controls\TextSearch.cs (6)
293Debug.Assert(!String.IsNullOrEmpty(matchedText), "matchedText cannot be null or empty"); 294Debug.Assert(!String.IsNullOrEmpty(newText), "newText cannot be null or empty"); 388if (String.IsNullOrEmpty(newPrefix)) 402if (useXml || !String.IsNullOrEmpty(primaryTextPath)) 556if (String.IsNullOrEmpty(primaryTextPath)) 578if (!String.IsNullOrEmpty(primaryText))
System\Windows\Controls\VirtualizingStackPanel.cs (2)
11998if (!string.IsNullOrEmpty(trace)) 12516if (String.IsNullOrEmpty(filename) || filename == "default")
System\Windows\Controls\WebBrowser.cs (3)
168if (string.IsNullOrEmpty(text)) 255if (string.IsNullOrEmpty(scriptName)) 380return (string.IsNullOrEmpty(urlString) ? null : new Uri(urlString));
System\Windows\Data\BindingExpression.cs (3)
64if (String.IsNullOrEmpty(binding.XPath)) 403(binding.Path == null || String.IsNullOrEmpty(binding.Path.Path))) 1650string name = String.IsNullOrEmpty(stringFormat) ? converter.GetType().Name : "StringFormat";
System\Windows\Data\BindingExpressionBase.cs (2)
1708if (String.IsNullOrEmpty(groupName)) 2632if (!String.IsNullOrEmpty(stringFormat))
System\Windows\Data\BindingListCollectionView.cs (1)
2152get { return ((_blv != null) && !String.IsNullOrEmpty(_customFilter)); }
System\Windows\Data\MultiBinding.cs (1)
340if (Converter == null && String.IsNullOrEmpty(StringFormat))
System\Windows\Data\MultiBindingExpression.cs (2)
176Debug.Assert(ParentMultiBinding.Converter != null || !String.IsNullOrEmpty(EffectiveStringFormat), 182if (_converter == null && String.IsNullOrEmpty(EffectiveStringFormat) && TraceData.IsEnabled)
System\Windows\Data\ObjectDataProvider.cs (1)
403if (string.IsNullOrEmpty(MethodName))
System\Windows\Data\PropertyGroupDescription.cs (2)
193if (String.IsNullOrEmpty(PropertyName)) 247_propertyPath = !String.IsNullOrEmpty(propertyName) ? new PropertyPath(propertyName) : null;
System\Windows\Data\XmlDataProvider.cs (1)
766string xpath = (string.IsNullOrEmpty(XPath)) ? "/" : XPath;
System\Windows\Documents\FixedFindEngine.cs (4)
232if (!String.IsNullOrEmpty(token) && 393if (!string.IsNullOrEmpty(unicodeStr)) 405if (!String.IsNullOrEmpty(bidiLevelAsString)) 420String.IsNullOrEmpty(caretStops) &&
System\Windows\Documents\FixedSchema.cs (1)
83if ( !string.IsNullOrEmpty(schema.RootNamespaceUri) )
System\Windows\Documents\FixedSOMTextRun.cs (2)
92if (String.IsNullOrEmpty(glyphs.UnicodeString) || 150&& String.IsNullOrEmpty(glyphs.CaretStops)
System\Windows\Documents\Glyphs.cs (8)
207if (String.IsNullOrEmpty(caretStopsString)) 218if (!String.IsNullOrEmpty(glyphRunProperties.unicodeString)) 299if (String.IsNullOrEmpty(UnicodeString) && String.IsNullOrEmpty(Indices)) 507if (!String.IsNullOrEmpty(unicodeString)) 518if (!String.IsNullOrEmpty(glyphsProp)) 526if (!String.IsNullOrEmpty(glyphsProp)) 559if (String.IsNullOrEmpty(unicodeString))
System\windows\Documents\TextEditor.cs (3)
1203if (!string.IsNullOrEmpty(textData) && Char.IsLowSurrogate(textData, 0)) 1206if (string.IsNullOrEmpty(textAdjacent) || !Char.IsHighSurrogate(textAdjacent, textAdjacent.Length - 1)) 1213if (string.IsNullOrEmpty(textData))
System\Windows\Documents\TextRangeSerialization.cs (1)
1154if (image.Source != null && !string.IsNullOrEmpty(image.Source.ToString()))
System\Windows\Documents\TextStore.cs (2)
4660if (!string.IsNullOrEmpty(trace)) 4988if (String.IsNullOrEmpty(filename) || filename == "default")
System\Windows\Documents\WpfPayload.cs (1)
487if (string.IsNullOrEmpty(image.Source.ToString()))
System\Windows\Documents\XamlToRtfWriter.cs (2)
833if (documentNode.Type == DocumentNodeType.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri)) 882if (documentNode.Type == DocumentNodeType.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
System\Windows\Documents\ZoomPercentageConverter.cs (1)
148if ((culture != null) && !String.IsNullOrEmpty(zoomString))
System\Windows\FrameworkElementFactory.cs (1)
1169if (!String.IsNullOrEmpty(prefix) && !IsValueDefined(ContentPresenter.ContentProperty))
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
1194if (_settings.BaseUri != null && !String.IsNullOrEmpty(_settings.BaseUri.ToString())) 1213if (!String.IsNullOrEmpty(record.KeyString)) 2043if (String.IsNullOrEmpty(prefix))
System\Windows\Markup\BamlReader.cs (3)
822Name = string.IsNullOrEmpty(bamlRecord.Prefix) ? 2507if (!string.IsNullOrEmpty(extensionPrefix)) 2660if(String.IsNullOrEmpty(xmlns))
System\Windows\Markup\BamlWriter.cs (1)
859if (!String.IsNullOrEmpty(typeConverterName))
System\Windows\Markup\MarkupExtensionParser.cs (4)
136if (!String.IsNullOrEmpty(returnString) && returnString[0] == '{') 947if (!string.IsNullOrEmpty(parameterName)) 1451if(!String.IsNullOrEmpty(prefix)) 1515if (String.IsNullOrEmpty(attribNamespaceURI))
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
564if (string.IsNullOrEmpty(propertyPrefix))
System\Windows\Markup\XamlParseException.cs (1)
347if (!String.IsNullOrEmpty(xamlFile))
System\Windows\Markup\XamlReader.cs (7)
329String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 332String.IsNullOrEmpty(reader.BaseURI.ToString())) 472if (parserContext.BaseUri != null && !String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 871String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 874String.IsNullOrEmpty(reader.BaseURI.ToString())) 946if (parserContext.BaseUri != null && !String.IsNullOrEmpty(parserContext.BaseUri.ToString())) 1053if (readerSettings.BaseUri == null || String.IsNullOrEmpty(readerSettings.BaseUri.ToString()))
System\Windows\Markup\XamlTypeMapper.cs (5)
3139if (String.IsNullOrEmpty(xmlNamespace)) 3159!String.IsNullOrEmpty(newXmlNamespace); 3281(!(String.IsNullOrEmpty(mapping.AssemblyName)) && !(String.IsNullOrEmpty(mapping.ClrNamespace))) ) 3302if (!String.IsNullOrEmpty(mapping.ClrNamespace))
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
164if (!string.IsNullOrEmpty(assembly)) 167if (!string.IsNullOrEmpty(assemblyPath)) 238if (!string.IsNullOrEmpty(assemblyPath))
System\Windows\Markup\XmlnsCache.cs (4)
350if (string.IsNullOrEmpty(xmlns) || string.IsNullOrEmpty(clrns) ) 385if (String.IsNullOrEmpty(oldXmlns) || String.IsNullOrEmpty(newXmlns))
System\Windows\Markup\XmlnsDictionary.cs (1)
345!string.IsNullOrEmpty(_nsDeclarations[thisDecl].Uri))
System\Windows\Navigation\JournalEntry.cs (2)
337if (!string.IsNullOrEmpty(assy)) 352if (!string.IsNullOrEmpty(displayName) && displayName[0] == '/')
System\Windows\Navigation\NavigationService.cs (10)
119if (!String.IsNullOrEmpty(target)) 326if (String.IsNullOrEmpty(elementId)) 2207handleContentLoadedEvent = !string.IsNullOrEmpty(fragment); 2408if (string.IsNullOrEmpty(fragment)) 2572if (!string.IsNullOrEmpty(fragment)) 3256if (string.IsNullOrEmpty(name)) 3263if (String.IsNullOrEmpty(name) && dependencyObject is Page) 3268if (!String.IsNullOrEmpty(name)) 3273if (!string.IsNullOrEmpty(fragment)) 3286&& !String.IsNullOrEmpty(navWin.Title))
System\Windows\PropertyPath.cs (2)
707if (String.IsNullOrEmpty(paramList[i].parenString)) 712else if (String.IsNullOrEmpty(paramList[i].valueString))
System\Windows\ResourceDictionary.cs (1)
134if (value == null || String.IsNullOrEmpty(value.OriginalString))
System\Windows\Setter.cs (1)
93if( String.IsNullOrEmpty(TargetName))
System\Windows\Shell\JumpList.cs (11)
468if (!string.IsNullOrEmpty(appId)) 532if (string.IsNullOrEmpty(jumpItem.CustomCategory)) 805if (string.IsNullOrEmpty(category)) 877if (string.IsNullOrEmpty(jumpTask.Title)) 879if (!allowSeparators || !string.IsNullOrEmpty(jumpTask.CustomCategory)) 890if (!string.IsNullOrEmpty(jumpTask.ApplicationPath)) 898if (!string.IsNullOrEmpty(jumpTask.WorkingDirectory)) 905if (!string.IsNullOrEmpty(jumpTask.Arguments)) 914if (!string.IsNullOrEmpty(jumpTask.IconResourcePath)) 934if (!string.IsNullOrEmpty(jumpTask.Description)) 945if (!string.IsNullOrEmpty(jumpTask.Title))
System\Windows\Standard\Debug.cs (2)
152IsFalse(string.IsNullOrEmpty(value)); 162if (string.IsNullOrEmpty(value))
System\Windows\Standard\ErrorCodes.cs (1)
394if (string.IsNullOrEmpty(message))
System\Windows\TemplateContent.cs (2)
1221if (String.IsNullOrEmpty(contentSource) && !isContentSourceSet) 1224if (!String.IsNullOrEmpty(contentSource) && !isContentPropertyDefined)
System\Windows\ThemeDictionaryExtension.cs (1)
66if (string.IsNullOrEmpty(AssemblyName))
System\Windows\VisualStateManager.cs (1)
495if (target == null && !string.IsNullOrEmpty(targetName))
PresentationUI (33)
MS\Internal\Documents\Application\AddressUtility.cs (1)
65if (!string.IsNullOrEmpty(address))
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
143control?.Text = String.IsNullOrEmpty(text) ?
MS\Internal\Documents\Application\PageTextBox.cs (3)
234if ((e != null) && (!String.IsNullOrEmpty(e.Text)) && (IsValidInputChar(e.Text[0]))) 255if ((e == null) || (e.DataObject == null) || (String.IsNullOrEmpty(e.FormatToApply))) 284if (String.IsNullOrEmpty(incomingString))
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (1)
114return ((!string.IsNullOrEmpty(contentType)) &&
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
88if (string.IsNullOrEmpty(message))
MS\Internal\Documents\Application\ZoomComboBox.cs (3)
354if ((e != null) && (!String.IsNullOrEmpty(e.Text))) 378if ((e == null) || (e.DataObject == null) || (String.IsNullOrEmpty(e.FormatToApply))) 407if (String.IsNullOrEmpty(incomingString))
MS\Internal\Documents\DialogBaseForm.cs (1)
147Invariant.Assert(!string.IsNullOrEmpty(uiLanguage), "No UILanguage was specified in stringtable.");
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
1834Name = String.IsNullOrEmpty(name) ? String.Empty : name, 1977if ((culture != null) && !String.IsNullOrEmpty(pageNumberString))
MS\Internal\Documents\RequestedSignatureDialog.cs (2)
88if (!String.IsNullOrEmpty(requestSignerName) && 89!String.IsNullOrEmpty(intentComboBoxText))
MS\Internal\Documents\RightsManagementManager.cs (1)
1374if (!string.IsNullOrEmpty(template))
MS\Internal\Documents\RightsManagementProvider.cs (1)
747if (string.IsNullOrEmpty(template))
MS\Internal\Documents\RMPermissions.cs (2)
63else if (!string.IsNullOrEmpty(referralName)) 179if (!string.IsNullOrEmpty(permission))
MS\Internal\Documents\RMPublishingDialog.cs (5)
68if (!string.IsNullOrEmpty(address)) 342if (!string.IsNullOrEmpty(path)) 454if (!string.IsNullOrEmpty(permissionsAddress)) 646if (string.IsNullOrEmpty(userNames)) 663if (!string.IsNullOrEmpty(trimmedName))
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
314if (!string.IsNullOrEmpty(name)) 319if (!string.IsNullOrEmpty(text))
MS\Internal\Documents\SignatureResourceHelper.cs (3)
111string.IsNullOrEmpty(signature.Location) ? none : signature.Location; 113string.IsNullOrEmpty(signature.Reason) ? none : signature.Reason; 192string location = (String.IsNullOrEmpty(signature.Location)) ?
MS\Internal\Documents\SigningDialog.cs (4)
180if (String.IsNullOrEmpty(_digitalSignatureRequest.Reason) && 181String.IsNullOrEmpty(_digitalSignatureRequest.Location)) 193_reasonComboBox.Text = String.IsNullOrEmpty(_digitalSignatureRequest.Reason) ? 195_locationTextBox.Text = String.IsNullOrEmpty(_digitalSignatureRequest.Location) ?
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
75if (versionInput?.Value is not null && !string.IsNullOrEmpty(versionInput.Value))
RazorPagesWebSite (3)
Pages\PropertyBinding\BindFormFile.cshtml.cs (3)
20if (string.IsNullOrEmpty(Property1)) 25if (string.IsNullOrEmpty(Form3.Name) || Form3.Length == 0) 30if (string.IsNullOrEmpty(Forms.Form1.Name) || Forms.Form1.Length == 0)
ReachFramework (13)
PrintConfig\PrintSchemaShim.cs (3)
121if (!string.IsNullOrEmpty(oemDriverPrefix)) 155if (!string.IsNullOrEmpty(psfPrefix) && !string.IsNullOrEmpty(oemDriverPrefix))
Serialization\Manager\ReachSerializationUtils.cs (3)
888if (!String.IsNullOrEmpty(id)) 905if (!String.IsNullOrEmpty(id) || uri != null) 953if (!String.IsNullOrEmpty(id))
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
908if (!String.IsNullOrEmpty(name))
Serialization\VisualSerializer.cs (5)
1689if (! String.IsNullOrEmpty(apName)) 1696if (! String.IsNullOrEmpty(apHelpText)) 2126if (!String.IsNullOrEmpty(characters)) 2143if (!String.IsNullOrEmpty(indices)) 2153if (!String.IsNullOrEmpty(caretStops))
Serialization\VisualTreeFlattener.cs (1)
493if (fe != null && !String.IsNullOrEmpty(fe.Name) &&
Replay (3)
Replay.cs (2)
52if (string.IsNullOrEmpty(binlogPath)) 57if (string.IsNullOrEmpty(outputDirectory))
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
Roslyn.Diagnostics.Analyzers (20)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Roslyn.Diagnostics.CSharp.Analyzers (2)
NumberCommentsRefactoring.cs (1)
105if (string.IsNullOrEmpty(number))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
312if (!string.IsNullOrEmpty(triviaString) && SyntaxFacts.IsNewLine(triviaString[^1]))
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
882If Not containsGlobalKeyword AndAlso Not String.IsNullOrEmpty(rootNamespace) Then
Roslyn.Test.Performance.Utilities (3)
Benchview.cs (1)
44if (String.IsNullOrEmpty(sasToken))
TestUtilities.cs (2)
155if (!String.IsNullOrEmpty(e.Data)) 163if (!String.IsNullOrEmpty(e.Data))
Roslyn.VisualStudio.Next.UnitTests (1)
Remote\SnapshotSerializationTests.cs (1)
598Assert.False(string.IsNullOrEmpty(xmlDocComment));
RoutingSandbox (1)
HelloExtension\HelloMiddleware.cs (1)
22if (!string.IsNullOrEmpty(_helloOptions.Greeter))
RoutingWebSite (1)
HelloExtension\HelloMiddleware.cs (1)
22if (!string.IsNullOrEmpty(_helloOptions.Greeter))
RunTests (18)
HelixTestRunner.cs (6)
49Verify(string.IsNullOrEmpty(options.TestFilter)); 50Verify(!string.IsNullOrEmpty(options.ArtifactsDirectory)); 51Verify(!string.IsNullOrEmpty(options.HelixQueueName)); 52Verify(!string.IsNullOrEmpty(options.Configuration)); 61var platform = !string.IsNullOrEmpty(options.Architecture) ? options.Architecture : "x64"; 84if (!string.IsNullOrEmpty(options.HelixApiAccessToken))
ProcessRunner.cs (1)
190if (!string.IsNullOrEmpty(workingDirectory))
ProcessTestExecutor.cs (1)
60var filters = workItem.Filters.Values.SelectMany(filter => filter).Where(filter => !string.IsNullOrEmpty(filter.FullyQualifiedName)).ToImmutableArray();
Program.cs (1)
271if (options.CollectDumps && !string.IsNullOrEmpty(options.ProcDumpFilePath))
TestHistoryManager.cs (5)
48if (string.IsNullOrEmpty(accessToken) || string.IsNullOrEmpty(projectUri) || string.IsNullOrEmpty(phaseName) || string.IsNullOrEmpty(targetBranch) || !int.TryParse(pipelineDefinitionIdStr, out var pipelineDefinitionId)) 131if (string.IsNullOrEmpty(envVar))
TestRunner.cs (4)
182line.Append($" {(!string.IsNullOrEmpty(testResult.Diagnostics) ? "?" : "")}"); 191foreach (var testResult in testResults.Where(x => !string.IsNullOrEmpty(x.Diagnostics))) 211if (!string.IsNullOrEmpty(testResult.ErrorOutput)) 223if (!string.IsNullOrEmpty(htmlResultsFilePath))
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
580sb.AppendLine("StringValue: " + (string.IsNullOrEmpty(_stringValue) ? "<empty>" : _stringValue.ToString())); 581sb.AppendLine("LongerStringValue: " + (string.IsNullOrEmpty(_longerStringValue) ? "<empty>" : _longerStringValue.ToString())); 1262if (string.IsNullOrEmpty(allowedIssuerName))
Security.TransportSecurity.IntegrationTests (5)
Tcp\ClientCredentialTypeTests.OSX.cs (5)
194if (String.IsNullOrEmpty(value)) 197if (String.IsNullOrEmpty(value)) 200if (String.IsNullOrEmpty(value)) 203if (String.IsNullOrEmpty(value)) 211str.Append(string.IsNullOrEmpty(value) ? "<x509>" : value);
Shared (4)
Data.Validation\LengthAttribute.cs (2)
173if (!string.IsNullOrEmpty(ErrorMessage) || !string.IsNullOrEmpty(ErrorMessageResourceName))
LogBuffering\SerializedLogRecordFactory.cs (1)
69if (string.IsNullOrEmpty(str))
Throw\Throw.cs (1)
176if (string.IsNullOrEmpty(argument))
SignalR.Client.FunctionalTestApp (3)
Program.cs (1)
50if (!string.IsNullOrEmpty(url))
Startup.cs (2)
79if (!string.IsNullOrEmpty(token)) 280if (!string.IsNullOrEmpty(commitHash))
SignalRSamples (1)
Startup.cs (1)
70if (!string.IsNullOrEmpty(commitHash))
SocialSample (4)
Startup.cs (4)
34if (string.IsNullOrEmpty(Configuration["facebook:appid"])) 251if (!string.IsNullOrEmpty(authType)) 310if (string.IsNullOrEmpty(refreshToken)) 339if (!string.IsNullOrEmpty(refreshToken))
StaticFilesAuth (1)
Models\ErrorViewModel.cs (1)
12public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
StatusCodePagesSample (2)
Startup.cs (2)
36if (!string.IsNullOrEmpty(requestedStatusCode)) 69if (!string.IsNullOrEmpty(referrer))
Stress.AppHost (1)
InteractionCommands.cs (1)
76if (!string.IsNullOrEmpty(input.Value) && input.Value.Length < 3)
Swaggatherer (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
System.CodeDom (24)
Microsoft\CSharp\CSharpCodeGenerator.cs (5)
2140if (!string.IsNullOrEmpty(arg.Name)) 2396if (!string.IsNullOrEmpty(e.Name)) 2447if (string.IsNullOrEmpty(nspace.Name)) 2542if (!string.IsNullOrEmpty(e.Name)) 2652if (string.IsNullOrEmpty(value))
Microsoft\VisualBasic\VBCodeGenerator.cs (6)
396if (!string.IsNullOrEmpty(arg.Name)) 430if (!string.IsNullOrEmpty(prefix)) 756if (string.IsNullOrEmpty(name)) 2322if (!string.IsNullOrEmpty(e.Name)) 2340if (!string.IsNullOrEmpty(e.Name)) 2378if (string.IsNullOrEmpty(value))
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (3)
90if (!string.IsNullOrEmpty(type.Namespace)) 124if (string.IsNullOrEmpty(typeName)) 322if (string.IsNullOrEmpty(_baseType))
src\libraries\Common\src\System\CSharpHelpers.cs (1)
145if (string.IsNullOrEmpty(value))
src\libraries\Common\src\System\IO\TempFileCollection.cs (3)
71if (string.IsNullOrEmpty(fileExtension)) 83if (string.IsNullOrEmpty(fileName)) 133string.IsNullOrEmpty(TempDir) ? GetTempDirectory() : TempDir,
System\CodeDom\CodeGotoStatement.cs (1)
22if (string.IsNullOrEmpty(value))
System\CodeDom\Compiler\CodeGenerator.cs (1)
1010if (!string.IsNullOrEmpty(arg.Name))
System\CodeDom\Compiler\CodeValidator.cs (2)
139if (!string.IsNullOrEmpty(e.Name)) 175if (!string.IsNullOrEmpty(arg.Name))
System\CodeDom\Compiler\Executor.cs (2)
40if (string.IsNullOrEmpty(outputName)) 45if (string.IsNullOrEmpty(errorName))
System.Collections.Immutable (1)
Validation\Requires.cs (1)
99if (string.IsNullOrEmpty(message))
System.ComponentModel.Annotations (14)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (2)
198if (!string.IsNullOrEmpty(_lastMessage)) 238if (string.IsNullOrEmpty(Method))
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (2)
64if (string.IsNullOrEmpty(stringValue)) 106if (string.IsNullOrEmpty(Pattern))
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (5)
226bool resourceNameSet = !string.IsNullOrEmpty(_errorMessageResourceName); 227bool errorMessageSet = !string.IsNullOrEmpty(_errorMessage); 229bool defaultMessageSet = !string.IsNullOrEmpty(_defaultErrorMessage); 265Debug.Assert(!string.IsNullOrEmpty(_errorMessageResourceName)); 439if (string.IsNullOrEmpty(result.ErrorMessage))
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
194if (string.IsNullOrEmpty(propertyName))
System\ComponentModel\DataAnnotations\ValidationContext.cs (4)
172if (string.IsNullOrEmpty(_displayName)) 175if (string.IsNullOrEmpty(_displayName)) 184if (string.IsNullOrEmpty(value)) 225if (string.IsNullOrEmpty(MemberName))
System.ComponentModel.Composition (12)
System\ComponentModel\Composition\ConstraintServices.cs (1)
29if (!string.IsNullOrEmpty(requiredTypeIdentity))
System\ComponentModel\Composition\ContractNameServices.cs (2)
69if (string.IsNullOrEmpty(typeIdentity)) 111if (!string.IsNullOrEmpty(type.Namespace))
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
85if (!string.IsNullOrEmpty(relativeSearchPath))
System\ComponentModel\Composition\Hosting\CompositionServices.cs (3)
101if (!string.IsNullOrEmpty(export.ContractName)) 147return string.IsNullOrEmpty(export.ContractName); 162if (!string.IsNullOrEmpty(import.ContractName))
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
778if (string.IsNullOrEmpty(contractName))
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
292if (string.IsNullOrEmpty(contractName))
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
309if (!string.IsNullOrEmpty(RequiredTypeIdentity))
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (1)
45if (!string.IsNullOrEmpty(genericContractName))
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
457if (!string.IsNullOrEmpty(exportTypeIdentity))
System.ComponentModel.TypeConverter (10)
System\ComponentModel\BindingList.cs (1)
472if (sender == null || e == null || string.IsNullOrEmpty(e.PropertyName))
System\ComponentModel\CultureInfoConverter.cs (1)
81if (string.IsNullOrEmpty(text) || string.Equals(text, defaultCultureString, StringComparison.Ordinal))
System\ComponentModel\MaskedTextProvider.cs (1)
2713if (string.IsNullOrEmpty(input)) // nothing to verify.
System\ComponentModel\NullableConverter.cs (1)
64else if (value is string && string.IsNullOrEmpty(value as string))
System\ComponentModel\PropertyDescriptor.cs (1)
386if (string.IsNullOrEmpty(typeName))
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
846if (!string.IsNullOrEmpty(sta.PropertyName)) 953if (string.IsNullOrEmpty(e.PropertyName) ||
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
520if (string.IsNullOrEmpty(typeName))
System\ComponentModel\TypeDescriptor.cs (1)
1295if (string.IsNullOrEmpty(name))
System\ComponentModel\UriTypeConverter.cs (1)
44if (string.IsNullOrEmpty(uriString))
System.Composition.Hosting (1)
System\Composition\Hosting\Util\Formatters.cs (1)
16return !string.IsNullOrEmpty(reply) ? reply : SR.Formatter_None;
System.Configuration.ConfigurationManager (153)
src\libraries\Common\src\System\IO\TempFileCollection.cs (3)
71if (string.IsNullOrEmpty(fileExtension)) 83if (string.IsNullOrEmpty(fileName)) 133string.IsNullOrEmpty(TempDir) ? GetTempDirectory() : TempDir,
System\Configuration\AppSettingsSection.cs (2)
81if (!string.IsNullOrEmpty((string)base[s_propFile])) 100sourceFileFullPath = string.IsNullOrEmpty(configFile)
System\Configuration\BaseConfigurationRecord.cs (12)
552if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 624if (!string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 1558if (!string.IsNullOrEmpty(input.SectionXmlInfo.ConfigSource)) 1597if (!string.IsNullOrEmpty(providerName)) return ProtectedConfig.GetProviderFromName(providerName); 2137if (string.IsNullOrEmpty(parentConfigKey)) return tagName; 2139if (string.IsNullOrEmpty(tagName)) return parentConfigKey; 3027if (string.IsNullOrEmpty(name)) 3071if (string.IsNullOrEmpty(subPath)) 3198if (string.IsNullOrEmpty(configSource)) 3205if (string.IsNullOrEmpty(configSource) || Path.IsPathRooted(configSource)) 3373if (forceEvaluatation && !IsInitDelayed && !string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 3557if (string.IsNullOrEmpty(protectionProvider))
System\Configuration\CallbackValidatorAttribute.cs (1)
23if (!string.IsNullOrEmpty(_callbackMethodName))
System\Configuration\ClientConfigPaths.cs (17)
88if (!string.IsNullOrEmpty(externalConfigPath)) 108else if (!string.IsNullOrEmpty(ApplicationUri)) 140if (string.IsNullOrEmpty(namePrefix)) 142string applicationUriLower = !string.IsNullOrEmpty(ApplicationUri) 146string part2 = !string.IsNullOrEmpty(namePrefix) && !string.IsNullOrEmpty(hashSuffix) 274else if (!string.IsNullOrEmpty(exePath)) 286if (!string.IsNullOrEmpty(hash)) suffix = "_" + typeName + "_" + hash; 315(string.IsNullOrEmpty(_companyName) || string.IsNullOrEmpty(ProductName) || 316string.IsNullOrEmpty(ProductVersion))) 330if (string.IsNullOrEmpty(ProductName)) 343if (string.IsNullOrEmpty(ProductName) && (mainType != null)) ProductName = mainType.Name.Trim(); 349if (string.IsNullOrEmpty(_companyName)) 361if (string.IsNullOrEmpty(_companyName)) _companyName = ProductName; 366if (string.IsNullOrEmpty(ProductVersion)) ProductVersion = "1.0.0.0"; 376if (string.IsNullOrEmpty(validated)) return validated;
System\Configuration\ClientConfigurationHost.cs (12)
61if (_fileMap != null) return !string.IsNullOrEmpty(_fileMap.RoamingUserConfigFilename); 70if (_fileMap != null) return !string.IsNullOrEmpty(_fileMap.LocalUserConfigFilename); 144if ((fileMap != null) && !string.IsNullOrEmpty(_exePath)) 147if (string.IsNullOrEmpty(_exePath)) _exePath = null; 153if (!string.IsNullOrEmpty(fileMap.MachineConfigFilename)) 159if (!string.IsNullOrEmpty(exeFileMap.ExeConfigFilename)) 162if (!string.IsNullOrEmpty(exeFileMap.RoamingUserConfigFilename)) 165if (!string.IsNullOrEmpty(exeFileMap.LocalUserConfigFilename)) 443if (string.IsNullOrEmpty(fileMap.MachineConfigFilename)) 452if (string.IsNullOrEmpty(exeFileMap.ExeConfigFilename)) 456if (string.IsNullOrEmpty(exeFileMap.RoamingUserConfigFilename)) 460if (string.IsNullOrEmpty(exeFileMap.LocalUserConfigFilename))
System\Configuration\ConfigPathUtility.cs (7)
22if (string.IsNullOrEmpty(configPath)) 60Debug.Assert(string.IsNullOrEmpty(parentConfigPath) || IsValid(parentConfigPath), 62Debug.Assert(string.IsNullOrEmpty(childConfigPath) || IsValid(childConfigPath), 65if (string.IsNullOrEmpty(parentConfigPath)) 68if (string.IsNullOrEmpty(childConfigPath)) 86Debug.Assert(string.IsNullOrEmpty(configPath) || IsValid(configPath), 89if (string.IsNullOrEmpty(configPath))
System\Configuration\Configuration.cs (6)
57if (!string.IsNullOrEmpty(locationSubPath) && !implicitMachineConfigHost.SupportsLocation) 60if (string.IsNullOrEmpty(locationSubPath) != string.IsNullOrEmpty(locationConfigPath)) 68if (!string.IsNullOrEmpty(locationSubPath)) 206if (string.IsNullOrEmpty(filename)) throw ExceptionUtil.ParameterNullOrEmpty(nameof(filename)); 213filename = string.IsNullOrEmpty(filename) ? null : Path.GetFullPath(filename);
System\Configuration\ConfigurationCollectionAttribute.cs (3)
31if (string.IsNullOrEmpty(value)) value = null; 41if (string.IsNullOrEmpty(value)) value = null; 51if (string.IsNullOrEmpty(value)) value = null;
System\Configuration\ConfigurationElement.cs (6)
1206if (!string.IsNullOrEmpty(collectionProperties) && 1281if (string.IsNullOrEmpty(attributeList)) 1306if (!string.IsNullOrEmpty(attribToLockTrim)) 1647if (!string.IsNullOrEmpty(prop.Name) && 1682if (!(string.IsNullOrEmpty(prop.Name) || _lockedAllExceptElementsList.Contains(prop.Name)) && 1731if (string.IsNullOrEmpty(ce.Filename)) ce = new ConfigurationErrorsException(ce.Message, reader);
System\Configuration\ConfigurationElementCollection.cs (2)
107if (!string.IsNullOrEmpty(ElementName)) return "'" + ElementName + "'"; 1057if (!string.IsNullOrEmpty(ElementName))
System\Configuration\ConfigurationErrorsException.cs (1)
148if (!string.IsNullOrEmpty(file))
System\Configuration\ConfigurationException.cs (1)
72if (!string.IsNullOrEmpty(file))
System\Configuration\ConfigurationFileMap.cs (1)
27if (string.IsNullOrEmpty(machineConfigFilename))
System\Configuration\ConfigurationLockCollection.cs (2)
90if (ExceptionList && (_internalDictionary.Count == 0) && !string.IsNullOrEmpty(_seedList)) 292if (useSeedIfAvailable && !string.IsNullOrEmpty(_seedList))
System\Configuration\ConfigurationManager.cs (2)
150if (string.IsNullOrEmpty(sectionName)) return null; 162if (string.IsNullOrEmpty(sectionName)) return;
System\Configuration\ConfigurationProperty.cs (2)
234if (((options & ConfigurationPropertyOptions.IsDefaultCollection) != 0) && string.IsNullOrEmpty(name)) 265if (string.IsNullOrEmpty(name))
System\Configuration\ConfigurationSectionCollection.cs (1)
84if (string.IsNullOrEmpty(name))
System\Configuration\ConfigurationSectionGroup.cs (1)
38if (string.IsNullOrEmpty(typeName)) typeName = null;
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
88if (string.IsNullOrEmpty(name))
System\Configuration\HandlerBase.cs (1)
139if (string.IsNullOrEmpty(attribute.Value) && allowEmpty == false)
System\Configuration\Internal\InternalConfigHost.cs (2)
224if (string.IsNullOrEmpty(streamName)) 236if (string.IsNullOrEmpty(streamName))
System\Configuration\LocalFileSettingsProvider.cs (7)
51if (string.IsNullOrEmpty(name)) 257if (!string.IsNullOrEmpty(prevConfig)) 286if (string.IsNullOrEmpty(prevConfigFile)) 362if (!string.IsNullOrEmpty(key)) 493if (!string.IsNullOrEmpty(prevConfig)) 523if (string.IsNullOrEmpty(xmlString)) 534if (string.IsNullOrEmpty(escapedString))
System\Configuration\MgmtConfigurationRecord.cs (28)
167Type type = string.IsNullOrEmpty(factoryRecord.FactoryTypeName) 449if (string.IsNullOrEmpty(xmlElement)) 537if (string.IsNullOrEmpty(oldConfigSource)) oldConfigSource = null; 539if (string.IsNullOrEmpty(newConfigSource)) newConfigSource = null; 545if (string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 595if (string.IsNullOrEmpty(xmlElement)) 676if (!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource)) 726if (!string.IsNullOrEmpty(rawXml)) 977if (string.IsNullOrEmpty(ConfigStreamInfo.StreamName)) 991if (!string.IsNullOrEmpty(streamInfo.SectionName)) 1338if (!string.IsNullOrEmpty(updatedXml)) 1394if (!string.IsNullOrEmpty(updatedXml)) hasChanged = true; 1431if (!string.IsNullOrEmpty(updatedXml)) 1453if (!string.IsNullOrEmpty(updatedXml)) 1558!string.IsNullOrEmpty(sectionXmlInfo.ConfigSource); 1581!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource); 1603!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource) 1621if (string.IsNullOrEmpty(updatedXml)) 1627if (!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource) || 1633if (string.IsNullOrEmpty(updatedXml)) 1653string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource)) 1750if (string.IsNullOrEmpty(factoryRecord.Filename)) 1784if (string.IsNullOrEmpty(configSource)) configSource = null; 1787if (string.IsNullOrEmpty(configSourceStreamName)) configSourceStreamName = null; 1812if (!string.IsNullOrEmpty(configSource)) 1989if (!string.IsNullOrEmpty(update?.UpdatedXml)) 2906if (string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource) || 2960if (!string.IsNullOrEmpty(configSection.SectionInformation.ConfigSource))
System\Configuration\Provider\ProviderBase.cs (1)
17public virtual string Description => string.IsNullOrEmpty(_description) ? Name : _description;
System\Configuration\RegexStringValidator.cs (1)
15if (string.IsNullOrEmpty(regex)) throw ExceptionUtil.ParameterNullOrEmpty(nameof(regex));
System\Configuration\SectionInformation.cs (4)
236string configSource = !string.IsNullOrEmpty(value) 364if (string.IsNullOrEmpty(value)) throw ExceptionUtil.PropertyNullOrEmpty(nameof(Type)); 613if (string.IsNullOrEmpty(protectionProvider)) protectionProvider = _configRecord.DefaultProviderName; 672else RawXml = string.IsNullOrEmpty(rawXml) ? null : rawXml;
System\Configuration\SectionUpdates.cs (1)
37Debug.Assert(string.IsNullOrEmpty(_name), "FindSectionUpdates assumes search is from root record");
System\Configuration\StringValidator.cs (1)
45if ((len > 0) && !string.IsNullOrEmpty(_invalidChars))
System\Configuration\TypeUtil.cs (1)
52if (string.IsNullOrEmpty(typeString) || typeString.IndexOf(',') != -1) // string.Contains(char) is .NetCore2.1+ specific
System\Configuration\UpdateConfigHost.cs (2)
33Debug.Assert(!string.IsNullOrEmpty(oldStreamname)); 35if (string.IsNullOrEmpty(oldStreamname)) return;
System\Configuration\UrlPath.cs (4)
23if (string.IsNullOrEmpty(dir)) 26if (string.IsNullOrEmpty(subdir)) 68if (string.IsNullOrEmpty(path)) 71if (string.IsNullOrEmpty(subpath))
System\Configuration\XmlUtil.cs (2)
308if (!string.IsNullOrEmpty(Reader.Value)) newValue = Reader.Value; 770if (!string.IsNullOrEmpty(dtdValue))
System\Diagnostics\ListenerElementsCollection.cs (5)
181if (string.IsNullOrEmpty(className)) 186if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData)) 214if (Filter != null && !string.IsNullOrEmpty(Filter.TypeName)) 307if (string.IsNullOrEmpty(className)) 312if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData))
System\Diagnostics\SourceElementsCollection.cs (2)
76if (!string.IsNullOrEmpty(SwitchName) && !string.IsNullOrEmpty(SwitchValue))
System\Diagnostics\TraceConfiguration.cs (6)
48if (!string.IsNullOrEmpty(sourceElement.SwitchName)) 56if (!string.IsNullOrEmpty(sourceElement.SwitchValue)) 62else if (!string.IsNullOrEmpty(sourceElement.SwitchName)) 75if (!string.IsNullOrEmpty(sourceElement.SwitchValue)) 118if (string.IsNullOrEmpty(sourceTypeName)) 138if (!string.IsNullOrEmpty(typeName))
System\Diagnostics\TraceUtils.cs (2)
51if (string.IsNullOrEmpty(initializeData)) 78if (!string.IsNullOrEmpty(filePath))
System.Data.Common (143)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
372if (!string.IsNullOrEmpty(quotePrefix)) 378if (!string.IsNullOrEmpty(quoteSuffix))
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
254if (string.IsNullOrEmpty(keyname)) 367if (string.IsNullOrEmpty(keyname)) 562if (string.IsNullOrEmpty(keyname))
src\libraries\Common\src\System\Data\Common\NameValuePair.cs (1)
17Debug.Assert(!string.IsNullOrEmpty(name), "empty keyname");
System\Data\Common\AdapterUtil.Common.cs (1)
320if (string.IsNullOrEmpty(tableName))
System\Data\Common\DataAdapter.cs (2)
271if (string.IsNullOrEmpty(srcTable)) 382if (string.IsNullOrEmpty(srcTable))
System\Data\Common\DataColumnMapping.cs (3)
86if (string.IsNullOrEmpty(dataSetColumn)) 99if (!string.IsNullOrEmpty(dataColumn.Expression)) 118if (string.IsNullOrEmpty(dataSetColumn))
System\Data\Common\DataColumnMappingCollection.cs (5)
271if (!string.IsNullOrEmpty(sourceColumn)) 287if (!string.IsNullOrEmpty(dataSetColumn)) 419if (string.IsNullOrEmpty(name)) 455if (string.IsNullOrEmpty(sourceColumn)) 484if (string.IsNullOrEmpty(sourceColumn))
System\Data\Common\DataTableMapping.cs (1)
135if (string.IsNullOrEmpty(dataSetTable))
System\Data\Common\DataTableMappingCollection.cs (4)
208if (!string.IsNullOrEmpty(sourceTable)) 224if (!string.IsNullOrEmpty(dataSetTable)) 354if (string.IsNullOrEmpty(name)) 391if (string.IsNullOrEmpty(sourceTable))
System\Data\Common\DBCommandBuilder.cs (7)
736if (!string.IsNullOrEmpty(quotePrefix) && baseTableName.Contains(quotePrefix, StringComparison.Ordinal)) 740if (!string.IsNullOrEmpty(quoteSuffix) && baseTableName.Contains(quoteSuffix, StringComparison.Ordinal)) 799Debug.Assert(!string.IsNullOrEmpty(_quotedBaseTableName), "no table name"); 820Debug.Assert(!string.IsNullOrEmpty(_quotedBaseTableName), "no table name"); 911Debug.Assert(!string.IsNullOrEmpty(_quotedBaseTableName), "no table name"); 1135Debug.Assert(!string.IsNullOrEmpty(sourceColumn), "empty source column"); 1381if (!string.IsNullOrEmpty(columnName))
System\Data\Common\DbDataAdapter.cs (8)
314if (DesignMode && ((null == command) || (null == command.Connection) || string.IsNullOrEmpty(command.CommandText))) 357if (string.IsNullOrEmpty(srcTable)) 512if (string.IsNullOrEmpty(srcTable)) 759if (!string.IsNullOrEmpty(columnName)) 792if (!string.IsNullOrEmpty(columnName)) 929if (string.IsNullOrEmpty(srcTable)) 1675if (string.IsNullOrEmpty(rowMsg)) 1772Debug.Assert(!string.IsNullOrEmpty(method), "missing method name");
System\Data\Common\ObjectStorage.cs (1)
371if (string.IsNullOrEmpty(typeName))
System\Data\Constraint.cs (3)
37if (string.IsNullOrEmpty(value) && (Table != null) && InCollection) 62get { return string.IsNullOrEmpty(_schemaName) ? ConstraintName : _schemaName; } 65if (!string.IsNullOrEmpty(value))
System\Data\DataColumn.cs (2)
148if (!string.IsNullOrEmpty(expr)) // its a performance hit to set Expression to the empty str when we know it will come out null 405Debug.Assert(!string.IsNullOrEmpty(_encodedColumnName));
System\Data\DataError.cs (1)
42if (string.IsNullOrEmpty(error))
System\Data\DataRelation.cs (1)
542if (string.IsNullOrEmpty(ChildTable.Namespace) && ((ChildTable.NestedParentsCount > 1) ||
System\Data\DataRow.cs (1)
97if (!string.IsNullOrEmpty(value))
System\Data\DataSet.cs (3)
761if (string.IsNullOrEmpty(value)) 811if (string.IsNullOrEmpty(value)) 1827if (!string.IsNullOrEmpty(attribValue))
System\Data\DataTable.cs (8)
1282_displayExpression = !string.IsNullOrEmpty(value) ? 6490if (string.IsNullOrEmpty(_tableName) && string.IsNullOrEmpty(CurrentTableFullName)) 6497if (!string.IsNullOrEmpty(_tableName)) 6499if (!string.IsNullOrEmpty(Namespace)) 6528if (!string.IsNullOrEmpty(_tableName)) 6564if (string.IsNullOrEmpty(TableName)) 6567if (!string.IsNullOrEmpty(currentTable.Namespace))
System\Data\DataViewManager.cs (1)
104if (string.IsNullOrEmpty(value))
System\Data\LinqDataView.cs (4)
112Debug.Assert(!(!string.IsNullOrEmpty(base.Sort) && base.SortComparison != null), 115if (!string.IsNullOrEmpty(base.Sort)) // use find for DV's sort string 148if (base.SortComparison == null && string.IsNullOrEmpty(base.Sort)) 188if (base.SortComparison == null && string.IsNullOrEmpty(base.Sort))
System\Data\ProviderBase\SchemaMapping.cs (5)
99if (!string.IsNullOrEmpty(sourceTableName)) 126if (!string.IsNullOrEmpty(sourceTableName)) 931if ((basetable != commonBaseTable) && (!string.IsNullOrEmpty(basetable))) 1104if (!commonFromMultiTable && !string.IsNullOrEmpty(commonBaseTable) && string.IsNullOrEmpty(_dataTable.TableName))
System\Data\RelationshipConverter.cs (2)
51if (string.IsNullOrEmpty(parentTable.Namespace) && string.IsNullOrEmpty(childTable.Namespace))
System\Data\SimpleType.cs (9)
106_enumeration = !string.IsNullOrEmpty(_enumeration) ? _enumeration + " " + facet.Value : facet.Value; 131string.IsNullOrEmpty(_name) && 135string.IsNullOrEmpty(_pattern) && 136string.IsNullOrEmpty(_maxExclusive) && 137string.IsNullOrEmpty(_maxInclusive) && 138string.IsNullOrEmpty(_minExclusive) && 139string.IsNullOrEmpty(_minInclusive) && 140string.IsNullOrEmpty(_enumeration) 232if (!string.IsNullOrEmpty(_name))
System\Data\XDRSchema.cs (8)
44if (string.IsNullOrEmpty(_schemaName)) 88if (string.IsNullOrEmpty(strType)) 136if (string.IsNullOrEmpty(value)) 139return !string.IsNullOrEmpty(type); 314if (nt == s_enumerationNameType && string.IsNullOrEmpty(dtValues)) 335if (string.IsNullOrEmpty(instanceName)) 403if (string.IsNullOrEmpty(strType)) 483if (!string.IsNullOrEmpty(strDefault))
System\Data\XmlDataLoader.cs (2)
389if (XMLSchema.GetBooleanAttribute(rowElement, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text)) 423if (XMLSchema.GetBooleanAttribute(e, Keywords.XSI_NIL, Keywords.XSINS, false) && string.IsNullOrEmpty(text))
System\Data\XMLDiffLoader.cs (1)
316if (!string.IsNullOrEmpty(value))
System\Data\xmlsaver.cs (25)
387if (!string.IsNullOrEmpty(targetNamespace)) 402if (!string.IsNullOrEmpty(targetNamespace)) 699if (((_ds != null) && (_ds.Namespace == top[i].Namespace)) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 703if (((_ds != null) && (_ds.Namespace.Length != 0)) && string.IsNullOrEmpty(top[i].Namespace)) 739if ((_ds != null && _ds.Namespace == top[i].Namespace) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 814if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 845if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 1097if (!string.IsNullOrEmpty(_filePath)) 1229if (!string.IsNullOrEmpty(NamespaceURI)) 1260if (!string.IsNullOrEmpty(name)) 1324if (string.IsNullOrEmpty(typeName)) 1395if (string.IsNullOrEmpty(tgNamespace)) 1406if (!string.IsNullOrEmpty(tgNamespace)) 1747while (string.IsNullOrEmpty(tgNamespace)) 1825if (string.IsNullOrEmpty(_typeName)) 1840if (string.IsNullOrEmpty(table.TypeName.Namespace)) 2044if (!string.IsNullOrEmpty(fields[k].Namespace)) 2112if (!string.IsNullOrEmpty(fields[k].Namespace)) 2196if (!string.IsNullOrEmpty(fields[k].Namespace)) 2241if (!string.IsNullOrEmpty(result)) 2253if (string.IsNullOrEmpty(result)) 2461if (string.IsNullOrEmpty(error)) 2788if (string.IsNullOrEmpty(error)) 2813if (_ds == null || string.IsNullOrEmpty(_ds.DataSetName)) 2872if (string.IsNullOrEmpty(_ds.DataSetName))
System\Data\XMLSchema.cs (28)
83if (string.IsNullOrEmpty(value)) 450if (string.IsNullOrEmpty(parentName)) 455if (string.IsNullOrEmpty(childName)) 460if (string.IsNullOrEmpty(value)) 465if (string.IsNullOrEmpty(value)) 671if (string.IsNullOrEmpty(_schemaName)) 677if (string.IsNullOrEmpty(ds._namespaceURI)) 1217if (string.IsNullOrEmpty(value)) 1236if (string.IsNullOrEmpty(value)) 1296if (string.IsNullOrEmpty(refer)) 1330if (string.IsNullOrEmpty(relName)) 1392if (string.IsNullOrEmpty(name)) 1941if (string.IsNullOrEmpty(_type)) 1944if (string.IsNullOrEmpty(_type)) 1968if (!string.IsNullOrEmpty(typeNode.QualifiedName.Name) && typeNode.QualifiedName.Namespace != Keywords.XSDNS) 2209if (string.IsNullOrEmpty(strType)) 2226if (!string.IsNullOrEmpty(node.QualifiedName.Name) && node.QualifiedName.Namespace != Keywords.XSDNS) 2272if ((string.IsNullOrEmpty(attrib.QualifiedName.Namespace) && string.IsNullOrEmpty(column._columnUri)) || // backward compatibility :SQL BU DT 310912 2375if (string.IsNullOrEmpty(strType)) 2391if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).Name) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS) 2425if (string.IsNullOrEmpty(XSDSchema.GetMsdataAttribute(elem, Keywords.MSD_DATATYPE))) 2458if ((string.IsNullOrEmpty(elem.QualifiedName.Namespace) && string.IsNullOrEmpty(column._columnUri)) || // backward compatibility :SQL BU DT 310912 2477if (!string.IsNullOrEmpty(column.Expression)) 2598if (!string.IsNullOrEmpty(value)) 2604if (!string.IsNullOrEmpty(value)) 2613if (!string.IsNullOrEmpty(dsName))
System\Xml\XmlDataDocument.cs (1)
462if (string.IsNullOrEmpty(docElemName))
System.Data.Odbc (39)
Common\System\Data\Common\DbConnectionOptions.cs (5)
82return string.IsNullOrEmpty(value); 86return string.IsNullOrEmpty(val); // MDAC 83097 90return ((_parsetable.ContainsKey(KEY.User_ID) && !string.IsNullOrEmpty(_parsetable[KEY.User_ID])) || (_parsetable.ContainsKey(SYNONYM.UID) && !string.IsNullOrEmpty(_parsetable[SYNONYM.UID]))); 278else if (string.IsNullOrEmpty(rootFolderPath))
Common\System\Data\Common\DBConnectionString.cs (6)
113if (!string.IsNullOrEmpty(restrictions)) 168if (!string.IsNullOrEmpty(restrictionValues[i])) 478if (!string.IsNullOrEmpty(keyname)) 481if (string.IsNullOrEmpty(realkeyname)) 537Debug.Assert(!string.IsNullOrEmpty(restrictionValues[i - 1]), "empty restriction"); 538Debug.Assert(!string.IsNullOrEmpty(restrictionValues[i]), "empty restriction");
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
372if (!string.IsNullOrEmpty(quotePrefix)) 378if (!string.IsNullOrEmpty(quoteSuffix))
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
254if (string.IsNullOrEmpty(keyname)) 367if (string.IsNullOrEmpty(keyname)) 562if (string.IsNullOrEmpty(keyname))
src\libraries\Common\src\System\Data\Common\NameValuePair.cs (1)
17Debug.Assert(!string.IsNullOrEmpty(name), "empty keyname");
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
120if (!string.IsNullOrEmpty(key.ConnectionString)) 173if (string.IsNullOrEmpty(key.ConnectionString))
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
254if (string.IsNullOrEmpty(candidateCollectionName))
System\Data\Odbc\OdbcCommandBuilder.cs (4)
121if (string.IsNullOrEmpty(command.CommandText)) 262if (string.IsNullOrEmpty(quotePrefix)) 281if (!string.IsNullOrEmpty(quotePrefix) && quotePrefix != " ") 317if (string.IsNullOrEmpty(quotePrefix))
System\Data\Odbc\OdbcConnectionFactory.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(connectionString), "empty connectionString");
System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
45if (!string.IsNullOrEmpty(connectionString))
System\Data\Odbc\OdbcDataReader.cs (10)
2093if (string.IsNullOrEmpty(metaInfos[i].baseTableName)) 2099if (string.IsNullOrEmpty(metaInfos[i].baseColumnName)) 2172if (!string.IsNullOrEmpty(qualifiedTableName.Table)) 2656if (string.IsNullOrEmpty(currentindexname)) 2673if (string.IsNullOrEmpty(columnname)) 2685if (!string.IsNullOrEmpty(tablename)) 2716if (string.IsNullOrEmpty(localcmdtext)) 2879if (!string.IsNullOrEmpty(name)) 2881bool useQuotes = !string.IsNullOrEmpty(quotePrefix) && !string.IsNullOrEmpty(quoteSuffix);
System\Data\Odbc\OdbcException.cs (1)
75return string.IsNullOrEmpty(source) ? "" : source; // base.Source;
System\Data\Odbc\OdbcMetaDataFactory.cs (1)
591if (!string.IsNullOrEmpty(stringValue))
System\Data\Odbc\OdbcUtils.cs (1)
518if ((_idx == _len) || string.IsNullOrEmpty(nextToken))
System.Diagnostics.DiagnosticSource (13)
System\Diagnostics\Activity.cs (3)
460if (string.IsNullOrEmpty(operationName)) 691else if (string.IsNullOrEmpty(parentId)) 1327Debug.Assert(!string.IsNullOrEmpty(Parent.Id));
System\Diagnostics\DiagnosticSourceEventSource.cs (1)
416if (string.IsNullOrEmpty(str1))
System\Diagnostics\LegacyPropagator.cs (2)
32if (!string.IsNullOrEmpty(activity.TraceStateString)) 90if (string.IsNullOrEmpty(baggageString))
System\Diagnostics\Metrics\MetricsEventSource.cs (2)
355return _sessionId.Equals(SharedSessionId) && (string.IsNullOrEmpty(commandSessionId) || commandSessionId.Equals(SharedSessionId)); 572if (command.Arguments!.TryGetValue(ClientIdKey, out string? clientIdArg) && !string.IsNullOrEmpty(clientIdArg))
System\Diagnostics\PassThroughPropagator.cs (1)
29if (!string.IsNullOrEmpty(traceState))
System\Diagnostics\W3CPropagator.cs (4)
90if (string.IsNullOrEmpty(baggageString)) 140if (string.IsNullOrEmpty(traceState)) 221if (!string.IsNullOrEmpty(item.Value)) 604if (string.IsNullOrEmpty(traceParent) || traceParent.Length != 55)
System.Diagnostics.TextWriterTraceListener (4)
System\Diagnostics\DelimitedListTraceListener.cs (3)
55if (!string.IsNullOrEmpty(delimiter)) 211if (!string.IsNullOrEmpty(message)) 245if (!string.IsNullOrEmpty(message))
System\Diagnostics\XmlWriterTraceListener.cs (1)
330if (string.IsNullOrEmpty(str))
System.Diagnostics.TraceSource (1)
System\Diagnostics\DefaultTraceListener.cs (1)
155if (useLogFile && !string.IsNullOrEmpty(LogFileName))
System.Formats.Tar (36)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 140return !string.IsNullOrEmpty(path) ? 145return !string.IsNullOrEmpty(path) ? 150return !string.IsNullOrEmpty(path) ? 161if (!string.IsNullOrEmpty(path)) 183string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
src\libraries\Common\src\System\IO\PathInternal.cs (3)
55if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) return 0; 228!string.IsNullOrEmpty(path) && IsDirectorySeparator(path[^1]);
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (2)
41if (string.IsNullOrEmpty(path)) 91return string.IsNullOrEmpty(path);
System\Formats\Tar\TarEntry.cs (4)
347Debug.Assert(!string.IsNullOrEmpty(destinationDirectoryPath)); 464Debug.Assert(!string.IsNullOrEmpty(linkTargetPath)); 470Debug.Assert(!string.IsNullOrEmpty(linkTargetPath)); 507if (!string.IsNullOrEmpty(directoryPath) && !Path.Exists(directoryPath))
System\Formats\Tar\TarEntry.Unix.cs (2)
38Debug.Assert(!string.IsNullOrEmpty(targetFilePath)); 39Debug.Assert(!string.IsNullOrEmpty(hardLinkFilePath));
System\Formats\Tar\TarFile.cs (6)
358Debug.Assert(!string.IsNullOrEmpty(sourceDirectoryName)); 359Debug.Assert(!string.IsNullOrEmpty(destinationFileName)); 477Debug.Assert(!string.IsNullOrEmpty(sourceFileName)); 478Debug.Assert(!string.IsNullOrEmpty(destinationDirectoryFullPath)); 523Debug.Assert(!string.IsNullOrEmpty(sourceDirectoryName)); 533Debug.Assert(!string.IsNullOrEmpty(destinationDirectoryPath));
System\Formats\Tar\TarHeader.Read.cs (1)
567if (!string.IsNullOrEmpty(_prefix))
System\Formats\Tar\TarHeader.Write.cs (6)
649Debug.Assert(!string.IsNullOrEmpty(_linkName) ^ (_typeFlag is not TarEntryType.SymbolicLink and not TarEntryType.HardLink)); 679if (!string.IsNullOrEmpty(_linkName)) 737if (!string.IsNullOrEmpty(_uName)) 755if (!string.IsNullOrEmpty(_gName)) 952if (!string.IsNullOrEmpty(_linkName)) 1006if (string.IsNullOrEmpty(value) || GetUtf8TextLength(value) <= maxLength)
System\Formats\Tar\TarHelpers.cs (2)
174if (dict.TryGetValue(fieldName, out string? strNumber) && !string.IsNullOrEmpty(strNumber)) 187if (dict.TryGetValue(fieldName, out string? strNumber) && !string.IsNullOrEmpty(strNumber))
System\Formats\Tar\TarWriter.cs (2)
389string? actualEntryName = string.IsNullOrEmpty(entryName) ? Path.GetFileName(fileName) : entryName; 406if (string.IsNullOrEmpty(linkName))
System\Formats\Tar\TarWriter.Unix.cs (1)
21Debug.Assert(!string.IsNullOrEmpty(fullPath));
System.IO.Compression.ZipFile (7)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 140return !string.IsNullOrEmpty(path) ? 145return !string.IsNullOrEmpty(path) ? 150return !string.IsNullOrEmpty(path) ? 161if (!string.IsNullOrEmpty(path)) 183string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
System.IO.FileSystem.Watcher (17)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 140return !string.IsNullOrEmpty(path) ? 145return !string.IsNullOrEmpty(path) ? 150return !string.IsNullOrEmpty(path) ? 161if (!string.IsNullOrEmpty(path)) 183string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
src\libraries\Common\src\System\IO\PathInternal.cs (3)
55if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) return 0; 228!string.IsNullOrEmpty(path) && IsDirectorySeparator(path[^1]);
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (2)
41if (string.IsNullOrEmpty(path)) 91return string.IsNullOrEmpty(path);
System\IO\FileSystemWatcher.cs (3)
454if (handler != null && MatchPattern(string.IsNullOrEmpty(name) ? _directory : name)) 688base.InsertItem(index, string.IsNullOrEmpty(item) || item == "*.*" ? "*" : item); 693base.SetItem(index, string.IsNullOrEmpty(item) || item == "*.*" ? "*" : item);
System\IO\FileSystemWatcher.Linux.cs (2)
45string message = !string.IsNullOrEmpty(maxValue) ? 392string message = !string.IsNullOrEmpty(maxValue) ?
System.IO.IsolatedStorage (7)
System\IO\IsolatedStorage\Helper.cs (5)
36if (string.IsNullOrEmpty(s_roamingUserRootDirectory)) 45if (string.IsNullOrEmpty(s_machineRootDirectory)) 52if (string.IsNullOrEmpty(s_userRootDirectory)) 128if (string.IsNullOrEmpty(location)) 130if (string.IsNullOrEmpty(location))
System\IO\IsolatedStorage\Helper.NonMobile.cs (2)
34if (string.IsNullOrEmpty(randomDirectory)) 46if (string.IsNullOrEmpty(randomDirectory))
System.IO.Packaging (15)
System\IO\Packaging\ContentType.cs (4)
216Debug.Assert(!string.IsNullOrEmpty(_type) || !string.IsNullOrEmpty(_subType)); 412if (string.IsNullOrEmpty(token)) 435if (string.IsNullOrEmpty(parameterValue))
System\IO\Packaging\InternalRelationshipCollection.cs (3)
343if (string.IsNullOrEmpty(targetAttributeValue)) 350if (string.IsNullOrEmpty(typeAttributeValue)) 356if (string.IsNullOrEmpty(idAttributeValue))
System\IO\Packaging\PackagingUtilities.cs (1)
38if (!string.IsNullOrEmpty(encoding))
System\IO\Packaging\PackUriHelper.cs (2)
352Debug.Assert(!string.IsNullOrEmpty(partUriString)); 735Debug.Assert(!string.IsNullOrEmpty(partUriString));
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (1)
90if (!string.IsNullOrEmpty(packageUri.Fragment))
System\IO\Packaging\XmlCompatibilityReader.cs (4)
760if (string.IsNullOrEmpty(mappedNamespace) || namespaceName == mappedNamespace) 894if (!string.IsNullOrEmpty(pair)) 942if (!string.IsNullOrEmpty(prefix)) 1151if (string.IsNullOrEmpty(requiresValue))
System.IO.Ports (7)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 140return !string.IsNullOrEmpty(path) ? 145return !string.IsNullOrEmpty(path) ? 150return !string.IsNullOrEmpty(path) ? 161if (!string.IsNullOrEmpty(path)) 183string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
System.Linq.Expressions (15)
System\Dynamic\Utils\ContractUtils.cs (5)
41Debug.Assert(!string.IsNullOrEmpty(paramName)); 67Debug.Assert(!string.IsNullOrEmpty(paramName)); 110Debug.Assert(!string.IsNullOrEmpty(arrayName)); 137Debug.Assert(!string.IsNullOrEmpty(offsetName)); 138Debug.Assert(!string.IsNullOrEmpty(countName));
System\Linq\Expressions\DebugViewWriter.cs (6)
99Debug.Assert(string.IsNullOrEmpty(le.Name)); 105Debug.Assert(string.IsNullOrEmpty(p.Name)); 111Debug.Assert(string.IsNullOrEmpty(target.Name)); 383if (string.IsNullOrEmpty(node.Name)) 1157if (string.IsNullOrEmpty(target.Name)) 1183if (string.IsNullOrEmpty(lambda.Name))
System\Linq\Expressions\ExpressionStringBuilder.cs (3)
284if (string.IsNullOrEmpty(name)) 734if (!string.IsNullOrEmpty(node.Variable?.Name)) 800if (!string.IsNullOrEmpty(target.Name))
System\Linq\Expressions\LabelTarget.cs (1)
37return string.IsNullOrEmpty(Name) ? "UnamedLabel" : Name;
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
112string.IsNullOrEmpty(uri) ? null : new Uri(uri, UriKind.RelativeOrAbsolute);
System.Net.HttpListener (27)
src\libraries\Common\src\System\Net\CookieParser.cs (1)
773bool first = cookie == null || string.IsNullOrEmpty(cookie.Name);
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (3)
59if (closeStatus == WebSocketCloseStatus.Empty && !string.IsNullOrEmpty(statusDescription)) 84if (!string.IsNullOrEmpty(statusDescription) && 97Debug.Assert(!string.IsNullOrEmpty(parameterName), "'parameterName' MUST NOT be NULL or string.Empty");
System\Net\HttpListenerRequest.cs (6)
59if (!string.IsNullOrEmpty(cookieString)) 123if (string.IsNullOrEmpty(Headers[HttpKnownHeaderNames.Connection]) || string.IsNullOrEmpty(Headers[HttpKnownHeaderNames.Upgrade])) 161if (string.IsNullOrEmpty(header)) 165if (string.IsNullOrEmpty(header)) 174_keepAlive = !string.IsNullOrEmpty(header);
System\Net\HttpListenerRequestUriBuilder.cs (5)
49Debug.Assert(!string.IsNullOrEmpty(rawUri), "Empty raw URL."); 50Debug.Assert(!string.IsNullOrEmpty(cookedUriScheme), "Empty cooked URL scheme."); 51Debug.Assert(!string.IsNullOrEmpty(cookedUriHost), "Empty cooked URL host."); 52Debug.Assert(!string.IsNullOrEmpty(cookedUriPath), "Empty cooked URL path."); 137Debug.Assert(!string.IsNullOrEmpty(_rawPath), "'rawPath' must have at least one character.");
System\Net\HttpListenerResponse.cs (7)
42if (string.IsNullOrEmpty(value)) 134if (string.IsNullOrEmpty(value)) 205if (string.IsNullOrEmpty(cookieString)) 220if (!string.IsNullOrEmpty(setCookie)) 223if (string.IsNullOrEmpty(setCookie2)) 229if (!string.IsNullOrEmpty(setCookie2)) 232if (string.IsNullOrEmpty(setCookie))
System\Net\Managed\HttpListenerContext.Managed.cs (1)
39if (string.IsNullOrEmpty(header))
System\Net\ServiceNameStore.cs (2)
137Debug.Assert(!string.IsNullOrEmpty(uriPrefix)); 166Debug.Assert(!string.IsNullOrEmpty(uriPrefix));
System\Net\WebSockets\HttpWebSocket.cs (2)
35if (string.IsNullOrEmpty(clientSecWebSocketProtocol)) 118if (string.IsNullOrEmpty(secWebSocketVersion))
System.Net.Mail (38)
System\Net\BufferBuilder.cs (1)
65if (string.IsNullOrEmpty(value))
System\Net\Mail\Attachment.cs (5)
127if (string.IsNullOrEmpty(mediaType)) 201if (string.IsNullOrEmpty(cid)) 216if (string.IsNullOrEmpty(value)) 310if (string.IsNullOrEmpty(contentType.Name)) 344if (!allowUnicode && !string.IsNullOrEmpty(_name) && !MimeBasePart.IsAscii(_name, false))
System\Net\Mail\MailAddress.cs (5)
126else if (string.IsNullOrEmpty(address)) 136if (!string.IsNullOrEmpty(displayName)) 158if (string.IsNullOrEmpty(displayName)) 261if (string.IsNullOrEmpty(DisplayName)) 294if (!string.IsNullOrEmpty(_displayName))
System\Net\Mail\MailAddressParser.cs (1)
69Debug.Assert(!string.IsNullOrEmpty(data));
System\Net\Mail\MailMessage.cs (4)
326if (!string.IsNullOrEmpty(_body)) 336if (!string.IsNullOrEmpty(_body)) 365if (!string.IsNullOrEmpty(_body)) 418else if (viewsPart.Parts.Count == 1 && string.IsNullOrEmpty(_body))
System\Net\Mail\MailPriority.cs (1)
385if (!string.IsNullOrEmpty(_subject))
System\Net\Mail\SmtpClient.cs (2)
96if (!string.IsNullOrEmpty(_host)) 699if (string.IsNullOrEmpty(_host))
System\Net\Mail\WhitespaceReader.cs (2)
34Debug.Assert(!string.IsNullOrEmpty(data), "data was null or empty"); 117Debug.Assert(!string.IsNullOrEmpty(data), "data was null or empty");
System\Net\Mime\ContentDisposition.cs (4)
97if (string.IsNullOrEmpty(value)) 263if (string.IsNullOrEmpty(_dispositionType)) 315if (string.IsNullOrEmpty(paramAttribute) || string.IsNullOrEmpty(paramValue))
System\Net\Mime\ContentType.cs (5)
60if (string.IsNullOrEmpty(value)) 76if (string.IsNullOrEmpty(value)) 227if (string.IsNullOrEmpty(_mediaType) || offset >= _type.Length || _type[offset++] != '/') 233if (string.IsNullOrEmpty(_subType)) 252if (string.IsNullOrEmpty(paramAttribute))
System\Net\Mime\MimeBasePart.cs (4)
50if (string.IsNullOrEmpty(value)) 95if (string.IsNullOrEmpty(value)) 124if (string.IsNullOrEmpty(value)) 140if (string.IsNullOrEmpty(value))
System\Net\Mime\SmtpDateTime.cs (3)
175Debug.Assert(!string.IsNullOrEmpty(offset), "violation of precondition: offset must not be null or empty"); 211Debug.Assert(!string.IsNullOrEmpty(value), "violation of precondition: offset must not be null or empty"); 231if (string.IsNullOrEmpty(data))
System\Net\TrackingValidationObjectDictionary.cs (1)
56if (!string.IsNullOrEmpty(value))
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
353if (string.IsNullOrEmpty(hostNameOrAddress)) 633if (string.IsNullOrEmpty(hostNameOrAddress))
System.Net.WebClient (9)
System\Net\WebClient.cs (9)
158if (string.IsNullOrEmpty(value)) 742if (!string.IsNullOrEmpty(accept)) 747if (!string.IsNullOrEmpty(connection)) 752if (!string.IsNullOrEmpty(contentType)) 757if (!string.IsNullOrEmpty(expect)) 762if (!string.IsNullOrEmpty(referrer)) 767if (!string.IsNullOrEmpty(userAgent)) 772if (!string.IsNullOrEmpty(host)) 809if (string.IsNullOrEmpty(uri.Query) && _requestParameters != null)
System.Net.WebHeaderCollection (4)
src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (1)
41if (string.IsNullOrEmpty(value))
System\Net\WebHeaderCollection.cs (3)
111if (string.IsNullOrEmpty(name)) 309if (string.IsNullOrEmpty(header)) 364if (string.IsNullOrEmpty(name))
System.Net.WebSockets.Client (4)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (3)
59if (closeStatus == WebSocketCloseStatus.Empty && !string.IsNullOrEmpty(statusDescription)) 84if (!string.IsNullOrEmpty(statusDescription) && 97Debug.Assert(!string.IsNullOrEmpty(parameterName), "'parameterName' MUST NOT be NULL or string.Empty");
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
154if (subprotocolArray.Length > 0 && !string.IsNullOrEmpty(subprotocolArray[0]))
System.Private.CoreLib (159)
src\libraries\Common\src\Internal\VersionResilientHashCode.cs (1)
22if (string.IsNullOrEmpty(name))
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
141Debug.Assert(!string.IsNullOrEmpty(path));
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (7)
125return !string.IsNullOrEmpty(path) ? 132return !string.IsNullOrEmpty(path) ? 140return !string.IsNullOrEmpty(path) ? 145return !string.IsNullOrEmpty(path) ? 150return !string.IsNullOrEmpty(path) ? 161if (!string.IsNullOrEmpty(path)) 183string.IsNullOrEmpty(path) ? msg : $"{msg} : '{path}'", errorInfo.RawErrno);
src\libraries\Common\src\System\IO\PathInternal.cs (3)
55if (string.IsNullOrEmpty(first) || string.IsNullOrEmpty(second)) return 0; 228!string.IsNullOrEmpty(path) && IsDirectorySeparator(path[^1]);
src\libraries\Common\src\System\IO\PathInternal.Unix.cs (2)
41if (string.IsNullOrEmpty(path)) 91return string.IsNullOrEmpty(path);
src\libraries\Common\src\System\IO\Win32Marshal.cs (9)
35string.IsNullOrEmpty(path) ? SR.IO_FileNotFound : SR.Format(SR.IO_FileNotFound_FileName, path), path); 38string.IsNullOrEmpty(path) ? SR.IO_PathNotFound_NoPathName : SR.Format(SR.IO_PathNotFound_Path, path)); 41string.IsNullOrEmpty(path) ? SR.UnauthorizedAccess_IODenied_NoPathName : SR.Format(SR.UnauthorizedAccess_IODenied_Path, path)); 43if (string.IsNullOrEmpty(path)) 48string.IsNullOrEmpty(path) ? SR.IO_PathTooLong : SR.Format(SR.IO_PathTooLong_Path, path)); 51string.IsNullOrEmpty(path) ? SR.IO_SharingViolation_NoFileName : SR.Format(SR.IO_SharingViolation_File, path), 54if (string.IsNullOrEmpty(path)) 63if (!string.IsNullOrEmpty(path)) 67if (!string.IsNullOrEmpty(errorDetails))
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
107if (!TryGetNextToken(out string name, out Token token) || token != Token.String || string.IsNullOrEmpty(name))
src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (2)
80if (!string.IsNullOrEmpty(_paramName)) 106if (string.IsNullOrEmpty(argument))
src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (1)
97if (!string.IsNullOrEmpty(_fileName))
src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
107if (!(string.IsNullOrEmpty(message)))
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (2)
566if (string.IsNullOrEmpty(format)) 745if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (3)
98if (!string.IsNullOrEmpty(eventMessage)) 158if (string.IsNullOrEmpty(s_eventSourceNameFilter) || (eventSource.Name.Contains(s_eventSourceNameFilter, StringComparison.OrdinalIgnoreCase))) 176if (string.IsNullOrEmpty(s_eventSourceEventFilter) || (eventData.EventName!.Contains(s_eventSourceEventFilter, StringComparison.OrdinalIgnoreCase)))
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
1396if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (4)
78if (string.IsNullOrEmpty(home)) 164Debug.Assert(!string.IsNullOrEmpty(homeDir), $"Expected non-empty homeDir"); 165Debug.Assert(!string.IsNullOrEmpty(key), $"Expected non-empty key"); 166Debug.Assert(!string.IsNullOrEmpty(fallback), $"Expected non-empty fallback");
src\libraries\System.Private.CoreLib\src\System\Exception.cs (2)
136if (!string.IsNullOrEmpty(message)) 156if (!string.IsNullOrEmpty(message))
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.cs (6)
149if (this.saMonthGenitiveNames == null || this.saMonthGenitiveNames.Length == 0 || string.IsNullOrEmpty(this.saMonthGenitiveNames[0])) 151if (this.saAbbrevMonthGenitiveNames == null || this.saAbbrevMonthGenitiveNames.Length == 0 || string.IsNullOrEmpty(this.saAbbrevMonthGenitiveNames[0])) 153if (this.saLeapYearMonthNames == null || this.saLeapYearMonthNames.Length == 0 || string.IsNullOrEmpty(this.saLeapYearMonthNames[0])) 258this.saEraNames == null || this.saEraNames.Length == 0 || string.IsNullOrEmpty(this.saEraNames[0]); 270if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || string.IsNullOrEmpty(this.saAbbrevEraNames[0])) 311if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || string.IsNullOrEmpty(this.saAbbrevEraNames[0]))
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (12)
424if (string.IsNullOrEmpty(cultureName)) 674if (string.IsNullOrEmpty(cultureName) || cultureName.Equals(UndeterminedCultureName, StringComparison.OrdinalIgnoreCase)) 892if (!string.IsNullOrEmpty(localeName)) 958if (string.IsNullOrEmpty(localizedDisplayName) && IsNeutralCulture) 990if (string.IsNullOrEmpty(englishDisplayName)) 1009if (string.IsNullOrEmpty(englishDisplayName)) 1052if (string.IsNullOrEmpty(nativeDisplayName)) 1073if (string.IsNullOrEmpty(nativeDisplayName)) 1890internal bool IsInvariantCulture => string.IsNullOrEmpty(Name); 1956if (string.IsNullOrEmpty(longTimeFormat)) 2267if (string.IsNullOrEmpty(nfi._positiveSign)) 2275if (string.IsNullOrEmpty(nfi._currencyDecimalSeparator))
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
288if (string.IsNullOrEmpty(win32Str))
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
506if (string.IsNullOrEmpty(parentName))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
924if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
2430if (string.IsNullOrEmpty(str))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
199if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (2)
51if (string.IsNullOrEmpty(value)) 54if (string.IsNullOrEmpty(value))
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
21if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
1685if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1199if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (1)
66else if (string.IsNullOrEmpty(expression) || expression == "." || expression == "*.*")
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (1)
18if (string.IsNullOrEmpty(expression) || expression == "*" || expression == "*.*")
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
1098Debug.Assert(!string.IsNullOrEmpty(path)); 1306Debug.Assert(!string.IsNullOrEmpty(path));
src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (1)
54if (!string.IsNullOrEmpty(FileName))
src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (1)
77if (!string.IsNullOrEmpty(FileName))
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (20)
95if (string.IsNullOrEmpty(path)) 489if (string.IsNullOrEmpty(path1)) 492if (string.IsNullOrEmpty(path2)) 500if (string.IsNullOrEmpty(path1)) 503if (string.IsNullOrEmpty(path2)) 506if (string.IsNullOrEmpty(path3)) 514if (string.IsNullOrEmpty(path1)) 517if (string.IsNullOrEmpty(path2)) 520if (string.IsNullOrEmpty(path3)) 523if (string.IsNullOrEmpty(path4)) 560if (string.IsNullOrEmpty(path)) 653if (string.IsNullOrEmpty(first)) 656if (string.IsNullOrEmpty(second)) 667if (string.IsNullOrEmpty(first)) 669if (string.IsNullOrEmpty(second)) 671if (string.IsNullOrEmpty(third)) 684if (string.IsNullOrEmpty(first)) 686if (string.IsNullOrEmpty(second)) 688if (string.IsNullOrEmpty(third)) 690if (string.IsNullOrEmpty(fourth))
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (2)
56Debug.Assert(!string.IsNullOrEmpty(path)); 90string.IsNullOrEmpty(path) ? DefaultTempPath :
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (2)
36if (string.IsNullOrEmpty(userHomeDirectory)) 54if (!string.IsNullOrEmpty(userHomeDirectory))
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
449if (string.IsNullOrEmpty(value))
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (6)
642if (string.IsNullOrEmpty(format)) 760if (string.IsNullOrEmpty(format)) 872if (string.IsNullOrEmpty(format)) 992if (string.IsNullOrEmpty(format)) 1104if (string.IsNullOrEmpty(format)) 1226if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (1)
94if (string.IsNullOrEmpty(name))
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
109_versionString = string.IsNullOrEmpty(_servicePack) ?
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
321if (string.IsNullOrEmpty(requestorPath))
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
250if (string.IsNullOrEmpty(this.Name))
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
283if (i == nestings.Count - 1 && !string.IsNullOrEmpty(enclosingType.Namespace))
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
103metaParameter = string.IsNullOrEmpty(parameter.Name) ? metaMethod.ReturnParameter : GetMetaParameter(metaMethod, parameter);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ContractHelper.cs (4)
90if (string.IsNullOrEmpty(displayMessage)) 100bool hasConditionText = !string.IsNullOrEmpty(conditionText); 136if (!string.IsNullOrEmpty(conditionText)) 146if (!string.IsNullOrEmpty(userMessage))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (1)
57if (!string.IsNullOrEmpty(message))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (1)
56if (!string.IsNullOrEmpty(message))
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
120if (!string.IsNullOrEmpty(assemblyName.CultureName) &&
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
53_fullName ??= string.IsNullOrEmpty(Profile) ?
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (1)
25Debug.Assert(!string.IsNullOrEmpty(values[0]));
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (3)
38if (null == startupHooksVariable && string.IsNullOrEmpty(diagnosticStartupHooks)) 43if (!string.IsNullOrEmpty(diagnosticStartupHooks)) 97if (string.IsNullOrEmpty(startupHookPart))
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (12)
183if (IsNullOrEmpty(str0)) 185if (IsNullOrEmpty(str1)) 192if (IsNullOrEmpty(str1)) 217if (IsNullOrEmpty(str0)) 222if (IsNullOrEmpty(str1)) 227if (IsNullOrEmpty(str2)) 250if (IsNullOrEmpty(str0)) 255if (IsNullOrEmpty(str1)) 260if (IsNullOrEmpty(str2)) 265if (IsNullOrEmpty(str3)) 434if (!IsNullOrEmpty(value)) 2185if (IsNullOrEmpty(separator))
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Windows.cs (1)
89if (!string.IsNullOrEmpty(name) && errorCode == Interop.Errors.ERROR_INVALID_HANDLE)
src\libraries\System.Private.CoreLib\src\System\Threading\NamedWaitHandleOptions.cs (1)
100Debug.Assert(!string.IsNullOrEmpty(name));
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Windows.cs (1)
98if (!string.IsNullOrEmpty(name) && errorCode == Interop.Errors.ERROR_INVALID_HANDLE)
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
652if (ex != null && !string.IsNullOrEmpty(ex.Message))
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (2)
736if (string.IsNullOrEmpty(format)) 917if (string.IsNullOrEmpty(format))
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (2)
149if (result && !string.IsNullOrEmpty(timeZoneDisplayName)) 279if (!string.IsNullOrEmpty(exemplarCityName))
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
616AdjustmentRule? r = !string.IsNullOrEmpty(futureTransitionsPosixFormat) ?
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (7)
189if (!string.IsNullOrEmpty(zoneTabFileLine) && zoneTabFileLine[0] != '#') 212if (!string.IsNullOrEmpty(timeZoneId)) 227if (!string.IsNullOrEmpty(result)) 358if (string.IsNullOrEmpty(id)) 362if (string.IsNullOrEmpty(id)) 442if (string.IsNullOrEmpty(tzVariable)) 509if (string.IsNullOrEmpty(tzDirectory))
src\System\Exception.CoreCLR.cs (1)
108if (!string.IsNullOrEmpty(tmpStackTraceString))
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
92if (string.IsNullOrEmpty(strFormat))
src\System\Reflection\MdImport.cs (1)
272RuntimeType? safeArrayUserDefinedType = string.IsNullOrEmpty(safeArrayUserDefinedTypeName) ? null :
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
742if (string.IsNullOrEmpty(argName))
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
240&& !string.IsNullOrEmpty(escapedTypeName)
src\System\RuntimeType.CoreCLR.cs (2)
335if (string.IsNullOrEmpty(name) || 3343if (string.IsNullOrEmpty(ns))
src\System\Threading\Mutex.CoreCLR.Unix.cs (1)
43if (!string.IsNullOrEmpty(name) && options.WasSpecified)
System.Private.CoreLib.Generators (8)
NativeRuntimeEventSourceGenerator.cs (7)
31if (string.IsNullOrEmpty(manifestText)) 64if (string.IsNullOrEmpty(inclusionText)) 74if (string.IsNullOrEmpty(trimmed) || trimmed.StartsWith("#")) 187if (!string.IsNullOrEmpty(keywords)) 245if (!string.IsNullOrEmpty(name)) 318if (!string.IsNullOrEmpty(templateValue) 337if (!string.IsNullOrEmpty(data.Attribute("count")?.Value))
ProductVersionInfoGenerator.cs (1)
23if (string.IsNullOrEmpty(productVersion))
System.Private.DataContractSerialization (57)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (3)
90if (!string.IsNullOrEmpty(type.Namespace)) 124if (string.IsNullOrEmpty(typeName)) 322if (string.IsNullOrEmpty(_baseType))
System\Runtime\Serialization\Attributes.cs (2)
106if (string.IsNullOrEmpty(Id)) 115if (string.IsNullOrEmpty(Ref))
System\Runtime\Serialization\ClassDataContract.cs (1)
856if (string.IsNullOrEmpty(memberAttribute.Name))
System\Runtime\Serialization\CollectionDataContract.cs (3)
458if (string.IsNullOrEmpty(collectionContractAttribute.ItemName)) 465if (string.IsNullOrEmpty(collectionContractAttribute.KeyName)) 473if (string.IsNullOrEmpty(collectionContractAttribute.ValueName))
System\Runtime\Serialization\DataContract.cs (2)
1266if (string.IsNullOrEmpty(name)) 1378if (string.IsNullOrEmpty(name))
System\Runtime\Serialization\EnumDataContract.cs (1)
239if (string.IsNullOrEmpty(memberAttribute.Value))
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
126_typeName = string.IsNullOrEmpty(traditionalDataContract.Namespace.Value) ? traditionalDataContract.Name.Value : string.Concat(traditionalDataContract.Name.Value, JsonGlobals.NameValueSeparatorString, XmlObjectSerializerWriteContextComplexJson.TruncateDefaultDataContractNamespace(traditionalDataContract.Namespace.Value));
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
166_typeName = string.IsNullOrEmpty(traditionalDataContract.Namespace.Value) ? traditionalDataContract.Name.Value : string.Concat(traditionalDataContract.Name.Value, JsonGlobals.NameValueSeparatorString, XmlObjectSerializerWriteContextComplexJson.TruncateDefaultDataContractNamespace(traditionalDataContract.Namespace.Value));
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (5)
35if (string.IsNullOrEmpty(qname)) 140if (!string.IsNullOrEmpty(originalDateTimeValue)) 149if (string.IsNullOrEmpty(dateTimeValue) || 264if (string.IsNullOrEmpty(value)) 297if (string.IsNullOrEmpty(value))
System\Runtime\Serialization\Json\XmlJsonWriter.cs (7)
509if (!string.IsNullOrEmpty(_attributeText) && _isWritingXmlnsAttributeDefaultNs) 708if (!string.IsNullOrEmpty(prefix)) 729if (!string.IsNullOrEmpty(ns)) 735else if (string.IsNullOrEmpty(prefix) && localName == JsonGlobals.xmlnsPrefix && ns == xmlnsNamespace) 835if (!string.IsNullOrEmpty(prefix)) 837if (string.IsNullOrEmpty(ns) || !TrySetWritingNameWithMapping(localName, ns)) 842if (!string.IsNullOrEmpty(ns))
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
161if (!string.IsNullOrEmpty(serverTypeNamespace)) 194if (!string.IsNullOrEmpty(serverTypeNamespace)) 225if (string.IsNullOrEmpty(qname))
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
64if (string.IsNullOrEmpty(dataContractNamespace)) 77if (!string.IsNullOrEmpty(dataContractNamespace))
System\Runtime\Serialization\ReflectionReader.cs (1)
289if (!string.IsNullOrEmpty(objectId) && typeIsValueType)
System\Runtime\Serialization\SchemaExporter.cs (4)
600if (string.IsNullOrEmpty(xmlName.Name)) 624if (string.IsNullOrEmpty(methodName)) 659if (string.IsNullOrEmpty(typeName)) 706if (string.IsNullOrEmpty(schema.Id))
System\Runtime\Serialization\SchemaHelper.cs (2)
45if (string.IsNullOrEmpty(ns1)) 46return string.IsNullOrEmpty(ns2);
System\Runtime\Serialization\SchemaImporter.cs (1)
504|| (string.IsNullOrEmpty(type.Name) && _dataContractSet.TryGetReferencedType(ImportActualType(type.Annotation, typeName, typeName), dataContract, out referencedType)))
System\Runtime\Serialization\XmlDataContract.cs (2)
171_topLevelElementName = string.IsNullOrEmpty(elementName) ? Name : dictionary.Add(DataContract.EncodeLocalName(elementName)); 173_topLevelElementNamespace = string.IsNullOrEmpty(elementNs) ? DictionaryGlobals.EmptyString : dictionary.Add(elementNs);
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
251if (string.IsNullOrEmpty(contractNs) || contractNs == XmlDictionaryString.GetString(ns))
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1073XmlAttribute attribute = string.IsNullOrEmpty(prefix) ?
System\Runtime\Serialization\XmlReaderDelegator.cs (3)
627if (string.IsNullOrEmpty(str)) 637if (string.IsNullOrEmpty(str)) 776if (string.IsNullOrEmpty(str))
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
147if (string.IsNullOrEmpty(prefix))
System\Xml\XmlBinaryWriter.cs (5)
148if (string.IsNullOrEmpty(prefix)) 185if (string.IsNullOrEmpty(prefix)) 310if (string.IsNullOrEmpty(prefix)) 332if (string.IsNullOrEmpty(prefix)) 1077if (string.IsNullOrEmpty(_captureText))
System\Xml\XmlUTF8TextWriter.cs (5)
166if (!string.IsNullOrEmpty(prefix)) 177if (!string.IsNullOrEmpty(prefix)) 231if (!string.IsNullOrEmpty(prefix)) 243if (!string.IsNullOrEmpty(prefix)) 273if (!string.IsNullOrEmpty(prefix))
System.Private.Uri (8)
System\Uri.cs (3)
1266if (string.IsNullOrEmpty(name) || name.Length > short.MaxValue) 1475!string.IsNullOrEmpty(schemeName) && 2629if (string.IsNullOrEmpty(portStr))
System\UriBuilder.cs (5)
71if (!string.IsNullOrEmpty(extraValue)) 167if (!string.IsNullOrEmpty(value) && value.Contains(':') && value[0] != '[') 196_path = string.IsNullOrEmpty(value) 209if (!string.IsNullOrEmpty(value) && value[0] != '?') 225if (!string.IsNullOrEmpty(value) && value[0] != '#')
System.Private.Windows.Core (3)
System\ArgumentValidation.cs (2)
33if (string.IsNullOrEmpty(argument)) 41if (string.IsNullOrEmpty(argument))
System\Private\Windows\Ole\DataObjectExtensions.cs (1)
24if (string.IsNullOrEmpty(path) || path.Contains('\0'))
System.Private.Windows.Core.Tests (1)
System\Private\Windows\Ole\ClipboardCoreTests.cs (1)
305DataObject dataObject = string.IsNullOrEmpty(format) ? new() : new(format, data);
System.Private.Windows.Core.TestUtilities (2)
ThrowingTraceListener.cs (2)
13$"{(string.IsNullOrEmpty(message) ? "Assertion failed" : message)}{(string.IsNullOrEmpty(detailMessage)
System.Private.Xml (194)
src\libraries\Common\src\System\CSharpHelpers.cs (1)
145if (string.IsNullOrEmpty(value))
System\Xml\Cache\XPathDocumentBuilder.cs (1)
906if (!string.IsNullOrEmpty(text))
System\Xml\Core\HtmlEncodedRawTextWriter.cs (5)
97Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 288Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 356Debug.Assert(!string.IsNullOrEmpty(target) && text != null); 816Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 880Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\HtmlUtf8RawTextWriter.cs (5)
90Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 275Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 339Debug.Assert(!string.IsNullOrEmpty(target) && text != null); 788Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null); 850Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\QueryOutputWriter.cs (1)
165string.IsNullOrEmpty(prefix) ? localName : $"{prefix}:{localName}",
System\Xml\Core\QueryOutputWriterV1.cs (1)
148string.IsNullOrEmpty(prefix) ? localName : $"{prefix}:{localName}",
System\Xml\Core\XmlEncodedRawTextWriter.cs (4)
300if (!string.IsNullOrEmpty(prefix)) 337if (!string.IsNullOrEmpty(prefix)) 366if (!string.IsNullOrEmpty(prefix)) 1963Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (4)
184if (!string.IsNullOrEmpty(prefix)) 216if (!string.IsNullOrEmpty(prefix)) 248if (!string.IsNullOrEmpty(prefix)) 1922Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlTextReaderImpl.cs (5)
466if (string.IsNullOrEmpty(url)) 509if (context == null || string.IsNullOrEmpty(context.BaseURI)) 2588if (_ps.baseUri == null && !string.IsNullOrEmpty(_ps.baseUriStr)) 7895if (!string.IsNullOrEmpty(publicId)) 7993if (!string.IsNullOrEmpty(entity.BaseUriString))
System\Xml\Core\XmlTextReaderImplAsync.cs (3)
837if (_ps.baseUri == null && !string.IsNullOrEmpty(_ps.baseUriStr)) 5105if (!string.IsNullOrEmpty(publicId)) 5203if (!string.IsNullOrEmpty(entity.BaseUriString))
System\Xml\Core\XmlTextWriter.cs (10)
498if (!string.IsNullOrEmpty(prefix) && (LookupNamespace(prefix) == -1)) 533if (!string.IsNullOrEmpty(prefix)) 542if (!string.IsNullOrEmpty(ns) || !string.IsNullOrEmpty(prefix)) 613if (string.IsNullOrEmpty(localName)) 674if (!string.IsNullOrEmpty(prefix)) 682if (!string.IsNullOrEmpty(ns) || !string.IsNullOrEmpty(prefix)) 1061if (!string.IsNullOrEmpty(ns) && ns != _stack[_top].defaultNs) 1082else if (!string.IsNullOrEmpty(ns))
System\Xml\Core\XmlUtf8RawTextWriter.cs (4)
242if (!string.IsNullOrEmpty(prefix)) 277if (!string.IsNullOrEmpty(prefix)) 304if (!string.IsNullOrEmpty(prefix)) 1820Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (4)
158if (!string.IsNullOrEmpty(prefix)) 188if (!string.IsNullOrEmpty(prefix)) 218if (!string.IsNullOrEmpty(prefix)) 1787Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
1016if (string.IsNullOrEmpty(_parserContext.DocTypeName))
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
178if (string.IsNullOrEmpty(_parserContext.DocTypeName))
System\Xml\Core\XmlWellFormedWriter.cs (3)
604if (string.IsNullOrEmpty(localName)) 657if (string.IsNullOrEmpty(prefix)) 1287if (!string.IsNullOrEmpty(ns))
System\Xml\Core\XmlWellFormedWriterAsync.cs (3)
444if (string.IsNullOrEmpty(localName)) 515if (string.IsNullOrEmpty(prefix)) 1138if (!string.IsNullOrEmpty(ns))
System\Xml\Core\XmlWriter.cs (3)
229if (!string.IsNullOrEmpty(ns)) 553if (!string.IsNullOrEmpty(value)) 565if (!string.IsNullOrEmpty(value))
System\Xml\Core\XmlWriterAsync.cs (2)
215if (!string.IsNullOrEmpty(ns)) 548if (!string.IsNullOrEmpty(value))
System\Xml\Core\XsdValidatingReader.cs (1)
245if (!string.IsNullOrEmpty(prefix))
System\Xml\Dom\XmlDomTextWriter.cs (4)
30if (string.IsNullOrEmpty(ns) && !string.IsNullOrEmpty(prefix)) 40if (string.IsNullOrEmpty(ns) && !string.IsNullOrEmpty(prefix))
System\Xml\Dom\XmlEntityReference.cs (1)
210if (!string.IsNullOrEmpty(ent.SystemId))
System\Xml\Dom\XmlNodeReader.cs (3)
367if (!string.IsNullOrEmpty(strTemp)) 374if (!string.IsNullOrEmpty(strTemp)) 381if (!string.IsNullOrEmpty(strTemp))
System\Xml\Schema\DataTypeImplementation.cs (6)
1880if (string.IsNullOrEmpty(s)) 1911if (string.IsNullOrEmpty(s)) 1950if (string.IsNullOrEmpty(s)) 2705if (string.IsNullOrEmpty(s)) 3038if (string.IsNullOrEmpty(s)) 3736if (string.IsNullOrEmpty(s))
System\Xml\Schema\FacetChecker.cs (1)
1455if (string.IsNullOrEmpty(s))
System\Xml\Schema\Preprocessor.cs (3)
116else if (!string.IsNullOrEmpty(targetNamespace)) 635else if (!string.IsNullOrEmpty(targetNamespace)) 2076if (string.IsNullOrEmpty(name))
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
1736if (string.IsNullOrEmpty(name))
System\Xml\Schema\XmlSchema.cs (1)
183if (!string.IsNullOrEmpty(_targetNs))
System\Xml\Schema\XmlSchemaAny.cs (1)
41if (string.IsNullOrEmpty(_ns))
System\Xml\Schema\XmlSchemaCollection.cs (1)
98if (string.IsNullOrEmpty(uri))
System\Xml\Schema\XmlSchemaSet.cs (1)
221if (string.IsNullOrEmpty(schemaUri))
System\Xml\Schema\XmlSchemaValidator.cs (1)
1040if (string.IsNullOrEmpty(defaultPrefix))
System\Xml\Serialization\CodeIdentifier.cs (2)
257if (string.IsNullOrEmpty(identifier)) 282if (string.IsNullOrEmpty(identifier)) return identifier;
System\Xml\Serialization\Compilation.cs (6)
234if (!string.IsNullOrEmpty(type.Assembly.Location)) 239if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location)) 244if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(AppContext.BaseDirectory)) 249if (!string.IsNullOrEmpty(path))
System\Xml\Serialization\Compiler.cs (1)
87return string.IsNullOrEmpty(ns) ?
System\Xml\Serialization\Mappings.cs (4)
106if (string.IsNullOrEmpty(name)) return name; 113if (string.IsNullOrEmpty(name)) return name; 344get { return string.IsNullOrEmpty(_typeName); } 1375if (string.IsNullOrEmpty(_schema.Id)) throw new InvalidOperationException(SR.Format(SR.XmlSerializableNameMissing1, _type!.FullName));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
602Debug.Assert(!string.IsNullOrEmpty(memberName), "memberName must have a value"); 1619if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name))
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
326if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) 337if (string.IsNullOrEmpty(enumValue)) 1132return string.IsNullOrEmpty((string)o);
System\Xml\Serialization\SchemaObjectWriter.cs (5)
163if (string.IsNullOrEmpty(value)) 167if (!string.IsNullOrEmpty(ns)) 307if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && !string.IsNullOrEmpty(o.QualifiedName.Namespace)) 985if (o.QualifiedName != null && !o.QualifiedName.IsEmpty && !string.IsNullOrEmpty(o.QualifiedName.Namespace)) 994if (!string.IsNullOrEmpty(o.Name))
System\Xml\Serialization\SoapReflectionImporter.cs (3)
125element.Name = string.IsNullOrEmpty(elementName) ? elementName : XmlConvert.EncodeLocalName(elementName); 207TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 208string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc!.Name : dataType;
System\Xml\Serialization\XmlAttributes.cs (1)
101if (string.IsNullOrEmpty(any.Name) && any.GetNamespaceSpecified() && any.Namespace == null)
System\Xml\Serialization\XmlReflectionImporter.cs (5)
222element.Name = string.IsNullOrEmpty(elementName) ? elementName : XmlConvert.EncodeLocalName(elementName); 447TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 715if (string.IsNullOrEmpty(typeName)) 955return string.IsNullOrEmpty(originalNs) || originalNs == contextNs; 2018if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
System\Xml\Serialization\XmlSchemaExporter.cs (3)
269schema.TargetNamespace = string.IsNullOrEmpty(targetNamespace) ? null : targetNamespace; 316if (string.IsNullOrEmpty(ns1)) 317return string.IsNullOrEmpty(ns2);
System\Xml\Serialization\XmlSchemaImporter.cs (12)
466if (mapping != null && !string.IsNullOrEmpty(type.Name)) 557string typeName = string.IsNullOrEmpty(type.Name) ? GenerateUniqueTypeName(identifier, typeNs) : GenerateUniqueTypeName(identifier); 560structMapping.TypeName = string.IsNullOrEmpty(type.Name) ? null : identifier; 1296arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(arrayMapping.TypeDesc!.Name)}" : type.Name; 1313arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.Name)}" : type.Name; 1325if (!string.IsNullOrEmpty(type.Name)) 1841if (!string.IsNullOrEmpty(dataType.Name)) 1896if (!string.IsNullOrEmpty(dataType.Name)) 1992if (string.IsNullOrEmpty(ns)) 1999return string.IsNullOrEmpty(element.QualifiedName.Namespace) ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified; 2019if (string.IsNullOrEmpty(ns)) 2026return string.IsNullOrEmpty(attribute.QualifiedName.Namespace) ? XmlSchemaForm.Unqualified : XmlSchemaForm.Qualified;
System\Xml\Serialization\XmlSchemas.cs (4)
473if (!string.IsNullOrEmpty(type.Name)) 494if (string.IsNullOrEmpty(ns)) 517if (string.IsNullOrEmpty(e.Name)) 538if (string.IsNullOrEmpty(a.Name))
System\Xml\Serialization\XmlSerializationReader.cs (5)
1150if (string.IsNullOrEmpty(prefix)) 1380if (string.IsNullOrEmpty(value)) 3333if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 3993if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 4212if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
1557if (mapping.Elements[j].Any && string.IsNullOrEmpty(mapping.Elements[j].Name)) 1735bool isNameNullOrEmpty = string.IsNullOrEmpty(name); 2216if (e.Any && string.IsNullOrEmpty(e.Name)) continue; 2475if (!isSequence && e.Any && string.IsNullOrEmpty(e.Name)) continue;
System\Xml\Serialization\XmlSerializationWriter.cs (15)
438if (string.IsNullOrEmpty(ns)) return name; 512if (string.IsNullOrEmpty(defaultNS)) 523if (string.IsNullOrEmpty(prefix)) 532if (needEmptyDefaultNamespace && prefix == null && !string.IsNullOrEmpty(ns)) 541if (alias.Length == 0 && string.IsNullOrEmpty(aliasNs)) 543if (string.IsNullOrEmpty(aliasNs)) 611if (string.IsNullOrEmpty(name)) 625if (string.IsNullOrEmpty(name)) 639if (string.IsNullOrEmpty(name)) 963if (string.IsNullOrEmpty(prefix)) 1162if (string.IsNullOrEmpty(value.Namespace)) 1451string? oldPrefix = string.IsNullOrEmpty(ns) ? null : Writer.LookupPrefix(ns); 2033if (string.IsNullOrEmpty(arg)) 2471if (string.IsNullOrEmpty(values[i])) 4481if (string.IsNullOrEmpty(enumValue))
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
211if (string.IsNullOrEmpty(values[i])) 2264if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs) 2272if (string.IsNullOrEmpty(enumValue))
System\Xml\Serialization\XmlSerializerNamespaces.cs (3)
120if (_namespaces == null || _namespaces.Count == 0 || string.IsNullOrEmpty(ns)) 125if (!string.IsNullOrEmpty(nsPair.Key) && nsPair.Value.Namespace == ns) 138if (_namespaces == null || _namespaces.Count == 0 || string.IsNullOrEmpty(prefix))
System\Xml\XmlConvert.cs (9)
78if (string.IsNullOrEmpty(name)) 173if (string.IsNullOrEmpty(name)) 331if (string.IsNullOrEmpty(name)) 347if (string.IsNullOrEmpty(name)) 404if (string.IsNullOrEmpty(token)) 421if (string.IsNullOrEmpty(token)) 467if (string.IsNullOrEmpty(name)) 1308if (!string.IsNullOrEmpty(s)) 1396if (string.IsNullOrEmpty(data))
System\Xml\XmlQualifiedName.cs (1)
117return string.IsNullOrEmpty(ns) ? name : $"{ns}:{name}";
System\Xml\XmlResolver.cs (1)
55if (string.IsNullOrEmpty(relativeUri))
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
163if (!string.IsNullOrEmpty(paramNames[i]))
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
117if (!string.IsNullOrEmpty(s)) 118this.writer.WriteComment(!string.IsNullOrEmpty(name) ? $"{name}: {s}" : s);
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (1)
87Debug.Assert(!string.IsNullOrEmpty(localName) && prefix != null && ns != null);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (2)
162Debug.Assert(prefix != null && !string.IsNullOrEmpty(localName) && ns != null, "Invalid argument"); 1399Debug.Assert(prefix != null && !string.IsNullOrEmpty(ns));
System\Xml\Xsl\Xslt\XsltLoader.cs (3)
1820if (!string.IsNullOrEmpty(ordinal)) ReportNYI("xsl:number/@ordinal"); 2827if (!string.IsNullOrEmpty(elements)) 2837else if (string.IsNullOrEmpty(prefix))
System\Xml\Xsl\XsltOld\BuilderInfo.cs (1)
172if (string.IsNullOrEmpty(s))
System\Xml\Xsl\XsltOld\Compiler.cs (1)
434if (string.IsNullOrEmpty(tokens))
System\Xml\Xsl\XsltOld\InputScopeManager.cs (2)
80if (string.IsNullOrEmpty(prefix)) 96Debug.Assert(!string.IsNullOrEmpty(prefix));
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
684if (string.IsNullOrEmpty(formatString))
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (2)
72if (string.IsNullOrEmpty(prefix)) 118if (string.IsNullOrEmpty(prefix))
System.Private.Xml.Linq (7)
System\Xml\Linq\XContainer.cs (1)
735if (!string.IsNullOrEmpty(s))
System\Xml\Linq\XDocument.cs (4)
486if (!string.IsNullOrEmpty(baseUri)) 592if (_declaration != null && !string.IsNullOrEmpty(_declaration.Encoding)) 625if (_declaration != null && !string.IsNullOrEmpty(_declaration.Encoding)) 769if (_declaration != null && !string.IsNullOrEmpty(_declaration.Encoding))
System\Xml\Linq\XElement.cs (1)
2053if (!string.IsNullOrEmpty(baseUri))
System\Xml\Linq\XNodeReader.cs (1)
1136if (!string.IsNullOrEmpty(qualifiedName))
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
129name = string.IsNullOrEmpty(alcName) ? $"DispatchProxyTypes.{alc.GetHashCode()}" : $"DispatchProxyTypes.{new AssemblyName { Name = alcName }}";
System.Reflection.Emit (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
283if (i == nestings.Count - 1 && !string.IsNullOrEmpty(enclosingType.Namespace))
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
536if (!string.IsNullOrEmpty(local.Name))
System\Reflection\Emit\PseudoCustomAttributesData.cs (2)
32if (string.IsNullOrEmpty(moduleName)) 98if (string.IsNullOrEmpty(moduleName))
System.Reflection.Metadata (2)
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
107if (!TryGetNextToken(out string name, out Token token) || token != Token.String || string.IsNullOrEmpty(name))
System\Reflection\PortableExecutable\DebugDirectory\PdbChecksumDebugDirectoryData.cs (1)
23Debug.Assert(!string.IsNullOrEmpty(algorithmName));
System.Reflection.MetadataLoadContext (2)
System\Reflection\PathAssemblyResolver.cs (1)
38if (string.IsNullOrEmpty(path))
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
42if (string.IsNullOrEmpty(location))
System.Runtime.Caching (6)
System\Runtime\Caching\Dbg.cs (1)
31if (string.IsNullOrEmpty(message) & exceptionMessage != null)
System\Runtime\Caching\FileChangeNotificationSystem.cs (4)
40if (string.IsNullOrEmpty(s1) && string.IsNullOrEmpty(s2)) 44if (string.IsNullOrEmpty(s1) || string.IsNullOrEmpty(s2))
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
181if (string.IsNullOrEmpty(path))
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
447if (string.IsNullOrEmpty(clrNamespace)) 734return (string.IsNullOrEmpty(clrNamespace) && _clrNamespaces.ContainsKey(typeName)); 1513if (string.IsNullOrEmpty(dataContractNamespace))
System.Security.Claims (8)
System\Security\Claims\Claim.cs (3)
258_valueType = string.IsNullOrEmpty(valueType) ? ClaimValueTypes.String : valueType; 259_issuer = string.IsNullOrEmpty(issuer) ? ClaimsIdentity.DefaultIssuer : issuer; 260_originalIssuer = string.IsNullOrEmpty(originalIssuer) ? _issuer : originalIssuer;
System\Security\Claims\ClaimsIdentity.cs (5)
156_authenticationType = (identity != null && string.IsNullOrEmpty(authenticationType)) ? identity.AuthenticationType : authenticationType; 157_nameClaimType = !string.IsNullOrEmpty(nameType) ? nameType : (claimsIdentity != null ? claimsIdentity._nameClaimType : DefaultNameClaimType); 158_roleClaimType = !string.IsNullOrEmpty(roleType) ? roleType : (claimsIdentity != null ? claimsIdentity._roleClaimType : DefaultRoleClaimType); 184if (identity != null && !string.IsNullOrEmpty(identity.Name)) 324get { return !string.IsNullOrEmpty(_authenticationType); }
System.Security.Cryptography.Pkcs (3)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
44if (string.IsNullOrEmpty(bagIdValue))
System\Security\Cryptography\Xml\X509IssuerSerial.cs (2)
14Debug.Assert(!string.IsNullOrEmpty(issuerName)); 15Debug.Assert(!string.IsNullOrEmpty(serialNumber));
System.Security.Cryptography.Xml (38)
System\Security\Cryptography\Xml\CipherReference.cs (1)
59if (!string.IsNullOrEmpty(Uri))
System\Security\Cryptography\Xml\DataObject.cs (3)
117if (!string.IsNullOrEmpty(_id)) 119if (!string.IsNullOrEmpty(_mimeType)) 121if (!string.IsNullOrEmpty(_encoding))
System\Security\Cryptography\Xml\EncryptedData.cs (4)
83if (!string.IsNullOrEmpty(Id)) 85if (!string.IsNullOrEmpty(Type)) 87if (!string.IsNullOrEmpty(MimeType)) 89if (!string.IsNullOrEmpty(Encoding))
System\Security\Cryptography\Xml\EncryptedKey.cs (5)
158if (!string.IsNullOrEmpty(Id)) 160if (!string.IsNullOrEmpty(Type)) 162if (!string.IsNullOrEmpty(MimeType)) 164if (!string.IsNullOrEmpty(Encoding)) 166if (!string.IsNullOrEmpty(Recipient))
System\Security\Cryptography\Xml\EncryptedReference.cs (1)
95if (!string.IsNullOrEmpty(_uri))
System\Security\Cryptography\Xml\EncryptionMethod.cs (1)
70if (!string.IsNullOrEmpty(_algorithm))
System\Security\Cryptography\Xml\KeyInfo.cs (1)
45if (!string.IsNullOrEmpty(_id))
System\Security\Cryptography\Xml\KeyInfoRetrievalMethod.cs (2)
58if (!string.IsNullOrEmpty(_uri)) 60if (!string.IsNullOrEmpty(_type))
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (2)
155if (string.IsNullOrEmpty(issuerName)) 158if (string.IsNullOrEmpty(serialNumber))
System\Security\Cryptography\Xml\Reference.cs (3)
172if (!string.IsNullOrEmpty(_id)) 178if (!string.IsNullOrEmpty(_type)) 186if (string.IsNullOrEmpty(_digestMethod))
System\Security\Cryptography\Xml\Signature.cs (2)
96if (!string.IsNullOrEmpty(_id)) 111if (!string.IsNullOrEmpty(_signatureValueId))
System\Security\Cryptography\Xml\SignedInfo.cs (2)
168if (!string.IsNullOrEmpty(_id)) 176if (string.IsNullOrEmpty(_signatureMethod))
System\Security\Cryptography\Xml\SignedXml.cs (1)
819if (string.IsNullOrEmpty(reference.Uri) || (reference.Uri.Length > 0 && reference.Uri[0] != '#'))
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (2)
268if (string.IsNullOrEmpty(friendlyName)) 1068Debug.Assert(!string.IsNullOrEmpty(data), "!string.IsNullOrEmpty(data)");
System\Security\Cryptography\Xml\Transform.cs (2)
131if (!string.IsNullOrEmpty(Algorithm)) 192(string.IsNullOrEmpty(reference.Uri) || reference.Uri[0] != '#')))
System\Security\Cryptography\Xml\Utils.cs (2)
612if (string.IsNullOrEmpty(issuerName)) 614if (string.IsNullOrEmpty(serialNumber))
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
100if (string.IsNullOrEmpty(uri) || uri[0] != '#') 123if (!string.IsNullOrEmpty(Algorithm))
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (1)
100if (!string.IsNullOrEmpty(Algorithm))
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
162if (!string.IsNullOrEmpty(_xpathexpr))
System.ServiceModel.Federation (3)
System\ServiceModel\Federation\WSTrustChannel.cs (1)
371throw new SecurityTokenException(SR.Format(SR.TokenProviderUnableToGetToken, string.IsNullOrEmpty(Address) ? ToString() : Address));
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
461RequestContext = string.IsNullOrEmpty(WSTrustTokenParameters.RequestContext) ? Guid.NewGuid().ToString() : WSTrustTokenParameters.RequestContext;
System\ServiceModel\Federation\WSTrustUtilities.cs (1)
63if (!string.IsNullOrEmpty(response.RequestedProofToken.ComputedKeyAlgorithm) || response.Entropy != null)
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
103if (!string.IsNullOrEmpty(relativeAddress))
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
176str.Append(string.IsNullOrEmpty(name) ? "<null>" : name);
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
134if (string.IsNullOrEmpty(matchPipeName))
System.ServiceModel.Primitives.Tests (2)
ServiceModel\FaultExceptionTest.cs (2)
124Assert.False(string.IsNullOrEmpty(exception.Message)); 174Assert.False(string.IsNullOrEmpty(exception.Message));
System.ServiceModel.Syndication (34)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (13)
205if (!string.IsNullOrEmpty(category.Label) && !category.AttributeExtensions.ContainsKey(s_atom10Label)) 209if (!string.IsNullOrEmpty(category.Scheme) && !category.AttributeExtensions.ContainsKey(s_atom10Scheme)) 453if (!string.IsNullOrEmpty(link.RelationshipType) && !link.AttributeExtensions.ContainsKey(s_atom10Relative)) 457if (!string.IsNullOrEmpty(link.MediaType) && !link.AttributeExtensions.ContainsKey(s_atom10Type)) 461if (!string.IsNullOrEmpty(link.Title) && !link.AttributeExtensions.ContainsKey(s_atom10Title)) 524if (string.IsNullOrEmpty(type)) 619if (string.IsNullOrEmpty(type)) 625if (string.IsNullOrEmpty(src) && type != Atom10Constants.PlaintextType && type != Atom10Constants.HtmlType && type != Atom10Constants.XHtmlType) 630if (!string.IsNullOrEmpty(src)) 924if (!string.IsNullOrEmpty(lengthStr)) 1089if (!string.IsNullOrEmpty(feed.Language)) 1182if (!string.IsNullOrEmpty(p.Uri)) 1186if (!string.IsNullOrEmpty(p.Email))
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (4)
104if (string.IsNullOrEmpty(link)) 125if (!string.IsNullOrEmpty(categories.Language)) 297if (!string.IsNullOrEmpty(categories.Scheme)) 579if (!string.IsNullOrEmpty(Document.Language))
System\ServiceModel\Syndication\FeedUtils.cs (1)
75if (string.IsNullOrEmpty(newBase))
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (9)
374if (!string.IsNullOrEmpty(str)) 506link.Length = !string.IsNullOrEmpty(val) ? Convert.ToInt64(val, CultureInfo.InvariantCulture.NumberFormat) : 0; 589if (!string.IsNullOrEmpty(tmp)) 628if (!string.IsNullOrEmpty(baseUri)) 675if (!string.IsNullOrEmpty(str)) 798if (!string.IsNullOrEmpty(category.Scheme) && !category.AttributeExtensions.ContainsKey(s_rss20Domain)) 877if (!string.IsNullOrEmpty(Feed.Generator)) 992if (!string.IsNullOrEmpty(guid)) 1011if (item.Authors.Count == 1 && !string.IsNullOrEmpty(item.Authors[0].Email))
System\ServiceModel\Syndication\SyndicationContent.cs (1)
74if (string.IsNullOrEmpty(outerElementName))
System\ServiceModel\Syndication\SyndicationElementExtension.cs (1)
274if (typeMapping != null && !string.IsNullOrEmpty(typeMapping.ElementName))
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
219if (string.IsNullOrEmpty(extensionName))
System\ServiceModel\Syndication\XmlSyndicationContent.cs (4)
43_type = string.IsNullOrEmpty(_type) ? Atom10Constants.XmlMediaType : _type; 55_type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type; 61_type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type; 69_type = string.IsNullOrEmpty(type) ? Atom10Constants.XmlMediaType : type;
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketChannelFactory.cs (1)
43var hostIdentity = new DnsEndpointIdentity(string.IsNullOrEmpty(address.Uri.Host) ? "localhost" : address.Uri.Host);
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoder.cs (1)
578Debug.Assert(!string.IsNullOrEmpty(source));
System.Text.Json (5)
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
10if (string.IsNullOrEmpty(name) || !char.IsUpper(name[0]))
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
568if (string.IsNullOrEmpty(name) || char.IsWhiteSpace(name[0]) || char.IsWhiteSpace(name[name.Length - 1]) ||
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
298if (string.IsNullOrEmpty(reflectionInfo.Name))
System\Text\Json\ThrowHelper.Serialization.cs (2)
518if (string.IsNullOrEmpty(message)) 549if (string.IsNullOrEmpty(message))
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
10if (string.IsNullOrEmpty(name) || !char.IsUpper(name[0]))
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1859Debug.Assert(!string.IsNullOrEmpty(set), "Found a null/empty element in RegexCharClass prop table");
System\Text\RegularExpressions\RegexCompiler.cs (1)
812Debug.Assert(!string.IsNullOrEmpty(prefix));
System\Text\RegularExpressions\RegexNode.cs (2)
300Debug.Assert(!string.IsNullOrEmpty(node.Str), $"Expected non-null, non-empty string for {node.Kind}."); 877Debug.Assert(!string.IsNullOrEmpty(Str));
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (2)
35string nodeDgmlView = $"{(string.IsNullOrEmpty(info) ? info : $"Previous: {info}&#13;")}{(string.IsNullOrEmpty(deriv) ? "()" : deriv)}";
System.Text.RegularExpressions.Generator (8)
RegexGenerator.Emitter.cs (4)
1012Debug.Assert(!string.IsNullOrEmpty(substring)); 1019Debug.Assert(!string.IsNullOrEmpty(substring)); 1023Debug.Assert(!string.IsNullOrEmpty(regexTree.FindOptimizations.FixedDistanceLiteral.String)); 5505if (!string.IsNullOrEmpty(name) &&
RegexGenerator.Parser.cs (1)
160if ((regexOptionsWithPatternOptions & RegexOptions.IgnoreCase) != 0 && !string.IsNullOrEmpty(cultureName))
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1859Debug.Assert(!string.IsNullOrEmpty(set), "Found a null/empty element in RegexCharClass prop table");
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
300Debug.Assert(!string.IsNullOrEmpty(node.Str), $"Expected non-null, non-empty string for {node.Kind}."); 877Debug.Assert(!string.IsNullOrEmpty(Str));
System.Transactions.Local (1)
System\Transactions\TransactionManager.cs (1)
230if (!((tm.NodeName == null && string.IsNullOrEmpty(nodeName)) ||
System.Web.HttpUtility (7)
System\Web\HttpUtility.cs (1)
68if (!string.IsNullOrEmpty(key))
System\Web\Util\HttpEncoder.cs (5)
34if (string.IsNullOrEmpty(value)) 107internal static string? HtmlDecode(string? value) => string.IsNullOrEmpty(value) ? value : WebUtility.HtmlDecode(value); 117internal static string? HtmlEncode(string? value) => string.IsNullOrEmpty(value) ? value : WebUtility.HtmlEncode(value); 524if (string.IsNullOrEmpty(value)) 547if (string.IsNullOrEmpty(value))
System\Web\Util\UriUtil.cs (1)
36if (!string.IsNullOrEmpty(authority))
System.Windows.Controls.Ribbon (74)
Microsoft\Windows\Automation\Peers\RibbonButtonAutomationPeer.cs (3)
47if (string.IsNullOrEmpty(accessKey)) 68if (String.IsNullOrEmpty(name)) 82if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonCheckBoxAutomationPeer.cs (3)
48if (string.IsNullOrEmpty(accessKey)) 70if (String.IsNullOrEmpty(name)) 84if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonContextualTabGroupAutomationPeer.cs (2)
37if (String.IsNullOrEmpty(name)) 52if (String.IsNullOrEmpty(name))
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
60if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonGalleryItemAutomationPeer.cs (2)
48if (string.IsNullOrEmpty(accessKey)) 61if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (4)
72if (string.IsNullOrEmpty(accessKey)) 95if (String.IsNullOrEmpty(name)) 101if (String.IsNullOrEmpty(name) && owner.PartToggleButton != null) 119if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonMenuItemAutomationPeer.cs (2)
48if (string.IsNullOrEmpty(accessKey)) 69if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonRadioButtonAutomationPeer.cs (3)
47if (string.IsNullOrEmpty(accessKey)) 68if (String.IsNullOrEmpty(name)) 82if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonSeparatorAutomationPeer.cs (1)
48if (String.IsNullOrEmpty(name))
Microsoft\Windows\Automation\Peers\RibbonTextBoxAutomationPeer.cs (4)
51if (string.IsNullOrEmpty(accessKey)) 73if (String.IsNullOrEmpty(name)) 87if (String.IsNullOrEmpty(helpText)) 105if (String.IsNullOrEmpty(acceleratorKey))
Microsoft\Windows\Automation\Peers\RibbonToggleButtonAutomationPeer.cs (3)
47if (string.IsNullOrEmpty(accessKey)) 69if (String.IsNullOrEmpty(name)) 83if (String.IsNullOrEmpty(helpText))
Microsoft\Windows\Automation\Peers\RibbonToolTipAutomationPeer.cs (1)
53if (String.IsNullOrEmpty(name))
Microsoft\Windows\Automation\Peers\RibbonTwoLineTextAutomationPeer.cs (1)
68if (String.IsNullOrEmpty(name))
Microsoft\Windows\Controls\KeyTipService.cs (8)
79bool isNewEmpty = string.IsNullOrEmpty(newKeyTip); 81if (isNewEmpty != string.IsNullOrEmpty(oldKeyTip)) 223return (string.IsNullOrEmpty(GetKeyTip(element)) && 525if (string.IsNullOrEmpty(_autoGenerationKeyTipPrefix)) 601if (!string.IsNullOrEmpty(keyTip) && 824if (string.IsNullOrEmpty(text)) 829if (string.IsNullOrEmpty(text)) 1477if (!string.IsNullOrEmpty(GetKeyTip(element)))
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1399if (!(string.IsNullOrEmpty(rw.Title as string)))
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1279if (!String.IsNullOrEmpty(e.Text) && IsTextSearchEnabled && NavigateInFirstGallery)
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
198get { return (_templateRoot != null) ? !string.IsNullOrEmpty(RibbonControlService.GetLabel(_templateRoot)) : false; }
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (1)
689bool isLabelVisible = !string.IsNullOrEmpty(RibbonControlService.GetLabel(d));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
1484if (string.IsNullOrEmpty(SelectedValuePath)) 1489Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 1490if (string.IsNullOrEmpty(path)) 2335if ((category.Header is string && !String.IsNullOrEmpty((string)category.Header)) ||
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1567if (!string.IsNullOrEmpty(KeyTipService.GetKeyTip(element))) 1580!string.IsNullOrEmpty(KeyTipService.GetKeyTip(controlGroupElement)))
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (9)
60if (!string.IsNullOrEmpty(toolTipTitle) || 61!string.IsNullOrEmpty(toolTipDescription) || 63!string.IsNullOrEmpty(toolTipFooterTitle) || 64!string.IsNullOrEmpty(toolTipFooterDescription) || 273if (hTemplate == null || (hTemplate.ItemTemplate == null && string.IsNullOrEmpty(hTemplate.ItemStringFormat) && hTemplate.ItemTemplateSelector == null)) 281if (hTemplate == null || (string.IsNullOrEmpty(hTemplate.ItemStringFormat) && hTemplate.ItemTemplateSelector == null)) 289if (hTemplate == null || string.IsNullOrEmpty(hTemplate.ItemStringFormat)) 2682bool dropDownKeyTipSet = !string.IsNullOrEmpty(splitButton.KeyTip); 2733bool headerKeyTipSet = !(string.IsNullOrEmpty(splitButton.HeaderKeyTip));
Microsoft\Windows\Controls\Ribbon\RibbonKeyTipAndContentSyncHelper.cs (3)
38bool isKeyTipSet = !string.IsNullOrEmpty(keyTip); 98if (string.IsNullOrEmpty((string)baseValue)) 148if (!string.IsNullOrEmpty(keyTip) &&
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
756if (string.IsNullOrEmpty(groupName))
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
171(!string.IsNullOrEmpty(ribbonToolTip.Title) || 172!string.IsNullOrEmpty(ribbonToolTip.Description) || 249(!string.IsNullOrEmpty(ribbonToolTip.FooterTitle) || 250!string.IsNullOrEmpty(ribbonToolTip.FooterDescription) ||
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
388int wordCount = string.IsNullOrEmpty(Text) ? 0 : Text.Split().Length;
Microsoft\Windows\Controls\TextSearchInternal.cs (8)
391if (String.IsNullOrEmpty(newPrefix)) 435if ((!firstItem || fallbackFirstItemToo) && !string.IsNullOrEmpty(prefix)) 555if (String.IsNullOrEmpty(primaryTextPath)) 560if (String.IsNullOrEmpty(primaryTextPath) && doHierarchicalSearch) 569if (String.IsNullOrEmpty(primaryTextPath) && doHierarchicalSearch) 598if (!String.IsNullOrEmpty(primaryText)) 605if (!string.IsNullOrEmpty(primaryTextPath)) 780if (!string.IsNullOrEmpty(text))
System.Windows.Forms (334)
misc\MultitargetUtil.cs (1)
35return string.IsNullOrEmpty(assemblyQualifiedName) ? type.AssemblyQualifiedName : assemblyQualifiedName;
System\Resources\ResXDataNode.cs (9)
122if (!string.IsNullOrEmpty(_nodeInfo.TypeName)) 178return _fileRef ??= string.IsNullOrEmpty(FileRefTextEncoding) 330string? typeName = string.IsNullOrEmpty(dataNodeInfo.TypeName) 334if (!string.IsNullOrEmpty(mimeTypeName)) 340if (string.IsNullOrEmpty(typeName)) 401&& !string.IsNullOrEmpty(typeName) 520if (!string.IsNullOrEmpty(_typeName)) 542if (!string.IsNullOrEmpty(typeName)) 548if (string.IsNullOrEmpty(_nodeInfo.MimeType))
System\Resources\ResXFileRef.cs (1)
100if (string.IsNullOrEmpty(basePath))
System\Resources\ResXResourceReader.cs (3)
517if (string.IsNullOrEmpty(alias)) 539if (!string.IsNullOrEmpty(typeName)) 544if (!string.IsNullOrEmpty(alias))
System\Resources\ResXResourceReader.ReaderAliasResolver.cs (1)
27if (!string.IsNullOrEmpty(alias))
System\Resources\ResXResourceWriter.cs (10)
309if (fileRef is not null && !string.IsNullOrEmpty(BasePath)) 391if (!string.IsNullOrEmpty(type) && elementName == DataStr) 394if (string.IsNullOrEmpty(assemblyName)) 429if (!string.IsNullOrEmpty(alias) && !string.IsNullOrEmpty(type) && elementName == DataStr) 453if (!string.IsNullOrEmpty(value)) 461if (!string.IsNullOrEmpty(comment)) 479if (!string.IsNullOrEmpty(alias)) 484if (!string.IsNullOrEmpty(name)) 496if (!_cachedAliases.TryGetValue(assemblyName.FullName, out string? alias) || string.IsNullOrEmpty(alias))
System\Resources\ResXSerializationBinder.cs (1)
82if (!string.IsNullOrEmpty(assemblyQualifiedTypeName)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
637UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId => !string.IsNullOrEmpty(DefaultAction) ? (VARIANT)DefaultAction : VARIANT.Empty, 638UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId => !string.IsNullOrEmpty(Name) ? (VARIANT)Name : VARIANT.Empty, 645UIA_PROPERTY_ID.UIA_ValueValuePropertyId => !string.IsNullOrEmpty(Value) ? (VARIANT)Value : VARIANT.Empty, 694_ => !string.IsNullOrEmpty(DefaultAction),
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
351if (!string.IsNullOrEmpty(text)) 362if (!string.IsNullOrEmpty(text))
System\Windows\Forms\Application.cs (5)
202if (!string.IsNullOrEmpty(ns)) 452if (!string.IsNullOrEmpty(s_productName)) 475if (string.IsNullOrEmpty(s_productName) && GetAppFileVersionInfo().ProductName is { } productName) 481if (string.IsNullOrEmpty(s_productName) && GetAppMainType() is { } type) 485if (!string.IsNullOrEmpty(ns))
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
58=> !string.IsNullOrEmpty(_com2Enum.ToString(value));
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
52if (string.IsNullOrEmpty(text))
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
490if (!string.IsNullOrEmpty(converterTypeName) 529if (!string.IsNullOrEmpty(editorTypeName) 893else if (string.IsNullOrEmpty(errorText))
System\Windows\Forms\Control.ControlCollection.cs (2)
240if (string.IsNullOrEmpty(key)) 362if (string.IsNullOrEmpty(key))
System\Windows\Forms\Control.cs (2)
993private bool ShouldSerializeAccessibleName() => !string.IsNullOrEmpty(AccessibleName); 2670if (string.IsNullOrEmpty(name) && Site is not null)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
213if (!string.IsNullOrEmpty(Text)) 674else if (!string.IsNullOrEmpty(Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
330if (string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
77if (!string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (1)
36if (!string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
221if (string.IsNullOrEmpty(Control.Text))
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
1088if (!string.IsNullOrEmpty(candidate)) 1106if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 2245if (!string.IsNullOrEmpty(oldText) && string.IsNullOrEmpty(WindowText))
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
3792_toolTipControl.Activate(!string.IsNullOrEmpty(ToolTipPrivate)); 3807_toolTipControl.Activate(!string.IsNullOrEmpty(ToolTipPrivate)); 3844_toolTipControl.Activate(activate: !string.IsNullOrEmpty(ToolTipPrivate)); 3858bool activate = !string.IsNullOrEmpty(ToolTipPrivate); 3930_toolTipControl.Activate(!string.IsNullOrEmpty(ToolTipPrivate)); 3944_toolTipControl.Activate(activate: !string.IsNullOrEmpty(ToolTipPrivate));
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
635if (!string.IsNullOrEmpty(dataPropertyName)) 959dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(_props[i].DisplayName) ? _props[i].DisplayName : _props[i].Name;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
1543&& !string.IsNullOrEmpty(dataGridViewCols[i].DataPropertyName) 2678if (string.IsNullOrEmpty(EditingControl.AccessibleName)) 3288return string.IsNullOrEmpty(ToolTipPrivate) && ShowCellToolTips; 14569if (CurrentCell is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(CurrentCell?.ErrorText)))) 15205if (CurrentCell is not null && (ShowCellToolTips || (ShowCellErrors && !string.IsNullOrEmpty(CurrentCell.ErrorText)))) 30039if (!string.IsNullOrEmpty(toolTip))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
209return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 222string.IsNullOrEmpty(GetErrorText(rowIndex))) 296if (string.IsNullOrEmpty(formattedString)) 861if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
221!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (11)
321|| string.IsNullOrEmpty(DataGridView.Rows[i].Cells[j].Value?.ToString())) 351if (DataGridView is not null && DataGridView.ShowCellErrors && !string.IsNullOrEmpty(ErrorText)) 2387if (string.IsNullOrEmpty(toolTipText)) 2574if (string.IsNullOrEmpty(text)) 2721if (string.IsNullOrEmpty(toolTipText)) 2738if (!string.IsNullOrEmpty(editedFormattedValue)) 2750if (!string.IsNullOrEmpty(stringValue)) 2783if (!string.IsNullOrEmpty(toolTipText)) 2808Debug.Assert(!string.IsNullOrEmpty(errorText), "if we entered the cell error area then an error was painted, so we should have an error"); 3538if (!string.IsNullOrEmpty(errorText) && 3566if (!string.IsNullOrEmpty(errorText) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
192if (formattedValue is null || (formattedValueAsString is not null && string.IsNullOrEmpty(formattedValueAsString)))
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
610if (!string.IsNullOrEmpty(Format))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
498if (string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull) 514string.IsNullOrEmpty(GetErrorText(rowIndex))) 1545if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
307!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (3)
222!string.IsNullOrEmpty(defaultCellStyle.Format) || 641if (Site is not null && !string.IsNullOrEmpty(Site.Name)) 651if (string.IsNullOrEmpty(value))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (7)
512if (!string.IsNullOrEmpty(valStr)) 543if (!string.IsNullOrEmpty(valStr)) 572!string.IsNullOrEmpty(valStr)) 629if (!string.IsNullOrEmpty(valStr)) 659if (!string.IsNullOrEmpty(valStr)) 675if (!string.IsNullOrEmpty(valStr)) 903!string.IsNullOrEmpty(formattedValueStr))
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (23)
815return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 839string.IsNullOrEmpty(GetErrorText(rowIndex))) 953!string.IsNullOrEmpty(ValueMember) || !string.IsNullOrEmpty(DisplayMember)) 961else if (strValue is not null && string.IsNullOrEmpty(strValue) && DisplayType == typeof(string)) 998&& (!(value is string) || !string.IsNullOrEmpty(strValue))) 1057else if (!string.IsNullOrEmpty(DisplayMember)) 1066else if (!string.IsNullOrEmpty(ValueMember)) 1131else if (!string.IsNullOrEmpty(ValueMember)) 1141if (!valueSet && !string.IsNullOrEmpty(DisplayMember)) 1181MeasureTextSize(graphics, string.IsNullOrEmpty(formattedValue) ? " " : formattedValue, cellStyle.Font!, flags); 1343if (string.IsNullOrEmpty(displayMember)) 1374if (string.IsNullOrEmpty(valueMember)) 1444Debug.Assert(!string.IsNullOrEmpty(field)); 1535!string.IsNullOrEmpty(ValueMember) || !string.IsNullOrEmpty(DisplayMember)); 1547item = ItemFromComboBoxItems(rowIndex, string.IsNullOrEmpty(ValueMember) ? DisplayMember : ValueMember, value); 1578!string.IsNullOrEmpty(DisplayMember) || !string.IsNullOrEmpty(ValueMember)); 1590item = ItemFromComboBoxItems(RowIndex, string.IsNullOrEmpty(DisplayMember) ? ValueMember : DisplayMember, formattedValue); 2360if (!string.IsNullOrEmpty(errorText)) 2394!string.IsNullOrEmpty(DisplayMember) || !string.IsNullOrEmpty(ValueMember))
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
295string.IsNullOrEmpty(GetErrorText(rowIndex))) 754return string.IsNullOrEmpty(errorText)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
283!string.IsNullOrEmpty(defaultCellStyle.Format) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (4)
482return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 495string.IsNullOrEmpty(GetErrorText(rowIndex))) 553if (string.IsNullOrEmpty(formattedString)) 1061if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1244if (string.IsNullOrEmpty(errorText) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (4)
249string.IsNullOrEmpty(GetErrorText(rowIndex))) 768if (!string.IsNullOrEmpty(formattedString)) 917if (!string.IsNullOrEmpty(errorText)) 1007if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (5)
219if (string.IsNullOrEmpty(editedFormattedValue)) 318return string.IsNullOrEmpty(Value?.ToString()?.Trim(' ')) || Value is DBNull 331string.IsNullOrEmpty(GetErrorText(rowIndex))) 405if (string.IsNullOrEmpty(formattedString)) 761if (!string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (2)
305!string.IsNullOrEmpty(formattedValueStr) && 343else if (computeErrorIconBounds && !string.IsNullOrEmpty(errorText))
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (1)
76if (string.IsNullOrEmpty(strValue))
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (3)
169if (!string.IsNullOrEmpty(val)) 209if (!string.IsNullOrEmpty(val)) 260if (!string.IsNullOrEmpty(val))
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
51return !string.IsNullOrEmpty(baseValue) ? baseValue : this.GetOwnerText();
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
208if (string.IsNullOrEmpty(key)) 466if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\Labels\Label.cs (1)
1062if (string.IsNullOrEmpty(Text))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
482if (string.IsNullOrEmpty(text)) 604if (string.IsNullOrEmpty(Text)) 622if (string.IsNullOrEmpty(text))
System\Windows\Forms\Controls\Labels\LinkLabel.Link.cs (1)
80if (Owner is not null && !string.IsNullOrEmpty(Owner.Text))
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (2)
65if (string.IsNullOrEmpty(key)) 260if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListControl\ListControl.cs (4)
316if (DataManager is not null && !string.IsNullOrEmpty(value)) 372if (string.IsNullOrEmpty(propertyName)) 431if (item is not null && !string.IsNullOrEmpty(field)) 732if (_dataManager is not null && (displayMemberChanged || dataSourceChanged) && !string.IsNullOrEmpty(_displayMember.BindingMember))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
490return !string.IsNullOrEmpty(Name);
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
54if (id is null && !string.IsNullOrEmpty(col.ImageKey))
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (2)
109if (string.IsNullOrEmpty(key)) 236if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
47if (string.IsNullOrEmpty(key)) 133if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListView.cs (5)
2944if (!string.IsNullOrEmpty(fileName)) 3102if (!string.IsNullOrEmpty(_backgroundImageFileName) || _bkImgFileNames is not null) 3105if (!string.IsNullOrEmpty(_backgroundImageFileName)) 5206if (string.IsNullOrEmpty(fileNameToDelete)) 6893if (lvi is not null && !string.IsNullOrEmpty(lvi.ToolTipText))
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (2)
106if (string.IsNullOrEmpty(key)) 338if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
161if (string.IsNullOrEmpty(key)) 396if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
479if (!string.IsNullOrEmpty(Name))
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
97!string.IsNullOrEmpty(_owningGroup.Subtitle)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
925if (!string.IsNullOrEmpty(ImageIndexer.Key)) 1039if (string.IsNullOrEmpty(_groupName)) 1268if (!string.IsNullOrEmpty(ImageIndexer.Key))
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (2)
91if (string.IsNullOrEmpty(key)) 270if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (5)
53if (!string.IsNullOrEmpty(item.ImageKey)) 82if (!string.IsNullOrEmpty(item.ImageKey)) 125if (item.ImageIndex == -1 && string.IsNullOrEmpty(item.ImageKey) && item.SubItems.Count <= 1) 135if (!string.IsNullOrEmpty(item.ImageKey)) 158if (!string.IsNullOrEmpty(item.ImageKey))
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
77if (!string.IsNullOrEmpty(name))
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (5)
320_pictureBoxState[NeedToLoadImageLocationState] = !string.IsNullOrEmpty(_imageLocation); 323if (string.IsNullOrEmpty(_imageLocation) && _imageInstallationType != ImageInstallationType.DirectlySpecified) 328if (WaitOnLoad && !_pictureBoxState[InInitializationState] && !string.IsNullOrEmpty(_imageLocation)) 460if (string.IsNullOrEmpty(_imageLocation)) 520if (string.IsNullOrEmpty(_imageLocation))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1694if (string.IsNullOrEmpty(tab.TabName))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1863if (string.IsNullOrEmpty(text))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (2)
36if (IsHandleCreated || !string.IsNullOrEmpty(value)) 59_dontShow = string.IsNullOrEmpty(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (1)
76if (string.IsNullOrEmpty(e.Message))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
791if (newHandler is null && !string.IsNullOrEmpty(handler)) 795else if (handler == newHandler && !string.IsNullOrEmpty(newHandler))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
159&& (EditTextBox.Focused || !string.IsNullOrEmpty(_selectedGridEntry.GetPropertyTextValue())); 419if ((string.IsNullOrEmpty(text) && string.IsNullOrEmpty(_originalTextValue)) 2663&& !(string.IsNullOrEmpty(_originalTextValue) && string.IsNullOrEmpty(currentTextValue));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (4)
274Debug.Assert(versionInfo is not null && !string.IsNullOrEmpty(versionInfo.ProductVersion), "Couldn't get the version info for the richedit dll"); 275if (versionInfo is not null && !string.IsNullOrEmpty(versionInfo.ProductVersion)) 2975if (!string.IsNullOrEmpty(result) && (result[^1] == '\0')) 3161if (!string.IsNullOrEmpty(linktext))
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1943if (string.IsNullOrEmpty(tipText)) 2172if (string.IsNullOrEmpty(value))
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (2)
54if (string.IsNullOrEmpty(key)) 189if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
158if (!string.IsNullOrEmpty(_toolTipText))
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (4)
643if (_flagState[s_isNullMask] == string.IsNullOrEmpty(value) && (_flagState[s_isNullMask] || value == _maskedTextProvider.Mask)) 654if (string.IsNullOrEmpty(value)) // Resetting the control, the native edit control will be in charge. 1160if (string.IsNullOrEmpty(value)) 2281if (string.IsNullOrEmpty(text))
System\Windows\Forms\Controls\TextBox\MaskedTextBox.MaskedTextBoxAccessibleObject.cs (1)
16get => !this.TryGetOwnerAs(out MaskedTextBox? owner) || string.IsNullOrEmpty(owner.Mask)
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
978!string.IsNullOrEmpty(PlaceholderText) &&
System\Windows\Forms\Controls\TextBox\TextBox.TextBoxAccessibleObject.cs (1)
22return string.IsNullOrEmpty(placeholderText) ? base.GetPropertyValue(propertyID) : (VARIANT)placeholderText;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1240if (string.IsNullOrEmpty(text)) 1646if (string.IsNullOrEmpty(WindowText))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2559if (!string.IsNullOrEmpty(text)) 2892if (string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled) 2956if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
197|| (hostedControl is Label label && string.IsNullOrEmpty(label.Text));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (7)
1960if (AutoToolTip && string.IsNullOrEmpty(_toolTipText)) 2240if (!Enabled && ParentInternal is not null && !string.IsNullOrEmpty(ToolTipText)) 2347if (string.IsNullOrEmpty(Text)) 2848if (ParentInternal is not null && !string.IsNullOrEmpty(ToolTipText)) 3296private bool ShouldSerializeToolTipText() => !string.IsNullOrEmpty(_toolTipText); 3343=> Image is not null && ImageIndexer.ActualIndex >= 0 && !string.IsNullOrEmpty(ImageIndexer.Key); 3518if (!string.IsNullOrEmpty(Text))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
130if (string.IsNullOrEmpty(baseName))
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
727if (string.IsNullOrEmpty(shortcutString)) 1091if (!string.IsNullOrEmpty(shortcutKeyDisplayString))
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (10)
33if (!string.IsNullOrEmpty(toolStrip.Name)) 55if (!string.IsNullOrEmpty(toolStrip.Name)) 108object? destinationPanel = !string.IsNullOrEmpty(toolStripSettings.ToolStripPanelName) ? toolStripSettings.ToolStripPanelName : null; 113if (!string.IsNullOrEmpty(toolStripSettings.Name)) 147if (string.IsNullOrEmpty(toolStripPanelName) && toolStripPanel.Parent is ToolStripContainer && !string.IsNullOrEmpty(toolStripPanel.Parent.Name)) 158if (!string.IsNullOrEmpty(settings.Name)) 186if (!string.IsNullOrEmpty(itemNames)) 198if (!string.IsNullOrEmpty(key) && itemLocationHash.TryGetValue(key, out ToolStrip? value)) 221if (!string.IsNullOrEmpty(item.Name))
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (3)
28if (!string.IsNullOrEmpty(parentPanel.Name)) 32else if (parentPanel.Parent is ToolStripContainer && !string.IsNullOrEmpty(parentPanel.Parent.Name)) 38Debug.Assert(!string.IsNullOrEmpty(ToolStripPanelName), "ToolStrip was parented to a panel, but we couldn't figure out its name.");
System\Windows\Forms\Controls\TreeView\TreeNode.cs (4)
1359if (!(string.IsNullOrEmpty(ImageIndexer.Key))) 1365if (!(string.IsNullOrEmpty(SelectedImageIndexer.Key))) 1371if (!(string.IsNullOrEmpty(StateImageIndexer.Key))) 1637if (!string.IsNullOrEmpty(StateImageKey))
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (2)
94if (string.IsNullOrEmpty(key)) 402if (string.IsNullOrEmpty(key))
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
595if (string.IsNullOrEmpty(value) || value.Equals(SR.toStringNone)) 1067if (string.IsNullOrEmpty(value) || value.Equals(SR.toStringNone)) 2961if (ShowNodeToolTips && tn is not null && (!string.IsNullOrEmpty(tn.ToolTipText)))
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (2)
532if (!string.IsNullOrEmpty(Text) && 733if (_currentValueChanged || (!string.IsNullOrEmpty(Text) &&
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.cs (1)
81return string.IsNullOrEmpty(baseName) ? SR.DefaultUpDownButtonsAccessibleName : baseName;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
154return string.IsNullOrEmpty(hrefString) ? null : new Uri(hrefString);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
237return string.IsNullOrEmpty(hrefString) ? null : new(hrefString);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (3)
235if (!string.IsNullOrEmpty(hrefString)) 572if (string.IsNullOrEmpty(urlString)) 1264if (string.IsNullOrEmpty(urlString))
System\Windows\Forms\Controls\WebBrowser\WebBrowserUriTypeConverter.cs (1)
15if (uri is not null && !string.IsNullOrEmpty(uri.OriginalString) && !uri.IsAbsoluteUri)
System\Windows\Forms\DataBinding\Binding.cs (4)
477if (BindableComponent is not null && !string.IsNullOrEmpty(PropertyName)) 611if (!string.IsNullOrEmpty(errorText)) 1074private bool ShouldSerializeFormatString() => !string.IsNullOrEmpty(_formatString); 1132&& !string.IsNullOrEmpty(PropertyName)
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
151char ch = string.IsNullOrEmpty(Name) || char.IsLower(Name[0]) ? 'b' : 'B';
System\Windows\Forms\DataBinding\BindingSource.cs (5)
148if (string.IsNullOrEmpty(dataMember)) 712if (string.IsNullOrEmpty(_dataMember)) 896if (!string.IsNullOrEmpty(_dataMember)) 968if (string.IsNullOrEmpty(sortString)) 1550if (ds is ITypedList && !string.IsNullOrEmpty(_dataMember))
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (2)
191Debug.Assert(!string.IsNullOrEmpty(binding.PropertyName), "The caller should check for this."); 197&& !string.IsNullOrEmpty(current.PropertyName)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (3)
42if (dataSource is null || dataSource is Type || string.IsNullOrEmpty(dataMember)) 178if (!string.IsNullOrEmpty(dataMember)) 282if (string.IsNullOrEmpty(dataMember))
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
29if (_dataSource is not null && !string.IsNullOrEmpty(_propName)) 37if (_dataSource is not null && !string.IsNullOrEmpty(_propName))
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
200if (!string.IsNullOrEmpty(value)) 581if (string.IsNullOrEmpty(s))
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (2)
62if (!string.IsNullOrEmpty(InitialDirectory)) 200if (string.IsNullOrEmpty(filter))
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (4)
337if (!string.IsNullOrEmpty(_descriptionText)) 355if (!string.IsNullOrEmpty(_initialDirectory)) 368if (!string.IsNullOrEmpty(selectedPath)) 371if (parent is null || !string.IsNullOrEmpty(_initialDirectory) || !Directory.Exists(parent))
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
634return string.IsNullOrEmpty(str) || str[0] == '\0';
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
190string.IsNullOrEmpty(location) ? AppContext.BaseDirectory : location);
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
109public override string Name => string.IsNullOrEmpty(base.Name) ? _controlItem.Error : base.Name;
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (6)
310if (_parentControl is not null && _parentControl.BindingContext is not null && value is not null && !string.IsNullOrEmpty(_dataMember)) 348private bool ShouldSerializeDataMember() => !string.IsNullOrEmpty(_dataMember); 494if (string.IsNullOrEmpty(outputError)) 791&& (string.IsNullOrEmpty(controlItem.Error) != string.IsNullOrEmpty(value)); 795_errorCount += string.IsNullOrEmpty(value) ? -1 : 1;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
108return string.IsNullOrEmpty(name) ? SR.ErrorProviderDefaultAccessibleName : name;
System\Windows\Forms\Form.cs (3)
2608if (string.IsNullOrEmpty(oldText) || string.IsNullOrEmpty(value)) 3605if (!string.IsNullOrEmpty(Text))
System\Windows\Forms\Help\Help.cs (2)
240if (!string.IsNullOrEmpty(partialUri)) 318if (string.IsNullOrEmpty(param) && (command == HelpNavigator.AssociateIndex || command == HelpNavigator.KeywordIndex))
System\Windows\Forms\Help\HelpProvider.cs (5)
123if (Control.MouseButtons != MouseButtons.None && !string.IsNullOrEmpty(helpString)) 133if (!string.IsNullOrEmpty(keyword)) 147if (!string.IsNullOrEmpty(helpString)) 177if (!string.IsNullOrEmpty(helpString)) 193if (!string.IsNullOrEmpty(keyword))
System\Windows\Forms\ImageKeyConverter.cs (1)
166if (!string.IsNullOrEmpty(key))
System\Windows\Forms\Internal\Formatter.cs (1)
130if (value is IFormattable valueAsFormattable && !string.IsNullOrEmpty(formatString))
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
168if (!string.IsNullOrEmpty(c.Name)) 321if (string.IsNullOrEmpty(defaultNameValue))
System\Windows\Forms\NotifyIcon.cs (1)
549if (string.IsNullOrEmpty(tipText))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
49if (!string.IsNullOrEmpty(stringVal)) 483if (!string.IsNullOrEmpty(stringVal))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (2)
155if (!string.IsNullOrEmpty(name)) 184if (!string.IsNullOrEmpty(styleString))
System\Windows\Forms\PropertyStore.cs (1)
133if (string.IsNullOrEmpty(value))
System\Windows\Forms\Rendering\TextExtensions.cs (1)
284if (string.IsNullOrEmpty(text))
System\Windows\Forms\SendKeys\SendKeys.cs (2)
277if (string.IsNullOrEmpty(value)) 904if (string.IsNullOrEmpty(keys))
System\Windows\Forms\ToolTip\ToolTip.cs (5)
436string title = !string.IsNullOrEmpty(_toolTipTitle) ? _toolTipTitle : " "; 783if (_toolTipIcon > 0 || !string.IsNullOrEmpty(_toolTipTitle)) 786string title = !string.IsNullOrEmpty(_toolTipTitle) ? _toolTipTitle : " "; 851&& !string.IsNullOrEmpty(caption) 1219bool empty = info is null || string.IsNullOrEmpty(info.Caption);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
386if (!string.IsNullOrEmpty(textToDraw))
System.Windows.Forms.Design (96)
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
158if (string.IsNullOrEmpty(message))
System\ComponentModel\Design\CollectionEditor.cs (3)
147if (!string.IsNullOrEmpty(text)) 156if (!string.IsNullOrEmpty(text)) 163if (string.IsNullOrEmpty(text))
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
62if (_showSplit && !string.IsNullOrEmpty(Text) && TextRenderer.MeasureText(Text, Font).Width + PushButtonWidth > preferredSize.Width) 231if (!string.IsNullOrEmpty(Text))
System\ComponentModel\Design\ComponentDesigner.cs (3)
46if (defaultProperty.TryGetValue(_component, out string? currentValue) && string.IsNullOrEmpty(currentValue)) 492if (!string.IsNullOrEmpty(settingsKeyName)) 501if (string.IsNullOrEmpty(persistableComponent.SettingsKey))
System\ComponentModel\Design\DesignerActionList.cs (1)
96if (string.IsNullOrEmpty(displayName))
System\ComponentModel\Design\DesignerActionPanel.cs (2)
751if (string.IsNullOrEmpty(s)) 899if (!string.IsNullOrEmpty(focusId))
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
58if (!string.IsNullOrEmpty(_panelHeaderItem!.Subtitle))
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
78if (string.IsNullOrEmpty(_label.Text)) 298if (!string.IsNullOrEmpty(_label.Text))
System\ComponentModel\Design\DesignerHost.cs (1)
350if (string.IsNullOrEmpty(message))
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
303if (!string.IsNullOrEmpty(fallBackFontName))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
227if (string.IsNullOrEmpty(compName)) 413if (eventNames is not null && manager is not null && !string.IsNullOrEmpty(name)) 465if (!string.IsNullOrEmpty(name))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
292if (site is INestedSite nestedSite && !string.IsNullOrEmpty(nestedSite.FullName)) 297if (!string.IsNullOrEmpty(site?.Name))
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
2630if (names is not null && variableDecl.Type is not null && !string.IsNullOrEmpty(variableDecl.Type.BaseType)) 2695if (!string.IsNullOrEmpty(componentName)) 2745if (!string.IsNullOrEmpty(componentName)) 2792if (manager is not null && !string.IsNullOrEmpty(typeName))
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
58if (comp.Site is INestedSite nestedSite && !string.IsNullOrEmpty(nestedSite.FullName))
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
65if (!string.IsNullOrEmpty(termString))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
50if (string.IsNullOrEmpty(name))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
256if (string.IsNullOrEmpty(message))
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
102if (member.Type is not null && !string.IsNullOrEmpty(member.Type.BaseType))
System\ComponentModel\Design\SiteNestedContainer.cs (1)
32if (string.IsNullOrEmpty(_containerName))
System\Drawing\BitmapSelector.cs (1)
37=> string.IsNullOrEmpty(Suffix) ? filePath : Path.ChangeExtension(filePath, Suffix + Path.GetExtension(filePath));
System\Drawing\Design\ImageEditor.cs (1)
36if (string.IsNullOrEmpty(extensions[i]))
System\Drawing\Design\ToolboxItem.cs (2)
488else if (!string.IsNullOrEmpty(typeName)) 512if (a is null && !string.IsNullOrEmpty(assemblyName.CodeBase))
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
343if (!string.IsNullOrEmpty(generatedCodeNamespace)) 475else if (!string.IsNullOrEmpty(nameSpace))
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
273if (site is INestedSite nestedSite && !string.IsNullOrEmpty(nestedSite.FullName)) 277else if (!string.IsNullOrEmpty(site.Name))
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
198if (string.IsNullOrEmpty(name))
System\Windows\Forms\Design\ControlDesigner.cs (1)
428if (string.IsNullOrEmpty(message))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
151if (!string.IsNullOrEmpty(columnSiteName)) 246if (!string.IsNullOrEmpty(compName) && ValidateName(currentContainer, compName, newColumns[i])) 927if (string.IsNullOrEmpty(column?.DataPropertyName)) 1073if (string.IsNullOrEmpty(column.DataPropertyName))
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (3)
63return !string.IsNullOrEmpty(dataGridViewComboBoxColumn.DisplayMember); 69return !string.IsNullOrEmpty(dataGridViewComboBoxColumn.ValueMember); 74if (string.IsNullOrEmpty(dataMember))
System\Windows\Forms\Design\DataGridViewDesigner.cs (6)
255Debug.Assert(string.IsNullOrEmpty(dataGridView.DataMember), "in the designer we can't set DataSource and DataMember at the same time. Did you forget to set AutoGenerateColumns to false at a previous stage?"); 407if (string.IsNullOrEmpty(dataGridViewColumn.DataPropertyName)) 466if (string.IsNullOrEmpty(dataGridViewColumn.DataPropertyName)) 588if (!string.IsNullOrEmpty(col.DataPropertyName)) 667dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(backEndProps[i].DisplayName) ? backEndProps[i].DisplayName : backEndProps[i].Name; 711if (string.IsNullOrEmpty(message))
System\Windows\Forms\Design\DesignBinding.cs (1)
26if (string.IsNullOrEmpty(DataMember))
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
772string dataField = string.IsNullOrEmpty(dataMember) ? property.Name : dataMember + "." + property.Name; 890if (!string.IsNullOrEmpty(_selectedItem.DataMember) 1025if (_selectedItem is not null && string.IsNullOrEmpty(_selectedItem.DataMember)) 1350if (!string.IsNullOrEmpty(dataMember)) 1374if (site is not null && !string.IsNullOrEmpty(site.Name))
System\Windows\Forms\Design\DesignerUtils.cs (1)
620if (string.IsNullOrEmpty(name))
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
166if (string.IsNullOrEmpty(path))
System\Windows\Forms\Design\EditorServiceContext.cs (1)
39Debug.Assert(!string.IsNullOrEmpty(newVerbText), "newVerbText cannot be null or empty");
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
341if (string.IsNullOrEmpty(name))
System\Windows\Forms\Design\FormatControl.cs (1)
134if (string.IsNullOrEmpty(formatString))
System\Windows\Forms\Design\FormatControl.CustomFormatType.cs (1)
28if (string.IsNullOrEmpty(formatString))
System\Windows\Forms\Design\FormatStringDialog.cs (1)
117if (!string.IsNullOrEmpty(formatString))
System\Windows\Forms\Design\ImageCollectionEditor.cs (2)
41if (!string.IsNullOrEmpty(text)) 54if (string.IsNullOrEmpty(text))
System\Windows\Forms\Design\InheritanceUI.cs (1)
88&& !string.IsNullOrEmpty(_toolTip.GetToolTip(c)))
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (2)
37if (!string.IsNullOrEmpty(text)) 45if (string.IsNullOrEmpty(text))
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (2)
56if (!string.IsNullOrEmpty(text)) 64if (string.IsNullOrEmpty(text))
System\Windows\Forms\Design\MaskDescriptor.cs (3)
69if (string.IsNullOrEmpty(maskDescriptor.Mask) || string.IsNullOrEmpty(maskDescriptor.Name) || string.IsNullOrEmpty(maskDescriptor.Sample))
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
422if (!string.IsNullOrEmpty(_maskedTextBox.Mask))
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (2)
250if (string.IsNullOrEmpty(maskedTextBox.Mask)) 262if (string.IsNullOrEmpty(maskedTextBox.Mask))
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
217if (string.IsNullOrEmpty(exceptionMessage))
System\Windows\Forms\Design\SelectionUIService.cs (1)
132if (string.IsNullOrEmpty(message))
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
484if (!string.IsNullOrEmpty(nameOfRandomItem) && char.IsUpper(nameOfRandomItem[0]))
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
782if (!string.IsNullOrEmpty(itemText))
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
545if (!string.IsNullOrEmpty(text)) 563if (textProperty is not null && !string.IsNullOrEmpty(text)) 1690if (!string.IsNullOrEmpty(nameOfRandomItem) && char.IsUpper(nameOfRandomItem[0]))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
162if (string.IsNullOrEmpty((string)ShadowProperties[SettingsKeyName]))
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
73if (!string.IsNullOrEmpty(imageName)) 276if (desc is not null && !string.IsNullOrEmpty(desc.PropertyName))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
878if (!string.IsNullOrEmpty(newText) || _addingDummyItem) 895if (textProperty is not null && !string.IsNullOrEmpty(newText))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
724if (string.IsNullOrEmpty(text)) 1093if (string.IsNullOrEmpty(text)) 1481if (string.IsNullOrEmpty(text))
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\MaskDescriptorTests.cs (2)
129if (!string.IsNullOrEmpty(culture1)) 138if (!string.IsNullOrEmpty(culture2))
System.Windows.Forms.IntegrationTests.Common (5)
TestHelpers.cs (5)
54if (string.IsNullOrEmpty(projectName)) 79if (string.IsNullOrEmpty(path)) 237if (string.IsNullOrEmpty(seek)) 396if (string.IsNullOrEmpty(culture)) 431if (string.IsNullOrEmpty(keys))
System.Windows.Forms.Primitives (1)
System\Windows\Forms\FileDialogCustomPlace.cs (1)
61if (!string.IsNullOrEmpty(_path))
System.Windows.Forms.Primitives.TestUtilities (1)
Win32\WindowClass.cs (1)
112if (!string.IsNullOrEmpty(_menuName))
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
217if (!string.IsNullOrEmpty(accessibleDefaultActionDescription))
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
156if (!string.IsNullOrEmpty(expected))
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
605if (string.IsNullOrEmpty(accessibleDefaultActionDescription))
System\Windows\Forms\AxSystemMonitorTests.cs (2)
45if (!string.IsNullOrEmpty(assemblyFromTestingControl) 56if (!string.IsNullOrEmpty(assemblyFromTestingControl)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (2)
396Assert.False(string.IsNullOrEmpty(actual.FaceName.ToString())); 416Assert.True(string.IsNullOrEmpty(actual.FaceName.ToString()));
System\Windows\Forms\HelpProviderTests.cs (12)
199Assert.Equal(!string.IsNullOrEmpty(keyword), provider.GetShowHelp(control)); 207Assert.Equal(!string.IsNullOrEmpty(keyword), provider.GetShowHelp(control)); 266Assert.Equal(!string.IsNullOrEmpty(keyword), provider.GetShowHelp(control)); 274Assert.Equal(!string.IsNullOrEmpty(keyword), provider.GetShowHelp(control)); 364Assert.Equal(!string.IsNullOrEmpty(helpString), provider.GetShowHelp(control)); 365Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help); 370Assert.Equal(!string.IsNullOrEmpty(helpString), provider.GetShowHelp(control)); 371Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help); 404Assert.Equal(!string.IsNullOrEmpty(helpString), provider.GetShowHelp(control)); 405Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help); 410Assert.Equal(!string.IsNullOrEmpty(helpString), provider.GetShowHelp(control)); 411Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (2)
45if (!string.IsNullOrEmpty(value)) 78if (!string.IsNullOrEmpty(rtf))
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
369Assert.False(string.IsNullOrEmpty(actual.FaceName.ToString())); 383Assert.True(string.IsNullOrEmpty(actual.FaceName.ToString()));
TextBoxTests.cs (3)
342Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 428Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 447Assert.False(string.IsNullOrEmpty(tb.PlaceholderText));
System.Windows.Forms.UI.IntegrationTests (1)
Infra\DataCollectionService.cs (1)
222if (!string.IsNullOrEmpty(logId))
System.Xaml (62)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
434if (string.IsNullOrEmpty(assemblyPath)) 439if (!string.IsNullOrEmpty(assemblyPath))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
121if (!string.IsNullOrEmpty(converterName))
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (4)
821if (string.IsNullOrEmpty(mappedNamespace) || namespaceName == mappedNamespace) 958if (!string.IsNullOrEmpty(pair)) 1006if (!string.IsNullOrEmpty(prefix)) 1220if (string.IsNullOrEmpty(requiresValue))
System\Windows\Markup\NameReferenceConverter.cs (1)
35if (string.IsNullOrEmpty(name))
System\Windows\Markup\Reference.cs (1)
33if (string.IsNullOrEmpty(Name))
System\Windows\Markup\StaticExtension.cs (2)
73if (string.IsNullOrEmpty(typeString)) 92if (string.IsNullOrEmpty(typeString))
System\Xaml\Context\XamlContext.cs (1)
151if (string.IsNullOrEmpty(propName.Prefix) && !propName.IsDotted)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
2241if (!string.IsNullOrEmpty(rootNamespace))
System\Xaml\InfosetObjects\XamlXmlReader.cs (3)
185if (!string.IsNullOrEmpty(myXmlReader.BaseURI)) 195if (!string.IsNullOrEmpty(myXmlReader.XmlLang)) 353string.IsNullOrEmpty(assemblyName))
System\Xaml\MS\Impl\XmlNsInfo.cs (8)
196if (string.IsNullOrEmpty(xmlns) || clrns is null) 342if (string.IsNullOrEmpty(newns) || string.IsNullOrEmpty(oldns)) 394if (string.IsNullOrEmpty(prefix) || string.IsNullOrEmpty(xmlns)) 547if (string.IsNullOrEmpty(prefix1)) 549if (!string.IsNullOrEmpty(prefix2)) 554else if (string.IsNullOrEmpty(prefix2))
System\Xaml\NameScope.cs (1)
89if (_nameMap is null || string.IsNullOrEmpty(name))
System\Xaml\Parser\GenericTypeNameParser.cs (3)
56if (string.IsNullOrEmpty(ns)) 89if (string.IsNullOrEmpty(error)) 119if (string.IsNullOrEmpty(error))
System\Xaml\Parser\MePullParser.cs (1)
67if (string.IsNullOrEmpty(_brokenRule))
System\Xaml\Parser\NodeStreamSorter.cs (1)
232if (!string.IsNullOrEmpty(_settings.XmlLang))
System\Xaml\Parser\XamlAttribute.cs (1)
130if (string.IsNullOrEmpty(Name.Prefix) && KS.Eq(Name.Name, KnownStrings.XmlNsPrefix))
System\Xaml\Parser\XamlPropertyName.cs (3)
26if (string.IsNullOrEmpty(longName)) 47if (string.IsNullOrEmpty(owner)) 58if (!string.IsNullOrEmpty(owner))
System\Xaml\Parser\XamlPullParser.cs (2)
599if (string.IsNullOrEmpty(trimmed)) 681if (string.IsNullOrEmpty(trimmed))
System\Xaml\Parser\XamlQualifiedName.cs (3)
19return string.IsNullOrEmpty(Prefix) ? 83if (string.IsNullOrEmpty(prefix) || !IsNameValid(prefix)) 96if (string.IsNullOrEmpty(name) || !IsNameValid_WithPlus(name))
System\Xaml\XamlMarkupExtensionWriter.cs (1)
277if (!string.IsNullOrEmpty(prefix))
System\Xaml\XamlObjectReader.cs (4)
1626if (context.IsPropertyReadVisible(p) && !string.IsNullOrEmpty(GetConstructorArgument(p))) 1634if (context.IsPropertyReadVisible(p) && !string.IsNullOrEmpty(GetConstructorArgument(p))) 1778if (!string.IsNullOrEmpty(Name) && 2112if (!string.IsNullOrEmpty(GetConstructorArgument(property)))
System\Xaml\XamlSchemaContext.cs (3)
175if (string.IsNullOrEmpty(assemblyName)) 603if (!string.IsNullOrEmpty(constructorArgumentName)) 1249if (string.IsNullOrEmpty(assemblyName))
System\Xaml\XamlServices.cs (1)
144if (string.IsNullOrEmpty(fileName))
System\Xaml\XamlType.cs (5)
707if (string.IsNullOrEmpty(propertyName)) 803if (string.IsNullOrEmpty(contentPropertyName)) 1366if (string.IsNullOrEmpty(methodName)) 1391if (string.IsNullOrEmpty(methodName)) 1456if (!string.IsNullOrEmpty(ns))
System\Xaml\XamlTypeName.cs (1)
209if (string.IsNullOrEmpty(Name))
System\Xaml\XamlXmlWriter.cs (8)
266if (string.IsNullOrEmpty(s)) 291if (string.IsNullOrEmpty(s)) 483if (!string.IsNullOrEmpty(prefix)) 634ReadOnlySpan<char> typeNamePrefixed = string.IsNullOrEmpty(prefix) ? typeName : $"{prefix}:{typeName}"; 882if (string.IsNullOrEmpty(prefix)) 1750if (XamlLanguage.String.CanAssignTo(property.Type) && !string.IsNullOrEmpty(value)) 2004if (!string.IsNullOrEmpty(XamlObjectReader.GetConstructorArgument(p))) 2012if (!string.IsNullOrEmpty(XamlObjectReader.GetConstructorArgument(p)))
TagHelpersWebSite (1)
TagHelpers\PrettyTagHelper.cs (1)
49if (!string.IsNullOrEmpty(style))
TaskUsageLogger (3)
TaskUsageLogger.cs (3)
253if (String.IsNullOrEmpty(usingTask.AssemblyName)) 262if (!String.IsNullOrEmpty(evaluatedTaskAssemblyName)) 318if (!String.IsNullOrEmpty(propertyName))
Templates.Blazor.Tests (29)
BlazorWasmTemplateTest.cs (1)
171if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DIR")))
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
156if (!string.IsNullOrEmpty(script.Source)) 197if (!string.IsNullOrEmpty(listeningMessage)) 268if (!string.IsNullOrEmpty(acceptContentType))
src\ProjectTemplates\Shared\Project.cs (8)
28if (!string.IsNullOrEmpty(helixWorkItemUploadRoot)) 34if (string.IsNullOrEmpty(testLogFolder)) 42public static string DotNetEfFullPath => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 82if (!string.IsNullOrEmpty(auth)) 87if (!string.IsNullOrEmpty(language)) 232if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 252if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 531if (result.ExitCode != 0 && !string.IsNullOrEmpty(ArtifactsLogDir))
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
64(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DIR")))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (2)
43public static string CustomHivePath { get; } = Path.GetFullPath((string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 80if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Templates.Blazor.WebAssembly.Auth.Tests (34)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
156if (!string.IsNullOrEmpty(script.Source)) 197if (!string.IsNullOrEmpty(listeningMessage)) 268if (!string.IsNullOrEmpty(acceptContentType))
src\ProjectTemplates\Shared\Project.cs (8)
28if (!string.IsNullOrEmpty(helixWorkItemUploadRoot)) 34if (string.IsNullOrEmpty(testLogFolder)) 42public static string DotNetEfFullPath => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 82if (!string.IsNullOrEmpty(auth)) 87if (!string.IsNullOrEmpty(language)) 232if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 252if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 531if (result.ExitCode != 0 && !string.IsNullOrEmpty(ArtifactsLogDir))
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
64(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DIR")))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (2)
43public static string CustomHivePath { get; } = Path.GetFullPath((string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 80if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\E2ETesting\BrowserFixture.cs (5)
89if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory)) 171if (!string.IsNullOrEmpty(binaryLocation)) 179if (!string.IsNullOrEmpty(userProfileDirectory)) 232if (!string.IsNullOrEmpty(chromeDriverPathEnvVar)) 246if (string.IsNullOrEmpty(context))
src\Shared\E2ETesting\E2ETestOptions.cs (1)
35if (!metadataAttributes.TryGetValue("CI", out var value) || string.IsNullOrEmpty(value))
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Templates.Blazor.WebAssembly.Tests (34)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
156if (!string.IsNullOrEmpty(script.Source)) 197if (!string.IsNullOrEmpty(listeningMessage)) 268if (!string.IsNullOrEmpty(acceptContentType))
src\ProjectTemplates\Shared\Project.cs (8)
28if (!string.IsNullOrEmpty(helixWorkItemUploadRoot)) 34if (string.IsNullOrEmpty(testLogFolder)) 42public static string DotNetEfFullPath => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 82if (!string.IsNullOrEmpty(auth)) 87if (!string.IsNullOrEmpty(language)) 232if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 252if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 531if (result.ExitCode != 0 && !string.IsNullOrEmpty(ArtifactsLogDir))
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
64(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DIR")))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (2)
43public static string CustomHivePath { get; } = Path.GetFullPath((string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 80if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\E2ETesting\BrowserFixture.cs (5)
89if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory)) 171if (!string.IsNullOrEmpty(binaryLocation)) 179if (!string.IsNullOrEmpty(userProfileDirectory)) 232if (!string.IsNullOrEmpty(chromeDriverPathEnvVar)) 246if (string.IsNullOrEmpty(context))
src\Shared\E2ETesting\E2ETestOptions.cs (1)
35if (!metadataAttributes.TryGetValue("CI", out var value) || string.IsNullOrEmpty(value))
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Templates.Mvc.Tests (34)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
156if (!string.IsNullOrEmpty(script.Source)) 197if (!string.IsNullOrEmpty(listeningMessage)) 268if (!string.IsNullOrEmpty(acceptContentType))
src\ProjectTemplates\Shared\Project.cs (8)
28if (!string.IsNullOrEmpty(helixWorkItemUploadRoot)) 34if (string.IsNullOrEmpty(testLogFolder)) 42public static string DotNetEfFullPath => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 82if (!string.IsNullOrEmpty(auth)) 87if (!string.IsNullOrEmpty(language)) 232if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 252if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 531if (result.ExitCode != 0 && !string.IsNullOrEmpty(ArtifactsLogDir))
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
64(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DIR")))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (2)
43public static string CustomHivePath { get; } = Path.GetFullPath((string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 80if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\E2ETesting\BrowserFixture.cs (5)
89if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory)) 171if (!string.IsNullOrEmpty(binaryLocation)) 179if (!string.IsNullOrEmpty(userProfileDirectory)) 232if (!string.IsNullOrEmpty(chromeDriverPathEnvVar)) 246if (string.IsNullOrEmpty(context))
src\Shared\E2ETesting\E2ETestOptions.cs (1)
35if (!metadataAttributes.TryGetValue("CI", out var value) || string.IsNullOrEmpty(value))
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Templates.Tests (34)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
156if (!string.IsNullOrEmpty(script.Source)) 197if (!string.IsNullOrEmpty(listeningMessage)) 268if (!string.IsNullOrEmpty(acceptContentType))
src\ProjectTemplates\Shared\Project.cs (8)
28if (!string.IsNullOrEmpty(helixWorkItemUploadRoot)) 34if (string.IsNullOrEmpty(testLogFolder)) 42public static string DotNetEfFullPath => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 82if (!string.IsNullOrEmpty(auth)) 87if (!string.IsNullOrEmpty(language)) 232if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 252if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DotNetEfFullPath"))) 531if (result.ExitCode != 0 && !string.IsNullOrEmpty(ArtifactsLogDir))
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
64(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DIR")))
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (2)
43public static string CustomHivePath { get; } = Path.GetFullPath((string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 80if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\CertificateGeneration\CertificateManager.cs (2)
370if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir)) 556if (!string.IsNullOrEmpty(targetDirectoryPath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (4)
56if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable(OpenSslCertDirectoryOverrideVariableName))) 83if (string.IsNullOrEmpty(sslCertDirString)) 664if (!string.IsNullOrEmpty(@override)) 690if (string.IsNullOrEmpty(nssDbOverride))
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
src\Shared\E2ETesting\BrowserFixture.cs (5)
89if (!string.IsNullOrEmpty(userProfileDirectory) && Directory.Exists(userProfileDirectory)) 171if (!string.IsNullOrEmpty(binaryLocation)) 179if (!string.IsNullOrEmpty(userProfileDirectory)) 232if (!string.IsNullOrEmpty(chromeDriverPathEnvVar)) 246if (string.IsNullOrEmpty(context))
src\Shared\E2ETesting\E2ETestOptions.cs (1)
35if (!metadataAttributes.TryGetValue("CI", out var value) || string.IsNullOrEmpty(value))
src\Shared\Process\ProcessEx.cs (2)
124if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) 228private static string GetNugetPackagesRestorePath() => (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_RESTORE")))
src\Shared\Process\ProcessExtensions.cs (1)
51if (!string.IsNullOrEmpty(stdout))
Test.Utilities (17)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
TestProject.AppHost (1)
TestProgram.cs (1)
61string testPrefix = string.IsNullOrEmpty(testName) ? "" : $"{testName}-";
TestProject.IntegrationServiceA (1)
Program.cs (1)
8var resourcesToSkip = !string.IsNullOrEmpty(skipResourcesValue)
TestTasks (1)
InjectRequestHandler.cs (1)
42if (string.IsNullOrEmpty(rid))
Text.Analyzers (20)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
772return !string.IsNullOrEmpty(fileInfo.Name);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
60if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("HELIX_DUMP_FOLDER")))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
13/// <inheritdoc cref="string.IsNullOrEmpty(string)"/> 15=> string.IsNullOrEmpty(value);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
72if (!string.IsNullOrEmpty(extension))
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
24private bool RequiresAttributeOnMethod => !string.IsNullOrEmpty(_enablingMethodAttributeFullyQualifiedName);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (3)
235return !string.IsNullOrEmpty(value); 485if (string.IsNullOrEmpty(optionValue)) 500if (!string.IsNullOrEmpty(optionDefaultValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
192var nameWithPrefix = (string.IsNullOrEmpty(optionalPrefix) || parts.SymbolName.StartsWith(optionalPrefix, StringComparison.Ordinal))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\Argument.cs (1)
14public bool IsNamed => !string.IsNullOrEmpty(Name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
74Debug.Assert(!string.IsNullOrEmpty(sectionName)); 91Debug.Assert(!string.IsNullOrEmpty(key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
393if (!string.IsNullOrEmpty(WordSeparator))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
80serializeValue: value => string.IsNullOrEmpty(value) ? emptyStringRepresentation : UnescapeLineBreaks(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
329if (string.IsNullOrEmpty(key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
51if (string.IsNullOrEmpty(rootNamespace))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
119if (string.IsNullOrEmpty(xml))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
39if (string.IsNullOrEmpty(publicKeyToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
142if (!string.IsNullOrEmpty(extension) && extension[0] != '.')
Text.Analyzers.UnitTests (1)
IdentifiersShouldBeSpelledCorrectlyTests.cs (1)
813if (string.IsNullOrEmpty(constructorName))
UIAutomationClient (4)
MS\Internal\Automation\CacheHelper.cs (1)
146if (string.IsNullOrEmpty(treeDescription))
MS\Internal\Automation\Misc.cs (1)
675if (string.IsNullOrEmpty(s) || s.IndexOfAny(new char[2] { ' ', '&' }) < 0)
MS\Internal\Automation\ProxyManager.cs (2)
508if (!String.IsNullOrEmpty(baseClassName)) 523if (proxy == null && !String.IsNullOrEmpty(baseClassName))
UIAutomationClientSideProviders (50)
MS\Internal\AutomationProxies\Misc.cs (2)
1628if (string.IsNullOrEmpty(s) || s.IndexOfAny(new char[2] { ' ', '&' }) < 0) 1921if (string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
846if(pattern == InvokePattern.Pattern && !String.IsNullOrEmpty(_acc.DefaultAction)) 851else if(pattern == ValuePattern.Pattern && !String.IsNullOrEmpty(_acc.Value)) 895return string.IsNullOrEmpty(value) ? null : value; 900return string.IsNullOrEmpty(value) ? null : value; 917return string.IsNullOrEmpty(value) ? null : value;
MS\Internal\AutomationProxies\ProxyHwnd.cs (8)
135if (string.IsNullOrEmpty(accessKey)) 154return string.IsNullOrEmpty(sPersistentID) ? null : sPersistentID; 165if (!string.IsNullOrEmpty(name)) 182if (!string.IsNullOrEmpty(name)) 198if (String.IsNullOrEmpty(name)) 261if (string.IsNullOrEmpty(text)) 266if (string.IsNullOrEmpty(text)) 498if (!string.IsNullOrEmpty(labelText))
MS\Internal\AutomationProxies\ProxySimple.cs (2)
341return string.IsNullOrEmpty(sRawName) ? null : Misc.AccessKey(sRawName); 612name = string.IsNullOrEmpty(name) ? null : name;
MS\Internal\AutomationProxies\WindowsButton.cs (3)
56_fControlHasLabel = string.IsNullOrEmpty(GetLocalizedName()); 63_fControlHasLabel = string.IsNullOrEmpty(GetLocalizedName()); 70_fControlHasLabel = string.IsNullOrEmpty(GetLocalizedName());
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
616if (!string.IsNullOrEmpty(text))
MS\Internal\AutomationProxies\WindowsContainer.cs (2)
28if (!string.IsNullOrEmpty(className)) 167if (string.IsNullOrEmpty(dlgName))
MS\Internal\AutomationProxies\WindowsEditBox.cs (2)
149hwnd != IntPtr.Zero && string.IsNullOrEmpty(accessKey); 202if (string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (1)
389if (string.IsNullOrEmpty(s))
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
181return string.IsNullOrEmpty(helpText) ? null : helpText; 191if (string.IsNullOrEmpty(text))
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
90if (!string.IsNullOrEmpty(key))
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
1300if (string.IsNullOrEmpty(menuRawText)) 1340if (!string.IsNullOrEmpty(accelerator)) 1377if (!string.IsNullOrEmpty(acceleratorKey)) 1536return string.IsNullOrEmpty(text) ? null : SubMenuAccessKey(text); 2726if (string.IsNullOrEmpty(menuRawText)) 2764if (!string.IsNullOrEmpty(accelerator))
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
143if (string.IsNullOrEmpty(name)) 520if (string.IsNullOrEmpty(text)) 572if (!string.IsNullOrEmpty(text))
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
245return string.IsNullOrEmpty(text) ? "" : text; 717if (string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\WindowsTab.cs (6)
358if (string.IsNullOrEmpty(sTitle)) 705if (!string.IsNullOrEmpty(WindowsTabItem.GetName(hwnd, i, true))) 908_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 955return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 980if (!string.IsNullOrEmpty(name)) 1328if (!string.IsNullOrEmpty(sName))
MS\Internal\AutomationProxies\WindowsToolbar.cs (3)
258if (string.IsNullOrEmpty(name)) 264return string.IsNullOrEmpty(name) ? null : name; 608if (!string.IsNullOrEmpty(name))
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
48if (!string.IsNullOrEmpty(text))
UnitTests.Common (2)
TestTypes.cs (2)
624sb.AppendLine("StringValue: " + (string.IsNullOrEmpty(_stringValue) ? "<empty>" : _stringValue.ToString())); 625sb.AppendLine("LongerStringValue: " + (string.IsNullOrEmpty(_longerStringValue) ? "<empty>" : _longerStringValue.ToString()));
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (2)
116if (string.IsNullOrEmpty(request.WorkingDirectory)) 125if (string.IsNullOrEmpty(request.TempDirectory))
VBCSCompiler.UnitTests (1)
CompilerServerTests.cs (1)
91if (hasShared && string.IsNullOrEmpty(pipeName))
VersioningWebSite (5)
VersionRouteAttribute.cs (5)
80if (string.IsNullOrEmpty(lowerBound) || string.IsNullOrEmpty(higherBound)) 107(string.IsNullOrEmpty(lowerBound) ^ string.IsNullOrEmpty(higherBound))) 113if (!string.IsNullOrEmpty(lowerBound))
VisualBasicSyntaxGenerator (25)
Grammar\GrammarGenerator.vb (1)
288If Not String.IsNullOrEmpty(nodeKind.TokenText) Then
GreenNodes\GreenNodeFactoryWriter.vb (2)
38If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 55If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then
GreenNodes\GreenNodeWriter.vb (5)
39If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 46If Not String.IsNullOrEmpty(_parseTree.VisitorName) Then 50If Not String.IsNullOrEmpty(_parseTree.RewriteVisitorName) Then 54If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 152If Not String.IsNullOrEmpty(_parseTree.VisitorName) Then
RedNodes\RedNodeFactoryWriter.vb (2)
32If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 43If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then
RedNodes\RedNodeWriter.vb (7)
30If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 36If Not String.IsNullOrEmpty(_parseTree.VisitorName) Then 41If Not String.IsNullOrEmpty(_parseTree.RewriteVisitorName) Then 45If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 51If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 64If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 191If Not String.IsNullOrEmpty(_parseTree.VisitorName) Then
Util\WriteDumper.vb (2)
46If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then 53If Not String.IsNullOrEmpty(_parseTree.NamespaceName) Then
Util\WriteUtils.vb (2)
177If String.IsNullOrEmpty(nodeChild.SeparatorsName) Then 459Return String.IsNullOrEmpty(nodeStructure.ParentStructureId)
Util\XmlRenamer.vb (1)
122If String.IsNullOrEmpty(attrValue) Then
XML\ParseTreeDescription.vb (3)
93struct.ParentStructure.HasDerivedStructure = Not String.IsNullOrEmpty(struct.ParentStructureId) 261If String.IsNullOrEmpty(ParentStructureId) Then 380If String.IsNullOrEmpty(StructureId) Then
Wasm.Performance.ConsoleHost (5)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
195if (string.IsNullOrEmpty(longOptionName) &&
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (3)
48if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
48if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
WindowsFormsIntegration (7)
System\Windows\Integration\ElementHost.cs (2)
527if (string.IsNullOrEmpty(text)) 531if (!string.IsNullOrEmpty(text))
System\Windows\Integration\PropertyMap.cs (2)
80if (string.IsNullOrEmpty(propertyName)) 248if (string.IsNullOrEmpty(propertyName))
System\Windows\Integration\PropertyMappingExceptionEventArgs.cs (1)
26if (string.IsNullOrEmpty(propertyName))
System\Windows\Integration\WindowsFormsHost.cs (2)
1001if (string.IsNullOrEmpty(text)) 1005if (!string.IsNullOrEmpty(text))
WsFedSample (1)
Startup.cs (1)
161string.IsNullOrEmpty(content) ? string.Empty : HtmlEncoder.Default.Encode(content);
XmlFileLogger (3)
ObjectModel\Item.cs (1)
57if (!string.IsNullOrEmpty(value))
ObjectModel\Project.cs (1)
62if (!string.IsNullOrEmpty(targetStartedEventArgs.ParentTarget))
ObjectModel\Task.cs (1)
61if (!string.IsNullOrEmpty(CommandLineArguments))
XmlFormattersWebSite (1)
Controllers\ValidationController.cs (1)
38if (string.IsNullOrEmpty(modelError.ErrorMessage))
xunit.assert (2)
PropertyAsserts.cs (2)
47 propertyChangeHappened = propertyChangeHappened || string.IsNullOrEmpty(args.PropertyName) || propertyName.Equals(args.PropertyName, StringComparison.OrdinalIgnoreCase); 94 propertyChangeHappened = propertyChangeHappened || string.IsNullOrEmpty(args.PropertyName) || propertyName.Equals(args.PropertyName, StringComparison.OrdinalIgnoreCase);
xunit.console (31)
CommandLine.cs (5)
408if (pieces.Length != 2 || string.IsNullOrEmpty(pieces[0]) || string.IsNullOrEmpty(pieces[1])) 421if (pieces.Length != 2 || string.IsNullOrEmpty(pieces[0]) || string.IsNullOrEmpty(pieces[1])) 513if (string.IsNullOrEmpty(directory))
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\RuntimeEnvironment.cs (2)
35if (!string.IsNullOrEmpty(RuntimeArchitecture)) 51if (string.IsNullOrEmpty(OperatingSystemVersion))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Dependency.cs (2)
13if (string.IsNullOrEmpty(name)) 17if (string.IsNullOrEmpty(version))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (1)
120if (!string.IsNullOrEmpty(runtimeTargetName))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextLoader.cs (1)
95if (!string.IsNullOrEmpty(location))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Library.cs (3)
33if (string.IsNullOrEmpty(type)) 37if (string.IsNullOrEmpty(name)) 41if (string.IsNullOrEmpty(version))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\AppBaseCompilationAssemblyResolver.cs (1)
71if (isPublished && isPackage && !string.IsNullOrEmpty(sharedPath))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\DotNetReferenceAssembliesPathResolver.cs (1)
15if (!string.IsNullOrEmpty(path))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (3)
47if (!string.IsNullOrEmpty(listOfDirectories)) 54if (!string.IsNullOrEmpty(packageDirectory)) 69if (string.IsNullOrEmpty(basePath))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ReferenceAssemblyPathResolver.cs (3)
107if (!string.IsNullOrEmpty(referenceAssembliesPath)) 123if (string.IsNullOrEmpty(programFiles)) 129if (string.IsNullOrEmpty(programFiles))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ResolverUtils.cs (1)
13if (string.IsNullOrEmpty(path))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\ResourceAssembly.cs (2)
12if (string.IsNullOrEmpty(path)) 16if (string.IsNullOrEmpty(locale))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeFallbacks.cs (1)
18if (string.IsNullOrEmpty(runtime))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\TargetInfo.cs (1)
15if (string.IsNullOrEmpty(framework))
common\AssemblyResolution\XunitPackageCompilationAssemblyResolver.cs (3)
35if (!string.IsNullOrEmpty(probeDirectories)) 43if (!string.IsNullOrEmpty(packageDirectory)) 53if (!string.IsNullOrEmpty(basePath))
ConsoleRunner.cs (1)
133if (string.IsNullOrEmpty(runnerPath))