1199 references to IsNullOrWhiteSpace
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
172if (!string.IsNullOrWhiteSpace(_options.LogFileName))
aspire (1)
Commands\PublishCommandBase.cs (1)
532if (!string.IsNullOrWhiteSpace(value) && !double.TryParse(value, out _))
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
123if (connectionBuilder.TryGetValue("Key", out var key) && !string.IsNullOrWhiteSpace(key.ToString()))
Aspire.Azure.Messaging.EventHubs (8)
EventHubsComponent.cs (6)
93ns = string.IsNullOrWhiteSpace(settings.FullyQualifiedNamespace) 132if (!string.IsNullOrWhiteSpace(settings.ConnectionString)) 135if (string.IsNullOrWhiteSpace(settings.EventHubName)) 141if (string.IsNullOrWhiteSpace(props.EventHubName)) 152else if (!string.IsNullOrWhiteSpace(settings.FullyQualifiedNamespace) && string.IsNullOrWhiteSpace(settings.EventHubName))
EventProcessorClientComponent.cs (2)
91var consumerGroup = (string.IsNullOrWhiteSpace(settings.ConsumerGroup)) ? "default" : settings.ConsumerGroup; 101if (string.IsNullOrWhiteSpace(settings.BlobContainerName))
Aspire.Azure.Search.Documents (1)
AspireAzureSearchExtensions.cs (1)
84if (!string.IsNullOrWhiteSpace(settings.Key))
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (1)
97if (string.IsNullOrWhiteSpace(value))
Aspire.Dashboard (16)
Authentication\OpenIdConnect\AuthorizationPolicyBuilderExtensions.cs (2)
27if (!string.IsNullOrWhiteSpace(claimType)) 29if (!string.IsNullOrWhiteSpace(claimValue))
Components\Controls\UserProfile.razor.cs (1)
52if (string.IsNullOrWhiteSpace(_name))
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
152string.IsNullOrWhiteSpace(inputModel.Value);
Configuration\DashboardOptions.cs (2)
284if (string.IsNullOrWhiteSpace(NameClaimType)) 294if (string.IsNullOrWhiteSpace(UsernameClaimType))
Configuration\ValidateDashboardOptions.cs (1)
110if (string.IsNullOrWhiteSpace(options.ResourceServiceClient.ApiKey))
ConsoleLogs\AnsiParser.cs (1)
72if (string.IsNullOrWhiteSpace(text))
Model\DashboardCommandExecutor.cs (1)
89if (!string.IsNullOrWhiteSpace(command.ConfirmationMessage))
Model\Otlp\SpanWaterfallViewModel.cs (1)
71if (string.IsNullOrWhiteSpace(filter))
Model\ResourceViewModel.cs (2)
406if (!string.IsNullOrWhiteSpace(Description)) 411if (!string.IsNullOrWhiteSpace(ExceptionText))
Model\StructuredLogsViewModel.cs (1)
83if (!string.IsNullOrWhiteSpace(FilterText))
Otlp\Storage\TelemetryRepository.cs (1)
520if (!string.IsNullOrWhiteSpace(context.FilterText))
src\Shared\IConfigurationExtensions.cs (2)
110if (string.IsNullOrWhiteSpace(uri)) 140if (string.IsNullOrWhiteSpace(uris))
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
256if (!string.IsNullOrWhiteSpace(WorkingDirectory))
Aspire.Hosting (14)
ApplicationModel\ResourceNotificationService.cs (3)
544if (_logger.IsEnabled(LogLevel.Debug) && newState.State?.Text is { Length: > 0 } newStateText && !string.IsNullOrWhiteSpace(newStateText)) 547if (!string.IsNullOrWhiteSpace(previousStateText) && !string.Equals(previousStateText, newStateText, StringComparison.OrdinalIgnoreCase)) 552else if (string.IsNullOrWhiteSpace(previousStateText))
Dashboard\ResourceServiceOptions.cs (1)
50if (string.IsNullOrWhiteSpace(options.ApiKey))
Dcp\DcpExecutor.cs (1)
1182if (launchProfile is not null && !string.IsNullOrWhiteSpace(launchProfile.CommandLineArgs))
Dcp\DcpHost.cs (1)
144if (!string.IsNullOrWhiteSpace(_dcpOptions.LogFileNameSuffix))
Dcp\DcpNameGenerator.cs (2)
131=> (string.IsNullOrWhiteSpace(localSuffix), string.IsNullOrWhiteSpace(globalSuffix)) switch
Dcp\Model\ModelCommon.cs (3)
86if (!found || string.IsNullOrWhiteSpace(annotationValue)) 106if (annotations.TryGetValue(annotationName, out var annotationVal) && !string.IsNullOrWhiteSpace(annotationVal)) 226if (string.IsNullOrWhiteSpace(candidate))
DistributedApplicationBuilder.cs (1)
266if (string.IsNullOrWhiteSpace(aspireDir))
src\Shared\IConfigurationExtensions.cs (2)
110if (string.IsNullOrWhiteSpace(uri)) 140if (string.IsNullOrWhiteSpace(uris))
Aspire.Hosting.Azure (3)
Provisioning\Internal\BicepCompiler.cs (1)
80Debug.Assert(!string.IsNullOrWhiteSpace(command));
Provisioning\Internal\DefaultProvisioningContextProvider.cs (2)
154if (string.IsNullOrWhiteSpace(name) || name.Length > 90) 277if (!string.IsNullOrWhiteSpace(_options.ResourceGroupPrefix))
Aspire.Hosting.Docker (1)
EnvFile.cs (1)
42if (!string.IsNullOrWhiteSpace(comment))
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
145if (string.IsNullOrWhiteSpace(templatedItem.Metadata.Name))
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
275if (!string.IsNullOrWhiteSpace(line))
Aspire.Hosting.Tests (15)
Dcp\DcpExecutorTests.cs (15)
255Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 287Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 319Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 352Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 408Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 442Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 476Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 807Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 852Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 887Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 922Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 1002Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 1038Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 1075Assert.False(string.IsNullOrWhiteSpace(envVarVal)); 1112Assert.False(string.IsNullOrWhiteSpace(envVarVal));
Aspire.Microsoft.Data.SqlClient (2)
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
95if (string.IsNullOrWhiteSpace(value))
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\Guard.cs (1)
95if (string.IsNullOrWhiteSpace(value))
Aspire.MongoDB.Driver (4)
src\Components\Aspire.MongoDB.Driver\AspireMongoDBDriverExtensions.cs (3)
126if (string.IsNullOrWhiteSpace(connectionString)) 133if (string.IsNullOrWhiteSpace(mongoUrl.DatabaseName)) 164if (settings.DisableHealthChecks || string.IsNullOrWhiteSpace(settings.ConnectionString))
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
Aspire.MySqlConnector (1)
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
Aspire.Npgsql (1)
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
Aspire.Playground.Tests (1)
tests\Aspire.TestUtilities\FileUtil.cs (1)
14Debug.Assert(!string.IsNullOrWhiteSpace(command));
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\ConnectionStringValidation.cs (1)
10if (string.IsNullOrWhiteSpace(connectionString) && !isEfDesignTime)
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
103if (string.IsNullOrWhiteSpace(value))
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
56Name = string.IsNullOrWhiteSpace(name) ? "OpenTelemetry.Redis" : $"OpenTelemetry.Redis{{{name}}}",
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
256if (!string.IsNullOrWhiteSpace(WorkingDirectory))
Aspire.TestUtilities (1)
FileUtil.cs (1)
14Debug.Assert(!string.IsNullOrWhiteSpace(command));
csc (2)
src\Compilers\Shared\BuildProtocol.cs (2)
73Debug.Assert(!string.IsNullOrWhiteSpace(CompilerHash), "A hash value is required to communicate with the server"); 85Debug.Assert(!string.IsNullOrWhiteSpace(compilerHash), "CompilerHash is required to send request to the build server");
CSharpSyntaxGenerator (2)
SourceWriter.cs (2)
1797foreach (var line in lines.Where(l => !string.IsNullOrWhiteSpace(l))) 1815foreach (string line in lines.Where(l => !string.IsNullOrWhiteSpace(l)))
dotnet-svcutil-lib (63)
CmdCredentialsProvider.cs (1)
28while (string.IsNullOrWhiteSpace(username))
CodeDomFixup\CodeDomHelpers.cs (1)
247return !String.IsNullOrWhiteSpace(name) &&
CodeSerializer.cs (7)
135if (string.IsNullOrWhiteSpace(fileName)) 144if (!string.IsNullOrWhiteSpace(fileName) && fileName.IndexOfAny(Path.GetInvalidFileNameChars()) == -1) 151if (string.IsNullOrWhiteSpace(fileName)) 158if (!string.IsNullOrWhiteSpace(fileName) && fileName.IndexOfAny(Path.GetInvalidFileNameChars()) == -1) 165if (string.IsNullOrWhiteSpace(fileName)) 174if (!string.IsNullOrWhiteSpace(fileName) && fileName.IndexOfAny(Path.GetInvalidFileNameChars()) == -1) 181if (string.IsNullOrWhiteSpace(fileName))
CommandLineParser.cs (3)
79if (string.IsNullOrWhiteSpace(other)) 133if (string.IsNullOrWhiteSpace(arg)) 167if (string.IsNullOrWhiteSpace(argValue) || !IsArgumentValue(argValue))
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
623if (!String.IsNullOrWhiteSpace(coreAssemblyFileName))
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
307if (string.IsNullOrWhiteSpace(asnString))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
241if (!(requested == null ? string.IsNullOrWhiteSpace(obtained) : requested.Equals(obtained, StringComparison.OrdinalIgnoreCase)))
MarkupTelemetryHelper.cs (2)
95if (!String.IsNullOrWhiteSpace(propName)) 112if (ToolConsole.IsMarkupEnabled && !String.IsNullOrWhiteSpace(str))
Metadata\MetadaExchangeResolver.cs (1)
437if (!string.IsNullOrWhiteSpace(charset))
Metadata\MetadataDocumentLoader.cs (3)
261if (!string.IsNullOrWhiteSpace(uri)) 354if (!string.IsNullOrWhiteSpace(import.Location)) 535if (!File.Exists(fullFileName) && !string.IsNullOrWhiteSpace(specNamespace))
Metadata\MetadataFileNameManager.cs (7)
26if (string.IsNullOrWhiteSpace(fileName)) 31if (string.IsNullOrWhiteSpace(extension)) 36if (string.IsNullOrWhiteSpace(basePath)) 67if (string.IsNullOrWhiteSpace(fileName)) 72if (string.IsNullOrWhiteSpace(extension)) 77if (string.IsNullOrWhiteSpace(basePath)) 98if (string.IsNullOrWhiteSpace(ns))
Metadata\ServiceDescriptor.cs (1)
35if (string.IsNullOrWhiteSpace(serviceUri))
OutputPathHelper.cs (2)
19Debug.Assert(!string.IsNullOrWhiteSpace(filePath), "filePath must have a valid value!"); 20if (string.IsNullOrWhiteSpace(filePath))
Shared\MSBuildProj.cs (5)
194if (!string.IsNullOrWhiteSpace(targetFramework)) 623if (this.RuntimeIdentifier != runtimeIdentifier && !string.IsNullOrWhiteSpace(runtimeIdentifier)) 641if (_targetFramework != targetFramework && !string.IsNullOrWhiteSpace(targetFramework)) 720var restoreParams = "restore --ignore-failed-sources" + (string.IsNullOrWhiteSpace(this.RuntimeIdentifier) ? "" : (" -r " + this.RuntimeIdentifier)); 879var depsFile = this.GlobalProperties.TryGetValue("Configuration", out var activeConfiguration) && !string.IsNullOrWhiteSpace(activeConfiguration) ?
Shared\Options\OptionBase.cs (2)
29if (string.IsNullOrWhiteSpace(name)) 156OptionValueParser.ThrowInvalidValueIf(value == null || (stringValue != null && string.IsNullOrWhiteSpace(stringValue)), jToken, this);
Shared\ProjectDependency.cs (14)
75if (!string.IsNullOrWhiteSpace(filePath) && Path.GetInvalidPathChars().Intersect(filePath).Count() > 0) 80if (!string.IsNullOrWhiteSpace(packageName) && Path.GetInvalidFileNameChars().Intersect(packageName).Count() > 0) 85if (string.IsNullOrWhiteSpace(packageVersion)) 102if (string.IsNullOrWhiteSpace(packageName)) 114fileHasKnownExtension = string.IsNullOrWhiteSpace(filePath) ? false : 125if (string.IsNullOrWhiteSpace(filePath)) 149this.AssemblyName = string.IsNullOrWhiteSpace(filePath) ? packageName : 152this.Name = string.IsNullOrWhiteSpace(packageName) ? this.AssemblyName : packageName; 154this.ReferenceIdentity = this.DependencyType == ProjectDependencyType.Package || this.DependencyType == ProjectDependencyType.Tool || !string.IsNullOrWhiteSpace(packageName) ? 178if (string.IsNullOrWhiteSpace(dependencySpec)) 202if (!string.IsNullOrWhiteSpace(assemblyName)) 228if (string.IsNullOrWhiteSpace(assemblyName)) 250if (string.IsNullOrWhiteSpace(name)) 340if (!string.IsNullOrWhiteSpace(version))
Shared\ProjectPropertyResolver.cs (1)
246if (string.IsNullOrWhiteSpace(propertyName) || propertyName.Any(c => chars.Contains(c) || !char.IsLetterOrDigit(c)))
Shared\Utilities\PathHelper.cs (1)
53if (!string.IsNullOrWhiteSpace(input))
Shared\Utilities\ProcessRunner.cs (5)
61if (string.IsNullOrWhiteSpace(currentDir)) 79foreach (var environmentVar in environmentVariables.Where(e => !string.IsNullOrWhiteSpace(e.Key))) 94if (!string.IsNullOrWhiteSpace(e.Data)) 151throw new ProcessException(string.IsNullOrWhiteSpace(errorText) ? outputText : errorText, exitCode); 153else if (string.IsNullOrWhiteSpace(outputText))
Shared\Utilities\Utilities.cs (1)
41if (!(e is AggregateException) && !string.IsNullOrWhiteSpace(exMsg) && !message.ToString().Contains(exMsg))
ToolConsole.cs (3)
80if (!string.IsNullOrWhiteSpace(errMsg)) 82if (!string.IsNullOrWhiteSpace(prefix)) 207if (!string.IsNullOrWhiteSpace(conversionError.Message))
dotnet-svcutil-lib.Tests (7)
E2ETests.cs (1)
48Assert.False(string.IsNullOrWhiteSpace(this_TestCaseName), $"{nameof(this_TestCaseName)} not initialized!");
GlobalToolTests.cs (1)
18Assert.False(string.IsNullOrWhiteSpace(this_TestCaseName), $"{nameof(this_TestCaseName)} not initialized!");
TestInit.cs (3)
240Assert.False(string.IsNullOrWhiteSpace(testCaseName), $"{nameof(testCaseName)} is not initialized!"); 482fileLines1 = fileLines1.Where(f => !string.IsNullOrWhiteSpace(f)).ToList(); 483fileLines2 = fileLines2.Where(f => !string.IsNullOrWhiteSpace(f)).ToList();
UnitTest.cs (2)
19Assert.False(string.IsNullOrWhiteSpace(this_TestCaseName), $"{nameof(this_TestCaseName)} not initialized!"); 62var verbosityOption = string.IsNullOrWhiteSpace(verbosity) ? string.Empty : $" -v {verbosity}";
dotnet-user-jwts (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
21string newSecretsId = string.IsNullOrWhiteSpace(overrideId) 37if (string.IsNullOrWhiteSpace(overrideId))
dotnet-user-secrets (2)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
21string newSecretsId = string.IsNullOrWhiteSpace(overrideId) 37if (string.IsNullOrWhiteSpace(overrideId))
GenerateDocumentationAndConfigFiles (13)
Program.cs (5)
557if (!string.IsNullOrWhiteSpace(descriptor.HelpLinkUri)) 577if (string.IsNullOrWhiteSpace(description)) 656if (!string.IsNullOrWhiteSpace(args.AnalyzerVersion)) 796if (!string.IsNullOrWhiteSpace(helpLinkUri) && 805if (!string.IsNullOrWhiteSpace(helpLinkUri))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (1)
60if (string.IsNullOrWhiteSpace(lineText) || lineText.StartsWith(";", StringComparison.Ordinal))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
GenerateRulesMissingDocumentation (2)
Program.cs (2)
64if (!string.IsNullOrWhiteSpace(helpLinkUri) && 73if (!string.IsNullOrWhiteSpace(helpLinkUri))
GetDocument.Insider (3)
Commands\GetDocumentCommandWorker.cs (3)
276if (!string.IsNullOrWhiteSpace(_context.FileName) && !Regex.IsMatch(_context.FileName, "^([A-Za-z0-9-_]+)$")) 346if (!string.IsNullOrWhiteSpace(_context.OpenApiVersion)) 375fileName = !string.IsNullOrWhiteSpace(fileName) ? fileName : projectName;
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
384if (string.IsNullOrWhiteSpace(code))
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresEnvironmentVariableAttribute.cs (1)
20public bool IsMet => !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(_name));
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresEnvironmentVariableAttribute.cs (1)
20public bool IsMet => !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(_name));
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresEnvironmentVariableAttribute.cs (1)
20public bool IsMet => !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(_name));
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresEnvironmentVariableAttribute.cs (1)
20public bool IsMet => !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(_name));
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresEnvironmentVariableAttribute.cs (1)
20public bool IsMet => !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(_name));
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresEnvironmentVariableAttribute.cs (1)
20public bool IsMet => !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(_name));
ILLink.CodeFixProvider (1)
UnconditionalSuppressMessageCodeFixProvider.cs (1)
52string.IsNullOrWhiteSpace(ruleTitle) ? diagnostic.Id : $"{diagnostic.Id}:{ruleTitle}"));
Infrastructure.Common (10)
ConditionalTestDetectors.cs (7)
150if (String.IsNullOrWhiteSpace(runWithCoreWCFService)) 166if (String.IsNullOrWhiteSpace(host)) 188return !String.IsNullOrWhiteSpace(GetExplicitUserName()) && 189!String.IsNullOrWhiteSpace(GetExplicitPassword()); 197return !String.IsNullOrWhiteSpace(GetDomain()); 206return !String.IsNullOrWhiteSpace(GetSPN()); 215return !String.IsNullOrWhiteSpace(GetUPN());
ConditionalWcfTest.cs (2)
50if (!String.IsNullOrWhiteSpace(value) && bool.TryParse(value, out parsedValue)) 62if (!String.IsNullOrWhiteSpace(value) && bool.TryParse(value, out parsedValue))
xunit\ConditionAttribute.cs (1)
52if (string.IsNullOrWhiteSpace(conditionMemberName))
installer.tasks (7)
GenerateFileVersionProps.cs (2)
121bool generatePropsFile = !string.IsNullOrWhiteSpace(PropsFile); 149if (!string.IsNullOrWhiteSpace(PropsFile))
StaticFileRegeneration\TpnDocument.cs (1)
39.SkipWhile(line => string.IsNullOrWhiteSpace(line))
StaticFileRegeneration\TpnSectionHeader.cs (4)
96.TakeWhile(s => !string.IsNullOrWhiteSpace(s)) 134.TakeWhile(s => !string.IsNullOrWhiteSpace(s)) 156if (string.IsNullOrWhiteSpace(lines[i - 1]) && 157string.IsNullOrWhiteSpace(lines[i + 1]) &&
InteropTests (1)
Helpers\ProcessDebugHelper.cs (1)
23if (string.IsNullOrWhiteSpace(value))
IOperationGenerator (1)
IOperationClassWriter.cs (1)
253if (string.IsNullOrWhiteSpace(line))
Metrics (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Metrics.Legacy (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (2)
107if (string.IsNullOrWhiteSpace(details.Message)) 119if (string.IsNullOrWhiteSpace(details.Level))
Microsoft.Analyzers.Local (2)
ApiLifecycle\ModelLoader.cs (1)
56if (string.IsNullOrWhiteSpace(publicInterface))
InternalReferencedInPublicDocAnalyzer.cs (1)
139if (string.IsNullOrWhiteSpace(referencedName))
Microsoft.Analyzers.Local.Tests (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Arcade.Common (1)
Command.cs (1)
220if (string.IsNullOrWhiteSpace(info.Arguments))
Microsoft.AspNetCore.AsyncState (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.AspNetCore.Authentication.Certificate (7)
CertificateAuthenticationHandler.cs (7)
248if (!string.IsNullOrWhiteSpace(value)) 254if (!string.IsNullOrWhiteSpace(value)) 260if (!string.IsNullOrWhiteSpace(value)) 266if (!string.IsNullOrWhiteSpace(value)) 272if (!string.IsNullOrWhiteSpace(value)) 278if (!string.IsNullOrWhiteSpace(value)) 284if (!string.IsNullOrWhiteSpace(value))
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
239if (string.IsNullOrWhiteSpace(properties.RedirectUri))
Microsoft.AspNetCore.Authorization (3)
AuthorizationPolicy.cs (3)
141if (!string.IsNullOrWhiteSpace(authorizeDatum.Policy)) 155var trimmedRolesSplit = rolesSplit.Where(r => !string.IsNullOrWhiteSpace(r)).Select(r => r.Trim()); 165if (!string.IsNullOrWhiteSpace(authType))
Microsoft.AspNetCore.BrowserTesting (2)
BrowserTestBase.cs (2)
21!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("ContinuousIntegrationBuild")) || 22!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("Helix"));
Microsoft.AspNetCore.Components.Authorization.Tests (2)
src\Components\Shared\test\AssertFrame.cs (2)
113Assert.True(string.IsNullOrWhiteSpace(frame.TextContent)); 120Assert.True(string.IsNullOrWhiteSpace(frame.TextContent));
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\AssertFrame.cs (2)
113Assert.True(string.IsNullOrWhiteSpace(frame.TextContent)); 120Assert.True(string.IsNullOrWhiteSpace(frame.TextContent));
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
193allowDeduplication: string.IsNullOrWhiteSpace(frame.TextContent));
Microsoft.AspNetCore.Components.Tests (2)
src\Components\Shared\test\AssertFrame.cs (2)
113Assert.True(string.IsNullOrWhiteSpace(frame.TextContent)); 120Assert.True(string.IsNullOrWhiteSpace(frame.TextContent));
Microsoft.AspNetCore.Components.Web (1)
Routing\FocusOnNavigate.cs (1)
43if (string.IsNullOrWhiteSpace(Selector))
Microsoft.AspNetCore.Components.Web.Tests (2)
src\Components\Shared\test\AssertFrame.cs (2)
113Assert.True(string.IsNullOrWhiteSpace(frame.TextContent)); 120Assert.True(string.IsNullOrWhiteSpace(frame.TextContent));
Microsoft.AspNetCore.Components.WebView (2)
FileExtensionContentTypeProvider.cs (1)
456if (string.IsNullOrWhiteSpace(path))
src\Components\Shared\src\RenderBatchWriter.cs (1)
193allowDeduplication: string.IsNullOrWhiteSpace(frame.TextContent));
Microsoft.AspNetCore.Components.WebView.Maui (2)
RootComponent.cs (2)
39 if (string.IsNullOrWhiteSpace(Selector)) 55 if (string.IsNullOrWhiteSpace(Selector))
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
RootComponent.cs (1)
24 if (string.IsNullOrWhiteSpace(selector))
Microsoft.AspNetCore.Components.WebView.Wpf (1)
RootComponent.cs (1)
38 if (string.IsNullOrWhiteSpace(Selector))
Microsoft.AspNetCore.DataProtection.Extensions (1)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
54if (string.IsNullOrWhiteSpace(argument))
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesOptions.cs (1)
49string.IsNullOrWhiteSpace(reasonPhrase) ? "" : "; ",
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
MigrationsEndPointMiddleware.cs (1)
100if (string.IsNullOrWhiteSpace(contextTypeName))
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
41if (string.IsNullOrWhiteSpace(asnString))
Microsoft.AspNetCore.HeaderParsing (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
WebHostBuilderTests.cs (1)
44if (!string.IsNullOrWhiteSpace(data))
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
880Assert.False(string.IsNullOrWhiteSpace(httpContext.TraceIdentifier));
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (1)
510if (string.IsNullOrWhiteSpace(connectionId))
Internal\WebSocketsTransport.cs (1)
246if (!string.IsNullOrWhiteSpace(accessToken))
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
233return !string.IsNullOrWhiteSpace(value);
Microsoft.AspNetCore.Localization (3)
CookieRequestCultureProvider.cs (1)
67if (string.IsNullOrWhiteSpace(value))
QueryStringRequestCultureProvider.cs (2)
40if (!string.IsNullOrWhiteSpace(QueryStringKey)) 45if (!string.IsNullOrWhiteSpace(UIQueryStringKey))
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\Binders\DateTimeModelBinder.cs (1)
60if (string.IsNullOrWhiteSpace(value))
ModelBinding\Binders\DecimalModelBinder.cs (1)
62if (string.IsNullOrWhiteSpace(value))
ModelBinding\Binders\DoubleModelBinder.cs (1)
62if (string.IsNullOrWhiteSpace(value))
ModelBinding\Binders\FloatModelBinder.cs (1)
62if (string.IsNullOrWhiteSpace(value))
ModelBinding\Binders\SimpleTypeModelBinder.cs (2)
63if (bindingContext.ModelMetadata.ConvertEmptyStringToNull && string.IsNullOrWhiteSpace(value)) 72else if (string.IsNullOrWhiteSpace(value))
ModelBinding\Binders\TryParseModelBinder.cs (1)
64if (string.IsNullOrWhiteSpace(value))
ModelBinding\ModelBindingHelper.cs (1)
687if (value is string valueAsString && string.IsNullOrWhiteSpace(valueAsString))
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
517if (!string.IsNullOrWhiteSpace(s))
Microsoft.AspNetCore.Mvc.TagHelpers (4)
EnvironmentTagHelper.cs (3)
75if (string.IsNullOrWhiteSpace(Names) && string.IsNullOrWhiteSpace(Include) && string.IsNullOrWhiteSpace(Exclude))
GlobbingUrlBuilder.cs (1)
130if (!string.IsNullOrWhiteSpace(exclude))
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
Helpers\StringExtensions.cs (3)
29if (string.IsNullOrWhiteSpace(line)) 54if (trimStart && string.IsNullOrWhiteSpace(line)) 68if (string.IsNullOrWhiteSpace(line))
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
36.Where(assembly => !assembly.IsDynamic && !string.IsNullOrWhiteSpace(assembly.Location))
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
514if (!string.IsNullOrWhiteSpace(header)) // omit null/empty values
Microsoft.AspNetCore.Razor (5)
TagHelpers\DefaultTagHelperContent.cs (2)
270return string.IsNullOrWhiteSpace(stringValue); 325if (IsEmptyOrWhiteSpace && !string.IsNullOrWhiteSpace(value))
TagHelpers\TagHelperOutput.cs (3)
285var isTagNameNullOrWhitespace = string.IsNullOrWhiteSpace(TagName); 334var isTagNameNullOrWhitespace = string.IsNullOrWhiteSpace(TagName); 389var isTagNameNullOrWhitespace = string.IsNullOrWhiteSpace(TagName);
Microsoft.AspNetCore.Server.HttpSys (7)
RequestProcessing\Response.cs (1)
124if (string.IsNullOrWhiteSpace(reasonPhrase))
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
131!string.IsNullOrWhiteSpace(rawValue[0]) &&
src\Shared\HttpSys\RequestProcessing\HeaderParser.cs (2)
37if (!string.IsNullOrWhiteSpace(subValue)) 48if (!string.IsNullOrWhiteSpace(subValue))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
187!string.IsNullOrWhiteSpace(rawValue[0]) &&
UrlPrefix.cs (2)
37if (!string.IsNullOrWhiteSpace(port)) 84if (string.IsNullOrWhiteSpace(path))
Microsoft.AspNetCore.Server.IIS (4)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
131!string.IsNullOrWhiteSpace(rawValue[0]) &&
src\Shared\HttpSys\RequestProcessing\HeaderParser.cs (2)
37if (!string.IsNullOrWhiteSpace(subValue)) 48if (!string.IsNullOrWhiteSpace(subValue))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
187!string.IsNullOrWhiteSpace(rawValue[0]) &&
Microsoft.AspNetCore.Session (1)
SessionMiddleware.cs (1)
66if (string.IsNullOrWhiteSpace(sessionKey) || sessionKey.Length != SessionKeyLength)
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
96Assert.True(!string.IsNullOrWhiteSpace(values.First()));
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
131!string.IsNullOrWhiteSpace(rawValue[0]) &&
src\Shared\HttpSys\RequestProcessing\HeaderParser.cs (2)
37if (!string.IsNullOrWhiteSpace(subValue)) 48if (!string.IsNullOrWhiteSpace(subValue))
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
187!string.IsNullOrWhiteSpace(rawValue[0]) &&
Microsoft.AspNetCore.SpaServices.Extensions (2)
Npm\NodeScriptRunner.cs (2)
89if (!string.IsNullOrWhiteSpace(line) && logger.IsEnabled(LogLevel.Information)) 99if (!string.IsNullOrWhiteSpace(line))
Microsoft.AspNetCore.StaticFiles (1)
FileExtensionContentTypeProvider.cs (1)
450if (string.IsNullOrWhiteSpace(path))
Microsoft.AspNetCore.Testing (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.AspNetCore.WebSockets (2)
HandshakeHelpers.cs (2)
28if (!string.IsNullOrWhiteSpace(subProtocol)) 41if (string.IsNullOrWhiteSpace(value))
Microsoft.Build.Framework (11)
BuildCanceledEventArgs.cs (1)
47if (string.IsNullOrWhiteSpace(message))
Logging\AnsiCodes.cs (2)
127if (string.IsNullOrWhiteSpace(s)) 137if (string.IsNullOrWhiteSpace(s))
Logging\LoggerParametersHelper.cs (1)
55if (string.IsNullOrWhiteSpace(parameter))
NativeMethods.cs (1)
1405if (!string.IsNullOrWhiteSpace(line))
Sdk\SdkReference.cs (6)
82if (string.IsNullOrWhiteSpace(sdk)) 94if (string.IsNullOrWhiteSpace(parts[0])) 99if (parts.Length == 1 || string.IsNullOrWhiteSpace(parts[1])) 146if (string.IsNullOrWhiteSpace(Version) && string.IsNullOrWhiteSpace(MinimumVersion)) 151return string.IsNullOrWhiteSpace(Version) ?
Microsoft.Build.Tasks.CodeAnalysis (8)
src\Compilers\Core\MSBuildTask\Csc.cs (1)
237if (!string.IsNullOrWhiteSpace(VsSessionGuid))
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (2)
96if (!string.IsNullOrWhiteSpace(itemType) && !string.IsNullOrWhiteSpace(metadataName))
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
535if (!string.IsNullOrWhiteSpace(this.VsSessionGuid))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\Compilers\Shared\BuildProtocol.cs (2)
73Debug.Assert(!string.IsNullOrWhiteSpace(CompilerHash), "A hash value is required to communicate with the server"); 85Debug.Assert(!string.IsNullOrWhiteSpace(compilerHash), "CompilerHash is required to send request to the build server");
Microsoft.Build.Tasks.CodeAnalysis.Sdk (8)
src\Compilers\Core\MSBuildTask\Csc.cs (1)
237if (!string.IsNullOrWhiteSpace(VsSessionGuid))
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (2)
96if (!string.IsNullOrWhiteSpace(itemType) && !string.IsNullOrWhiteSpace(metadataName))
src\Compilers\Core\MSBuildTask\Vbc.cs (1)
535if (!string.IsNullOrWhiteSpace(this.VsSessionGuid))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\Compilers\Shared\BuildProtocol.cs (2)
73Debug.Assert(!string.IsNullOrWhiteSpace(CompilerHash), "A hash value is required to communicate with the server"); 85Debug.Assert(!string.IsNullOrWhiteSpace(compilerHash), "CompilerHash is required to send request to the build server");
Microsoft.Cci.Extensions (2)
Extensions\DocIdExtensions.cs (1)
94if (string.IsNullOrWhiteSpace(id) || id.StartsWith("#") || id.StartsWith("//"))
Filters\BaselineDifferenceFilter.cs (1)
38if (string.IsNullOrWhiteSpace(filteredLine))
Microsoft.CodeAnalysis (20)
CommandLine\AnalyzerConfig.cs (1)
211if (string.IsNullOrWhiteSpace(line))
CommandLine\AnalyzerConfigSet.cs (1)
522bool isGlobalSection = string.IsNullOrWhiteSpace(section);
CommandLine\CommandLineParser.cs (2)
484if (string.IsNullOrWhiteSpace(outputFileName)) 1219if (!string.IsNullOrWhiteSpace(arg)
CommandLine\CommonCompiler.cs (4)
828string.IsNullOrWhiteSpace(Arguments.OutputFileName); 855Debug.Assert(!string.IsNullOrWhiteSpace(Arguments.OutputFileName)); 1149var hasExplicitGeneratedOutDir = !string.IsNullOrWhiteSpace(explicitGeneratedOutDir); 1161Debug.Assert(!string.IsNullOrWhiteSpace(tree.FilePath));
Compilation\SubsystemVersion.cs (1)
85if (!string.IsNullOrWhiteSpace(str))
Diagnostic\DiagnosticDescriptor.cs (1)
164if (string.IsNullOrWhiteSpace(id))
Diagnostic\SuppressionDescriptor.cs (2)
58if (string.IsNullOrWhiteSpace(id)) 63if (string.IsNullOrWhiteSpace(suppressedDiagnosticId))
InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
MetadataReader\PEModule.cs (1)
1314if (string.IsNullOrWhiteSpace(diagnosticId))
SourceGeneration\AdditionalSourcesCollection.cs (1)
38if (string.IsNullOrWhiteSpace(hintName))
Symbols\Attributes\CommonAttributeData.cs (1)
278if (string.IsNullOrWhiteSpace(diagnosticId))
Syntax\GreenNode.cs (1)
520if (string.IsNullOrWhiteSpace(annotationKind))
VersionHelper.cs (2)
57if (string.IsNullOrWhiteSpace(s)) 91if (string.IsNullOrWhiteSpace(elements[i]))
Microsoft.CodeAnalysis.Analyzers (14)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
278if (string.IsNullOrWhiteSpace(lineText))
MetaAnalyzers\ReleaseTrackingHelper.cs (1)
60if (string.IsNullOrWhiteSpace(lineText) || lineText.StartsWith(";", StringComparison.Ordinal))
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
99if (string.IsNullOrWhiteSpace(text))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (4)
236string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message)); 273string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message)); 285string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message)); 355string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message));
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Microsoft.CodeAnalysis.BannedApiAnalyzers (13)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
SymbolIsBannedAnalyzer.cs (2)
69where !string.IsNullOrWhiteSpace(textWithoutComment) 73where !string.IsNullOrWhiteSpace(entry.DeclarationId)
SymbolIsBannedAnalyzerBase.cs (4)
236string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message)); 273string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message)); 285string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message)); 355string.IsNullOrWhiteSpace(entry.Message) ? "" : ": " + entry.Message));
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
45if (string.IsNullOrWhiteSpace(value))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (3)
207var isNamedArgument = !string.IsNullOrWhiteSpace(syntaxFacts.GetNameForArgument(argumentOpt)); 417if (!string.IsNullOrWhiteSpace(argumentName)) 448if (!string.IsNullOrWhiteSpace(argumentName))
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
271var takeTopText = string.IsNullOrWhiteSpace(topText) 276var takeBottomText = string.IsNullOrWhiteSpace(bottomText)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
143if (string.IsNullOrWhiteSpace(IdentifierToken.ValueText))
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
239if (string.IsNullOrWhiteSpace(identifierToken.ValueText))
Microsoft.CodeAnalysis.CSharp (6)
CommandLine\CSharpCommandLineParser.cs (2)
664if (string.IsNullOrWhiteSpace(value)) 1633if (string.IsNullOrWhiteSpace(noQuotes))
Compilation\CSharpCompilation.cs (1)
1944if (nameParts.Any(n => string.IsNullOrWhiteSpace(n)))
Compiler\DocumentationCommentCompiler.cs (1)
992if (string.IsNullOrWhiteSpace(currentLinePattern))
Symbols\Source\SourceAssemblySymbol.cs (1)
124Debug.Assert(!String.IsNullOrWhiteSpace(moduleName));
Syntax\CSharpPragmaWarningStateMap.cs (1)
135if (!string.IsNullOrWhiteSpace(errorId))
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (2)
74Debug.Assert(string.IsNullOrWhiteSpace(this.TreeInfo.GetTextBetween(token1, token2))); 82Debug.Assert(string.IsNullOrWhiteSpace(this.TreeInfo.GetTextBetween(token1, token2)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
93if (string.IsNullOrWhiteSpace(localOrParamName))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
210if (!string.IsNullOrWhiteSpace(endingString))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
6377Diagnostic(ErrorCode.ERR_OverrideNotExpected, "M1").WithArguments($"Derived.M1(delegate*<{(string.IsNullOrWhiteSpace(refKind2) ? "" : refKind2)}string>)").WithLocation(9, 29), 6380Diagnostic(ErrorCode.ERR_CantChangeReturnTypeOnOverride, "M2").WithArguments("Derived.M2()", "Base.M2()", $"delegate*<{(string.IsNullOrWhiteSpace(refKind1) ? "" : refKind1)}string>").WithLocation(10, 42 + refKind2.Length)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (2)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
Microsoft.CodeAnalysis.CSharp.Features (15)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
63if (!string.IsNullOrWhiteSpace(title)) 184var ruleIdText = string.IsNullOrWhiteSpace(title) ? diagnostic.Id : string.Format("{0}:{1}", diagnostic.Id, title);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
216if (token.IsKind(SyntaxKind.XmlTextLiteralToken) && string.IsNullOrWhiteSpace(token.Text))
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (3)
57t => t.Kind() == SyntaxKind.XmlTextLiteralNewLineToken || string.IsNullOrWhiteSpace(t.Text)))) 85if (lastIndex - 1 >= 0 && tokens[lastIndex - 1].Kind() == SyntaxKind.XmlTextLiteralToken && string.IsNullOrWhiteSpace(tokens[lastIndex - 1].Text)) 157if (textToken.Kind() == SyntaxKind.XmlTextLiteralToken && string.IsNullOrWhiteSpace(textToken.Text))
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (1)
122Contract.ThrowIfTrue(string.IsNullOrWhiteSpace(implementationDetails.Message));
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
279if (textTokens.Count != 1 && string.IsNullOrWhiteSpace(firstTextToken.ValueText)) 333if (textTokens.Any(t => !string.IsNullOrWhiteSpace(t.ToString())))
DocumentationComments\DocCommentConverter.cs (1)
89if (!string.IsNullOrWhiteSpace(line))
GenerateType\CSharpGenerateTypeService.cs (1)
717if (string.IsNullOrWhiteSpace(includeUsingsOrImports))
LineSeparators\CSharpLineSeparatorService.cs (1)
337if (string.IsNullOrWhiteSpace(syntaxTree.GetText(cancellationToken).Lines[line + 1].ToString()))
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
154var idTag = !string.IsNullOrWhiteSpace(descriptor.HelpLinkUri)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProviderExtensions.cs (1)
17if (string.IsNullOrWhiteSpace(result))
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
93if (string.IsNullOrWhiteSpace(localOrParamName))
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Copilot\CSharpImplementNotImplementedExceptionFixProviderTests.cs (1)
491Assumes.False(string.IsNullOrWhiteSpace(implementationDetails.Message));
Diagnostics\Suppression\SuppressionTests.cs (2)
1220Assert.False(string.IsNullOrWhiteSpace(lines.First())); 1254Assert.False(string.IsNullOrWhiteSpace(lines[^2]));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSemanticsTests.cs (1)
2143if (!string.IsNullOrWhiteSpace(line))
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2218if (String.IsNullOrWhiteSpace(bindText))
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (2)
74Debug.Assert(string.IsNullOrWhiteSpace(this.TreeInfo.GetTextBetween(token1, token2))); 82Debug.Assert(string.IsNullOrWhiteSpace(this.TreeInfo.GetTextBetween(token1, token2)));
Microsoft.CodeAnalysis.EditorFeatures (13)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (2)
177if (string.IsNullOrWhiteSpace(text.ToString(TextSpan.FromBounds(token.Span.End, line.End)))) 182return string.IsNullOrWhiteSpace(line.GetText()) ? line.End : null;
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (1)
397return string.IsNullOrWhiteSpace(span.GetText());
CommentSelection\CommentUncommentSelectionCommandHandler.cs (1)
110if (!span.IsEmpty && string.IsNullOrWhiteSpace(span.GetText()))
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
267return !string.IsNullOrWhiteSpace(currentLineText) && !currentLineText.Trim().StartsWith("#", StringComparison.OrdinalIgnoreCase);
InlineDiagnostics\InlineDiagnosticsTaggerProvider.cs (2)
46!string.IsNullOrWhiteSpace(diagnostic.Message) && 52Debug.Assert(!string.IsNullOrWhiteSpace(diagnostic.Message));
Interactive\InteractiveCommandHandler.cs (1)
62if (!string.IsNullOrWhiteSpace(submission))
Interactive\ResetInteractive.cs (1)
121if (!string.IsNullOrWhiteSpace(importNamespacesCommand))
NavigateTo\NavigateToItemDisplay.cs (1)
92if (!string.IsNullOrWhiteSpace(summary))
NavigateTo\NavigateToItemProvider.cs (1)
96if (string.IsNullOrWhiteSpace(searchValue))
Shared\Extensions\IProjectionBufferFactoryServiceExtensions.cs (1)
152if (string.IsNullOrWhiteSpace(line.GetText()))
Undo\EditorSourceTextUndoService.cs (1)
29if (sourceText != null && !string.IsNullOrWhiteSpace(description))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
41(!string.IsNullOrWhiteSpace(d.DataLocation.UnmappedFileSpan.Path) ? $" {d.DataLocation.UnmappedFileSpan.Path}({d.DataLocation.UnmappedFileSpan.StartLinePosition.Line}, {d.DataLocation.UnmappedFileSpan.StartLinePosition.Character}, {d.DataLocation.UnmappedFileSpan.EndLinePosition.Line}, {d.DataLocation.UnmappedFileSpan.EndLinePosition.Character}):" : "") + 46(!string.IsNullOrWhiteSpace(d.FilePath) ? $" {d.FilePath}({d.Span.StartLine}, {d.Span.StartColumn}, {d.Span.EndLine}, {d.Span.EndColumn}):" : "") +
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
Microsoft.CodeAnalysis.Extensions.Package (2)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
Microsoft.CodeAnalysis.Features (26)
AddImport\CodeActions\AssemblyReferenceCodeAction.cs (1)
94if (string.IsNullOrWhiteSpace(resolvedPath))
AddImport\SearchScopes\SearchScope.cs (1)
44if (name != null && string.IsNullOrWhiteSpace(name))
ChangeSignature\Parameter.cs (1)
69public override bool HasDefaultValue => !string.IsNullOrWhiteSpace(DefaultValue);
CodeFixes\Service\CodeFixService.cs (2)
899if (string.IsNullOrWhiteSpace(id)) 988if (string.IsNullOrWhiteSpace(id))
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
213if (!string.IsNullOrWhiteSpace(assemblyName))
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
169if (!string.IsNullOrWhiteSpace(texts.displayText))
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
411string.IsNullOrWhiteSpace(currentLine.ToString()) &&
EditAndContinue\EditAndContinueService.cs (1)
81if (string.IsNullOrWhiteSpace(path))
GenerateType\AbstractGenerateTypeService.Editor.cs (4)
166if (!string.IsNullOrWhiteSpace(rootNamespace)) 207if (!string.IsNullOrWhiteSpace(rootNamespace)) 509if (!string.IsNullOrWhiteSpace(defaultNamespace)) 533if (!string.IsNullOrWhiteSpace(rootNamespaceOfTheProjectGeneratedInto))
GenerateType\AbstractGenerateTypeService.State.cs (1)
95if (string.IsNullOrWhiteSpace(Name))
InlineHints\AbstractInlineTypeHintsService.cs (1)
90if (finalParts.All(p => string.IsNullOrWhiteSpace(p.ToString())))
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (1)
148if (string.IsNullOrWhiteSpace(rawText))
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
45if (string.IsNullOrWhiteSpace(value))
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (3)
207var isNamedArgument = !string.IsNullOrWhiteSpace(syntaxFacts.GetNameForArgument(argumentOpt)); 417if (!string.IsNullOrWhiteSpace(argumentName)) 448if (!string.IsNullOrWhiteSpace(argumentName))
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
271var takeTopText = string.IsNullOrWhiteSpace(topText) 276var takeBottomText = string.IsNullOrWhiteSpace(bottomText)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
143if (string.IsNullOrWhiteSpace(IdentifierToken.ValueText))
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
239if (string.IsNullOrWhiteSpace(identifierToken.ValueText))
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (2)
90version: string.IsNullOrWhiteSpace(version) ? null : version, 208string.IsNullOrWhiteSpace(version) ? null : version));
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
265=> $"{(string.IsNullOrWhiteSpace(diagnostic.DataLocation.MappedFileSpan.Path) ? diagnostic.ProjectId.ToString() : diagnostic.DataLocation.MappedFileSpan.ToString())}: {diagnostic.Severity} {diagnostic.Id}: {diagnostic.Message}";
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
34(!string.IsNullOrWhiteSpace(d.DataLocation.UnmappedFileSpan.Path) ? $" {d.DataLocation.UnmappedFileSpan.Path}({d.DataLocation.UnmappedFileSpan.StartLinePosition.Line}, {d.DataLocation.UnmappedFileSpan.StartLinePosition.Character}, {d.DataLocation.UnmappedFileSpan.EndLinePosition.Line}, {d.DataLocation.UnmappedFileSpan.EndLinePosition.Character}):" : "") +
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
Microsoft.CodeAnalysis.LanguageServer (4)
FileBasedPrograms\VirtualProjectXmlProvider.cs (1)
55if (string.IsNullOrWhiteSpace(responseJson))
Testing\TestRunner.TestRunHandler.cs (3)
144if (!string.IsNullOrWhiteSpace(result.ErrorMessage)) 150if (!string.IsNullOrWhiteSpace(result.ErrorStackTrace)) 209if (!string.IsNullOrWhiteSpace(indentedMessage))
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
RoslynRequestExecutionQueue.cs (1)
66if (string.IsNullOrWhiteSpace(locale))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Microsoft.CodeAnalysis.PublicApiAnalyzers (9)
DeclarePublicApiAnalyzer.cs (2)
172if (string.IsNullOrWhiteSpace(text)) 332if (!TryGetEditorConfigOption(analyzerOptions, tree, NamespaceToIgnoreInTrackingEditorConfigOptionName, out var namespacesString) || string.IsNullOrWhiteSpace(namespacesString))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
DeclarePublicApiFix.cs (1)
191if (!string.IsNullOrWhiteSpace(text))
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (1)
187if (!string.IsNullOrWhiteSpace(message))
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Microsoft.CodeAnalysis.Test.Utilities (9)
Diagnostics\SuppressMessageAttributeTests.cs (1)
1376Assert.False(string.IsNullOrWhiteSpace(rootNamespace), string.Format("Invalid root namespace '{0}'", rootNamespace));
InstrumentationChecker.cs (1)
415if (string.IsNullOrWhiteSpace(expected))
Metadata\MetadataSignatureUnitTestHelper.cs (3)
78Assert.False(string.IsNullOrWhiteSpace(fullyQualifiedTypeName), "'fullyQualifiedTypeName' can't be null or empty"); 79Assert.False(string.IsNullOrWhiteSpace(memberName), "'memberName' can't be null or empty"); 86if (!string.IsNullOrWhiteSpace(expectedSignature))
Platform\Custom\MetadataSignatureHelper.cs (2)
145if (!string.IsNullOrWhiteSpace(parameter.Name)) // If this is not the 'return' parameter 709if (string.IsNullOrWhiteSpace(memberName))
SourceGeneration\TestGenerators.cs (2)
96return ImmutableArray.Create((hint, string.IsNullOrWhiteSpace(source) 107return ImmutableArray.Create((hint, string.IsNullOrWhiteSpace(source)
Microsoft.CodeAnalysis.VisualBasic (9)
CommandLine\VisualBasicCommandLineParser.vb (7)
388If String.IsNullOrWhiteSpace(value) = True Then 490If String.IsNullOrWhiteSpace(value) Then 566If String.IsNullOrWhiteSpace(documentationPath) Then 596If (String.IsNullOrWhiteSpace(unquoted)) Then 966If String.IsNullOrWhiteSpace(value) Then 1383If String.IsNullOrWhiteSpace(rootNamespace) OrElse Not OptionsValidator.IsValidNamespaceName(rootNamespace) Then 1595If String.IsNullOrWhiteSpace(noQuotes) Then
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (1)
186Me.Name = If(String.IsNullOrWhiteSpace(name), "<Empty Name>", name)
Symbols\Source\SourceAssemblySymbol.vb (1)
84Debug.Assert(Not String.IsNullOrWhiteSpace(moduleName))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
90Return If(String.IsNullOrWhiteSpace(result), [Shared].Extensions.ITypeSymbolExtensions.DefaultParameterName, result)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (1)
src\Features\VisualBasicTest\Utils.vb (1)
180If Not String.IsNullOrWhiteSpace(line) Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
EndConstructGeneration\AbstractEndConstructResult.vb (1)
22If String.IsNullOrWhiteSpace(line.GetText()) Then
EndConstructGeneration\SpitLinesResult.vb (1)
24Contract.ThrowIfFalse(_lines.Any(Function(line) String.IsNullOrWhiteSpace(line)))
Microsoft.CodeAnalysis.VisualBasic.Features (6)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (2)
65If Not String.IsNullOrWhiteSpace(title) Then 182Dim ruleIdText = If(String.IsNullOrWhiteSpace(title), diagnostic.Id, String.Format("{0}:{1}", diagnostic.Id, title))
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
125Where(Function(i) Not String.IsNullOrWhiteSpace(i))
DocumentationComments\VisualBasicDocumentationCommentSnippetService.vb (1)
211If textTokens.Any(Function(t) Not String.IsNullOrWhiteSpace(t.ToString())) Then
GenerateType\VisualBasicGenerateTypeService.vb (1)
620If String.IsNullOrWhiteSpace(includeUsingsOrImports) Then
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (1)
201If Not String.IsNullOrWhiteSpace(line) Then
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Utils.vb (1)
180If Not String.IsNullOrWhiteSpace(line) Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.vb (1)
713If (String.IsNullOrWhiteSpace(source)) Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
DocumentationComments\DocCommentTests.vb (1)
6958Assert.False(String.IsNullOrWhiteSpace(docComment))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
30If Not String.IsNullOrWhiteSpace(importsClause.Alias.Identifier.ValueText) Then
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
283If String.IsNullOrWhiteSpace(expectedText) OrElse actualText = expectedText Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
90Return If(String.IsNullOrWhiteSpace(result), [Shared].Extensions.ITypeSymbolExtensions.DefaultParameterName, result)
Microsoft.CodeAnalysis.Workspaces (19)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
34if (string.IsNullOrWhiteSpace(query.Name))
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
38if (string.IsNullOrWhiteSpace(name)) 76if (string.IsNullOrWhiteSpace(name))
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (2)
51if (query.Name != null && string.IsNullOrWhiteSpace(query.Name)) 96if (query.Name != null && string.IsNullOrWhiteSpace(query.Name))
PatternMatching\PatternMatcher.cs (1)
110=> _invalidPattern || string.IsNullOrWhiteSpace(candidate);
Shared\Utilities\DocumentationComment.cs (4)
258if (!string.IsNullOrWhiteSpace(name) && !_comment._parameterTexts.ContainsKey(name)) 269if (!string.IsNullOrWhiteSpace(name) && !_comment._typeParameterTexts.ContainsKey(name)) 280if (!string.IsNullOrWhiteSpace(type)) 294if (!string.IsNullOrWhiteSpace(cref))
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
63Contract.ThrowIfTrue(string.IsNullOrWhiteSpace(workingFolderPath));
TaskList\TaskListItemDescriptor.cs (1)
37!string.IsNullOrWhiteSpace(token) &&
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (2)
67if (string.IsNullOrWhiteSpace(solutionKey.FilePath)) 97return string.IsNullOrWhiteSpace(val) ? "None" : val;
Workspace\Solution\ProjectInfo.cs (1)
406=> nameof(ProjectInfo) + " " + Name + (!string.IsNullOrWhiteSpace(FilePath) ? " " + FilePath : "");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
MSBuild\ProjectFile\Extensions.cs (2)
62return !string.IsNullOrWhiteSpace(aliasesText) 71return string.IsNullOrWhiteSpace(referenceOutputAssemblyText) ||
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
963if (node is XText text && !string.IsNullOrWhiteSpace(text.Value))
Microsoft.Data.Analysis.Tests (2)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (2)
106if (string.IsNullOrWhiteSpace(name)) 113if (string.IsNullOrWhiteSpace(name))
Microsoft.DotNet.Arcade.Sdk (9)
src\DownloadFile.cs (3)
67if (string.IsNullOrWhiteSpace(Uri) && (Uris == null || Uris.Count() == 0)) { 74if (!string.IsNullOrWhiteSpace(Uri)) { 84if (!string.IsNullOrWhiteSpace(encodedToken))
src\InstallDotNetCore.cs (5)
134if (!string.IsNullOrWhiteSpace(RuntimeSourceFeed)) 140if (!string.IsNullOrWhiteSpace(RuntimeSourceFeed) && !string.IsNullOrWhiteSpace(RuntimeSourceFeedKey)) 189if (!string.IsNullOrWhiteSpace(architecture)) 193else if (!string.IsNullOrWhiteSpace(Platform) && !string.Equals(Platform, "AnyCpu", StringComparison.OrdinalIgnoreCase))
src\ValidateLicense.cs (1)
51where !string.IsNullOrWhiteSpace(line)
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
246if(string.IsNullOrWhiteSpace(propertyCategory))
Microsoft.DotNet.Build.Tasks.Feed (2)
src\common\AzureStorageUtils.cs (1)
168if (string.IsNullOrWhiteSpace(filePath))
src\ConfigureInputFeed.cs (1)
26if (string.IsNullOrWhiteSpace(RepoRoot))
Microsoft.DotNet.Build.Tasks.Packaging (6)
GeneratePackageReport.cs (1)
297if (String.IsNullOrWhiteSpace(packageItem.TargetPath))
GetApplicableAssetsFromPackages.cs (1)
156if (String.IsNullOrWhiteSpace(packageItem.TargetPath))
PackageItem.cs (2)
21if (!String.IsNullOrWhiteSpace(value)) 71if (!String.IsNullOrWhiteSpace(versionString))
ValidatePackage.cs (2)
450return !String.IsNullOrWhiteSpace(path) && Path.GetExtension(path).Equals(".dll", StringComparison.OrdinalIgnoreCase); 487if (!String.IsNullOrWhiteSpace(runtimeIdList))
Microsoft.DotNet.Build.Tasks.Workloads (16)
CreateVisualStudioWorkload.wix.cs (1)
150string.IsNullOrWhiteSpace(ManifestMsiVersion) ? null : new Version(ManifestMsiVersion), ShortNames, Log, EnableSideBySideManifests);
CreateVisualStudioWorkloadSet.wix.cs (1)
40Version msiVersion = string.IsNullOrWhiteSpace(WorkloadSetMsiVersion) ? null : new Version(WorkloadSetMsiVersion);
Msi\MsiBase.wix.cs (2)
81(!string.IsNullOrWhiteSpace(Metadata.Authors) && (Metadata.Authors.IndexOf("Microsoft", StringComparison.OrdinalIgnoreCase) < 0)) ? 148(string.IsNullOrWhiteSpace(Metadata.Title) ? Metadata.Id : Metadata.Title) + $" ({platform})";
Msi\RelatedProduct.wix.cs (2)
66VersionMin = string.IsNullOrWhiteSpace(versionMin) ? null : versionMin, 67VersionMax = string.IsNullOrWhiteSpace(versionMax) ? null : versionMax,
Swix\MsiSwixProject.wix.cs (4)
76if (string.IsNullOrWhiteSpace(Chip) && string.IsNullOrWhiteSpace(MachineArch)) 123if (!string.IsNullOrWhiteSpace(Chip)) 128if (!string.IsNullOrWhiteSpace(ProductArch))
Swix\SwixComponent.cs (1)
162Version componentVersion = resourceItem != null && !string.IsNullOrWhiteSpace(resourceItem.GetMetadata(Metadata.Version)) ?
Utils.cs (1)
57(string.IsNullOrWhiteSpace(suffix) ? null : $".{suffix}");
WorkloadManifestPackage.wix.cs (1)
147!string.IsNullOrWhiteSpace(packageId) && packageId.IndexOf(ManifestSeparator) > -1 ?
WorkloadPackageBase.cs (2)
305!string.IsNullOrWhiteSpace(packageId) && packageId.IndexOf(separator) > -1 ? 323if (!string.IsNullOrWhiteSpace(package.GetMetadata(Metadata.MsiVersion)))
WorkloadSetPackage.wix.cs (1)
88v += string.IsNullOrWhiteSpace(packageVersion.Release) ? string.Empty : $"-{packageVersion.Release}";
Microsoft.DotNet.Build.Tasks.Workloads.Tests (3)
MsiTests.cs (1)
28return string.IsNullOrWhiteSpace(msiOutputPath) ? msi.Build(MsiOutputPath) : msi.Build(msiOutputPath);
SwixDependencyTests.cs (2)
18Version v1 = string.IsNullOrWhiteSpace(minVersion) ? null : new Version(minVersion); 19Version v2 = string.IsNullOrWhiteSpace(maxVersion) ? null : new Version(maxVersion);
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\MembersMustExistAnalyzer.cs (1)
75if (!string.IsNullOrWhiteSpace(lineStr) && !lineStr.StartsWith(CommentDelimiter))
Analyzers\PinvokeAnalyzer.cs (1)
80if (!string.IsNullOrWhiteSpace(lineStr) && !lineStr.StartsWith("<!--"))
Microsoft.DotNet.GenAPI (8)
GenAPITask.cs (8)
72set => _writerType = string.IsNullOrWhiteSpace(value) ? default : (WriterType) Enum.Parse(typeof(WriterType), value, true); 81set => _syntaxWriterType = string.IsNullOrWhiteSpace(value) ? default : (SyntaxWriterType)Enum.Parse(typeof(SyntaxWriterType), value, true); 90set => _docIdKinds = string.IsNullOrWhiteSpace(value) ? Cci.Writers.DocIdKinds.All : (DocIdKinds)Enum.Parse(typeof(DocIdKinds), value, true); 186if (!string.IsNullOrWhiteSpace(LibPath)) 285if (string.IsNullOrWhiteSpace(outFilePath)) 323if (!string.IsNullOrWhiteSpace(apiList)) 345if (!string.IsNullOrWhiteSpace(excludeApiList)) 350if (!string.IsNullOrWhiteSpace(excludeAttributesList))
Microsoft.DotNet.RemoteExecutor (1)
RemoteInvokeHandle.cs (1)
153if (!string.IsNullOrWhiteSpace(uploadPath))
Microsoft.DotNet.SignTool (6)
src\RealSignTool.cs (2)
97if (!string.IsNullOrWhiteSpace(outputStr)) 103if (!string.IsNullOrWhiteSpace(errorStr))
src\SignToolTask.cs (4)
440if (string.IsNullOrWhiteSpace(certificate)) 481if (string.IsNullOrWhiteSpace(strongName)) 493if (string.IsNullOrWhiteSpace(certificateName)) 550if (string.IsNullOrWhiteSpace(certificateName))
Microsoft.DotNet.XliffTasks (1)
Model\ResxDocument.cs (1)
44if (string.IsNullOrWhiteSpace(value))
Microsoft.DotNet.XUnitExtensions (3)
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (2)
51if (string.IsNullOrWhiteSpace(entry)) continue; 115=> !string.IsNullOrWhiteSpace(additionalMessage) ? $"{message} {additionalMessage}" : message;
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
48if (string.IsNullOrWhiteSpace(conditionMemberName))
Microsoft.DotNet.XUnitV3Extensions (3)
src\Microsoft.DotNet.XUnitExtensions.Shared\DiscovererHelpers.cs (2)
51if (string.IsNullOrWhiteSpace(entry)) continue; 115=> !string.IsNullOrWhiteSpace(additionalMessage) ? $"{message} {additionalMessage}" : message;
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
48if (string.IsNullOrWhiteSpace(conditionMemberName))
Microsoft.Extensions.AI (5)
ChatCompletion\OpenTelemetryChatClient.cs (3)
231string.IsNullOrWhiteSpace(modelId) ? OpenTelemetryConsts.GenAI.Chat : $"{OpenTelemetryConsts.GenAI.Chat} {modelId}", 391if (!string.IsNullOrWhiteSpace(response.ResponseId)) 487Role = message.Role != ChatRole.System && message.Role != ChatRole.User && !string.IsNullOrWhiteSpace(message.Role.Value) ? message.Role.Value : null,
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
157string.IsNullOrWhiteSpace(modelId) ? OpenTelemetryConsts.GenAI.Embeddings : $"{OpenTelemetryConsts.GenAI.Embeddings} {modelId}",
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Abstractions (9)
ChatCompletion\ChatMessage.cs (1)
65set => _authorName = string.IsNullOrWhiteSpace(value) ? null : value;
ChatCompletion\ChatResponseUpdate.cs (1)
68set => _authorName = string.IsNullOrWhiteSpace(value) ? null : value;
Contents\ErrorContent.cs (2)
45(!string.IsNullOrWhiteSpace(ErrorCode) ? $" ({ErrorCode})" : string.Empty) + 46(!string.IsNullOrWhiteSpace(Details) ? $" - \"{Details}\"" : string.Empty);
Functions\AIFunctionFactory.cs (1)
762if (string.IsNullOrWhiteSpace(parameter.Name))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Utilities\AIJsonUtilities.Schema.Create.cs (3)
92if (string.IsNullOrWhiteSpace(parameter.Name)) 135if (!string.IsNullOrWhiteSpace(title)) 140if (!string.IsNullOrWhiteSpace(description))
Microsoft.Extensions.AI.AzureAIInference (4)
AzureAIInferenceChatClient.cs (3)
106if (toolCall is ChatCompletionsToolCall ftc && !string.IsNullOrWhiteSpace(ftc.Name)) 240if (!string.IsNullOrWhiteSpace(fci.Name)) 430if (options?.Instructions is { } instructions && !string.IsNullOrWhiteSpace(instructions))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Evaluation (3)
ChatMessageExtensions.cs (1)
126return string.IsNullOrWhiteSpace(author)
EvaluationMetricExtensions.cs (1)
155if (!string.IsNullOrWhiteSpace(response.ModelId))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Evaluation.Console (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Evaluation.NLP (4)
BLEUEvaluator.cs (1)
54if (string.IsNullOrWhiteSpace(modelResponse.Text))
F1Evaluator.cs (1)
54if (string.IsNullOrWhiteSpace(modelResponse.Text))
GLEUEvaluator.cs (1)
54if (string.IsNullOrWhiteSpace(modelResponse.Text))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Evaluation.Quality (15)
CoherenceEvaluator.cs (1)
80if (string.IsNullOrWhiteSpace(modelResponse.Text))
CompletenessEvaluator.cs (1)
77if (string.IsNullOrWhiteSpace(modelResponse.Text))
EquivalenceEvaluator.cs (1)
76if (string.IsNullOrWhiteSpace(modelResponse.Text))
FluencyEvaluator.cs (1)
74if (string.IsNullOrWhiteSpace(modelResponse.Text))
GroundednessEvaluator.cs (1)
75if (string.IsNullOrWhiteSpace(modelResponse.Text))
IntentResolutionEvaluator.cs (3)
354if (string.IsNullOrWhiteSpace(repairedJson)) 392if (!string.IsNullOrWhiteSpace(rating.AgentPerceivedIntent)) 397if (!string.IsNullOrWhiteSpace(rating.ActualUserIntent))
RelevanceEvaluator.cs (2)
78if (!messages.TryGetUserRequest(out ChatMessage? userRequest) || string.IsNullOrWhiteSpace(userRequest.Text)) 87if (string.IsNullOrWhiteSpace(modelResponse.Text))
RelevanceTruthAndCompletenessEvaluator.cs (3)
96string.IsNullOrWhiteSpace(userRequest.Text)) 105if (string.IsNullOrWhiteSpace(modelResponse.Text)) 299if (string.IsNullOrWhiteSpace(repairedJson))
RetrievalEvaluator.cs (1)
83if (!messages.TryGetUserRequest(out ChatMessage? userRequest) || string.IsNullOrWhiteSpace(userRequest.Text))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Evaluation.Reporting (3)
ReportingConfiguration.cs (2)
272if (!string.IsNullOrWhiteSpace(providerName)) 278if (!string.IsNullOrWhiteSpace(modelId))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Evaluation.Safety (7)
ContentSafetyChatClient.cs (2)
45!string.IsNullOrWhiteSpace(originalProviderName)) 53!string.IsNullOrWhiteSpace(originalModelId))
ContentSafetyEvaluator.cs (1)
123!string.IsNullOrWhiteSpace(contextString))
ContentSafetyService.cs (3)
226if (string.IsNullOrWhiteSpace(discoveryUrl)) 277if (!string.IsNullOrWhiteSpace(supportedCapability) && 330if (string.IsNullOrWhiteSpace(resultUrl))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Integration.Tests (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Ollama (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.OpenAI (8)
OpenAIAssistantChatClient.cs (2)
467string.IsNullOrWhiteSpace(runAndCallIDs[0]) || // run ID 468string.IsNullOrWhiteSpace(runAndCallIDs[1]) || // call ID
OpenAIChatClient.cs (3)
123if (chatOptions?.Instructions is { } instructions && !string.IsNullOrWhiteSpace(instructions)) 401if (!string.IsNullOrWhiteSpace(fci.Name)) 468if (!string.IsNullOrWhiteSpace(toolCall.FunctionName))
OpenAIResponseChatClient.cs (2)
121case ReasoningResponseItem reasoningItem when reasoningItem.GetSummaryText() is string summary && !string.IsNullOrWhiteSpace(summary): 478if (!string.IsNullOrWhiteSpace(text))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\TestCommandResultExtensions.cs (1)
19Assert.True(string.IsNullOrWhiteSpace(standardError), $"Standard error output was unexpectedly non-empty:\n{standardError}");
Microsoft.Extensions.AmbientMetadata.Application (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.AsyncState (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Caching.Hybrid (4)
Internal\DefaultHybridCache.cs (1)
277if (string.IsNullOrWhiteSpace(key))
Internal\DefaultHybridCache.TagInvalidation.cs (1)
26if (string.IsNullOrWhiteSpace(tag))
Internal\TagSet.cs (1)
225if (string.IsNullOrWhiteSpace(tag))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Compliance.Abstractions (2)
Classification\DataClassification.cs (1)
99public override string ToString() => string.IsNullOrWhiteSpace(TaxonomyName) ? Value : $"{TaxonomyName}:{Value}";
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Compliance.Testing (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1186return !string.IsNullOrWhiteSpace(name) ? name : property.Name;
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
39if (string.IsNullOrWhiteSpace(line))
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Linux\Disk\DiskStatsReader.cs (1)
37if (string.IsNullOrWhiteSpace(line))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Diagnostics.Testing (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Hosting.Testing (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Identity.Core (7)
AuthenticatorTokenProvider.cs (1)
25return !string.IsNullOrWhiteSpace(key);
EmailTokenProvider.cs (1)
25return !string.IsNullOrWhiteSpace(email) && await manager.IsEmailConfirmedAsync(user).ConfigureAwait(false);
PasswordValidator.cs (1)
46if (string.IsNullOrWhiteSpace(password) || password.Length < options.RequiredLength)
PhoneNumberTokenProvider.cs (1)
36return !string.IsNullOrWhiteSpace(phoneNumber) && await manager.IsPhoneNumberConfirmedAsync(user).ConfigureAwait(false);
RoleValidator.cs (1)
50if (string.IsNullOrWhiteSpace(roleName))
UserValidator.cs (2)
56if (string.IsNullOrWhiteSpace(userName)) 85if (string.IsNullOrWhiteSpace(email))
Microsoft.Extensions.Logging.AzureAppServices (1)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
54if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Logging.Configuration (1)
LoggerProviderConfigurationFactory.cs (1)
31if (!string.IsNullOrWhiteSpace(alias))
Microsoft.Extensions.Logging.Generators (6)
LoggerMessageGenerator.Emitter.cs (3)
89if (!string.IsNullOrWhiteSpace(lc.Namespace)) 140if (!string.IsNullOrWhiteSpace(lc.Namespace)) 392string eventName = string.IsNullOrWhiteSpace(lm.EventName) ? $"nameof({lm.Name})" : $"\"{lm.EventName}\"";
LoggerMessageGenerator.Parser.cs (3)
236eventId = GetNonRandomizedHashCode(string.IsNullOrWhiteSpace(eventName) ? logMethodSymbol.Name : eventName); 348if (string.IsNullOrWhiteSpace(paramName)) 775if (string.IsNullOrWhiteSpace(templateName)) // braces with no named argument, such as {} and { }
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Options.Contextual (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Resilience (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.SecretManager.Tools.Tests (1)
InitCommandTest.cs (1)
43Assert.False(string.IsNullOrWhiteSpace(idResolver.Resolve(null, null)));
Microsoft.Extensions.ServiceDiscovery (4)
Configuration\ConfigurationServiceEndpointProvider.cs (3)
77if (string.IsNullOrWhiteSpace(_endpointName)) 111if (!string.IsNullOrWhiteSpace(namedSection.Value)) 194if (string.IsNullOrWhiteSpace(value) || !TryParseEndPoint(value, out var endPoint))
Configuration\ConfigurationServiceEndpointProviderOptionsValidator.cs (1)
12if (string.IsNullOrWhiteSpace(options.SectionName))
Microsoft.Extensions.ServiceDiscovery.Dns (3)
DnsSrvServiceEndpointProviderFactory.cs (3)
33if (string.IsNullOrWhiteSpace(_querySuffix)) 60if (!string.IsNullOrWhiteSpace(qualifiedNamespace)) 66if (!string.IsNullOrWhiteSpace(serviceAccountNamespace))
Microsoft.Extensions.Telemetry (2)
Latency\Internal\LatencyContextRegistrySet.cs (1)
54if (string.IsNullOrWhiteSpace(name))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Telemetry.Abstractions (2)
Latency\Registration\LatencyRegistryServiceCollectionExtensions.cs (1)
73if (string.IsNullOrWhiteSpace(name))
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.TimeProvider.Testing (1)
src\Shared\Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
Microsoft.Extensions.Validation.GeneratorTests (1)
ValidationsGeneratorTestBase.cs (1)
48.Where(assembly => !assembly.IsDynamic && !string.IsNullOrWhiteSpace(assembly.Location))
Microsoft.Gen.ComplianceReports (2)
ComplianceReportsGenerator.cs (1)
89if (string.IsNullOrWhiteSpace(_directory))
src\Generators\Shared\GeneratorUtilities.cs (1)
149=> options.TryGetValue(name, out value) && !string.IsNullOrWhiteSpace(value);
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
149=> options.TryGetValue(name, out value) && !string.IsNullOrWhiteSpace(value);
Microsoft.Gen.Logging (8)
Emission\Emitter.cs (2)
34if (!string.IsNullOrWhiteSpace(lt.Namespace)) 87if (!string.IsNullOrWhiteSpace(lt.Namespace))
Emission\Emitter.Method.cs (2)
23string eventName = string.IsNullOrWhiteSpace(lm.EventName) ? $"nameof({lm.Name})" : $"\"{lm.EventName}\""; 94var eventNameToCalcId = string.IsNullOrWhiteSpace(lm.EventName) ? lm.Name : lm.EventName!;
Parsing\Parser.cs (2)
252string.IsNullOrWhiteSpace(lm.Message) && 530if (string.IsNullOrWhiteSpace(paramName))
Parsing\TemplateProcessor.cs (1)
60if (string.IsNullOrWhiteSpace(templateName))
src\Generators\Shared\GeneratorUtilities.cs (1)
149=> options.TryGetValue(name, out value) && !string.IsNullOrWhiteSpace(value);
Microsoft.Gen.MetadataExtractor (7)
MetadataReportsGenerator.cs (1)
78if (string.IsNullOrWhiteSpace(path))
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
89if (string.IsNullOrWhiteSpace(_directory))
src\Generators\Microsoft.Gen.Metrics\Parser.cs (3)
265if (!string.IsNullOrWhiteSpace(ctorArg0)) 446MetricName = string.IsNullOrWhiteSpace(strongTypeAttrParams.MetricNameFromAttribute) ? metricNameFromMethod : strongTypeAttrParams.MetricNameFromAttribute, 524if (string.IsNullOrWhiteSpace(paramName))
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
53if (string.IsNullOrWhiteSpace(path))
src\Generators\Shared\GeneratorUtilities.cs (1)
149=> options.TryGetValue(name, out value) && !string.IsNullOrWhiteSpace(value);
Microsoft.Gen.Metrics (11)
Emitter.cs (3)
52if (!string.IsNullOrWhiteSpace(nspace)) 74if (!string.IsNullOrWhiteSpace(nspace)) 249var nsprefix = string.IsNullOrWhiteSpace(nspace)
MetricFactoryEmitter.cs (4)
62if (!string.IsNullOrWhiteSpace(nspace)) 90if (!string.IsNullOrWhiteSpace(nspace)) 100var nsprefix = string.IsNullOrWhiteSpace(nspace) 139var nsprefix = string.IsNullOrWhiteSpace(nspace)
Parser.cs (3)
265if (!string.IsNullOrWhiteSpace(ctorArg0)) 446MetricName = string.IsNullOrWhiteSpace(strongTypeAttrParams.MetricNameFromAttribute) ? metricNameFromMethod : strongTypeAttrParams.MetricNameFromAttribute, 524if (string.IsNullOrWhiteSpace(paramName))
src\Generators\Shared\GeneratorUtilities.cs (1)
149=> options.TryGetValue(name, out value) && !string.IsNullOrWhiteSpace(value);
Microsoft.Gen.MetricsReports (5)
MetricsReportsGenerator.cs (1)
53if (string.IsNullOrWhiteSpace(path))
src\Generators\Microsoft.Gen.Metrics\Parser.cs (3)
265if (!string.IsNullOrWhiteSpace(ctorArg0)) 446MetricName = string.IsNullOrWhiteSpace(strongTypeAttrParams.MetricNameFromAttribute) ? metricNameFromMethod : strongTypeAttrParams.MetricNameFromAttribute, 524if (string.IsNullOrWhiteSpace(paramName))
src\Generators\Shared\GeneratorUtilities.cs (1)
149=> options.TryGetValue(name, out value) && !string.IsNullOrWhiteSpace(value);
Microsoft.Maui (9)
Converters\EasingTypeConverter.cs (1)
26 if (string.IsNullOrWhiteSpace(strValue))
Fonts\FontFile.cs (1)
158 if (!string.IsNullOrWhiteSpace(currentString))
Fonts\FontRegistrar.cs (2)
37 if (!string.IsNullOrWhiteSpace(alias)) 46 if (!string.IsNullOrWhiteSpace(alias))
Handlers\HybridWebView\FileExtensionContentTypeProvider.cs (1)
456 if (string.IsNullOrWhiteSpace(path))
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
144 if (string.IsNullOrWhiteSpace(result))
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
27 if (!string.IsNullOrWhiteSpace(name))
Hosting\Fonts\FontCollectionExtensions.cs (2)
21 if (string.IsNullOrWhiteSpace(filename)) 42 if (string.IsNullOrWhiteSpace(filename))
Microsoft.Maui.Controls (17)
BindablePropertyConverter.cs (2)
26 if (string.IsNullOrWhiteSpace(value)) 80 if (string.IsNullOrWhiteSpace(strValue))
Binding.cs (2)
33 if (string.IsNullOrWhiteSpace(path)) 77 _expression = new BindingExpression(this, !string.IsNullOrWhiteSpace(value) ? value : SelfPath);
Brush\BrushTypeConverter.cs (1)
108 if (string.IsNullOrWhiteSpace(css))
DragAndDrop\DragGestureRecognizer.cs (1)
133 if (String.IsNullOrWhiteSpace(args.Data.Text))
DragAndDrop\DropGestureRecognizer.cs (1)
128 if (String.IsNullOrWhiteSpace(text))
RadioButton\RadioButton.cs (2)
681 if (!string.IsNullOrWhiteSpace(contentAsString) && string.IsNullOrWhiteSpace(semantics?.Description))
Routing.cs (2)
207 if (!String.IsNullOrWhiteSpace(route)) 240 if (string.IsNullOrWhiteSpace(route))
Shapes\PointCollectionConverter.cs (1)
35 if (string.IsNullOrWhiteSpace(point))
Shell\ShellUriHandler.cs (2)
548 if (!String.IsNullOrWhiteSpace(collapsedMatch)) 585 if (!String.IsNullOrWhiteSpace(segmentMatch))
TemplateBinding.cs (2)
30 if (string.IsNullOrWhiteSpace(path)) 144 return new BindingExpression(this, !string.IsNullOrWhiteSpace(path) ? path : SelfPath);
UriTypeConverter.cs (1)
21 if (string.IsNullOrWhiteSpace(strValue))
Microsoft.Maui.Controls.Build.Tasks (6)
CompiledConverters\ColumnDefinitionCollectionTypeConverter.cs (1)
16 if (!string.IsNullOrWhiteSpace(value))
CompiledConverters\EasingTypeConverter.cs (1)
14 if (string.IsNullOrWhiteSpace(value))
CompiledConverters\GridLengthTypeConverter.cs (1)
17 if (!string.IsNullOrWhiteSpace(value))
CompiledConverters\RowDefinitionCollectionTypeConverter.cs (1)
16 if (!string.IsNullOrWhiteSpace(value))
CompiledConverters\UriTypeConverter.cs (1)
16 if (string.IsNullOrWhiteSpace(value))
SetPropertiesVisitor.cs (1)
676 if (string.IsNullOrWhiteSpace(path))
Microsoft.Maui.Controls.DesignTools (1)
ColorDesignTypeConverter.cs (1)
195 if (string.IsNullOrWhiteSpace(str))
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (1)
696 if (string.IsNullOrWhiteSpace(plat))
src\Controls\src\Xaml\TypeArgumentsParser.cs (2)
13 while (!string.IsNullOrWhiteSpace(expression)) 25 if (type is null || !string.IsNullOrWhiteSpace(remaining))
Microsoft.Maui.Controls.Xaml (2)
TypeArgumentsParser.cs (2)
13 while (!string.IsNullOrWhiteSpace(expression)) 25 if (type is null || !string.IsNullOrWhiteSpace(remaining))
Microsoft.Maui.Essentials (18)
Email\Email.shared.cs (2)
77 if (!string.IsNullOrWhiteSpace(message.Subject)) 80 if (!string.IsNullOrWhiteSpace(message.Body))
FileSystem\FileSystem.shared.cs (8)
162 if (string.IsNullOrWhiteSpace(extension)) 193 if (string.IsNullOrWhiteSpace(fullPath)) 195 if (string.IsNullOrWhiteSpace(Path.GetFileName(fullPath))) 237 if (!string.IsNullOrWhiteSpace(contentType)) 242 if (!string.IsNullOrWhiteSpace(ext)) 245 if (!string.IsNullOrWhiteSpace(content)) 266 if (!string.IsNullOrWhiteSpace(fileName)) 270 if (!string.IsNullOrWhiteSpace(FullPath))
PhoneDialer\PhoneDialer.shared.cs (1)
69 if (string.IsNullOrWhiteSpace(number))
SecureStorage\SecureStorage.shared.cs (2)
212 if (string.IsNullOrWhiteSpace(key)) 220 if (string.IsNullOrWhiteSpace(key))
Sms\Sms.shared.cs (2)
99 if (!string.IsNullOrWhiteSpace(recipient)) 114 Recipients.AddRange(recipients.Where(x => !string.IsNullOrWhiteSpace(x)));
Types\Contact.shared.cs (3)
65 get => !string.IsNullOrWhiteSpace(displayName) ? displayName : BuildDisplayName(); 112 if (string.IsNullOrWhiteSpace(GivenName)) 114 if (string.IsNullOrWhiteSpace(FamilyName))
Microsoft.Maui.Resizetizer (6)
ResizeImageInfo.cs (4)
20 string.IsNullOrWhiteSpace(Alias) 21 ? string.IsNullOrWhiteSpace(Filename) 27 string.IsNullOrWhiteSpace(Alias) || !Path.HasExtension(Alias) 28 ? string.IsNullOrWhiteSpace(Filename) || !Path.HasExtension(Filename)
SkiaSharpAppIconTools.cs (2)
18 var hasBackground = !string.IsNullOrWhiteSpace(info.Filename) && File.Exists(info.Filename); 19 var hasForeground = !string.IsNullOrWhiteSpace(info.ForegroundFilename) && File.Exists(info.ForegroundFilename);
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
376return (hasHeader && !string.IsNullOrWhiteSpace(header)) ? header : string.Format("col{0}", column.ColumnId);
Microsoft.ML.Core (44)
CommandLine\ArgumentAttribute.cs (2)
86set { _name = string.IsNullOrWhiteSpace(value) ? null : value; } 93if (string.IsNullOrWhiteSpace(_shortName))
CommandLine\CmdParser.cs (8)
1025if (string.IsNullOrWhiteSpace(text)) 1156if (string.IsNullOrWhiteSpace(str)) 1200if (string.IsNullOrWhiteSpace(name) || !_info.Map.TryGetValue(name.ToLowerInvariant(), out argument)) 1423Contracts.Assert(!string.IsNullOrWhiteSpace(name)); 1424Contracts.Check(nicks == null || nicks.All(nick => !string.IsNullOrWhiteSpace(nick))); 1436if (string.IsNullOrWhiteSpace(HelpText)) 1933if (!string.IsNullOrWhiteSpace(settings)) 2117if (!string.IsNullOrWhiteSpace(settings))
ComponentModel\ComponentCatalog.cs (5)
155public bool IsHidden => string.IsNullOrWhiteSpace(UserName); 228if (!string.IsNullOrWhiteSpace(attr.DocName)) 414if (string.IsNullOrWhiteSpace(attribute.FriendlyName)) 967if (string.IsNullOrWhiteSpace(name)) 1054if (string.IsNullOrWhiteSpace(settings))
ComponentModel\LoadableClassAttribute.cs (1)
171if (loadNames.Any(s => string.IsNullOrWhiteSpace(s)))
Data\ModelLoading.cs (2)
252if (!string.IsNullOrWhiteSpace(sig) && 266if (!string.IsNullOrWhiteSpace(sigAlt) &&
Data\Repository.cs (1)
239_ectx.CheckParam(!string.IsNullOrWhiteSpace(name), nameof(name));
Data\RoleMappedSchema.cs (5)
358if (!string.IsNullOrWhiteSpace(label)) 360if (!string.IsNullOrWhiteSpace(feature)) 362if (!string.IsNullOrWhiteSpace(group)) 364if (!string.IsNullOrWhiteSpace(weight)) 366if (!string.IsNullOrWhiteSpace(name))
EntryPoints\ModuleArgs.cs (1)
55if (string.IsNullOrWhiteSpace(value))
Environment\HostEnvironmentBase.cs (5)
585if (string.IsNullOrWhiteSpace(name)) 603if (string.IsNullOrWhiteSpace(name)) 618if (string.IsNullOrWhiteSpace(name)) 639if (string.IsNullOrWhiteSpace(name)) 657if (string.IsNullOrWhiteSpace(name))
Utilities\Contracts.cs (8)
613if (string.IsNullOrWhiteSpace(s)) 619if (string.IsNullOrWhiteSpace(s)) 639if (string.IsNullOrWhiteSpace(s)) 645if (string.IsNullOrWhiteSpace(s)) 917if (string.IsNullOrWhiteSpace(s)) 923if (string.IsNullOrWhiteSpace(s)) 943if (string.IsNullOrWhiteSpace(s)) 949if (string.IsNullOrWhiteSpace(s))
Utilities\LineParser.cs (1)
15if (string.IsNullOrWhiteSpace(line))
Utilities\PathUtils.cs (3)
71if (!string.IsNullOrWhiteSpace(customSearchDir) 79if (!string.IsNullOrWhiteSpace(envDir) 112if (!string.IsNullOrWhiteSpace(folderPrefix))
Utilities\ResourceManagerUtils.cs (1)
193if (!string.IsNullOrWhiteSpace(envTimeout) && int.TryParse(envTimeout, out var res))
Utilities\Stream.cs (1)
839if (string.IsNullOrWhiteSpace(file))
Microsoft.ML.Core.Tests (3)
UnitTests\TestEntryPoints.cs (3)
2562loader = string.IsNullOrWhiteSpace(loader) ? "" : string.Format(",'CustomSchema': '{0}'", loader); 3317string.IsNullOrWhiteSpace(loader) ? "" : string.Format(",'CustomSchema': 'sparse+ {0}'", loader), 3318string.IsNullOrWhiteSpace(trainerArgs) ? "" : trainerArgs,
Microsoft.ML.CpuMath (8)
src\Microsoft.ML.Core\Utilities\Contracts.cs (8)
613if (string.IsNullOrWhiteSpace(s)) 619if (string.IsNullOrWhiteSpace(s)) 639if (string.IsNullOrWhiteSpace(s)) 645if (string.IsNullOrWhiteSpace(s)) 917if (string.IsNullOrWhiteSpace(s)) 923if (string.IsNullOrWhiteSpace(s)) 943if (string.IsNullOrWhiteSpace(s)) 949if (string.IsNullOrWhiteSpace(s))
Microsoft.ML.Data (66)
Commands\CrossValidationCommand.cs (3)
226if (!string.IsNullOrWhiteSpace(ImplOptions.OutputDataFile)) 293if (!string.IsNullOrWhiteSpace(ImplOptions.StratificationColumn)) 577if (string.IsNullOrWhiteSpace(outputModelFile))
Commands\DataCommand.cs (6)
218if (!string.IsNullOrWhiteSpace(ImplOptions.OutputModelFile)) 279Host.CheckUserArg(!string.IsNullOrWhiteSpace(ImplOptions.InputModelFile), nameof(ImplOptions.InputModelFile)); 335if (string.IsNullOrWhiteSpace(dataFile)) 339if (!string.IsNullOrWhiteSpace(ImplOptions.InputModelFile) && ImplOptions.Loader == null) 374Host.CheckUserArg(!string.IsNullOrWhiteSpace(ImplOptions.InputModelFile), nameof(ImplOptions.InputModelFile)); 383Host.Assert(!string.IsNullOrWhiteSpace(ImplOptions.InputModelFile));
Commands\EvaluateCommand.cs (1)
253if (!string.IsNullOrWhiteSpace(ImplOptions.OutputDataFile))
Commands\SaveDataCommand.cs (1)
132if (!string.IsNullOrWhiteSpace(ImplOptions.Columns))
Commands\SavePredictorCommand.cs (2)
63_host.CheckUserArg(!string.IsNullOrWhiteSpace(args.InputModelFile), nameof(args.InputModelFile), "Must specify input model file"); 101if (string.IsNullOrWhiteSpace(path))
Commands\ScoreCommand.cs (3)
85Host.CheckUserArg(!string.IsNullOrWhiteSpace(ImplOptions.InputModelFile), nameof(ImplOptions.InputModelFile), "The input model file is required."); 86Host.CheckUserArg(!string.IsNullOrWhiteSpace(ImplOptions.OutputDataFile), nameof(ImplOptions.OutputDataFile), "The output data file is required."); 132if (!string.IsNullOrWhiteSpace(ImplOptions.OutputModelFile))
Commands\TestCommand.cs (1)
132if (!string.IsNullOrWhiteSpace(ImplOptions.OutputDataFile))
Commands\TrainCommand.cs (7)
167if (!string.IsNullOrWhiteSpace(ImplOptions.ValidationFile)) 187if (!string.IsNullOrWhiteSpace(ImplOptions.TestFile)) 216if (string.IsNullOrWhiteSpace(dataFile)) 234if (string.IsNullOrWhiteSpace(userName)) 371if (!string.IsNullOrWhiteSpace(command)) 521ectx.CheckUserArg(!string.IsNullOrWhiteSpace(kindName.Value), nameof(TrainCommand.Arguments.CustomColumns), "Names for columns with custom kind must not be empty"); 522if (string.IsNullOrWhiteSpace(kindName.Key))
Commands\TrainTestCommand.cs (4)
91if (string.IsNullOrWhiteSpace(args.TestFile)) 153if (!string.IsNullOrWhiteSpace(ImplOptions.ValidationFile)) 173if (!string.IsNullOrWhiteSpace(ImplOptions.TestFile)) 222if (!string.IsNullOrWhiteSpace(ImplOptions.OutputDataFile))
Data\DataViewUtils.cs (3)
32if (!string.IsNullOrWhiteSpace(tag) && !schema.TryGetColumnIndex(tag, out col)) 37string name = string.IsNullOrWhiteSpace(tag) ? 62string name = string.IsNullOrWhiteSpace(tag) ?
DataLoadSave\Text\TextLoader.cs (6)
159if (string.IsNullOrWhiteSpace(Name = rgstr[istr++])) 194if (string.IsNullOrWhiteSpace(Name)) 1161if (!string.IsNullOrWhiteSpace(options.HeaderFile)) 1333if (string.IsNullOrWhiteSpace(str)) 1341if (!string.IsNullOrWhiteSpace(tmp)) 1358if (loader == null || string.IsNullOrWhiteSpace(loader.Name) || (loader.Name != LoaderSignature && loader.Name != "Text"))
Dirty\PredictionUtils.cs (2)
30if (string.IsNullOrWhiteSpace(settings)) 39errorMsg = err + (!string.IsNullOrWhiteSpace(name) ? "\nUSAGE FOR '" + name + "':\n" : "\nUSAGE:\n") + helpText;
Evaluators\EvaluatorUtils.cs (4)
118if (!string.IsNullOrWhiteSpace(name)) 150if (!string.IsNullOrWhiteSpace(defName) && schema.GetColumnOrNull(defName) is DataViewSchema.Column defCol) 173if (!string.IsNullOrWhiteSpace(name)) 1667string.IsNullOrWhiteSpace(prefix) ? "N0" : "F1");
Model\Pfa\SavePfaCommand.cs (4)
70_outputModelPath = string.IsNullOrWhiteSpace(args.Pfa) ? null : args.Pfa; 73else if (!string.IsNullOrWhiteSpace(args.Name)) 88if (string.IsNullOrWhiteSpace(toDrop)) 212if (!string.IsNullOrWhiteSpace(ImplOptions.OutputModelFile))
Prediction\Calibrator.cs (1)
946ch.CheckParam(!caliTrainer.NeedsTraining || !string.IsNullOrWhiteSpace(labelColumn), nameof(labelColumn),
Prediction\CalibratorCatalog.cs (1)
68if (!string.IsNullOrWhiteSpace(labelColumn))
Transforms\ColumnBindingsBase.cs (6)
98if (string.IsNullOrWhiteSpace(Name)) 100else if (string.IsNullOrWhiteSpace(Source)) 102return !string.IsNullOrWhiteSpace(Name); 201if (string.IsNullOrWhiteSpace(Name) || Utils.Size(Source) == 0) 226if (string.IsNullOrWhiteSpace(Name) || Utils.Size(Source) == 0) 323if (string.IsNullOrWhiteSpace(name))
Transforms\MetadataDispatcher.cs (1)
364Contracts.CheckParam(!kindsSrc.Any(k => string.IsNullOrWhiteSpace(k)), nameof(kindsSrc));
Transforms\NormalizeColumn.cs (1)
1130host.CheckUserArg(!string.IsNullOrWhiteSpace(args.LabelColumn), nameof(args.LabelColumn), "Must specify the label column name");
Transforms\TrainAndScoreTransformer.cs (1)
81env.CheckUserArg(!string.IsNullOrWhiteSpace(args.InputModelFile), nameof(args.InputModelFile), "The input model file is required.");
Transforms\ValueMapping.cs (1)
606env.CheckUserArg(!string.IsNullOrWhiteSpace(options.DataFile), nameof(options.DataFile));
Transforms\ValueToKeyMappingTransformer.cs (5)
278(!string.IsNullOrWhiteSpace(options.DataFile) || options.Loader != null || 279!string.IsNullOrWhiteSpace(options.TermsColumn))) 399if (string.IsNullOrWhiteSpace(file)) 418ch.CheckUserArg(!string.IsNullOrWhiteSpace(src), nameof(termsColumn), 430if (!string.IsNullOrWhiteSpace(src))
Utilities\ModelFileUtils.cs (2)
314h.CheckDecode(!string.IsNullOrWhiteSpace(roleStr), "Role name must not be empty"); 315h.CheckDecode(!string.IsNullOrWhiteSpace(colStr), "Column name must not be empty");
Microsoft.ML.EntryPoints (8)
JsonUtils\ExecuteGraphCommand.cs (4)
103_host.CheckUserArg(!string.IsNullOrWhiteSpace(varName), nameof(varName), "Specify a graph variable name."); 104_host.CheckUserArg(!string.IsNullOrWhiteSpace(path), nameof(path), "Specify a valid file path."); 136_host.CheckUserArg(!string.IsNullOrWhiteSpace(varName), nameof(varName), "Specify a graph variable name."); 137_host.CheckUserArg(!string.IsNullOrWhiteSpace(path), nameof(path), "Specify a valid file path.");
PermutationFeatureImportance.cs (4)
111if (string.IsNullOrWhiteSpace(slotNames[i])) 168if (string.IsNullOrWhiteSpace(slotNames[i])) 227if (string.IsNullOrWhiteSpace(slotNames[i])) 281if (string.IsNullOrWhiteSpace(slotNames[i]))
Microsoft.ML.FastTree (3)
GamModelParameters.cs (1)
749if (string.IsNullOrWhiteSpace(outFile))
TreeEnsembleFeaturizer.cs (2)
619host.CheckUserArg(!string.IsNullOrWhiteSpace(args.TrainedModelFile) || args.Trainer != null, nameof(args.TrainedModelFile), 633if (!string.IsNullOrWhiteSpace(args.TrainedModelFile))
Microsoft.ML.ImageAnalytics (2)
ImageLoader.cs (2)
247if (!string.IsNullOrWhiteSpace(_parent.ImageFolder)) 278if (!string.IsNullOrWhiteSpace(_parent.ImageFolder))
Microsoft.ML.Maml (5)
HelpCommand.cs (5)
81if (string.IsNullOrWhiteSpace(_component)) 85if (string.IsNullOrWhiteSpace(_kind)) 345if (string.IsNullOrWhiteSpace(summary)) 450if (!string.IsNullOrWhiteSpace(_xmlFilename)) 465where !string.IsNullOrWhiteSpace(c.Info.UserName)
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
101_outputJsonModelPath = string.IsNullOrWhiteSpace(args.Json) ? null : args.Json;
Microsoft.ML.PerformanceTests (1)
BenchmarkBase.cs (1)
34if (string.IsNullOrWhiteSpace(name))
Microsoft.ML.Predictor.Tests (1)
TestConcurrency.cs (1)
38if (!string.IsNullOrWhiteSpace(testFile))
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
726if (!string.IsNullOrWhiteSpace(rawLines[j]))
Microsoft.ML.StandardTrainers (4)
Standard\LinearPredictorUtils.cs (3)
184if (!string.IsNullOrWhiteSpace(userName)) 188if (!string.IsNullOrWhiteSpace(loadName)) 191if (!string.IsNullOrWhiteSpace(settings))
Standard\Online\OnlineLinear.cs (1)
144else if (!string.IsNullOrWhiteSpace(parent.OnlineLinearTrainerOptions.InitialWeights))
Microsoft.ML.Sweeper (1)
ConfigRunner.cs (1)
90if (!string.IsNullOrWhiteSpace(exe))
Microsoft.ML.TestFramework (14)
BaseTestBaseline.cs (1)
272if (string.IsNullOrWhiteSpace(name))
BaseTestClass.cs (2)
106if (string.IsNullOrWhiteSpace(name)) 113if (string.IsNullOrWhiteSpace(name))
BaseTestPredictorsMaml.cs (6)
117if (!string.IsNullOrWhiteSpace(loaderArgs)) 155string runcmd = string.Join(" ", args.Where(a => !string.IsNullOrWhiteSpace(a))); 242if (string.IsNullOrWhiteSpace(args[i])) 256runcmd = string.Join(" ", args.Where(a => !string.IsNullOrWhiteSpace(a))); 450if (val != null && !string.IsNullOrWhiteSpace(val.Path)) 460if (!string.IsNullOrWhiteSpace(sval) || ((sval == null) != (val == null)))
SubComponent.cs (1)
168if (string.IsNullOrWhiteSpace(str))
TestCommandBase.cs (4)
385if (!string.IsNullOrWhiteSpace(dataPath)) 387if (!string.IsNullOrWhiteSpace(loaderArgs)) 398if (!string.IsNullOrWhiteSpace(extraArgs)) 525if (string.IsNullOrWhiteSpace(dataPath))
Microsoft.ML.TestFrameworkCommon (7)
TestCommon.cs (7)
16if (string.IsNullOrWhiteSpace(name)) 22if (string.IsNullOrWhiteSpace(subDir)) 25if (string.IsNullOrWhiteSpace(name)) 32if (string.IsNullOrWhiteSpace(name)) 38if (string.IsNullOrWhiteSpace(name)) 46if (!string.IsNullOrWhiteSpace(path)) 53if (!string.IsNullOrWhiteSpace(path))
Microsoft.ML.TimeSeries (1)
MovingAverageTransform.cs (1)
75_weights = string.IsNullOrWhiteSpace(args.Weights) ? null : args.Weights.Split(',').Select(c => Convert.ToSingle(c)).ToArray();
Microsoft.ML.Transforms (22)
Dracula\CountTargetEncodingTransformer.cs (1)
171_host.CheckUserArg(!string.IsNullOrWhiteSpace(options.LabelColumn), nameof(options.LabelColumn), "Must specify the label column name");
ExpressionTransformer.cs (2)
79_host.Check(columns.All(col => !string.IsNullOrWhiteSpace(col.Expression))); 80_host.Check(columns.All(col => !string.IsNullOrWhiteSpace(col.Name)));
HashJoiningTransform.cs (1)
336if (!string.IsNullOrWhiteSpace(customSlotMap))
LoadTransform.cs (2)
81if (string.IsNullOrWhiteSpace(curList)) 86if (!string.IsNullOrWhiteSpace(tag))
SvmLight\SvmLightSaver.cs (4)
106var groupCol = !string.IsNullOrWhiteSpace(_groupCol) ? data.Schema.GetColumnOrNull(_groupCol) : default; 107if (!string.IsNullOrWhiteSpace(_groupCol) && !groupCol.HasValue) 110var weightCol = !string.IsNullOrWhiteSpace(_weightCol) ? data.Schema.GetColumnOrNull(_weightCol) : default; 111if (!string.IsNullOrWhiteSpace(_weightCol) && !weightCol.HasValue)
Text\LdaSingleBox.cs (1)
154if (string.IsNullOrWhiteSpace(trainOutput))
Text\NgramHashingTransformer.cs (2)
954Contracts.CheckParam(!inputColumnNames.Any(r => string.IsNullOrWhiteSpace(r)), nameof(inputColumnNames), 1022Contracts.CheckParam(!inputColumnNames.Any(r => string.IsNullOrWhiteSpace(r)), nameof(inputColumnNames),
Text\SentimentAnalyzingTransform.cs (1)
60if (string.IsNullOrWhiteSpace(args.Name))
Text\StopWordsRemovingTransformer.cs (3)
92if (!string.IsNullOrWhiteSpace(LanguagesColumn) || Language.HasValue) 333if (!string.IsNullOrWhiteSpace(stopWord)) 796ch.CheckUserArg(!string.IsNullOrWhiteSpace(stopwordsCol), nameof(Options.StopwordsColumn),
Text\TextFeaturizingEstimator.cs (1)
420_host.CheckParam(!source.Any(string.IsNullOrWhiteSpace), nameof(source));
Text\WordBagTransform.cs (2)
686env.CheckUserArg(!string.IsNullOrWhiteSpace(col.Name), nameof(col.Name)); 711env.CheckUserArg(!string.IsNullOrWhiteSpace(col.Name), nameof(col.Name));
Text\WordEmbeddingsExtractor.cs (2)
240bool customLookup = !string.IsNullOrWhiteSpace(options.CustomLookupTable); 952bool customLookup = !string.IsNullOrWhiteSpace(_customLookupTable);
Microsoft.VisualBasic.Forms (7)
Microsoft\VisualBasic\Devices\Network.DownloadFile.vb (1)
160If String.IsNullOrWhiteSpace(address) Then
Microsoft\VisualBasic\Devices\Network.UploadFile.vb (1)
138If String.IsNullOrWhiteSpace(address) Then
Microsoft\VisualBasic\Devices\NetworkUtilities.vb (2)
49Return If(String.IsNullOrWhiteSpace(userName) OrElse String.IsNullOrWhiteSpace(password),
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
594Debug.Assert(Not String.IsNullOrWhiteSpace(Path.GetDirectoryName(LogFileName)), "The log directory shouldn't be empty.")
Microsoft\VisualBasic\MyServices\Internal\WebClientCopy.vb (2)
158Debug.Assert((Not String.IsNullOrWhiteSpace(destinationFileName)) _ 187Debug.Assert((Not String.IsNullOrWhiteSpace(sourceFileName)) _
Microsoft.VisualBasic.Forms.Tests (1)
System\Windows\TestUtilities\VbFileCleanupTestBase.vb (1)
62If String.IsNullOrWhiteSpace(directoryPath) Then
Microsoft.VisualStudio.LanguageServices (18)
ChangeSignature\AddParameterDialogViewModel.cs (3)
145if (IsCallsiteRegularValue && string.IsNullOrWhiteSpace(CallSiteValue)) 151if (IsOptional && string.IsNullOrWhiteSpace(DefaultValue)) 182if (string.IsNullOrWhiteSpace(typeName))
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (1)
61if (!string.IsNullOrWhiteSpace(Default))
GenerateType\GenerateTypeDialogViewModel.cs (2)
234if (string.IsNullOrWhiteSpace(trimmedFileName) || trimmedFileName.EndsWith(@"\", StringComparison.Ordinal)) 635if (!string.IsNullOrWhiteSpace(currentFileName) && !currentFileName.EndsWith("\\", StringComparison.Ordinal))
LanguageService\AbstractLanguageService`2.IVsLanguageContextProvider.cs (1)
43if (string.IsNullOrWhiteSpace(helpTerm))
NavigateTo\RoslynSearchItemsSource.cs (1)
72if (string.IsNullOrWhiteSpace(searchValue))
NavigationBar\NavigationBarClient.cs (1)
139if (!string.IsNullOrWhiteSpace(keybindingString))
PreviewPane\PreviewPane.xaml.cs (3)
67if ((severityIcon != null) && !string.IsNullOrWhiteSpace(id) && !string.IsNullOrWhiteSpace(title)) 88if (!string.IsNullOrWhiteSpace(description))
PreviewPane\PreviewPaneService.cs (1)
75if (string.IsNullOrWhiteSpace(title))
ProjectSystem\RuleSets\RuleSetEventHandler.cs (2)
224if (!string.IsNullOrWhiteSpace(projectFullName)) 245if (!string.IsNullOrWhiteSpace(codeAnalysisRuleSetFileName))
Snippets\SnippetFunctions\SnippetFunctionClassName.cs (1)
45if (!string.IsNullOrWhiteSpace(value))
Telemetry\Shared\TelemetryLogger.cs (1)
187if (!string.IsNullOrWhiteSpace(message))
Venus\ContainedDocument.cs (1)
330if (!string.IsNullOrWhiteSpace(change.NewText))
Microsoft.VisualStudio.LanguageServices.CSharp (6)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (1)
42if (!string.IsNullOrWhiteSpace(addedParameterViewModel.Default))
CodeModel\CSharpCodeModelService.cs (3)
2929if (string.IsNullOrWhiteSpace(value)) 2946if (string.IsNullOrWhiteSpace(value)) 2963if (string.IsNullOrWhiteSpace(value))
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
142return string.IsNullOrWhiteSpace(textAfterBrace) 216return string.IsNullOrWhiteSpace(textBeforeBrace)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (1)
187if (!string.IsNullOrWhiteSpace(message))
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (3)
3535If String.IsNullOrWhiteSpace(value) Then 3558If String.IsNullOrWhiteSpace(value) Then 3580If String.IsNullOrWhiteSpace(value) Then
ProjectSystemShim\VisualBasicProject.vb (1)
168If Not String.IsNullOrWhiteSpace(fileName) Then
Microsoft.Web.Xdt.Extensions (1)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (1)
54if (string.IsNullOrWhiteSpace(argument))
OrleansServiceDefaults (1)
Extensions.cs (1)
70var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]);
Playground.ServiceDefaults (1)
Extensions.cs (1)
68var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]);
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2656&& !string.IsNullOrWhiteSpace(AssemblyVersion))
MS\Internal\MarkupCompiler\VersionHelper.cs (2)
63if (string.IsNullOrWhiteSpace(s)) 98if (string.IsNullOrWhiteSpace(elements[i]))
PresentationFramework (5)
System\Windows\Controls\ItemContainerGenerator.cs (1)
1054if (String.IsNullOrWhiteSpace(name))
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
407if (_disposed || String.IsNullOrWhiteSpace(text))
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (3)
162if (string.IsNullOrWhiteSpace(missingFragmentText) || 163string.IsNullOrWhiteSpace(lastTokenText) || 164string.IsNullOrWhiteSpace(documentText) ||
Replay (2)
src\Compilers\Shared\BuildProtocol.cs (2)
73Debug.Assert(!string.IsNullOrWhiteSpace(CompilerHash), "A hash value is required to communicate with the server"); 85Debug.Assert(!string.IsNullOrWhiteSpace(compilerHash), "CompilerHash is required to send request to the build server");
Roslyn.Diagnostics.Analyzers (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (2)
74Debug.Assert(string.IsNullOrWhiteSpace(this.TreeInfo.GetTextBetween(token1, token2))); 82Debug.Assert(string.IsNullOrWhiteSpace(this.TreeInfo.GetTextBetween(token1, token2)));
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SemanticModelExtensions.vb (1)
90Return If(String.IsNullOrWhiteSpace(result), [Shared].Extensions.ITypeSymbolExtensions.DefaultParameterName, result)
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
181string.IsNullOrWhiteSpace(expectedPdb) ? "<symbols></symbols>" : expectedPdb,
Roslyn.Test.Performance.Utilities (1)
Benchview.cs (1)
137if (string.IsNullOrWhiteSpace(submissionName))
RunTests (1)
ProcessTestExecutor.cs (1)
62if (filters.Length > 0 || !string.IsNullOrWhiteSpace(options.TestFilter))
Seq.ServiceDefaults (1)
Extensions.cs (1)
69var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]);
ServerComparison.FunctionalTests (1)
HelloWorldTest.cs (1)
141if (!string.IsNullOrWhiteSpace(data))
Shared (1)
Throw\Throw.cs (1)
143if (string.IsNullOrWhiteSpace(argument))
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\DataTypeAttribute.cs (1)
117if (DataType == DataType.Custom && string.IsNullOrWhiteSpace(CustomDataType))
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (1)
28get => string.IsNullOrWhiteSpace(_extensions) ? "png,jpg,jpeg,gif" : _extensions;
System\ComponentModel\DataAnnotations\RequiredAttribute.cs (1)
46return AllowEmptyStrings || value is not string stringValue || !string.IsNullOrWhiteSpace(stringValue);
System.Data.Common (3)
System\Data\Common\DbProviderFactories.cs (3)
67if (string.IsNullOrWhiteSpace(assemblyQualifiedName)) 135return !string.IsNullOrWhiteSpace(providerInvariantName) && _registeredFactories.TryRemove(providerInvariantName, out _); 146if (string.IsNullOrWhiteSpace(providerInvariantName))
System.Data.Odbc (1)
System\Data\Odbc\OdbcConnection.cs (1)
940if (string.IsNullOrWhiteSpace(value))
System.IO.Packaging (1)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
145if (string.IsNullOrWhiteSpace(relationshipType))
System.Net.HttpListener (5)
System\Net\Managed\HttpListenerContext.Managed.cs (1)
64if (string.IsNullOrWhiteSpace(headerValue))
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
306if (!string.IsNullOrWhiteSpace(value))
System\Net\ServiceNameStore.cs (2)
27if (string.IsNullOrWhiteSpace(inputServiceName)) 41if (string.IsNullOrWhiteSpace(hostPortAndDistinguisher))
System\Net\WebSockets\HttpWebSocket.cs (1)
136bool isSecWebSocketKeyInvalid = string.IsNullOrWhiteSpace(secWebSocketKey);
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
164if (string.IsNullOrWhiteSpace(inputServiceName))
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (1)
119if (string.IsNullOrWhiteSpace(argument))
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.SerializationGuard.cs (1)
46Debug.Assert(!string.IsNullOrWhiteSpace(switchSuffix));
System.Private.CoreLib.Generators (2)
EventSourceGenerator.Emitter.cs (2)
32if (!string.IsNullOrWhiteSpace(ec.Namespace)) 50if (!string.IsNullOrWhiteSpace(ec.Namespace))
System.Private.Windows.Core (5)
System\Private\Windows\Nrbf\FullyQualifiedTypeName.cs (2)
15Debug.Assert(!string.IsNullOrWhiteSpace(assemblyName)); 16Debug.Assert(!string.IsNullOrWhiteSpace(fullTypeName));
System\Private\Windows\Ole\ClipboardCore.cs (1)
261if (string.IsNullOrWhiteSpace(format))
System\Private\Windows\Ole\DataStore.cs (2)
20if (string.IsNullOrWhiteSpace(format)) 119if (string.IsNullOrWhiteSpace(format))
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
124if (string.IsNullOrWhiteSpace(assemblyName))
System.Security.Claims (2)
System\Security\Claims\ClaimsIdentity.cs (1)
898if (!string.IsNullOrWhiteSpace(_label))
System\Security\Claims\GenericPrincipal.cs (1)
53if (!string.IsNullOrWhiteSpace(role))
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
38if (!string.IsNullOrWhiteSpace(parent.Namespace))
System.Windows.Forms (3)
System\Windows\Forms\Input\KeysConverter.cs (1)
154if (string.IsNullOrWhiteSpace(text))
System\Windows\Forms\OLE\Clipboard.cs (2)
92!string.IsNullOrWhiteSpace(format) && ContainsData(format, autoConvert: false); 147string.IsNullOrWhiteSpace(format) ? null : GetData(format, autoConvert: false);
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\ApplicationConfig.FontDescriptor.cs (1)
31string fontFamily = string.IsNullOrWhiteSpace(name)
System.Windows.Forms.Analyzers.CSharp (2)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationInitializeBuilder.cs (2)
13bool topLevelApp = string.IsNullOrWhiteSpace(projectNamespace); 35if (!string.IsNullOrWhiteSpace(defaultFont))
System.Windows.Forms.Design (3)
System\Drawing\Design\FontNameEditor.cs (1)
33if (string.IsNullOrWhiteSpace(fontName))
System\Drawing\Design\IconEditor.cs (1)
32if (string.IsNullOrWhiteSpace(extensions[i]))
System\Windows\Forms\Design\FormatControl.cs (1)
72return string.IsNullOrWhiteSpace(nullValue) ? null : nullValue.Trim();
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Automation\UiaTextRange.cs (3)
645=> string.IsNullOrWhiteSpace(text) || index <= 0 || index >= text.Length || ((text[index - 1] == '\n') && (text[index] != '\n')); 654if (string.IsNullOrWhiteSpace(text) || index <= 0 || index >= text.Length || AtParagraphBoundary(text, index)) 805if (string.IsNullOrWhiteSpace(text.Substring(lineStartIndex, lineTextLength)))
Windows\Win32\PInvoke.LoadLibrary.cs (1)
15if (!string.IsNullOrWhiteSpace(startupPath))
System.Windows.Forms.Tests (4)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (2)
82if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 135if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal))
System\Windows\Forms\DataObjectTests.cs (2)
1245if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal)) 1387if (string.IsNullOrWhiteSpace(format) || format == typeof(Bitmap).FullName || format.StartsWith("FileName", StringComparison.Ordinal))
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (6)
219Assert.False(string.IsNullOrWhiteSpace(dragDropForm.RichTextBoxDropTarget.Rtf), 224Assert.False(string.IsNullOrWhiteSpace(dragDropForm.RichTextBoxDropTarget.Text), 443Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Rtf)); 444Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Text)); 486Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Rtf)); 487Assert.False(string.IsNullOrWhiteSpace(form.RichTextBoxDropTarget.Text));
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
54var environmentOverrideValue = !string.IsNullOrWhiteSpace(environmentOverride) ? bool.Parse(attribute.Value) : false;
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
54var environmentOverrideValue = !string.IsNullOrWhiteSpace(environmentOverride) ? bool.Parse(attribute.Value) : false;
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
54var environmentOverrideValue = !string.IsNullOrWhiteSpace(environmentOverride) ? bool.Parse(attribute.Value) : false;
Templates.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
54var environmentOverrideValue = !string.IsNullOrWhiteSpace(environmentOverride) ? bool.Parse(attribute.Value) : false;
Test.Utilities (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
TestingAppHost1.ServiceDefaults (1)
Extensions.cs (1)
77var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]);
TestShop.ServiceDefaults (1)
Extensions.cs (1)
75var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]);
Text.Analyzers (7)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
17/// <inheritdoc cref="string.IsNullOrWhiteSpace(string)"/> 19=> string.IsNullOrWhiteSpace(value);
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (3)
312!string.IsNullOrWhiteSpace(prefixedFirstMatchOrDefault.Key)) 322!string.IsNullOrWhiteSpace(unprefixedFirstMatchOrDefault.Key)) 332!string.IsNullOrWhiteSpace(partialFirstMatchOrDefault.Key))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (1)
58if (string.IsNullOrWhiteSpace(line))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
137while (token != default && string.IsNullOrWhiteSpace(token.ToString()))
vbc (2)
src\Compilers\Shared\BuildProtocol.cs (2)
73Debug.Assert(!string.IsNullOrWhiteSpace(CompilerHash), "A hash value is required to communicate with the server"); 85Debug.Assert(!string.IsNullOrWhiteSpace(compilerHash), "CompilerHash is required to send request to the build server");
VBCSCompiler (2)
src\Compilers\Shared\BuildProtocol.cs (2)
73Debug.Assert(!string.IsNullOrWhiteSpace(CompilerHash), "A hash value is required to communicate with the server"); 85Debug.Assert(!string.IsNullOrWhiteSpace(compilerHash), "CompilerHash is required to send request to the build server");
VisualBasicSyntaxGenerator (3)
Util\WriteUtils.vb (3)
582If String.IsNullOrWhiteSpace(text) Then Return 614If String.IsNullOrWhiteSpace(text) Then Return 636If String.IsNullOrWhiteSpace(text) Then Return
WinFormsControlsTest (1)
PictureBoxes.cs (1)
20if (string.IsNullOrWhiteSpace(imageUri.Text))
xunit.assert (1)
Sdk\Exceptions\CollectionException.cs (1)
46 if (!string.IsNullOrWhiteSpace(filteredStack))
xunit.console (2)
ConsoleRunner.cs (2)
244var switchableReporters = reporters.Where(r => !string.IsNullOrWhiteSpace(r.RunnerSwitch)).ToList(); 435if (string.IsNullOrWhiteSpace(fileName) || File.Exists(fileName))
Xunit.NetCore.Extensions (1)
CustomXunitAttributesUtilities.cs (1)
19=> !string.IsNullOrWhiteSpace(additionalMessage) ? $"{message} {additionalMessage}" : message;