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