636 references to Assert
System.Web (636)
AspNetEventSource.cs (2)
131
Debug.
Assert
(pCookedUrl->pFullUrl != null);
195
Debug.
Assert
(pGuid != null);
BufferAllocator.cs (1)
306
Debug.
Assert
(allocator != null);
Cache\SqlCacheDependency.cs (1)
226
Debug.
Assert
(context != null);
Compilation\AssemblyBuilder.cs (2)
115
Debug.
Assert
(CultureName == null);
1266
Debug.
Assert
(!fileData.IsDirectory);
Compilation\BaseCodeDomTreeGenerator.cs (7)
124
Debug.
Assert
(_codeDomProvider == null && _stringResourceBuilder == null);
164
Debug.
Assert
(Parser.BaseType != null);
196
Debug.
Assert
(UrlPath.IsAppRelativePath(appRelVirtualDir));
247
Debug.
Assert
(Parser.CodeFileVirtualPath != null);
358
Debug.
Assert
(_ctor != null);
359
Debug.
Assert
(Parser.BaseType != null);
649
Debug.
Assert
(!Util.IsLateBoundComClassicType(declaredType));
Compilation\BaseTemplateBuildProvider.cs (4)
38
Debug.
Assert
(_parser != null);
71
Debug.
Assert
(_parser == null);
102
Debug.
Assert
(Parser.RequiresCompilation);
168
Debug.
Assert
(typeName != null);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (5)
157
Debug.
Assert
(builder.ServiceProvider == null);
196
Debug.
Assert
(builder.ControlType != null);
1293
Debug.
Assert
(codeBlock.BlockType == CodeBlockType.DataBinding);
1523
Debug.
Assert
(codeBlockBuilder.BlockType == CodeBlockType.Code);
1687
Debug.
Assert
(pse is ComplexPropertyEntry);
Compilation\BrowserCapabilitiesCompiler.cs (6)
265
Debug.
Assert
(BrowserTree != null);
369
Debug.
Assert
(isBrowserDefinition);
444
Debug.
Assert
(!(bd is GatewayDefinition));
458
Debug.
Assert
(bd != null);
465
Debug.
Assert
(bd != null);
473
Debug.
Assert
(bd != null);
Compilation\BuildManager.cs (28)
183
Debug.
Assert
(_topLevelFileCompilationException != null);
392
Debug.
Assert
(_caches == null);
784
Debug.
Assert
(PreStartInitStage == Compilation.PreStartInitStage.BeforePreStartInit);
813
Debug.
Assert
(PreStartInitStage == Compilation.PreStartInitStage.AfterPreStartInit);
837
Debug.
Assert
(assemblies != null);
838
Debug.
Assert
(!String.IsNullOrEmpty(path));
839
Debug.
Assert
(!assemblies.Any(String.IsNullOrEmpty));
970
Debug.
Assert
(type != null);
971
Debug.
Assert
(!String.IsNullOrEmpty(methodName));
1060
Debug.
Assert
(_appResourcesAssembly == null);
1160
Debug.
Assert
(HostingEnvironment.IsHosted);
1358
Debug.
Assert
(s_dynamicallyAddedReferencedAssembly != null);
1499
Debug.
Assert
(result.DependenciesHashComputed);
1580
Debug.
Assert
(!virtualPath.IsRelative);
1648
Debug.
Assert
(circularReferenceChecker.Contains(virtualPath));
2104
Debug.
Assert
(virtualCodeDir.HasTrailingSlash);
2231
Debug.
Assert
(key == key.ToLowerInvariant());
2258
Debug.
Assert
(slashIndex >= 0 || virtualPathString == "~");
2263
Debug.
Assert
(slashIndex != virtualPathString.Length - 1);
2308
Debug.
Assert
(_caches[0] == _memoryCache);
2357
Debug.
Assert
(_memoryCache != null);
2377
Debug.
Assert
(false);
2621
Debug.
Assert
(PrecompilingForDeployment);
2662
Debug.
Assert
(root != null && root.Name == "precompiledApp");
2754
Debug.
Assert
(fileEncoding != null);
2759
Debug.
Assert
(!virtualPath.IsRelative);
2814
Debug.
Assert
(dir != null);
3005
Debug.
Assert
(result != null);
Compilation\BuildProvider.cs (4)
211
Debug.
Assert
(extension != null);
381
Debug.
Assert
((resultFlags & 0xFFFF0000) == 0);
499
Debug.
Assert
(type != null);
534
Debug.
Assert
(attrs[0] is BuildProviderAppliesToAttribute);
Compilation\BuildProvidersCompiler.cs (4)
95
Debug.
Assert
(!CbmGenerateOnlyMode);
317
Debug.
Assert
(!_ignoreProvidersWithErrors);
368
Debug.
Assert
(!(buildProvider is IgnoreFileBuildProvider));
378
Debug.
Assert
(retryIfDeletionHappens);
Compilation\BuildResult.cs (15)
172
Debug.
Assert
(_virtualPathDependenciesHash == null);
186
Debug.
Assert
(_virtualPathDependenciesHash == null);
208
Debug.
Assert
(_virtualPathDependencies == null);
209
Debug.
Assert
(sourceDependencies != null);
339
Debug.
Assert
(_lock >= 0);
422
Debug.
Assert
(customString != null);
434
Debug.
Assert
(_customString != null);
667
Debug.
Assert
(appInitializeType != null);
671
Debug.
Assert
(_appInitializeMethod != null);
687
Debug.
Assert
(_appInitializeMethod == null);
767
Debug.
Assert
(_resourcesDependenciesHash == null);
769
Debug.
Assert
(_resourcesDependenciesHash != null);
812
set { Debug.
Assert
(false); }
918
Debug.
Assert
(a != null);
1099
Debug.
Assert
(i == pageParser.SourceDependencies.Count);
Compilation\BuildResultCache.cs (7)
57
Debug.
Assert
(!assembly.GlobalAssemblyCache);
62
Debug.
Assert
(StringUtil.StringStartsWith(assemblyName, BuildManager.AssemblyNamePrefix));
112
Debug.
Assert
(!dependentList.Contains(name));
140
Debug.
Assert
(HttpRuntime.Cache.InternalCache.Get(key) == null);
192
Debug.
Assert
(a == compiledResult.ResultAssembly);
698
Debug.
Assert
(cacheDir == HttpRuntime.CodegenDirInternal);
767
Debug.
Assert
(_satelliteDirectories == null);
Compilation\ClientBuildManager.cs (3)
270
Debug.
Assert
(_appId != null);
271
Debug.
Assert
(_appHost != null);
649
Debug.
Assert
(_host == null);
Compilation\CodeDirectoryCompiler.cs (6)
77
Debug.
Assert
(result is BuildResultCompiledAssembly);
83
Debug.
Assert
(dirType == CodeDirectoryType.MainCode);
84
Debug.
Assert
(_mainCodeBuildResult == null);
149
Debug.
Assert
(supportLocalization);
173
Debug.
Assert
(result == null);
174
Debug.
Assert
(resultAssembly == null);
Compilation\CompilerTypeWithParams.cs (1)
41
Debug.
Assert
(codeDomProviderType != null);
Compilation\ForceCopyBuildProvider.cs (1)
22
Debug.
Assert
(false);
Compilation\IgnoreFileBuildProvider.cs (1)
22
Debug.
Assert
(false);
Compilation\PageCodeDomTreeGenerator.cs (2)
83
Debug.
Assert
(Parser.SourceDependencies != null);
583
Debug.
Assert
(methodInfo != null);
Compilation\PageThemeCodeDomTreeGenerator.cs (3)
209
Debug.
Assert
(typeof(Control).IsAssignableFrom(ctrlType));
210
Debug.
Assert
(ThemeableAttribute.IsTypeThemeable(ctrlType));
285
Debug.
Assert
(pse is ComplexPropertyEntry);
Compilation\PreservationFileReader.cs (4)
183
Debug.
Assert
(dependenciesNode.Attributes.Count == 0);
187
Debug.
Assert
(_sourceDependencies == null);
209
Debug.
Assert
(dependencyNode.Name.Equals(tagName));
218
Debug.
Assert
(dependencyNode.Attributes.Count == 0);
Compilation\PreservationFileWriter.cs (1)
48
Debug.
Assert
(result.GetCode() != BuildResultTypeCode.Invalid);
Compilation\ProfileBuildProvider.cs (1)
76
Debug.
Assert
(false);
Compilation\ResourceExpressionBuilder.cs (2)
198
Debug.
Assert
(pd != null);
203
Debug.
Assert
(converter != null);
Compilation\SimpleHandlerBuildProvider.cs (3)
33
Debug.
Assert
(_parser == null);
46
Debug.
Assert
(_parser != null);
90
Debug.
Assert
(results != null);
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
287
Debug.
Assert
(ctor != null);
288
Debug.
Assert
(ctor.GetParameters().Length > 0);
Compilation\WebReferencesBuildProvider.cs (2)
58
Debug.
Assert
(StringUtil.StringStartsWithIgnoreCase(
69
Debug.
Assert
(rootWebRefDirVirtualPath.HasTrailingSlash);
Configuration\AssemblyInfo.cs (1)
76
Debug.
Assert
(_compilationSection != null);
Configuration\AuthenticationConfig.cs (1)
41
Debug.
Assert
(BuildManager.PreStartInitStage == PreStartInitStage.DuringPreStartInit);
Configuration\BrowserCapabilitiesCodeGenerator.cs (9)
293
Debug.
Assert
(node.Name == "defaultBrowser");
674
Debug.
Assert
(_browserTree != null);
766
Debug.
Assert
(bd != null);
774
Debug.
Assert
(bd != null);
780
Debug.
Assert
(bd != null);
856
Debug.
Assert
(fileReadAccess != null);
912
Debug.
Assert
(!(bd is GatewayDefinition));
932
Debug.
Assert
(!(bd is GatewayDefinition));
1007
Debug.
Assert
(!(bd is GatewayDefinition));
Configuration\BrowserDefinition.cs (1)
577
Debug.
Assert
(definition.IsRefID);
Configuration\BufferModeSettings.cs (1)
211
Debug.
Assert
(value is BufferModeSettings);
Configuration\BuildProvider.cs (2)
102
Debug.
Assert
(_info != null);
113
Debug.
Assert
(buildProvider != null);
Configuration\CompilationSection.cs (2)
719
System.Web.Util.Debug.
Assert
(HttpRuntime.TrustLevel != null);
764
System.Web.Util.Debug.
Assert
(HttpRuntime.TrustLevel != null);
Configuration\ConfigUtil.cs (3)
35
Debug.
Assert
((propertyName != null) != (node != null));
129
Debug.
Assert
(propInfo != null);
130
Debug.
Assert
(propInfo.Type.IsInstanceOfType(newDefaultValue));
Configuration\FolderLevelBuildProvider.cs (1)
115
Debug.
Assert
(attrs[0] is FolderLevelBuildProviderAppliesToAttribute);
Configuration\HandlerFactoryWrapper.cs (1)
37
Debug.
Assert
(handler == _handler);
Configuration\HealthMonitoringSectionHelper.cs (2)
371
Debug.
Assert
(customWebEventKey != null);
442
Debug.
Assert
(customWebEventKey != null);
Configuration\IgnoreDeviceFilterElement.cs (1)
73
Debug.
Assert
((value != null) && (value is IgnoreDeviceFilterElement));
Configuration\LowerCaseStringConverter.cs (2)
107
Debug.
Assert
(data != null);
108
Debug.
Assert
(data is string);
Configuration\PassportAuthentication.cs (1)
134
Debug.
Assert
(value is PassportAuthentication);
DataAccess\SqlConnectionHelper.cs (2)
72
System.Web.Util.Debug.
Assert
((specifiedConnectionString != null) && (specifiedConnectionString.Length != 0));
292
System.Web.Util.Debug.
Assert
(_Connection != null);
ErrorFormatter.cs (1)
277
Debug.
Assert
(preferredRenderingType != null);
Hosting\ApplicationManager.cs (2)
1447
Debug.
Assert
(System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory));
1492
Debug.
Assert
(!foundGacCondition);
Hosting\AsyncResultBase.cs (1)
84
Debug.
Assert
(error != null);
Hosting\BackgroundWorkScheduler.cs (2)
22
Debug.
Assert
(unregisterCallback != null);
59
Debug.
Assert
(workItem != null);
Hosting\HostingEnvironment.cs (2)
1049
Debug.
Assert
(virtualPath != null);
1187
Debug.
Assert
(workItem != null);
Hosting\IIS7WorkerRequest.cs (1)
253
Debug.
Assert
(hr == 0); // also ignore the HRESULT, as we can't do anything about it right now
Hosting\IPipelineRuntime.cs (3)
411
Debug.
Assert
(pManagedRootedObjects != IntPtr.Zero);
414
Debug.
Assert
(rootObj != null);
417
Debug.
Assert
(workerRequest != null);
Hosting\ISAPIWorkerRequest.cs (10)
1376
Debug.
Assert
(offset64 < Int32.MaxValue);
1377
Debug.
Assert
(length64 < Int32.MaxValue);
1384
Debug.
Assert
(offset < length);
1386
Debug.
Assert
((f.Length - offset) == length);
1865
Debug.
Assert
(_additionalServerVars == null);
2156
Debug.
Assert
(_basicServerVars == null);
2202
Debug.
Assert
(_additionalServerVars == null);
2384
Debug.
Assert
(0 <= finalStatus && finalStatus <= 2);
2919
Debug.
Assert
(offset64 < Int32.MaxValue);
2920
Debug.
Assert
(length64 < Int32.MaxValue);
Hosting\MapPathBasedVirtualPathProvider.cs (1)
166
Debug.
Assert
(_ffd == null);
Hosting\ProcessHost.cs (2)
845
Debug.
Assert
(customRuntime != null);
1161
Debug.
Assert
(callback != null);
Hosting\ProcessHostSupportFunctionsExtensions.cs (4)
20
Debug.
Assert
(supportFunctions != null);
21
Debug.
Assert
(!String.IsNullOrWhiteSpace(appId));
22
Debug.
Assert
(!String.IsNullOrWhiteSpace(appVirtualPath) && appVirtualPath[0] == '/');
23
Debug.
Assert
(relativePath != null);
Hosting\SuspendManager.cs (2)
24
Debug.
Assert
(o != null);
29
Debug.
Assert
(o != null);
Hosting\VirtualPathProvider.cs (1)
184
Debug.
Assert
(virtualDir.HasTrailingSlash);
HttpApplication.cs (4)
430
Debug.
Assert
(_state != null); // app state always available
1527
Debug.
Assert
(paramCount == 2);
1909
Debug.
Assert
(reflectionEvent != null);
4459
Debug.
Assert
(executionStep != null);
HttpCachePolicy.cs (2)
821
Debug.
Assert
(_privateFields.Size > 0);
836
Debug.
Assert
(_noCacheFields.Size > 0);
HttpContext.cs (1)
1890
Debug.
Assert
(_traceContextStack != null);
HttpRequest.cs (4)
213
Debug.
Assert
(rawContent != null);
1173
Debug.
Assert
(_wr != null);
1415
Debug.
Assert
(_wr != null);
1675
Debug.
Assert
(_wr != null);
HttpResponse.cs (3)
533
Debug.
Assert
(!this.HeaderEncoding.Equals(Encoding.Unicode));
2556
Debug.
Assert
(CanExecuteUrlForEntireResponse);
3267
Debug.
Assert
(virtualPath.Length >= appPath.Length);
HttpRuntime.cs (12)
320
Debug.
Assert
(HostingEnvironment.IsHosted);
333
Debug.
Assert
(!HostingEnvironment.IsHosted);
980
Debug.
Assert
(System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory));
1895
Debug.
Assert
(false);
2509
Debug.
Assert
(IsTrustLevelInitialized);
2580
Debug.
Assert
(TrustLevel != null || !HostingEnvironment.IsHosted);
2607
Debug.
Assert
(TrustLevel != null || !HostingEnvironment.IsHosted);
2636
Debug.
Assert
(TrustLevel != null || !HostingEnvironment.IsHosted);
2679
Debug.
Assert
(TrustLevel != null || !HostingEnvironment.IsHosted);
3177
Debug.
Assert
(!foundGacCondition);
3286
Debug.
Assert
(policyLevel != null);
3352
Debug.
Assert
(AppDomainAppId != null);
HttpServerVarsCollection.cs (3)
39
Debug.
Assert
( _request != null );
285
Debug.
Assert
(name != null);
286
Debug.
Assert
(value != null);
HttpWriter.cs (6)
905
Debug.
Assert
(HttpRuntime.UseIntegratedPipeline);
1010
Debug.
Assert
(numChars > 0);
1042
Debug.
Assert
(free >= estByteSize);
1218
Debug.
Assert
(dstIndex <= srcIndex);
1446
Debug.
Assert
(_filterSink != null);
1505
Debug.
Assert
(_filterSink != null);
ImplicitAsyncPreloadModule.cs (1)
40
Debug.
Assert
(_inputStream == null);
LegacyAspNetSynchronizationContext.cs (1)
99
Debug.
Assert
(_lastCompletionCallback == null); // only one at a time
Management\webeventbuffer.cs (1)
252
Debug.
Assert
(nextRegularFlushFromStartTime >= nowFromStartTime);
Management\WebEvents.cs (3)
2338
Debug.
Assert
(!s_inited);
2354
Debug.
Assert
(s_manager == null);
2431
Debug.
Assert
(HealthMonitoringManager.Enabled);
PerfCounters.cs (1)
47
Debug.
Assert
(appName != null);
RootedObjects.cs (4)
218
Debug.
Assert
(WorkerRequest != null);
220
Debug.
Assert
(_requestActivityId != Guid.Empty);
231
Debug.
Assert
(ActivityIdHelper.Instance != null);
253
Debug.
Assert
(ActivityIdHelper.Instance != null);
Security\ADMembershipProvider.cs (15)
2369
Debug.
Assert
(containerEntry != null);
2410
Debug.
Assert
(containerEntry != null);
2478
Debug.
Assert
(containerEntry != null);
3398
Debug.
Assert
(clearTextString != null);
3415
Debug.
Assert
(encryptedString != null);
3491
Debug.
Assert
(adspath != null);
3492
Debug.
Assert
(adspath.Length > 0);
3528
Debug.
Assert
(serverName != null);
3542
Debug.
Assert
(tempStr.Length > index);
3987
Debug.
Assert
(serverName != null);
3999
Debug.
Assert
(dn != null);
4134
Debug.
Assert
(ldapConnection != null);
4336
Debug.
Assert
(domainControllerInfo != null);
4337
Debug.
Assert
(domainControllerInfo.DomainControllerName != null);
4338
Debug.
Assert
(domainControllerInfo.DomainControllerName.Length > 2);
Security\Roles.cs (1)
554
Debug.
Assert
(s_Providers != null);
SiteMapProvider.cs (1)
265
Debug.
Assert
(node != null);
State\OutOfProcStateClientManager.cs (4)
79
Debug.
Assert
(s_partitionManager == null);
249
Debug.
Assert
(_partitionResolver != null);
277
Debug.
Assert
(s_partitionManager != null);
278
Debug.
Assert
(_partitionResolver != null);
State\SessionIDManager.cs (3)
245
Debug.
Assert
(context.Items[ASP_SESSIONID_MANAGER_INITIALIZEREQUEST_CALLED_KEY] != null);
458
Debug.
Assert
(buffer.Length == ID_LENGTH_BYTES);
494
Debug.
Assert
(j == ID_LENGTH_CHARS);
State\SessionStateItemCollection.cs (4)
258
Debug.
Assert
(_serializedItems != null);
259
Debug.
Assert
(_stream != null);
484
Debug.
Assert
(i != count);
516
Debug.
Assert
(_stream != null);
State\SessionStateUtil.cs (1)
154
Debug.
Assert
(context != null);
State\sqlstateclientmanager.cs (6)
125
Debug.
Assert
(_partitionResolver == null);
279
Debug.
Assert
(_partitionInfo != null);
344
Debug.
Assert
(s_partitionManager != null);
345
Debug.
Assert
(_partitionResolver != null);
994
Debug.
Assert
(SupportFlags == SupportFlags.Uninitialized);
1237
Debug.
Assert
(sqlPartitionInfo.SupportFlags != SupportFlags.Uninitialized);
State\StateWorkerRequest.cs (5)
102
Debug.
Assert
(_contentLength == IntPtr.Size);
346
Debug.
Assert
(!_sent);
352
Debug.
Assert
(!_sent);
360
Debug.
Assert
(!_sent);
368
Debug.
Assert
(!_sent);
StaticSiteMapProvider.cs (1)
121
Debug.
Assert
(key != null);
ThreadContext.cs (1)
56
Debug.
Assert
(HttpContext != null); // only to be used when context is available
UI\BaseTemplateParser.cs (3)
48
Debug.
Assert
(FInDesigner);
161
Debug.
Assert
(compiledResult != null);
169
Debug.
Assert
(t != null);
UI\BindableTemplateBuilder.cs (1)
65
Debug.
Assert
(subBuilderControlBuilder.ServiceProvider == null);
UI\ClientScriptManager.cs (5)
961
Debug.
Assert
(false);
1083
Debug.
Assert
(expandoAttributes != null && expandoAttributes.Count > 0);
1294
Debug.
Assert
(_outboundEvents == null);
1393
Debug.
Assert
(_clientPostBackValidatedEventTable == null);
1435
Debug.
Assert
(type != null);
UI\Control.cs (17)
908
Debug.
Assert
(_page == null);
909
Debug.
Assert
(Parent == null || Parent.Page == null);
970
Debug.
Assert
(xhtmlConformanceSection != null);
1645
Debug.
Assert
(_namingContainer != null);
1646
Debug.
Assert
(_id == null);
2024
Debug.
Assert
(savedState is Triplet);
2211
Debug.
Assert
((virtualPath == null) != (physicalPath == null));
2896
Debug.
Assert
(namingContainer != null);
3064
Debug.
Assert
(this is INamingContainer);
3071
Debug.
Assert
(this is INamingContainer);
3072
Debug.
Assert
(HasControls());
3073
Debug.
Assert
(_occasionalFields != null);
3074
Debug.
Assert
(_occasionalFields.NamedControls == null);
3081
Debug.
Assert
(namingContainer._occasionalFields != null);
3082
Debug.
Assert
(namingContainer._occasionalFields.NamedControls != null);
3083
Debug.
Assert
((controls != null) && (controls.Count != 0));
3196
Debug.
Assert
(this is INamingContainer);
UI\ControlBuilder.cs (28)
693
Debug.
Assert
(!String.IsNullOrEmpty(name));
827
Debug.
Assert
(memberInfo is FieldInfo);
885
Debug.
Assert
(!String.IsNullOrEmpty(name));
886
Debug.
Assert
(builder != null);
915
Debug.
Assert
(memberInfo is FieldInfo);
954
Debug.
Assert
(!String.IsNullOrEmpty(name));
1019
Debug.
Assert
(memberInfo is FieldInfo);
1141
Debug.
Assert
(!String.IsNullOrEmpty(name));
1142
Debug.
Assert
(builder != null);
1182
Debug.
Assert
(memberInfo is FieldInfo);
1473
Debug.
Assert
(controlBuilder.ServiceProvider == null);
1485
Debug.
Assert
(parent != null);
1494
Debug.
Assert
(childObj != null);
1495
Debug.
Assert
(typeof(IParserAccessor).IsAssignableFrom(parentObj.GetType()));
1597
Debug.
Assert
(pca != null);
1718
Debug.
Assert
(attrs[0] is ControlBuilderAttribute);
1754
Debug.
Assert
(containerAttrs[0] is TemplateContainerAttribute);
1988
Debug.
Assert
(attrs[0] is ParseChildrenAttribute);
2179
Debug.
Assert
(controlBuilder.ServiceProvider == null);
2242
Debug.
Assert
(controlBuilder.ServiceProvider == null);
2334
Debug.
Assert
(obj is IAttributeAccessor);
2382
Debug.
Assert
(ServiceProvider == null);
2470
Debug.
Assert
(controlBuilder.ServiceProvider == null);
2481
Debug.
Assert
(methodInfo != null);
3034
Debug.
Assert
(InDesigner);
3043
Debug.
Assert
(InDesigner);
3280
Debug.
Assert
(o1 is PropertyEntry);
3281
Debug.
Assert
(o2 is PropertyEntry);
UI\EventValidationStore.cs (2)
144
Debug.
Assert
(x.Length == HASH_SIZE_IN_BYTES);
145
Debug.
Assert
(y.Length == HASH_SIZE_IN_BYTES);
UI\HtmlControls\HtmlAnchor.cs (2)
233
Debug.
Assert
(options != null);
236
Debug.
Assert
(!string.IsNullOrEmpty(postBackEventReference));
UI\HtmlControls\HtmlSelect.cs (1)
593
Debug.
Assert
(_currentViewValid);
UI\HtmlForm.cs (1)
317
Debug.
Assert
(action != null);
UI\HTMLTextWriter.cs (1)
696
Debug.
Assert
(_tagIndex >= 0 && _tagIndex < _tagNameLookupArray.Length);
UI\LegacyPageAsyncTask.cs (1)
87
Debug.
Assert
(!_started);
UI\MasterPage.cs (2)
167
Debug.
Assert
(owner is MasterPage || owner is Page);
232
Debug.
Assert
(appliedMasterFilePaths != null);
UI\ObjectPersistData.cs (1)
146
Debug.
Assert
((entry.Name != null) && (entry.Name.Length > 0));
UI\ObjectStateFormatter.cs (9)
251
Debug.
Assert
((s != null) && (s.Length != 0));
280
Debug.
Assert
((s != null) && (s.Length != 0));
291
Debug.
Assert
(_stringTable.Contains(oldString));
305
Debug.
Assert
(type != null);
336
Debug.
Assert
(versionMarker == Marker_Version_1);
424
Debug.
Assert
((token == Token_IndexedStringAdd) || (token == Token_IndexedString));
430
Debug.
Assert
(_stringList[tableIndex] != null);
451
Debug.
Assert
((token == Token_TypeRef) ||
944
Debug.
Assert
(((IndexedString)value).Value != null);
UI\Page.cs (8)
2001
Debug.
Assert
(s != null);
3017
Debug.
Assert
(_partialCachingControlStack != null);
3793
Debug.
Assert
(virtualFileDependencies != null);
4722
Debug.
Assert
(_previousPagePath != null);
5018
Debug.
Assert
(_previousPagePath != null);
6131
Debug.
Assert
(_legacyAsyncInfo.AsyncResult == result);
6338
Debug.
Assert
(_dataBindingContext != null);
6339
Debug.
Assert
(_dataBindingContext.Count > 0);
UI\PageAdapter.cs (1)
77
Debug.
Assert
(Control != null);
UI\PageParserFilter.cs (2)
56
Debug.
Assert
(_virtualPath == null);
78
Debug.
Assert
(_virtualPath != null);
UI\PageTheme.cs (2)
75
Debug.
Assert
(page != null);
106
Debug.
Assert
(skin == null || skin.ControlType == control.GetType());
UI\ParsedAttributeCollection.cs (2)
38
Debug.
Assert
(entry.Key != null);
85
Debug.
Assert
(!String.IsNullOrEmpty(name));
UI\PartialCachingControl.cs (3)
191
Debug.
Assert
(false);
520
Debug.
Assert
(!String.IsNullOrEmpty(prefix));
572
Debug.
Assert
(_varyByParamsCollection == null);
UI\SimpleWebHandlerParser.cs (3)
97
Debug.
Assert
(context == null);
98
Debug.
Assert
(physicalPath == null);
100
Debug.
Assert
(virtualPath != null);
UI\StateManagedCollection.cs (7)
154
Debug.
Assert
(savedState != null);
155
Debug.
Assert
(savedState is Pair);
199
Debug.
Assert
(p1.First is object[]);
227
Debug.
Assert
(savedState != null);
228
Debug.
Assert
(savedState is Triplet);
360
Debug.
Assert
(_saveAll);
443
Debug.
Assert
(_saveAll == false);
UI\TemplateControl.cs (5)
440
Debug.
Assert
(_eventObjects[key] != null);
649
Debug.
Assert
((objectFactory == null) != (t == null));
659
Debug.
Assert
(t != null);
666
Debug.
Assert
(noCompileUCResult != null);
699
Debug.
Assert
(virtualPath != null);
UI\TemplateParser.cs (9)
526
Debug.
Assert
(RootBuilder != null);
631
Debug.
Assert
(attrs[0] is FileLevelControlBuilderAttribute);
1532
Debug.
Assert
(childType != null);
1676
Debug.
Assert
(column > 0);
1995
Debug.
Assert
(deviceName != null);
2131
Debug.
Assert
(_rootBuilder == null);
2189
Debug.
Assert
(_codeFileVirtualPath == null);
2565
Debug.
Assert
(column > 0);
2603
Debug.
Assert
(false);
UI\TraceContext.cs (2)
120
System.Web.Util.Debug.
Assert
(_isEnabled == TraceEnable.Disable);
761
System.Web.Util.Debug.
Assert
(_masterRequest != null);
UI\Util.cs (5)
283
Debug.
Assert
(IsValidFileName(fileName));
528
Debug.
Assert
(offset <= newoffset);
1083
Debug.
Assert
(chunkCount >= 1);
1309
Debug.
Assert
(!String.IsNullOrEmpty(assemblyPath));
1645
Debug.
Assert
(!String.IsNullOrEmpty(secondScript));
UI\ValidationSettings.cs (1)
23
Debug.
Assert
(value is UnobtrusiveValidationMode);
UI\WebControls\AccessDataSourceView.cs (1)
28
Debug.
Assert
(owner != null);
UI\WebControls\AdCreatedEventArgs.cs (1)
148
Debug.
Assert
(properties != null);
UI\WebControls\AdPostCacheSubstitution.cs (2)
43
Debug.
Assert
(_adRotatorHelper != null && _adRotatorHelper.Page != null);
48
Debug.
Assert
(htmlWriter != null);
UI\WebControls\AdRotator.cs (5)
466
Debug.
Assert
(adRecs != null);
499
Debug.
Assert
(xmlDataSource != null);
634
Debug.
Assert
(keywordFilter != null && keywordFilter.Length > 0);
757
Debug.
Assert
(writer != null);
758
Debug.
Assert
(adArgs != null);
UI\WebControls\basecomparevalidator.cs (1)
184
Debug.
Assert
(shortYear >= 0 && shortYear < 100);
UI\WebControls\BaseDataList.cs (1)
513
Debug.
Assert
(_currentViewValid);
UI\WebControls\BaseValidator.cs (2)
393
Debug.
Assert
(control != null);
395
Debug.
Assert
(page != null);
UI\WebControls\ButtonColumn.cs (1)
283
Debug.
Assert
(DesignMode == true);
UI\WebControls\ButtonField.cs (1)
302
Debug.
Assert
(DesignMode == true);
UI\WebControls\Calendar.cs (2)
1503
Debug.
Assert
(numOfFirstDaysToSkip < 7);
1650
Debug.
Assert
(!passedLastSupportedDate);
UI\WebControls\ChildTable.cs (2)
40
Debug.
Assert
(parentLevel >= 1);
82
Debug.
Assert
(parent != null);
UI\WebControls\ContentPlaceHolder.cs (1)
56
Debug.
Assert
(masterPage != null || InDesigner);
UI\WebControls\CreateUserWizard.cs (1)
2872
Debug.
Assert
(_defaultCreateUserNavigationTemplate != null);
UI\WebControls\DataBoundControl.cs (1)
286
Debug.
Assert
(_currentViewValid);
UI\WebControls\DataBoundControlHelper.cs (1)
137
Debug.
Assert
(s_enableDynamicDataMethod != null);
UI\WebControls\DataControlLinkButton.cs (1)
89
Debug.
Assert
(((i == 0) && (control is TableCell)) ||
UI\WebControls\DataControlPagerLinkButton.cs (1)
47
Debug.
Assert
(((i == 0) && (control is TableCell)) ||
UI\WebControls\DataGridLinkButton.cs (1)
42
Debug.
Assert
(((i == 0) && (control is TableCell)) ||
UI\WebControls\DataList.cs (3)
982
Debug.
Assert
(((IRepeatInfoUser)this).HasHeader);
986
Debug.
Assert
(((IRepeatInfoUser)this).HasFooter);
990
Debug.
Assert
(((IRepeatInfoUser)this).HasSeparators);
UI\WebControls\DetailsView.cs (2)
2923
Debug.
Assert
(RowsGeneratorInternal is IStateManager);
3226
Debug.
Assert
(Controls[0] is Table);
UI\WebControls\FormView.cs (1)
2771
Debug.
Assert
(Controls[0] is Table);
UI\WebControls\GridView.cs (2)
2002
Debug.
Assert
(pagedDataSource.CurrentPageIndex >= 0);
3578
Debug.
Assert
(ColumnsGeneratorInternal is IStateManager);
UI\WebControls\GridViewColumnsGenerator.cs (1)
15
Debug.
Assert
(dataObject == null || dataObject is PagedDataSource);
UI\WebControls\HierarchicalDataBoundControl.cs (2)
94
Debug.
Assert
(_currentDataSourceValid);
96
Debug.
Assert
(ds != null);
UI\WebControls\HyperLinkStyle.cs (1)
77
Debug.
Assert
(_owner != null);
UI\WebControls\Menu.cs (4)
1298
Debug.
Assert
(cacheList != null);
1839
Debug.
Assert
(dictionary != null && DesignMode);
1926
Debug.
Assert
(_designTimeTextWriterType.IsSubclassOf(typeof(HtmlTextWriter)));
2475
Debug.
Assert
(node == null || node.Owner == this);
UI\WebControls\ModelDataSourceView.cs (5)
891
Debug.
Assert
(_owner.DataControl.Page != null);
908
Debug.
Assert
(_owner.DataControl.Page != null);
963
Debug.
Assert
(_owner.DataControl.Page != null);
964
Debug.
Assert
(_owner.DataControl.TemplateControl != null);
1268
Debug.
Assert
(destination != null);
UI\WebControls\ObjectDataSourceView.cs (5)
74
Debug.
Assert
(owner != null);
755
Debug.
Assert
(converter != null);
1582
Debug.
Assert
(allParameters.Contains(paramName));
1767
Debug.
Assert
(destination != null);
1768
Debug.
Assert
(reference != null);
UI\WebControls\Repeater.cs (1)
765
Debug.
Assert
(_currentViewValid);
UI\WebControls\SiteMapPath.cs (3)
503
Debug.
Assert
(toStyle != null);
541
Debug.
Assert
(_mergedCurrentNodeStyle != null && _mergedRootNodeStyle != null);
623
Debug.
Assert
(myState.Length == 5);
UI\WebControls\SqlDataSource.cs (2)
944
Debug.
Assert
(_providerFactory != null);
1010
Debug.
Assert
(cache != null);
UI\WebControls\SqlDataSourceView.cs (3)
616
Debug.
Assert
(command != null);
1192
Debug.
Assert
(command != null);
1193
Debug.
Assert
(parameters != null);
UI\WebControls\TreeView.cs (2)
1341
Debug.
Assert
(cacheList != null);
3065
Debug.
Assert
(node == null || node.Owner == this);
UI\WebControls\ValidatorCompatibilityHelper.cs (6)
18
Debug.
Assert
(scriptManagerType != null);
30
Debug.
Assert
(scriptManagerType != null);
42
Debug.
Assert
(scriptManagerType != null);
53
Debug.
Assert
(scriptManagerType != null);
64
Debug.
Assert
(scriptManagerType != null);
75
Debug.
Assert
(scriptManagerType != null);
UI\WebControls\Wizard.cs (7)
1495
Debug.
Assert
(dictionary != null && DesignMode);
1580
Debug.
Assert
(index > -1 && index < WizardSteps.Count);
1868
Debug.
Assert
(_commandSender == null);
2023
Debug.
Assert
(parent is TableCell);
2727
Debug.
Assert
(Owner.HeaderText != null && Owner.HeaderText.Length > 0);
3006
Debug.
Assert
(_wizard.DesignMode);
3220
Debug.
Assert
(owner != null);
UI\WebControls\xml.cs (2)
458
Debug.
Assert
(_xpathDocument == null && _document == null && _xpathNavigator == null);
500
Debug.
Assert
(_xpathDocument == null && _document == null && _xpathNavigator == null);
UI\WebControls\XmlDataSource.cs (1)
552
Debug.
Assert
(Cache.Enabled);
UI\WebControls\XmlHierarchicalDataSourceView.cs (1)
34
Debug.
Assert
(owner != null);
UI\WebParts\BlobPersonalizationState.cs (15)
106
Debug.
Assert
(control != null);
107
Debug.
Assert
(!String.IsNullOrEmpty(personalizationID));
162
Debug.
Assert
(control is WebPart);
423
Debug.
Assert
(!String.IsNullOrEmpty(ID));
581
Debug.
Assert
(control != null);
582
Debug.
Assert
(!String.IsNullOrEmpty(personalizationID));
744
Debug.
Assert
(control is WebPart);
828
Debug.
Assert
(control != null);
845
Debug.
Assert
(pi != null);
875
Debug.
Assert
(!String.IsNullOrEmpty(personalizationID));
876
Debug.
Assert
(!String.IsNullOrEmpty(propertyName));
980
Debug.
Assert
(personalizationID != null);
1110
Debug.
Assert
(control != null);
1111
Debug.
Assert
(!String.IsNullOrEmpty(personalizationID));
1165
Debug.
Assert
(pi != null);
UI\WebParts\CatalogZoneBase.cs (4)
360
Debug.
Assert
(WebPartManager != null);
469
Debug.
Assert
(page != null);
606
Debug.
Assert
(!String.IsNullOrEmpty(catalogPart.ID));
660
Debug.
Assert
(!String.IsNullOrEmpty(zone.ID));
UI\WebParts\ConnectionsZone.cs (18)
673
Debug.
Assert
(transformerType.IsSubclassOf(typeof(WebPartTransformer)));
757
Debug.
Assert
(transformerType.IsSubclassOf(typeof(WebPartTransformer)));
805
Debug.
Assert
(webPartManager != null);
841
Debug.
Assert
(providerInfo != null && providerInfo.TransformerType != null && providerInfo.TransformerType.IsSubclassOf(typeof(WebPartTransformer)));
866
Debug.
Assert
(_pendingSelectedValue != null);
870
Debug.
Assert
(consumerInfo != null && consumerInfo.TransformerType != null && consumerInfo.TransformerType.IsSubclassOf(typeof(WebPartTransformer)));
908
Debug.
Assert
(_pendingSelectedValue != null);
992
Debug.
Assert
(_pendingConnectionType == ConnectionType.None);
1242
Debug.
Assert
(_pendingTransformer != null);
1827
Debug.
Assert
(connection.Provider == webPartToConnect);
1850
Debug.
Assert
(!connection.Provider.IsClosed && !connection.Consumer.IsClosed);
1867
Debug.
Assert
(connection.Consumer == webPartToConnect);
1890
Debug.
Assert
(!connection.Provider.IsClosed && !connection.Consumer.IsClosed);
1962
Debug.
Assert
(_pendingTransformer != null);
1965
Debug.
Assert
(_pendingConsumer != null && _pendingProvider != null
2120
Debug.
Assert
(WebPartManager != null);
2241
Debug.
Assert
(_pendingSelectedValue != null);
2259
Debug.
Assert
(_pendingSelectedValue != null);
UI\WebParts\EditorZoneBase.cs (1)
232
Debug.
Assert
(webPartToEdit != null);
UI\WebParts\PersonalizableAttribute.cs (2)
154
Debug.
Assert
(type != null);
170
Debug.
Assert
(type != null);
UI\WebParts\PersonalizationAdministration.cs (3)
67
Debug.
Assert
(_providers == null);
121
Debug.
Assert
(count >= 0);
150
Debug.
Assert
(count >= 0);
UI\WebParts\PersonalizationStateInfoCollection.cs (3)
126
Debug.
Assert
(ipos >= 0 && ipos < _values.Count);
174
Debug.
Assert
(path != null);
193
Debug.
Assert
(key.Path != null);
UI\WebParts\PersonalizationStateQuery.cs (1)
80
Debug.
Assert
(valueType != null);
UI\WebParts\ProxyWebPartConnectionCollection.cs (3)
117
Debug.
Assert
(webPartManagerIndex >= 0);
140
Debug.
Assert
(_webPartManager == null);
142
Debug.
Assert
(webPartManager != null);
UI\WebParts\SqlPersonalizationProvider.cs (16)
84
Debug.
Assert
(connection != null);
204
Debug.
Assert
(connection != null);
310
Debug.
Assert
(connection != null);
386
Debug.
Assert
(connection != null);
504
Debug.
Assert
(connection != null);
505
Debug.
Assert
(!String.IsNullOrEmpty(path));
580
Debug.
Assert
(connection != null);
581
Debug.
Assert
(!String.IsNullOrEmpty(path));
640
Debug.
Assert
(connection != null);
692
Debug.
Assert
(connection != null);
805
Debug.
Assert
(connection != null);
839
Debug.
Assert
(paths != null);
856
Debug.
Assert
(mode == ResetUserStateMode.PerUsers);
906
Debug.
Assert
(connection != null);
907
Debug.
Assert
(!String.IsNullOrEmpty(path));
908
Debug.
Assert
((state != null) && (state.Length != 0));
UI\WebParts\WebPartChrome.cs (3)
248
Debug.
Assert
(_page.SupportsStyleSheets);
250
Debug.
Assert
(style.RegisteredCssClass.Length == 0);
610
Debug.
Assert
(WebPartManager != null);
UI\WebParts\WebPartManager.cs (34)
898
Debug.
Assert
(Personalization.IsModifiable);
901
Debug.
Assert
(webPart.Zone == null);
997
Debug.
Assert
(webPart.Zone == null || webPart.IsClosed);
1010
Debug.
Assert
(allParts.Contains(successor));
1778
Debug.
Assert
(consumerAttributes.Length == 0 || consumerAttributes.Length == 1);
1813
Debug.
Assert
(providerAttributes.Length == 0 || providerAttributes.Length == 1);
1925
Debug.
Assert
(Personalization.IsModifiable);
1936
Debug.
Assert
(Personalization.IsModifiable);
2017
Debug.
Assert
(!(StaticConnections.Contains(connection) && DynamicConnections.Contains(connection)));
2052
Debug.
Assert
(!Internals.ConnectionDeleted(connection));
2232
Debug.
Assert
((!excludeSensitive) || isIPersonalizable);
2292
Debug.
Assert
(!String.IsNullOrEmpty(zoneID));
2390
Debug.
Assert
(!String.IsNullOrEmpty(displayTitle));
2966
Debug.
Assert
(target != null);
3017
Debug.
Assert
(pi != null);
3157
Debug.
Assert
(target is IPersonalizable);
3308
Debug.
Assert
(dynamicConnectionState.Length % 7 == 0);
3389
Debug.
Assert
(type == typeof(UserControl));
3441
Debug.
Assert
(dynamicWebPart != null);
3451
Debug.
Assert
(dynamicWebPartState.Length % 4 == 0);
3492
Debug.
Assert
(connectionToDelete.IsShared);
3496
Debug.
Assert
(connectionToDelete.IsStatic || entry.Scope == PersonalizationScope.User);
3518
Debug.
Assert
(webPartState.Length % 4 == 0);
3636
Debug.
Assert
(existingInstance != this);
3660
Debug.
Assert
(page != null);
3907
Debug.
Assert
(zone != null);
3934
Debug.
Assert
(zone is ToolZone);
3971
Debug.
Assert
(!webPart.IsClosed);
4137
Debug.
Assert
(deletedConnection.IsShared);
4140
Debug.
Assert
(deletedConnection.IsStatic || scope == PersonalizationScope.User);
4172
Debug.
Assert
(!Internals.ConnectionDeleted(connection));
4204
Debug.
Assert
(part.Zone == zone);
4290
Debug.
Assert
(Personalization.IsModifiable);
4518
Debug.
Assert
(type != null && culture != null && uiCulture != null);
UI\WebParts\WebPartMenu.cs (9)
92
Debug.
Assert
(_menuUser.Page != null && _menuUser.Page.SupportsStyleSheets);
96
Debug.
Assert
(style.RegisteredCssClass.Length == 0);
107
Debug.
Assert
(_menuUser.Page != null && _menuUser.Page.SupportsStyleSheets);
122
Debug.
Assert
(webPartManager != null);
224
Debug.
Assert
(verb != null);
241
Debug.
Assert
(associatedWebPart != null);
256
Debug.
Assert
(associatedWebPart != null);
298
Debug.
Assert
(submitScript != null || clientClickScript != null);
312
Debug.
Assert
(associatedWebPart != null);
UI\WebParts\WebPartPersonalization.cs (4)
302
Debug.
Assert
(!(customPersonalizable == null && info.CustomProperties != null));
352
Debug.
Assert
((genericWebPartA == null) == (genericWebPartB == null));
390
Debug.
Assert
(_provider != null);
508
Debug.
Assert
(_provider != null);
UI\WebParts\WebZone.cs (3)
489
Debug.
Assert
(chromeType != PartChromeType.Default);
535
Debug.
Assert
(page != null);
556
Debug.
Assert
(parent != null);
Util\altserialization.cs (4)
133
Debug.
Assert
(IntPtr.Size == 8);
144
Debug.
Assert
(UIntPtr.Size == 8);
254
Debug.
Assert
(IntPtr.Size == 8);
264
Debug.
Assert
(UIntPtr.Size == 8);
Util\ArglessEventHandlerProxy.cs (1)
22
Debug.
Assert
(arglessMethod.GetParameters().Length == 0);
Util\AspCompat.cs (1)
366
Debug.
Assert
(_ar == ar);
Util\GCUtil.cs (3)
47
Debug.
Assert
(t != null);
54
Debug.
Assert
(_handle.IsAllocated);
62
Debug.
Assert
(_handle.IsAllocated);
Util\HttpEncoder.cs (1)
902
Debug.
Assert
(false);
Util\HttpEncoderUtility.cs (1)
27
Debug.
Assert
(n < 0x10);
Util\ReadWriteObjectLock.cs (2)
46
Debug.
Assert
(_lock > 0);
72
Debug.
Assert
(_lock == -1);
Util\ReadWriteSpinLock.cs (1)
199
Debug.
Assert
(id == 0);
Util\SecUtil.cs (1)
59
Debug.
Assert
(config != null);
Util\SynchronizationContextUtil.cs (1)
44
Debug.
Assert
(specificErrorMessage != null);
Util\SystemInfo.cs (1)
57
Debug.
Assert
(_trueNumberOfProcessors > 0);
Util\UriUtil.cs (3)
26
Debug.
Assert
(!String.IsNullOrEmpty(scheme));
27
Debug.
Assert
(!String.IsNullOrEmpty(serverName));
28
Debug.
Assert
(!String.IsNullOrEmpty(path));
Util\UrlPath.cs (13)
172
Debug.
Assert
(lastSlashIndex >= 0);
213
Debug.
Assert
(!String.IsNullOrEmpty(basepath));
214
Debug.
Assert
(!String.IsNullOrEmpty(relative));
215
Debug.
Assert
(relative[0] != '/');
287
Debug.
Assert
(sb.Length == 1);
523
Debug.
Assert
(virtualPath2[0] == '/');
542
Debug.
Assert
(HttpRuntime.AppDomainAppVirtualPathObject != null);
548
Debug.
Assert
(HttpRuntime.AppDomainAppVirtualPathObject != null);
555
Debug.
Assert
(HttpRuntime.AppDomainAppVirtualPathObject != null);
569
Debug.
Assert
(applicationPath[0] == '/');
570
Debug.
Assert
(HasTrailingSlash(applicationPath));
603
Debug.
Assert
(HttpRuntime.AppDomainAppVirtualPathObject != null);
622
Debug.
Assert
(HasTrailingSlash(applicationPath));
VirtualPath.cs (9)
90
Debug.
Assert
(_appRelativeVirtualPath != null);
127
Debug.
Assert
(_virtualPath != null);
229
Debug.
Assert
(HasTrailingSlash);
232
Debug.
Assert
(filename[0] != '/' && !UrlPath.HasTrailingSlash(filename));
305
Debug.
Assert
(this.HasTrailingSlash);
336
Debug.
Assert
(false);
403
Debug.
Assert
(index >= 0);
464
Debug.
Assert
(false);
484
Debug.
Assert
(_appRelativeVirtualPath != null);
WorkerRequest.cs (1)
1387
Debug.
Assert
(serverVarName == null || serverVarName == "HTTP_" + headerName.ToUpper(CultureInfo.InvariantCulture).Replace('-', '_'));
XmlSiteMapProvider.cs (2)
405
Debug.
Assert
(_filename != null);
820
Debug.
Assert
(providerName != null);