135 references to IsNullOrWhiteSpace
Microsoft.Activities.Build (5)
Microsoft\Activities\Build\BeforeInitializeComponentExtension.cs (3)
108if (!string.IsNullOrWhiteSpace(buildContext.RootNamespace)) 113if (!string.IsNullOrWhiteSpace(classData.Namespace)) 129if (!string.IsNullOrWhiteSpace(classData.Namespace))
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (1)
122if (string.IsNullOrWhiteSpace(buildContext.RootNamespace))
Microsoft\Activities\Build\WorkflowBuildMessageTask.cs (1)
36if (string.IsNullOrWhiteSpace(this.MessageType))
mscorlib (4)
system\AppDomainSetup.cs (1)
646if(String.IsNullOrWhiteSpace(functionName))
system\io\path.cs (2)
430if (string.IsNullOrWhiteSpace(normalizedPath)) 499if (string.IsNullOrWhiteSpace(path))
system\security\claims\ClaimsIdentity.cs (1)
1213if (!string.IsNullOrWhiteSpace(m_label))
PresentationFramework (1)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
1069if (String.IsNullOrWhiteSpace(name))
System (11)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
588if (String.IsNullOrWhiteSpace(options.CoreAssemblyFileName)) { 595if (!String.IsNullOrWhiteSpace(coreAssemblyFileName)) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
570if (String.IsNullOrWhiteSpace(options.CoreAssemblyFileName)) { 577if (!String.IsNullOrWhiteSpace(coreAssemblyFileName)) {
net\System\Net\WebHeaderCollection.cs (1)
1127if (string.IsNullOrWhiteSpace(input)) {
net\System\Net\WebSockets\ClientWebSocket.cs (2)
300if (!string.IsNullOrWhiteSpace(subProtocol) && options.RequestedSubProtocols.Count > 0) 318return string.IsNullOrWhiteSpace(subProtocol) ? null : subProtocol; // May be null or valid.
net\System\Net\WebSockets\WebSocketHelpers.cs (2)
349if (string.IsNullOrWhiteSpace(context.Request.Headers[HttpKnownHeaderNames.SecWebSocketKey])) 378if (string.IsNullOrWhiteSpace(subProtocol))
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (2)
97if (string.IsNullOrWhiteSpace(inputServiceName)) 111if (string.IsNullOrWhiteSpace(hostPortAndDistinguisher))
System.Activities (16)
System\Activities\Debugger\State.cs (1)
191if (string.IsNullOrWhiteSpace(newFileName))
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
426if (string.IsNullOrWhiteSpace(typeNamespace))
System\Activities\XamlIntegration\TextExpressionCompiler.cs (14)
585if (string.IsNullOrWhiteSpace(name)) 1376|| string.IsNullOrWhiteSpace(textExpression.ExpressionText)) 2085if (!string.IsNullOrWhiteSpace(nsReference.Import)) 2098!string.IsNullOrWhiteSpace(this.settings.RootNamespace) 2118if (!string.IsNullOrWhiteSpace(nsReference)) 2420if (this.IsVB && !string.IsNullOrWhiteSpace(this.settings.RootNamespace)) 2482if (sourceLocation != null && !string.IsNullOrWhiteSpace(sourceLocation.FileName)) 2602if (this.IsVB && !String.IsNullOrWhiteSpace(this.settings.RootNamespace)) 2607if (!String.IsNullOrWhiteSpace(this.settings.ActivityNamespace)) 2733return !string.IsNullOrWhiteSpace(this.GetMethodName) && 2734string.IsNullOrWhiteSpace(this.SetMethodName) && 2735string.IsNullOrWhiteSpace(this.StatementMethodName); 2743return !string.IsNullOrWhiteSpace(this.SetMethodName); 2751return !string.IsNullOrWhiteSpace(this.StatementMethodName);
System.Activities.Presentation (11)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (4)
197if (string.IsNullOrWhiteSpace(frameObject.IdRef)) 208if (string.CompareOrdinal(prefix, activityBuilderTypeName) == 0 && !string.IsNullOrWhiteSpace(xClassName)) 390if (!string.IsNullOrWhiteSpace(idRef)) 470if (!string.IsNullOrWhiteSpace(frameObject.IdRef))
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
191if (!string.IsNullOrWhiteSpace(editorName))
System.Activities.Presentation\System\Activities\Presentation\Utility\IconHelper.cs (1)
83if (!string.IsNullOrWhiteSpace(activityFullName) && IconNameMapping.ContainsKey(activityFullName))
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1418bool precondition = !this.IsReadOnly && !string.IsNullOrWhiteSpace(typeName);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
416if (string.IsNullOrWhiteSpace(name))
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelPropertyViewModel.cs (1)
43if (viewVisible != null && !string.IsNullOrWhiteSpace(viewVisible.PromotedProperty))
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
407if (string.IsNullOrWhiteSpace(outlineView.PromotedProperty))
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
878if (locationReference != null && !string.IsNullOrWhiteSpace(locationReference.Name) && !variables.ContainsKey(locationReference.Name))
System.ComponentModel.DataAnnotations (7)
DataAnnotations\FileExtensionsAttribute.cs (1)
27return String.IsNullOrWhiteSpace(_extensions) ? "png,jpg,jpeg,gif" : _extensions;
DataAnnotations\Schema\ColumnAttribute.cs (2)
27if (string.IsNullOrWhiteSpace(name)) { 61if (string.IsNullOrWhiteSpace(value)) {
DataAnnotations\Schema\ForeignKeyAttribute.cs (1)
25if (string.IsNullOrWhiteSpace(name)) {
DataAnnotations\Schema\InversePropertyAttribute.cs (1)
19if (string.IsNullOrWhiteSpace(property)) {
DataAnnotations\Schema\TableAttribute.cs (2)
20if (string.IsNullOrWhiteSpace(name)) { 39if (string.IsNullOrWhiteSpace(value)) {
System.Configuration (1)
System\Configuration\BaseConfigurationRecord.cs (1)
2017if (!input.IsConfigBuilderDetermined && !String.IsNullOrWhiteSpace(input.SectionXmlInfo.ConfigBuilderName)) {
System.Data (27)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (4)
197if (string.IsNullOrWhiteSpace(frameObject.IdRef)) 208if (string.CompareOrdinal(prefix, activityBuilderTypeName) == 0 && !string.IsNullOrWhiteSpace(xClassName)) 390if (!string.IsNullOrWhiteSpace(idRef)) 470if (!string.IsNullOrWhiteSpace(frameObject.IdRef))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
191if (!string.IsNullOrWhiteSpace(editorName))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Utility\IconHelper.cs (1)
83if (!string.IsNullOrWhiteSpace(activityFullName) && IconNameMapping.ContainsKey(activityFullName))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1418bool precondition = !this.IsReadOnly && !string.IsNullOrWhiteSpace(typeName);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
416if (string.IsNullOrWhiteSpace(name))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelPropertyViewModel.cs (1)
43if (viewVisible != null && !string.IsNullOrWhiteSpace(viewVisible.PromotedProperty))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
407if (string.IsNullOrWhiteSpace(outlineView.PromotedProperty))
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContextKey.cs (2)
53Debug.Assert(!string.IsNullOrWhiteSpace(stsAuthority)); 54Debug.Assert(!string.IsNullOrWhiteSpace(servicePrincipalName));
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (1)
372if (string.IsNullOrWhiteSpace(masterKeyPath))
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (1)
297if (string.IsNullOrWhiteSpace(masterKeyPath))
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
304if (string.IsNullOrWhiteSpace(masterKeyPath))
fx\src\data\System\Data\SqlClient\SqlCommand.cs (5)
163get { return !string.IsNullOrWhiteSpace(_activeConnection.EnclaveAttestationUrl) && IsColumnEncryptionEnabled; } 3909if (string.IsNullOrWhiteSpace(this.Connection.EnclaveAttestationUrl)) { 4324if (string.IsNullOrWhiteSpace(this._activeConnection.EnclaveAttestationUrl)) throw SQL.NoAttestationUrlSpecifiedForEnclaveBasedQueryGeneratingEnclavePackage(this._activeConnection.Parser.EnclaveType); 4327if (string.IsNullOrWhiteSpace(enclaveType)) throw SQL.EnclaveTypeNullForEnclaveBasedQuery(); 5665Debug.Assert(!string.IsNullOrWhiteSpace(storedProcedureName), "storedProcedureName cannot be null or empty in BuildStoredProcedureStatementForColumnEncryption");
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
176if (string.IsNullOrWhiteSpace(key)) 220Debug.Assert(!string.IsNullOrWhiteSpace(providerName), "Provider name is invalid");
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
2908&& (!string.IsNullOrWhiteSpace(_connHandler.ConnectionOptions.EnclaveAttestationUrl)) 2915&& (!string.IsNullOrWhiteSpace(_connHandler.ConnectionOptions.EnclaveAttestationUrl)) 2916&& string.IsNullOrWhiteSpace(EnclaveType) ) { 3244if (String.IsNullOrWhiteSpace(tempFedAuthInfo.stsurl) || String.IsNullOrWhiteSpace(tempFedAuthInfo.spn)) {
System.Data.Entity (4)
System\Data\Common\EntityUtil.cs (3)
1890if (string.IsNullOrWhiteSpace(infoRowProviderAssemblyName)) 2085if (string.IsNullOrWhiteSpace(fxname)) 2099if (!string.IsNullOrWhiteSpace(fxname))
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (1)
79Debug.Assert(!string.IsNullOrEmpty(aggregateFunctionName) && !string.IsNullOrWhiteSpace(aggregateFunctionName), "Aggregate function name should be valid");
System.IdentityModel (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
298if (string.IsNullOrWhiteSpace(asnString))
System.Security (4)
system\security\cryptography\dataprotector.cs (3)
35if (String.IsNullOrWhiteSpace(applicationName)) 37if (String.IsNullOrWhiteSpace(primaryPurpose)) 45if (String.IsNullOrWhiteSpace(purpose))
system\security\cryptography\xml\signedxml.cs (1)
751if (!String.IsNullOrWhiteSpace(stringValue)) {
System.ServiceModel (21)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (7)
211if (!string.IsNullOrWhiteSpace(serverContentType)) 214if (!string.IsNullOrWhiteSpace(serverTransferMode)) 227if (!string.IsNullOrWhiteSpace(serverVersion)) 233if (!string.IsNullOrWhiteSpace(serverSubProtocol)) 452if (!string.IsNullOrWhiteSpace(headerValue)) 488if (string.IsNullOrWhiteSpace(webSocketVersion)) 542if (!(requested == null ? string.IsNullOrWhiteSpace(obtained) : requested.Equals(obtained, StringComparison.OrdinalIgnoreCase)))
System\ServiceModel\Channels\HttpHeaderInfo.cs (2)
55Fx.Assert(!string.IsNullOrWhiteSpace(name), "The 'name' parameter should not be null or whitespace."); 77Fx.Assert(!string.IsNullOrWhiteSpace(headerName), "The 'headerName' should not be null or whitespace.");
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
141if (!string.IsNullOrWhiteSpace(configElement.Type))
System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (4)
51Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace."); 61Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace."); 72Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace."); 82Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace.");
System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (4)
18Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace."); 28Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace."); 39Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace."); 49Fx.Assert(!string.IsNullOrWhiteSpace(header), "The 'header' parameter should never be null or whitespace.");
System\ServiceModel\Channels\WebSocketHelper.cs (1)
145if (!string.IsNullOrWhiteSpace(token))
System\ServiceModel\Configuration\DelegatingHandlerElement.cs (1)
39if (string.IsNullOrWhiteSpace(value))
System\ServiceModel\Configuration\HttpMessageHandlerFactoryValidator.cs (1)
20if (!string.IsNullOrWhiteSpace(configElement.Type) && configElement.Handlers != null && configElement.Handlers.Count > 0)
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\InternalReceiveMessage.cs (2)
236if (!string.IsNullOrWhiteSpace(this.Action)) 243if (this.ServiceContractName != null && !string.IsNullOrWhiteSpace(this.OperationName))
System.Web (13)
Compilation\CompilationUtil.cs (1)
162if (!String.IsNullOrWhiteSpace(ps.ControlBuilderInterceptorType)) {
Configuration\CompilationSection.cs (1)
922if (_controlBuilderInterceptorType == null && !String.IsNullOrWhiteSpace(ControlBuilderInterceptorType)) {
Hosting\ApplicationManager.cs (1)
1075if (cacheConfig != null && cacheConfig.DefaultProvider != null && !String.IsNullOrWhiteSpace(cacheConfig.DefaultProvider)) {
Hosting\HostingEnvironment.cs (1)
1463if (cacheConfig != null && cacheConfig.DefaultProvider != null && !String.IsNullOrWhiteSpace(cacheConfig.DefaultProvider)) {
Hosting\ProcessHostSupportFunctionsExtensions.cs (2)
21Debug.Assert(!String.IsNullOrWhiteSpace(appId)); 22Debug.Assert(!String.IsNullOrWhiteSpace(appVirtualPath) && appVirtualPath[0] == '/');
ModelBinding\DataAnnotationsModelMetadataProvider.cs (1)
62if (!displayFormatAttribute.HtmlEncode && String.IsNullOrWhiteSpace(result.DataTypeName)) {
Security\Cryptography\AspNetCryptoServiceProvider.cs (1)
38_isDataProtectorEnabled = (machineKeySection != null && !String.IsNullOrWhiteSpace(machineKeySection.DataProtectorType));
Security\MachineKey.cs (2)
163if (purposes != null && purposes.Any(String.IsNullOrWhiteSpace)) { 197if (purposes != null && purposes.Any(String.IsNullOrWhiteSpace)) {
UI\WebControls\QueryExtensions.cs (1)
15if (String.IsNullOrWhiteSpace(sortExpression)) {
Util\AppSettings.cs (2)
118if (settings == null || string.IsNullOrWhiteSpace(_portableCompilationOutputSnapshotType = settings["aspnet:PortableCompilationOutputSnapshotType"])) 121if (settings == null || string.IsNullOrWhiteSpace(_portableCompilationOutputSnapshotTypeOptions = settings["aspnet:PortableCompilationOutputSnapshotTypeOptions"]))
System.Workflow.ComponentModel (4)
AuthoringOM\Compiler\CompileXomlTask.cs (3)
915if (!string.IsNullOrWhiteSpace(optionName)) 952!string.IsNullOrWhiteSpace(optionValue)) 972if (string.IsNullOrWhiteSpace(optionValue))
AuthoringOM\Compiler\XomlCompiler.cs (1)
599if (string.IsNullOrWhiteSpace(filename))
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\CompilationPass2Task.cs (1)
294if (!String.IsNullOrWhiteSpace(typeName))
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (2)
432if (this.Language.Equals("VB") && !String.IsNullOrWhiteSpace(classData.RootNamespace)) 437if (!String.IsNullOrWhiteSpace(classData.Namespace))