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