8849 references to Assert
PresentationBuildTasks (81)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
350Debug.Assert(Scope.ShouldProcessContent(namespaceName, Reader.LocalName));
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
49Debug.Assert( baseReader != null );
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (26)
251Debug.Assert(!cu.Pass2); 273Debug.Assert(!cu.Pass2); 284Debug.Assert(!cu.Pass2 || _pendingLocalFiles == null); 285Debug.Assert(_pendingLocalFiles == null || _pendingLocalFiles.Count == 0); 585Debug.Assert(_codeContexts.Count == 0); 965Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 967Debug.Assert(ccsConnector != null); 1776Debug.Assert(desc != null); 1851Debug.Assert(pis != null && pis.Length == 2 && KnownTypes.Types[(int)KnownElements.DependencyObject].IsAssignableFrom(pis[0].ParameterType)); 1979Debug.Assert(_ccRoot != null && _ccRoot.SubClass.Length > 0); 2052Debug.Assert(CompilerInfo != null && CompilerInfo.IsCodeDomProviderTypeValid); 2253Debug.Assert(genericName.Length > 0 || t.IsGenericTypeDefinition); 2257Debug.Assert(genericName.Length == 0 && typeArgsList != null); 2343Debug.Assert(typeArgsList != null && typeArgsList.Length == refTypeParams.Length); 2408Debug.Assert(_typeArgsList == null || (baseClass.IsGenericType && baseClass.IsGenericTypeDefinition)); 2409Debug.Assert(_typeArgsList != null || !baseClass.IsGenericType); 2476Debug.Assert(!string.IsNullOrEmpty(baseName)); 2482Debug.Assert(_ccRoot == null); 2925Debug.Assert(_ccRoot != null); 2974Debug.Assert(cc != null); 2978Debug.Assert(_ccRoot == (cc as CodeContextRoot)); 2979Debug.Assert(_ccRoot.CodeClass != null); 3003Debug.Assert(_ccRoot.HookupFn == null); 3057Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot)); 3058Debug.Assert(_ccRoot.ElementType == null || 3082Debug.Assert(_ccRoot == (_codeContexts.Peek() as CodeContextRoot));
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (1)
907Debug.Assert(bamlMemStream != null);
Framework\MS\Internal\Globalization\LocalizationComments.cs (1)
362Debug.Assert(enumPrefix != null && enumNames != null);
Framework\System\Windows\Markup\BamlMapTable.cs (8)
92Debug.Assert(null != xamlTypeMapper); 168Debug.Assert(cmp > 0); 1068Debug.Assert(bamlAssemblyInfoRecord.AssemblyId >= 0); 1104Debug.Assert( 1116Debug.Assert(bamlAssemblyInfoRecord.AssemblyId >= 0); 1296Debug.Assert(ownerTypeName != null); 1297Debug.Assert(attributeName != null); 1514Debug.Assert(targetType != null && memberName != null);
Framework\System\Windows\Markup\BamlRecords.cs (7)
777Debug.Assert(null == _writeCache[(int)record.RecordType]); 917Debug.Assert( value <= 3 && value >= 0 ); 1110Debug.Assert(RecordSize < 0); 2478Debug.Assert(value <= ExtensionIdMask); 4795Debug.Assert( SerializerTypeId != 0 ); 4972Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null); 5015Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null);
Framework\System\Windows\Markup\BamlRecordWriter.cs (10)
144Debug.Assert(null != DocumentStartRecord); 416Debug.Assert(_deferElementDepth == 0); 417Debug.Assert(_deferComplexPropertyDepth == 0); 418Debug.Assert(_staticResourceElementDepth == 0); 419Debug.Assert(_dynamicResourceElementDepth == 0); 420Debug.Assert(_staticResourceRecordList == null); 438Debug.Assert(_staticResourceElementDepth == 0); 890Debug.Assert(_deferElementDepth == 2); 1079Debug.Assert(extensionTypeId != (short)KnownElements.TypeExtension); 1096Debug.Assert(typeValue != null);
Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1205Debug.Assert(sb.Length > 0); 1206Debug.Assert(!Char.IsWhiteSpace(sb[0]));
Framework\System\Windows\Markup\StyleXamlParser.cs (2)
513Debug.Assert(_inEventSetter); 1228Debug.Assert(!xamlClrEventNode.IsTemplateEvent && _inEventSetter);
Framework\System\Windows\Markup\TemplateXamlParser.cs (3)
570Debug.Assert(_setterOrTriggerValueNode != null); 1343Debug.Assert(_styleModeStack.Mode == StyleMode.VisualTree); 1353Debug.Assert(!xamlClrEventNode.IsStyleSetterEvent);
Framework\System\Windows\Markup\XamlParser.cs (1)
1245Debug.Assert(SkipActionDepthCount == -1);
Framework\System\Windows\Markup\XamlReaderHelper.cs (13)
376Debug.Assert(null != XmlReader); 1522Debug.Assert( (null==ContentPropertyInfo && null==ContentPropertyName) 2086Debug.Assert(false == endTagHasBeenRead); 2236Debug.Assert(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri)); 2245Debug.Assert(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri)); 2254Debug.Assert(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri)); 2263Debug.Assert(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri)); 2272Debug.Assert(IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri)); 2281Debug.Assert (attributeFound || !IsElementScopedAttribute(attribName, attribLocalName, attributeNamespaceUri)); 2771Debug.Assert(unknownTagName != null || null != parentType); 3710Debug.Assert(typeAndSerializer == null || 4790Debug.Assert( collectionTypeID >= 0 5453Debug.Assert(currentPos > 0 && currentPos < s.Length - 1);
Framework\System\Windows\Markup\XamlTypeMapper.cs (3)
2403Debug.Assert(memberName != null); 2406Debug.Assert(memberInfo != null); 2421Debug.Assert(targetType != null);
Framework\System\Windows\Markup\XmlnsDictionary.cs (1)
722Debug.Assert(prefix != null);
Shared\MS\Internal\TokenizerHelper.cs (1)
344Debug.Assert(null != numberFormat);
PresentationCore (1553)
Core\CSharp\MS\Internal\AppModel\CookieHandler.cs (1)
132Debug.Assert(size > 0);
Core\CSharp\MS\Internal\Automation\EventPropertyMap.cs (1)
118Debug.Assert(properties != null);
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
830Debug.Assert(i == FamilyCount);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
76Debug.Assert(stream.Position == 0);
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (3)
64Debug.Assert(uri.IsAbsoluteUri && uri.Scheme == PackUriHelper.UriSchemePack && BaseUriHelper.IsPackApplicationUri(uri)); 77Debug.Assert(escapedPath.EndsWith(FakeFileName, StringComparison.OrdinalIgnoreCase)); 145Debug.Assert(!folderResourceMap.ContainsKey(resourceFullName));
Core\CSharp\MS\Internal\FontCache\FontSource.cs (3)
93Debug.Assert(String.IsNullOrEmpty(_fontUri.Fragment)); 385Debug.Assert(memoryFontSize <= fileReadBufferSize); 476Debug.Assert(_memoryHandle.IsAllocated);
Core\CSharp\MS\Internal\FontFace\CompositeFontInfo.cs (3)
221Debug.Assert(IsFamilyMapRangesValid(familyMapRanges)); 229Debug.Assert(begin < end && end <= _familyMaps.Count); 257Debug.Assert(count == FirstFamilyMapRange);
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (4)
146Debug.Assert(bestMatch != null); 238Debug.Assert(bestStyleTypeface != null); 366Debug.Assert(advance <= unicodeString.Length); 372Debug.Assert(advance + sizeofChar <= unicodeString.Length);
Core\CSharp\MS\Internal\Generic\Span.cs (1)
143Debug.Assert(fc <= first);
Core\CSharp\MS\Internal\Ink\Bezier.cs (2)
116Debug.Assert(to - from >= 4); 357Debug.Assert(data.Node(to) - data.Node(from) > data.Node(j) - data.Node(from));
Core\CSharp\MS\Internal\Ink\CuspData.cs (1)
282Debug.Assert(bReverse);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (9)
29System.Diagnostics.Debug.Assert((nodeShape != null) && nodeShape.IsEllipse); 176System.Diagnostics.Debug.Assert(node.IsEmpty == false); 581System.Diagnostics.Debug.Assert(result.IsEmpty); 619System.Diagnostics.Debug.Assert(DoubleUtil.AreClose(beginRadius, endRadius) == false); 651System.Diagnostics.Debug.Assert(!double.IsNaN(findex)); 660System.Diagnostics.Debug.Assert(DoubleUtil.IsBetweenZeroAndOne(x) == false); 662System.Diagnostics.Debug.Assert(!double.IsNaN(findex)); 678System.Diagnostics.Debug.Assert(!double.IsNaN(findex)); 690System.Diagnostics.Debug.Assert(!double.IsNaN(findex));
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (6)
33System.Diagnostics.Debug.Assert(erasingShape != null); 59System.Diagnostics.Debug.Assert((path != null) && (IEnumerablePointHelper.GetCount(path) != 0)); 100System.Diagnostics.Debug.Assert(iterator != null); 139System.Diagnostics.Debug.Assert(iterator != null); 140System.Diagnostics.Debug.Assert(intersections != null); 262System.Diagnostics.Debug.Assert(path.Length > 1);
Core\CSharp\MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
185System.Diagnostics.Debug.Assert(propertyToRemove != null);
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (8)
81Debug.Assert(NativeRecognizer.RecognizerHandleSingleton != null); 448Debug.Assert(recContext != null && !recContext.IsInvalid); 502Debug.Assert(recContext != null && !recContext.IsInvalid); 596Debug.Assert(stylusPoints != null); 597Debug.Assert(propertyGuids.Length == StylusPointDescription.RequiredCountOfProperties); 741Debug.Assert(ApplicationGestureHelper.IsDefined(gesture)); 835Debug.Assert(pProps->cbPropertyValue == sizeof(uint) / sizeof(byte)); 847Debug.Assert(ApplicationGestureHelper.IsDefined(gesture));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (4)
231Debug.Assert(outputBufferIndex < outputBuffer.Length); 240Debug.Assert(outputBufferIndex < outputBuffer.Length); 293Debug.Assert(countPerItem == 4 || countPerItem == 2 || countPerItem == 1); 357Debug.Assert(countPerItem == 4 || countPerItem == 2 || countPerItem == 1);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
341Debug.Assert(strm != null); 466System.Diagnostics.Debug.Assert(guid == Guid.Empty);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (11)
352System.Diagnostics.Debug.Assert(penTip == PenTip.Rectangle); 441Debug.Assert(DrawingAttributes.MaxHeight == DrawingAttributes.MaxWidth && 484Debug.Assert(stream != null); 510Debug.Assert(bw != null); 516Debug.Assert(bw != null); 536Debug.Assert(bw != null); 549Debug.Assert(bw != null); 567Debug.Assert(bw != null); 654Debug.Assert(bw != null); 708Debug.Assert(bw != null); 719Debug.Assert(bw != null);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (5)
234Debug.Assert(intReader != null); 235Debug.Assert(shortReader != null); 247Debug.Assert(shortReader != null); 569Debug.Assert(outputBufferIndex < outputBuffer.Length); 586Debug.Assert(outputBufferIndex < outputBuffer.Length);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (9)
93Debug.Assert(input != null); 94Debug.Assert(input.Length >= 2); 95Debug.Assert(startIndex == 1); 96Debug.Assert(outputBuffer != null); 97Debug.Assert(outputBuffer.Length != 0); 109Debug.Assert(outputBufferIndex < outputBuffer.Length); 124Debug.Assert(outputBufferIndex < outputBuffer.Length); 189Debug.Assert(nDataLen > 0 && nDataLen - 1 <= Int32.MaxValue); 193Debug.Assert(nDataLen <= Int32.MaxValue);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (7)
107System.Diagnostics.Debug.Assert(inkData.Length > isfBase64PrefixLength); 252Debug.Assert(inkdata != null); 317Debug.Assert(inputStream != null); 2161Debug.Assert(data != null); 2558Debug.Assert(sizeOfHeaderInBytes == bytesWritten); 2597Debug.Assert(sizes[i] == bytesWritten); 2797System.Diagnostics.Debug.Assert(strokes != null);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (4)
41Debug.Assert(input != null); 42Debug.Assert(input.Length > 1); 43Debug.Assert(inputIndex < input.Length); 44Debug.Assert(inputIndex >= 0);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (3)
80Debug.Assert(input != null); 81Debug.Assert(inputIndex < input.Length); 115Debug.Assert(input != null); //already validated at the AlgoModule level
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
1025Debug.Assert(stream != null);
Core\CSharp\MS\Internal\Ink\Lasso.cs (19)
54System.Diagnostics.Debug.Assert(_points != null); 68System.Diagnostics.Debug.Assert(_points != null); 82System.Diagnostics.Debug.Assert(_points != null); 83System.Diagnostics.Debug.Assert((0 <= index) && (index < _points.Count)); 95System.Diagnostics.Debug.Assert(null != points); 109System.Diagnostics.Debug.Assert(_points != null); 125System.Diagnostics.Debug.Assert(_points != null); 176System.Diagnostics.Debug.Assert(lassoSegment.Y != 0); 191System.Diagnostics.Debug.Assert(_points != null); 192System.Diagnostics.Debug.Assert(iterator != null); 341System.Diagnostics.Debug.Assert(!crossing.IsEmpty && crossing.StartNode.IsValid && crossing.EndNode.IsValid); 344System.Diagnostics.Debug.Assert(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid); 351System.Diagnostics.Debug.Assert(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid); 428System.Diagnostics.Debug.Assert(DoubleUtil.AreClose(si.InBegin, StrokeFIndices.BeforeFirst)); 563System.Diagnostics.Debug.Assert(!newFIndices.IsEmpty); 564System.Diagnostics.Debug.Assert(strokeNode.IsValid); 605System.Diagnostics.Debug.Assert(obj is LassoCrossing); 710System.Diagnostics.Debug.Assert(intersection >= 0 && intersection <= points.Count - 2); 813System.Diagnostics.Debug.Assert(hitEnd != hitBegin && orgBegin != orgEnd);
Core\CSharp\MS\Internal\Ink\Renderer.cs (8)
48Debug.Assert(renderer != null); 451System.Diagnostics.Debug.Assert(sender == _strokes); 501System.Diagnostics.Debug.Assert(_strokes.IndexOf(sender as Stroke) != -1); 552System.Diagnostics.Debug.Assert(_strokes != null); 558Debug.Assert(visual is StrokeVisual); 652System.Diagnostics.Debug.Assert(stroke != null); 661System.Diagnostics.Debug.Assert(stroke != null); 673System.Diagnostics.Debug.Assert(drawingAttributes != null);
Core\CSharp\MS\Internal\Ink\StrokeIntersection.cs (6)
192System.Diagnostics.Debug.Assert(intersections != null); 193System.Diagnostics.Debug.Assert(intersections.Length > 0); 198System.Diagnostics.Debug.Assert(!intersections[j].IsEmpty); 224System.Diagnostics.Debug.Assert(intersections != null); 225System.Diagnostics.Debug.Assert(intersections.Length > 0); 230System.Diagnostics.Debug.Assert(!intersections[j].IsEmpty);
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (17)
42System.Diagnostics.Debug.Assert(operations != null); 43System.Diagnostics.Debug.Assert((nodeData.IsEmpty == false) && (index >= 0)); 292Debug.Assert(!endNodeRect.Contains(point)); 905System.Diagnostics.Debug.Assert(!double.IsNaN(cutAt.BeginFIndex) && !double.IsNaN(cutAt.EndFIndex)); 923System.Diagnostics.Debug.Assert(IsValid && (_index >= 0)); 930System.Diagnostics.Debug.Assert(fragment.BeginFIndex >= 0 && fragment.BeginFIndex <= 1); 935System.Diagnostics.Debug.Assert(fragment.EndFIndex >= 0 && fragment.EndFIndex <= 1); 955System.Diagnostics.Debug.Assert(IsValid); 967System.Diagnostics.Debug.Assert(DoubleUtil.GreaterThanOrClose(fragment.BeginFIndex, 0f)); 969System.Diagnostics.Debug.Assert(DoubleUtil.LessThanOrClose(fragment.BeginFIndex, 1f)); 983System.Diagnostics.Debug.Assert(DoubleUtil.GreaterThanOrClose(fragment.EndFIndex, 0f)); 985System.Diagnostics.Debug.Assert(DoubleUtil.LessThanOrClose(fragment.EndFIndex, 1f)); 1009System.Diagnostics.Debug.Assert(IsValid); 1027System.Diagnostics.Debug.Assert(IsValid); 1045System.Diagnostics.Debug.Assert(IsValid); 1049System.Diagnostics.Debug.Assert(findex == 0); 1053System.Diagnostics.Debug.Assert((findex >= _index - 1) && (findex <= _index));
Core\CSharp\MS\Internal\Ink\StrokeNodeData.cs (2)
51System.Diagnostics.Debug.Assert(DoubleUtil.GreaterThan((double)pressure, 0d)); 62Debug.Assert(DoubleUtil.AreClose(0, s_empty._pressure));
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (19)
52System.Diagnostics.Debug.Assert(nodeShape != null); 83System.Diagnostics.Debug.Assert((boundingBox.X <= 0) && (boundingBox.Y <= 0)); 129System.Diagnostics.Debug.Assert(node.IsEmpty == false); 327System.Diagnostics.Debug.Assert(DoubleUtil.IsZero(pressureFactor) == false); 378System.Diagnostics.Debug.Assert(count > 0); 404System.Diagnostics.Debug.Assert(count > 0); 426System.Diagnostics.Debug.Assert(count > 0); 493System.Diagnostics.Debug.Assert(DoubleUtil.IsZero(pressureFactor) == false); 639System.Diagnostics.Debug.Assert(findex >= 0 && findex <= 1); 653System.Diagnostics.Debug.Assert(findex >= 0 && findex <= 1); 790System.Diagnostics.Debug.Assert(true == DoubleUtil.IsBetweenZeroAndOne(findex)); 978System.Diagnostics.Debug.Assert(DoubleUtil.IsZero(pressureFactor) == false); 1003System.Diagnostics.Debug.Assert(DoubleUtil.IsZero(pressureFactor) == false); 1035System.Diagnostics.Debug.Assert(!quad.IsEmpty); 1105System.Diagnostics.Debug.Assert(i < count); 1145System.Diagnostics.Debug.Assert(count > 0); 1167System.Diagnostics.Debug.Assert(count > 0); 1240System.Diagnostics.Debug.Assert(DoubleUtil.IsZero(pressureFactor) == false); 1312System.Diagnostics.Debug.Assert(findex >= 0 && findex <= 1);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (2)
45System.Diagnostics.Debug.Assert((null != vertices) && (2 < vertices.Length)); 83System.Diagnostics.Debug.Assert(quad.IsEmpty == false);
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (26)
47Debug.Assert(iterator != null); 48Debug.Assert(drawingAttributes != null); 79System.Diagnostics.Debug.Assert(true == strokeNode.IsValid); 161Debug.Assert(index == iterator.Count - 1); 221Debug.Assert(iterator != null && drawingAttributes != null); 493Debug.Assert(pathFigureDCSide.Count == 0); 637Debug.Assert(!strokeNode.IsValid); 659Debug.Assert(pathFigureDCSide.Count == 0); 686Debug.Assert(pathFigureABSide.Count == 0); 722Debug.Assert(pathFigureDCSide.Count == 0); 769Debug.Assert(pointBuffer1 != null); 770Debug.Assert(pointBuffer2 != null); 771Debug.Assert(pointBuffer3 != null); 772Debug.Assert(context != null); 845Debug.Assert(percentIntersect >= 0.0 && percentIntersect <= 100.0d); 881Debug.Assert(context != null); 882Debug.Assert(points != null); 883Debug.Assert(points.Count > 0); 909Debug.Assert(context != null); 910Debug.Assert(abPoints != null && dcPoints != null); 911Debug.Assert(abPoints.Count > 0 && dcPoints.Count > 0); 932Debug.Assert(context != null); 933Debug.Assert(abPoints != null && dcPoints != null); 934Debug.Assert(polyLinePoints != null); 963Debug.Assert(i + 2 < points.Count); 1113System.Diagnostics.Debug.Assert(da.IsHighlighter = true);
Core\CSharp\MS\Internal\Ink\StylusShape.cs (4)
167System.Diagnostics.Debug.Assert(value.HasInverse); 237System.Diagnostics.Debug.Assert(vertices.Length == 4); 262System.Diagnostics.Debug.Assert(clockWiseIndex == vertices.Length || counterClockIndex == vertices.Length); 280System.Diagnostics.Debug.Assert(m_tip == StylusTip.Ellipse);
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (8)
873Debug.Assert(offset >= 0); 874Debug.Assert(length >= 0); 899Debug.Assert(value >= 0); 912Debug.Assert(value >= 0); 958Debug.Assert(_offset <= b._offset); 959Debug.Assert(Mergeable(b)); 1007Debug.Assert(block.Length > 0); 1114Debug.Assert(block.Length > 0);
Core\CSharp\MS\Internal\LoadedOrUnloadedOperation.cs (1)
28Debug.Assert(callback != null && target != null);
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (1)
128Debug.Assert(element == null);
Core\CSharp\MS\Internal\Media3D\GeneralTransform3Dto2Dto3D.cs (1)
44Debug.Assert(transform3DTo2D != null && transform2DTo3D != null);
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (2)
149Debug.Assert(matrix.IsAffine); 327Debug.Assert(!matrix.IsAffine);
Core\CSharp\MS\Internal\PartialArray.cs (1)
39Debug.Assert(initialIndex >= 0 && initialIndex + count <= array.Length);
Core\CSharp\MS\Internal\Shaping\OpenTypeCommon.cs (7)
243Debug.Assert(TableTag==OpenTypeTags.GSUB || TableTag==OpenTypeTags.GPOS); 244Debug.Assert(FirstGlyph<AfterLastGlyph); 245Debug.Assert(AfterLastGlyph<=GlyphInfo.Length); 752Debug.Assert(featureDescription.Parameter != 0); 807Debug.Assert( FlagToSet==GlyphFlags.NotChanged || 959Debug.Assert(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS); 1788Debug.Assert(Index < SubTableCount());
Core\CSharp\MS\Internal\Shaping\OpenTypeLayoutCache.cs (16)
87Debug.Assert(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS); 351Debug.Assert(totalSize <= maxCacheSize); 355Debug.Assert(totalSize <= maxCacheSize); 430Debug.Assert(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS); 450Debug.Assert(false); 583Debug.Assert(lastLookup >= 0); // There are lookups, so there was an index 610Debug.Assert(cacheSize > 0); // We've calcucalted them at least ones, and 611Debug.Assert(glyphCount > 0); // if there is no records, we already should've exited 682Debug.Assert((pList - pCache) * sizeof(ushort) < cacheSize); 687Debug.Assert((pList - pCache) * sizeof(ushort) < cacheSize); 720Debug.Assert((pList - pCache) * sizeof(ushort) < cacheSize); 725Debug.Assert((pList - pCache) * sizeof(ushort) < cacheSize); 737Debug.Assert((pList - pCache) * sizeof(ushort) == cacheSize); // We exactly filled up the cache 738Debug.Assert((pGlyphs - pCache) * sizeof(ushort) == (4 + glyphCount * 2) * sizeof(ushort)); // Glyphs ended where lists start. 888Debug.Assert(tableTag == OpenTypeTags.GSUB || tableTag == OpenTypeTags.GPOS); 1111Debug.Assert(recordCount > 0); // Otherwise, we would go into (glyph > maxGlyphLookup);
Core\CSharp\MS\Internal\Shaping\ShaperBuffers.cs (2)
123Debug.Assert(_charMap.Length == charCount); 134Debug.Assert(_glyphInfoList.Length == glyphCount);
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (7)
175Debug.Assert(ichItem == unicodeString.Length); 190Debug.Assert(index >= 0); 592Debug.Assert(cchMap <= unicodeString.Length - ich); 829Debug.Assert(cchNextValid > 0 && cchNextValid <= unicodeString.Length - ich); 847Debug.Assert(cchNextValid == 0); 857Debug.Assert(recursionDepth > 0 || advance == unicodeString.Length); 1069Debug.Assert(cch > 0);
Core\CSharp\MS\Internal\Span.cs (2)
109Debug.Assert(cp >= 0); 161Debug.Assert(spanIndex > 0);
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (3)
189Debug.Assert(mbArgs != null); 237Debug.Assert(mbArgs != null); 287Debug.Assert(false);
Core\CSharp\MS\Internal\TextFormatting\FormatSettings.cs (3)
221Debug.Assert(offsetToFirstCp == 0); 229Debug.Assert(offsetToFirstCp == 0); 242Debug.Assert(offsetToFirstCp == 0);
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (6)
66Debug.Assert(symbols != null); 89Debug.Assert(shapeables != null && shapeables.Count > 0); 103Debug.Assert(current != null); 217Debug.Assert(_glyphs != null); 240Debug.Assert(_glyphs != null); 384Debug.Assert(glyphAdvances.Length <= glyphIndices.Length);
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (18)
231Debug.Assert(_metrics._formatter != null); 489Debug.Assert(_collapsingSymbol == null && symbol != null); 511Debug.Assert(lineLength > 0); 732Debug.Assert((_statusFlags & StatusFlags.BoundingBoxComputed) != 0); 786Debug.Assert(_fullText != null); 791Debug.Assert(_metrics._height > 0); 867Debug.Assert(HasCollapsed); 1267Debug.Assert(direction == CaretDirection.Backward || direction == CaretDirection.Backspace); 1456Debug.Assert(direction == CaretDirection.Backward || direction == CaretDirection.Backspace); 1508Debug.Assert(_collapsingSymbol != null); 1606Debug.Assert(false); 1764Debug.Assert(boundsList != null); 2128Debug.Assert(textRun != null); 2132Debug.Assert(cchAcc > 0); 2145Debug.Assert(cchAcc > 0); 2149Debug.Assert(cchLeft == 0); 2509Debug.Assert(_ploline.Value != IntPtr.Zero); 2568Debug.Assert(_ploline.Value != IntPtr.Zero);
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (1)
322Debug.Assert(!TextStore.IsMarker(plsrun));
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (14)
255Debug.Assert(lsrun.RunProp != null); 566Debug.Assert(lsrun.Shapeable != null && stringLength > 0); 776Debug.Assert(ulInfo.dvpFirstUnderlineSize >= 0); 829Debug.Assert(stInfo.dvpLowerStrikethroughSize >= 0); 1736Debug.Assert(lsrunFirst.Shapeable != null); 1737Debug.Assert(cchText > 0); // LineServices should not pass in zero character count; 1904Debug.Assert(TextStore.IsContent(plsrun) && lsruns[i] != null); 1945Debug.Assert(TextStore.IsContent(plsrun) && lsrun.Shapeable != null); 2549Debug.Assert(textObject != null); 2607Debug.Assert(false); 2634Debug.Assert(lsrun.Type == Plsrun.InlineObject); 2646Debug.Assert(textObject != null); 2647Debug.Assert(textFlow != LsTFlow.lstflowWS || runDirection != 0); 3369Debug.Assert(lsrun.Shapeable != null);
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (2)
263Debug.Assert(_shapeable != null); 940Debug.Assert(lsruns != null && lsruns.Length > 0 && lsruns[0] != null);
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
581Debug.Assert((_statusFlags & StatusFlags.BoundingBoxComputed) != 0);
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (2)
582Debug.Assert(context.Owner == null); 607Debug.Assert(context != null);
Core\CSharp\MS\Internal\TextFormatting\TextMarkerSource.cs (5)
58Debug.Assert(markerStyle != TextMarkerStyle.None); 106Debug.Assert(autoNumberingIndex > 0); 145Debug.Assert(_characterArray != null); 277Debug.Assert(number >= 0); 409Debug.Assert(number >= 0 && number <= 9);
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (1)
174Debug.Assert(_cchLength > 0);
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (16)
276Debug.Assert(stringLength > 0 && runInfo.Length > 0); 336Debug.Assert( 512Debug.Assert(textEffects != null && textEffects.Count != 0); 656Debug.Assert(runInfo.StringLength > 0 && runInfo.Length > 0); 860Debug.Assert(runInfo.StringLength >= stringLength); 885Debug.Assert(cch <= runInfo.StringLength); 1434Debug.Assert(ichRun < ichEnd); 1462Debug.Assert(ichRun == cchUniform); 1560Debug.Assert(runInfo.OffsetToFirstChar + offsetToFirstChar + lsrunLength <= runInfo.CharacterBuffer.Count); 1580Debug.Assert(offsetToFirstChar == 0); 1626Debug.Assert(uniformBidiLevel == (Pap.RightToLeft ? 1 : 0)); 1655Debug.Assert(lsrunLength > 0); 1722Debug.Assert(false); 1732Debug.Assert(cch > 0 && cch <= stringLength - ich); 1971Debug.Assert(i < _plsrunVector.Count); 2394Debug.Assert(metrics != null);
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (2)
52Debug.Assert(capacity >= 0); 63Debug.Assert(realValues != null);
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (2)
45Debug.Assert(capacity >= 0); 54Debug.Assert(pointValues != null);
Core\CSharp\MS\Win32\UnsafeNativeMethodsTablet.cs (3)
179Debug.Assert(handle != IntPtr.Zero); 244Debug.Assert(handle != IntPtr.Zero); 260System.Diagnostics.Debug.Assert(_recognizerHandle == null);
Core\CSharp\System\Windows\DurationConverter.cs (1)
135Debug.Assert(durationValue == Duration.Automatic); // Only other legal duration type
Core\CSharp\System\Windows\FontStretch.cs (2)
33Debug.Assert(1 <= stretch && stretch <= 9); 62Debug.Assert(1 <= RealStretch && RealStretch <= 9);
Core\CSharp\System\Windows\FontStyle.cs (3)
27Debug.Assert(0 <= style && style <= 2); 122Debug.Assert(0 <= _style && _style <= 2); 141Debug.Assert(_style == 2);
Core\CSharp\System\Windows\FontWeight.cs (1)
30Debug.Assert(1 <= weight && weight <= 999);
Core\CSharp\System\Windows\FreezableCollection.cs (1)
194Debug.Assert(_collection.Count == 0);
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (1)
108Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Ink\DrawingAttributes.cs (13)
54System.Diagnostics.Debug.Assert(extendedProperties != null); 65System.Diagnostics.Debug.Assert(_extendedProperties != null); 84Debug.Assert(Colors.Black == (Color)GetDefaultDrawingAttributeValue(KnownIds.Color)); 108Debug.Assert(StylusTip.Ellipse == (StylusTip)GetDefaultDrawingAttributeValue(KnownIds.StylusTip)); 114Debug.Assert(StylusTip.Rectangle == (StylusTip)GetExtendedPropertyBackedProperty(KnownIds.StylusTip)); 137Debug.Assert(Matrix.Identity == (Matrix)GetDefaultDrawingAttributeValue(KnownIds.StylusTipTransform)); 166Debug.Assert(DrawingAttributes.DefaultHeight == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusHeight)); 193Debug.Assert(DrawingAttributes.DefaultWidth == (double)GetDefaultDrawingAttributeValue(KnownIds.StylusWidth)); 282Debug.Assert(false == (bool)GetDefaultDrawingAttributeValue(KnownIds.IsHighlighter)); 287Debug.Assert(true == (bool)GetExtendedPropertyBackedProperty(KnownIds.IsHighlighter)); 780System.Diagnostics.Debug.Assert(null != DrawingAttributes.GetDefaultDrawingAttributeValue(guid)); 802System.Diagnostics.Debug.Assert(sender != null); 803System.Diagnostics.Debug.Assert(args != null);
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (15)
64System.Diagnostics.Debug.Assert(_strokes != null); 90System.Diagnostics.Debug.Assert(_strokes != null); 136System.Diagnostics.Debug.Assert(strokes != null); 179System.Diagnostics.Debug.Assert((_strokes != null) && (_strokeInfos != null) && (_strokes == sender)); 330System.Diagnostics.Debug.Assert((percentageWithinLasso >= 0) && (percentageWithinLasso <= 100)); 341System.Diagnostics.Debug.Assert((points != null) && (IEnumerablePointHelper.GetCount(points)!= 0)); 478System.Diagnostics.Debug.Assert(eventArgs != null); 519System.Diagnostics.Debug.Assert(eraserShape != null); 532System.Diagnostics.Debug.Assert((points != null) && (IEnumerablePointHelper.GetCount(points) != 0)); 533System.Diagnostics.Debug.Assert(_erasingStroke != null); 578System.Diagnostics.Debug.Assert(strokeHitEventArgCollection.Count != 0); 583System.Diagnostics.Debug.Assert(eventArgs.HitStroke != null); 594System.Diagnostics.Debug.Assert(eventArgs != null); 692System.Diagnostics.Debug.Assert(stroke != null && hitFragments != null && hitFragments.Length > 0); 736System.Diagnostics.Debug.Assert(stroke != null);
Core\CSharp\System\Windows\Ink\Stroke.cs (18)
136Debug.Assert(_cachedGeometry == null || _cachedGeometry.IsFrozen); 273Debug.Assert(bezierPoints != null && bezierPoints.Count > 0); 326Debug.Assert(stylusPointsCount > stylusPointsIndex); 345Debug.Assert(bezierLength >= prevUnbezierLength); 747System.Diagnostics.Debug.Assert(cutAt != null); 748System.Diagnostics.Debug.Assert(cutAt.Length != 0); 779System.Diagnostics.Debug.Assert(false == ((!DoubleUtil.AreClose(cutAt[cutAt.Length - 1].EndFIndex, StrokeFIndices.AfterLast)) && 789System.Diagnostics.Debug.Assert(DoubleUtil.LessThan(fragment.BeginFIndex, fragment.EndFIndex)); 809System.Diagnostics.Debug.Assert(cutAt != null); 810System.Diagnostics.Debug.Assert(cutAt.Length != 0); 835System.Diagnostics.Debug.Assert(false == ((!DoubleUtil.AreClose(cutAt[cutAt.Length - 1].EndFIndex, StrokeFIndices.AfterLast)) && 853System.Diagnostics.Debug.Assert(DoubleUtil.LessThan(beginFIndex, fragment.BeginFIndex)); 882Debug.Assert(sourceStylusPoints != null); 895System.Diagnostics.Debug.Assert(pointCount >= 1); 905System.Diagnostics.Debug.Assert(sourceStylusPoints.Count > i + beginIndex); 909System.Diagnostics.Debug.Assert(stylusPoints.Count == pointCount); 1184Debug.Assert(ienum != null); 1203Debug.Assert(ienum != null);
Core\CSharp\System\Windows\Ink\Stroke2.cs (9)
540System.Diagnostics.Debug.Assert(_cachedGeometry != null && _cachedGeometry.IsFrozen); 573System.Diagnostics.Debug.Assert(false == _drawAsHollow); 603System.Diagnostics.Debug.Assert(geometry != null); 612System.Diagnostics.Debug.Assert(newBounds.IsEmpty == false); 622System.Diagnostics.Debug.Assert(shape != null); 623System.Diagnostics.Debug.Assert(path != null); 642System.Diagnostics.Debug.Assert(lasso != null); 665System.Diagnostics.Debug.Assert(cutAt != null); 689System.Diagnostics.Debug.Assert(cutAt != null);
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (5)
136Debug.Assert(stream != null); 137Debug.Assert(stream.CanRead); 576Debug.Assert(stroke != null && IndexOf(stroke) == -1); 684Debug.Assert(e.Removed.Count > 0); 751Debug.Assert(startingIndex >= 0);
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (2)
500System.Diagnostics.Debug.Assert(original != null && toReplace != null); 501System.Diagnostics.Debug.Assert(index >= 0 && index < this.Count);
Core\CSharp\System\Windows\Input\InputMethod.cs (5)
614Debug.Assert(value != InputMethodState.DoNotCare); 687Debug.Assert(value != InputMethodState.DoNotCare); 727Debug.Assert(value != InputMethodState.DoNotCare); 914Debug.Assert((value & ImeConversionModeValues.DoNotCare) == 0); 1171Debug.Assert((value & ImeSentenceModeValues.DoNotCare) == 0);
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (5)
175Debug.Assert(manipulator != null); 193Debug.Assert(manipulator != null); 414Debug.Assert(!deltaEventArgs.IsInertial); 480Debug.Assert(!completedEventArgs.IsInertial); 514Debug.Assert(_manipulators == null || _manipulators.Count == 0);
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (2)
253Debug.Assert(_lastManipulationBeforeInertia != null); 696Debug.Assert(_containerLayoutUpdated != null);
Core\CSharp\System\Windows\Input\TextComposition.cs (1)
342Debug.Assert((_resultText.Length == 1) && Char.IsControl(_resultText[0]));
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
874Debug.Assert(_altNumpadEntryMode);
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1013Debug.Assert(element != null);
Core\CSharp\System\Windows\Interop\D3DImage.cs (8)
651Debug.Assert(timeout != Duration.Automatic); 698Debug.Assert(e.OldValue != e.NewValue); 741Debug.Assert(_isDirty); 742Debug.Assert(_isWaitingForPresent); 743Debug.Assert(_lockCount == 0); 764Debug.Assert(_duceResource.IsOnChannel(channel)); 859Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 934Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (1)
58Debug.Assert(null != _source);
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (5)
72Debug.Assert( null != _source ); 94Debug.Assert( null != _source ); 787Debug.Assert( null != _source ); 825Debug.Assert( null != _source ); 906Debug.Assert( null != _source );
Core\CSharp\System\Windows\Interop\HwndSource.cs (3)
867Debug.Assert(_weakMenuModeMessageHandler == null); 897Debug.Assert(_weakMenuModeMessageHandler != null); 1777Debug.Assert(_adjustSizingForNonClientArea == true);
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
95Debug.Assert( null != _source );
Core\CSharp\System\Windows\Interop\HwndTarget.cs (11)
525Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero); 561Debug.Assert(normalizedHwnd.Handle != IntPtr.Zero); 661Debug.Assert(mode == RenderingMode.Software || mode == RenderingMode.Default); 802Debug.Assert(!_compositionTarget.IsOnChannel(channel)); 803Debug.Assert(!_compositionTarget.IsOnChannel(outOfBandChannel)); 822Debug.Assert(resourceCreated); 1455Debug.Assert(_restoreDT == sourceDT); 2576Debug.Assert(!_compositionTarget.IsOnChannel(channel)); 2811Debug.Assert(hwndTarget != null); 2833Debug.Assert(hwndTarget != null); 2836Debug.Assert(_hwndTargetCount >= 0);
Core\CSharp\System\Windows\Media\Animation\Animatable.cs (3)
77Debug.Assert(animatedPropertiesMap.Count > 0); 102Debug.Assert(animatedPropertiesMap.Count > 0); 325Debug.Assert(reference is WeakReference);
Core\CSharp\System\Windows\Media\Animation\AnimationClockResource.cs (6)
75Debug.Assert(sender as System.Windows.Threading.DispatcherObject != null); 76Debug.Assert(((System.Windows.Threading.DispatcherObject)sender).Dispatcher != null); 77Debug.Assert(_animationClock != null); 129Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 170Debug.Assert(_duceResource.IsOnChannel(channel)); 186Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\AnimationLayer.cs (13)
18Debug.Assert(ownerStorage != null); 29Debug.Assert( 105Debug.Assert(_animationClocks != null); 120Debug.Assert(animationClocks != null); 121Debug.Assert(animationClocks.Count > 0); 122Debug.Assert(!animationClocks.Contains(null)); 123Debug.Assert(_animationClocks == null); 187Debug.Assert(newAnimationClocks != null); 188Debug.Assert(newAnimationClocks.Count > 0); 189Debug.Assert(!newAnimationClocks.Contains(null)); 222Debug.Assert(defaultDestinationValue != DependencyProperty.UnsetValue); 242Debug.Assert(_snapshotValue != DependencyProperty.UnsetValue); 263Debug.Assert(count > 0);
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (27)
51Debug.Assert( _propertyTriggerLayers == null 80Debug.Assert(animationClock != null); 81Debug.Assert(_dependencyObject.Target != null); 82Debug.Assert(_currentTimeInvalidatedHandler != null); 108Debug.Assert(animationClock != null); 109Debug.Assert(_currentTimeInvalidatedHandler != null); 121Debug.Assert(_dependencyObject == null); 122Debug.Assert(_dependencyProperty == null); 146Debug.Assert(_propertyTriggerLayers != null); 147Debug.Assert(_propertyTriggerLayers.ContainsValue(layer)); 151Debug.Assert(index >= 0); 249Debug.Assert(animatedPropertyMap.Count > 0); 250Debug.Assert(animatedPropertyMap[_dependencyProperty.GlobalIndex] != DependencyProperty.UnsetValue); 556Debug.Assert(_animationClocks.Count > 0); 657Debug.Assert(animationClocks[i] != null); 665Debug.Assert(handoffBehavior == HandoffBehavior.Compose); 666Debug.Assert(storage != null); 667Debug.Assert(storage._animationClocks != null); 712Debug.Assert(animationClocks != null); 713Debug.Assert(!animationClocks.Contains(null)); 785Debug.Assert(animation == null || IsAnimationValid(dp, animation)); 786Debug.Assert(IsPropertyAnimatable(d, dp)); 925Debug.Assert(storage._snapshotValue != DependencyProperty.UnsetValue); 937Debug.Assert(currentPropertyValue != DependencyProperty.UnsetValue); 947Debug.Assert(count > 0); 979Debug.Assert(clocksCount > 0); 980Debug.Assert(defaultDestinationValue != DependencyProperty.UnsetValue);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (121)
67Debug.Assert(timeline != null); 177Debug.Assert(!IsTimeManager); 206Debug.Assert(!IsTimeManager); 224Debug.Assert(!IsTimeManager); 246Debug.Assert(!IsTimeManager); 284Debug.Assert(!IsTimeManager); 297Debug.Assert(!IsTimeManager); 315Debug.Assert(!IsTimeManager); 342Debug.Assert(!IsTimeManager); 370Debug.Assert(!IsTimeManager); 502Debug.Assert(!IsTimeManager); 588Debug.Assert(!clock.IsTimeManager); 638Debug.Assert(!current.IsTimeManager); // We should not yet be connected to the TimeManager 716Debug.Assert(!IsTimeManager); 792Debug.Assert(!IsTimeManager); 799Debug.Assert(!(IsInteractivelyPaused && PendingInteractivePause)); 800Debug.Assert(!(!IsInteractivelyPaused && PendingInteractiveResume)); 837Debug.Assert(!IsTimeManager); 844Debug.Assert( !(IsInteractivelyPaused && PendingInteractivePause)); 845Debug.Assert( !(!IsInteractivelyPaused && PendingInteractiveResume)); 872Debug.Assert(IsRoot); 894Debug.Assert(IsRoot); 965Debug.Assert(IsRoot); 976Debug.Assert(IsRoot); 1007Debug.Assert(IsRoot); 1088Debug.Assert(!IsTimeManager); 1124Debug.Assert(!IsTimeManager); 1146Debug.Assert(!IsTimeManager); 1165Debug.Assert(!IsTimeManager); 1244Debug.Assert(!IsTimeManager); 1392Debug.Assert(!IsTimeManager); 1429Debug.Assert(!IsTimeManager); 1430Debug.Assert(_parent != null && !_parent.IsTimeManager); 1802Debug.Assert(IsRoot); // root clocks only; non-roots have constant begin time 1803Debug.Assert(_rootData != null); 1808Debug.Assert(!RootBeginPending); // we can have either a begin or a seek, not both 1879Debug.Assert(_beginTime.HasValue); 1930Debug.Assert(IsRoot); 1936Debug.Assert(_rootData.DesiredFrameRate > 0); 1956Debug.Assert(!IsTimeManager); 1957Debug.Assert(!IsInteractivelyStopped); 1958Debug.Assert(_parent._currentClockState != ClockState.Stopped); 1959Debug.Assert(_currentClockState != ClockState.Stopped); 1961Debug.Assert(_beginTime.HasValue); 1963Debug.Assert(parentTime >= _beginTime.Value); // We are active or in postfill 1979Debug.Assert(_currentClockState != ClockState.Active); 2188Debug.Assert(_currentClockState == ClockState.Active 2271Debug.Assert(!IsTimeManager); 2272Debug.Assert(!IsInteractivelyStopped); 2273Debug.Assert(_parent._currentClockState != ClockState.Stopped); 2274Debug.Assert(_beginTime.HasValue); 2323Debug.Assert(!IsTimeManager); 2324Debug.Assert(!IsInteractivelyStopped); 2325Debug.Assert(_parent._currentClockState != ClockState.Stopped); 2326Debug.Assert(_currentClockState == ClockState.Active); // Must be active at this point 2353Debug.Assert(!IsTimeManager); 2354Debug.Assert(!IsInteractivelyStopped); 2355Debug.Assert(_parent._currentClockState != ClockState.Stopped); 2356Debug.Assert(_currentClockState != ClockState.Stopped); 2446Debug.Assert(!IsTimeManager); 2488Debug.Assert(!IsTimeManager); 2489Debug.Assert(!IsInteractivelyStopped || IsRoot); 2539Debug.Assert(_beginTime.HasValue); // _currentIterationBeginTime.HasValue implies _beginTime.HasValue 2568Debug.Assert(repeatBehavior == RepeatBehavior.Forever); // Only other valid enum value 2662Debug.Assert(!IsTimeManager); 2663Debug.Assert(!IsInteractivelyStopped || IsRoot); 2675Debug.Assert(_beginTime.HasValue); 2704Debug.Assert(IsRoot); 2746Debug.Assert(_beginTime == null); 2747Debug.Assert(_currentClockState == ClockState.Stopped); 2771Debug.Assert(!IsInteractivelyPaused); // Enforce invariant: cannot be pausePending when already paused 2772Debug.Assert(!PendingInteractiveResume); // Enforce invariant: cannot be both pause and resumePending 2789Debug.Assert(IsInteractivelyPaused); 2790Debug.Assert(!PendingInteractivePause); 2818Debug.Assert(endOfActivePeriod.HasValue); 2896Debug.Assert(!IsTimeManager); 2921Debug.Assert(parentTime.HasValue); // If parent isn't stopped, it must have valid time and speed 2922Debug.Assert(parentSpeed.HasValue); 2948Debug.Assert(parentTime.HasValue); // Cannot be true unless parent is stopped 2969Debug.Assert(_beginTime.HasValue); 2970Debug.Assert(parentTime.HasValue); 3015Debug.Assert(!IsTimeManager); 3016Debug.Assert(!IsInteractivelyStopped); 3017Debug.Assert(_parent._currentClockState != ClockState.Stopped); 3018Debug.Assert(_beginTime.HasValue); 3090Debug.Assert(!IsTimeManager); 3091Debug.Assert(!IsInteractivelyStopped || IsRoot); 3176Debug.Assert(!IsTimeManager); 3177Debug.Assert(_parent != null); 3178Debug.Assert(_parent.CurrentState != ClockState.Stopped); 3181Debug.Assert(HasSeekOccuredAfterLastTick || 3185Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3186Debug.Assert(CanSlip || _timeline is ParallelTimeline && ((ParallelTimeline)_timeline).SlipBehavior == SlipBehavior.Slip); 3188Debug.Assert(_syncData != null); 3189Debug.Assert(!_syncData.IsInSyncPeriod); 3192Debug.Assert(_timeline.AutoReverse == false); 3193Debug.Assert(_timeline.AccelerationRatio == 0); 3194Debug.Assert(_timeline.DecelerationRatio == 0); 3241Debug.Assert(syncClockDuration == Duration.Automatic); 3310Debug.Assert(!IsTimeManager); 3311Debug.Assert(_parent != null); 3312Debug.Assert(_syncData != null); 3313Debug.Assert(_syncData.IsInSyncPeriod); 3316Debug.Assert(_syncData.SyncClock == this || _syncData.SyncClock._parent == this); 3320Debug.Assert(!parentIntervalCollection.IsEmpty); // The parent isn't Stopped, so it must have a TIC 3324Debug.Assert(parentIntervalCollection.IsEmptyOfRealPoints || parentIntervalCollection.FirstNodeTime <= currentParentTimePT); 3325Debug.Assert(currentParentSpeed >= 0); 3457Debug.Assert(!IsTimeManager); 3538Debug.Assert(_rootData.DesiredFrameRate > 0); 3566Debug.Assert(!IsTimeManager); 3589Debug.Assert(!IsTimeManager); 3590Debug.Assert(_parent == null); 3591Debug.Assert(_timeManager == null); 3682Debug.Assert(factor != 0); // Divide by zero 3769Debug.Assert(IsRoot); // This should only be called on root-child clocks 3805Debug.Assert(!IsTimeManager); 3886Debug.Assert(!IsTimeManager); 4006Debug.Assert(syncClock != null); 4007Debug.Assert(syncClock.GetCanSlip()); 4008Debug.Assert(syncClock.IsRoot || syncClock._timeline.BeginTime.HasValue); // Only roots may later validate their _beginTime 4097Debug.Assert(_syncClockBeginTime.HasValue); // This should never be queried on a root without beginTime
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (11)
58Debug.Assert(!IsTimeManager); 71Debug.Assert(!IsTimeManager); 84Debug.Assert(IsTimeManager); 102Debug.Assert(timelineGroup != null); 191Debug.Assert(IsTimeManager); 219Debug.Assert(IsTimeManager); 256Debug.Assert(IsTimeManager); 302Debug.Assert(group != null); // We should only have this flag set for ClockGroups 316Debug.Assert(_children != null); 440Debug.Assert(IsRoot); 466Debug.Assert(_timeManager != null); // RootActivate should be called by our own TimeManager
Core\CSharp\System\Windows\Media\Animation\DoubleAnimationUsingPath.cs (2)
175Debug.Assert(animationClock.CurrentState != ClockState.Stopped); 268Debug.Assert(!_isValid);
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32Animation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64Animation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\PointIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\RectIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
116Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DIndependentAnimationStorage.cs (1)
52Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
Core\CSharp\System\Windows\Media\Animation\IndependentAnimationStorage.cs (11)
93Debug.Assert(_duceResource.IsOnChannel(channel)); 109Debug.Assert(d != null); 112Debug.Assert(d.Dispatcher != null); 115Debug.Assert(d.CheckAccess()); 180Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 212Debug.Assert(d != null); 216Debug.Assert(_duceResource.IsOnAnyChannel); 232Debug.Assert(d != null); 233Debug.Assert(dp != null); 234Debug.Assert(d is Animatable ? ((Animatable)d).HasAnimatedProperties : true); 244Debug.Assert(storage._duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Animation\KeySpline.cs (3)
267Debug.Assert(_isDirty); 319Debug.Assert(_isSpecified); 341Debug.Assert(_isSpecified);
Core\CSharp\System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (2)
258Debug.Assert(animationClock.CurrentState != ClockState.Stopped); 321Debug.Assert(!_isValid);
Core\CSharp\System\Windows\Media\Animation\PointAnimationUsingPath.cs (2)
151Debug.Assert(animationClock.CurrentState != ClockState.Stopped); 224Debug.Assert(!_isValid);
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (82)
112Debug.Assert(_minimumCapacity >= 2); 139Debug.Assert(IsEmpty); // We should start with a new or Clear()-ed collection first 146Debug.Assert(_nodeIsInterval[0] == false); 195Debug.Assert(_count == 0); // The boolean constructor already did the job for us 257Debug.Assert(_count > 0); 305Debug.Assert(0 < _count && _count <= 2); 314Debug.Assert(beginTime <= _nodeTime[1]); 418Debug.Assert(_nodeTime[index] < time); 550Debug.Assert(fromIndex <= toIndex); 561Debug.Assert(toIndex >= 0); // Since fromIndex!=toIndex, toIndex must be >= 0 568Debug.Assert(fromIndex + 1 < toIndex); 624Debug.Assert(!_invertCollection); // Make sure we never leave inverted mode enabled 688Debug.Assert(!tic1.IsEmptyOfRealPoints); // We shouldn't reach here if either TIC is empty 689Debug.Assert(!tic2.IsEmptyOfRealPoints); 717Debug.Assert(!intersectionFound); // If an intersection was already found, we should not reach this far 727Debug.Assert(tic2.CurrentNodeIsPoint || tic2.CurrentNodeIsInterval); 745Debug.Assert(!tic1.CurrentIsAtLastNode); // Thus tic1._current can be safely advanced now 751Debug.Assert(tic1.CurrentNodeTime >= tic2.CurrentNodeTime); 754Debug.Assert(tic2.CurrentIsAtLastNode || (tic1.CurrentNodeTime < tic2.NextNodeTime)); 755Debug.Assert(tic1.CurrentIsAtLastNode || (tic2.CurrentNodeTime < tic1.NextNodeTime)); 787Debug.Assert(tic1.NextNodeTime == tic2.NextNodeTime); 795Debug.Assert(tic1.CurrentIsAtLastNode && tic2.CurrentIsAtLastNode); 803Debug.Assert(tic2.CurrentIsAtLastNode || (tic1.CurrentNodeTime < tic2.NextNodeTime)); 804Debug.Assert(tic1.CurrentIsAtLastNode || (tic2.CurrentNodeTime < tic1.NextNodeTime)); 815Debug.Assert(!_invertCollection); // Make sure we never leave inverted mode enabled 863Debug.Assert(!_invertCollection); // Make sure we never leave inverted mode enabled 882Debug.Assert(beginTime <= CurrentNodeTime); // The PTIC is clipped by the active period, and we are a subset of the active period 883Debug.Assert(CurrentIsAtLastNode || beginTime < NextNodeTime); 990Debug.Assert(!_invertCollection); // Make sure we never leave inverted mode enabled 1038Debug.Assert(projection.IsEmpty); // Make sure the projection was properly cleared first 1039Debug.Assert(!_invertCollection); // Make sure we never leave inverted mode enabled 1040Debug.Assert(beginTime <= endTime); // Ensure legitimate begin/end clipping parameters 1042Debug.Assert(!IsEmptyOfRealPoints); // We assume this function is ONLY called when this collection overlaps the postfill zone. So we cannot be empty. 1043Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || beginTime == endTime); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1044Debug.Assert(!_nodeIsInterval[_count - 1]); // We should not have an infinite domain set 1161Debug.Assert(projection.IsEmpty); 1162Debug.Assert(!_invertCollection); // Make sure we never leave inverted mode enabled 1163Debug.Assert(!endTime.HasValue || beginTime <= endTime); // Ensure legitimate begin/end clipping parameters 1165Debug.Assert(!IsEmptyOfRealPoints); // We assume this function is ONLY called when this collection overlaps the active zone. So we cannot be empty. 1166Debug.Assert(!endTime.HasValue || endTime >= _nodeTime[0]); // EndTime must come at or after our first node (it can be infinite) 1167Debug.Assert(_nodeTime[_count - 1] >= beginTime); // Our last node must come at least at begin time (since we must intersect the active period) 1168Debug.Assert(endTime.HasValue || fillDuration == TimeSpan.Zero); // Either endTime is finite, or it's infinite hence we cannot have any fill zone 1169Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1170Debug.Assert(!_nodeIsInterval[_count - 1]); // We should not have an infinite domain set 1244Debug.Assert(!IsEmptyOfRealPoints); 1245Debug.Assert(projection.IsEmpty); 1284Debug.Assert(_current > 0); // The only way _current could stay at zero is if the collection begins at (or past) the end of active period 1289Debug.Assert(endTime.HasValue && CurrentNodeTime >= endTime.Value); 1314Debug.Assert(!IsEmptyOfRealPoints); // The entire projection process assumes we are not empty (have an intersection with the active zone). 1315Debug.Assert(periodInTicks > 0); // We do not handle the degenerate case here. 1319Debug.Assert(CurrentNodeTime >= TimeSpan.Zero); // Verify that we are already clipped 1336Debug.Assert(CurrentNodeIsPoint); 1357Debug.Assert(CurrentNodeIsPoint); // We should only call this method when we project a legitimate point 1358Debug.Assert(!CurrentNodeIsInterval); 1429Debug.Assert(timeBeforeNextPeriod > 0); 1502Debug.Assert(intervalLength > 0); 1585Debug.Assert(index == -1 || _nodeTime[index] < point); 1616Debug.Assert(from < to); // Our code should never call MergeInterval for a point or reversed interval 1632Debug.Assert(_nodeTime.Length >= _minimumCapacity); // Assert that we indeed have memory allocated 1670Debug.Assert(_nodeTime[fromIndex] == from); 1701Debug.Assert(_nodeTime[toIndex] == to); 1702Debug.Assert(fromIndex < toIndex); 1733Debug.Assert(_count + netIncreaseInNodes >= 2); // We should never shrink past size 2 1781Debug.Assert(_nodeIsPoint == null); 1782Debug.Assert(_nodeIsInterval == null); 1790Debug.Assert(_nodeIsPoint != null); 1791Debug.Assert(_nodeIsInterval != null); 1822Debug.Assert(periodInTicks > 0); 1823Debug.Assert(accelRatio + decelRatio > 0); 2137Debug.Assert(_count > 0); // Count cannot be negative 2163Debug.Assert(right == _count - 1); 2193Debug.Assert(_current <= _count); 2208Debug.Assert(_current < _count); 2213Debug.Assert(_current < _count); 2222Debug.Assert(_current < _count); 2227Debug.Assert(_current < _count); 2236Debug.Assert(_current < _count); 2241Debug.Assert(_current < _count); 2250Debug.Assert(_current + 1 < _count); 2259Debug.Assert(_current + 1 < _count); 2268Debug.Assert(_current + 1 < _count); 2283Debug.Assert(_invertCollection != mode); // Make sure we aren't redundantly setting the mode
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (1)
935Debug.Assert(sourceStore.Count > 0);
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (10)
214Debug.Assert(!_pendingLayout); 272Debug.Assert(element != null); 292Debug.Assert(_pendingLayout); 296Debug.Assert(element != null); 307Debug.Assert(_DispatcherLayoutResult != null); 308Debug.Assert(_DispatcherLayoutResult.Status == DispatcherOperationStatus.Pending); 310Debug.Assert(abortStatus); 322Debug.Assert(_pendingLayout); 325Debug.Assert(element != null); 363Debug.Assert(_reentrancyFlag); // Exit must be matched with Enter. See Enter comments.
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (4)
518Debug.Assert(_pushTypeStack != null); 519Debug.Assert(_pushTypeStack.Count > 0); 528Debug.Assert(_transformStack != null); 529Debug.Assert(_transformStack.Count > 0);
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (7)
369Debug.Assert(sizeof(MIL_PATHGEOMETRY) <= _currOffset); 370Debug.Assert(_currentPathGeometryData.Size == (uint)_currOffset); 491Debug.Assert(_chunkList.Count != 0); 625Debug.Assert(_currentPathFigureDataOffset + sizeof(MIL_PATHFIGURE) <= _currOffset); 670Debug.Assert(_currentPolySegmentDataOffset + sizeof(MIL_SEGMENT_POLY) <= _currOffset); 762Debug.Assert(points != null); 763Debug.Assert(count > 0);
Core\CSharp\System\Windows\Media\ColorContext.cs (2)
177Debug.Assert(_profileUri.Value == null); 695Debug.Assert(stm != null);
Core\CSharp\System\Windows\Media\ColorTransformHelper.cs (2)
106Debug.Assert(success); 108Debug.Assert(success);
Core\CSharp\System\Windows\Media\CombinedGeometry.cs (1)
209Debug.Assert(false);
Core\CSharp\System\Windows\Media\CompositionTarget.cs (6)
80Debug.Assert(channel != null); 81Debug.Assert(!_contentRoot.IsOnChannel(channel)); 83Debug.Assert(outOfBandChannel != null); 84Debug.Assert(!_contentRoot.IsOnChannel(outOfBandChannel)); 95Debug.Assert(resourceCreated); 490Debug.Assert(_cachedRenderContext == null);
Core\CSharp\System\Windows\Media\Drawing.cs (1)
91Debug.Assert(ctx != null);
Core\CSharp\System\Windows\Media\DrawingContextDrawingContextWalker.cs (1)
40Debug.Assert (drawingContext != null);
Core\CSharp\System\Windows\Media\DrawingContextWalker.cs (2)
48Debug.Assert(false); 58Debug.Assert(false);
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (3)
1343Debug.Assert(geometry != null); 1429Debug.Assert(newDrawing != null); 1435Debug.Assert(_currentDrawingGroup == null);
Core\CSharp\System\Windows\Media\DrawingGroup.cs (3)
115Debug.Assert(_open); 116Debug.Assert(rootDrawingGroupChildren != null); 195Debug.Assert(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\DrawingGroupDrawingContext.cs (2)
26Debug.Assert(null != drawingGroup); 44Debug.Assert(null != _drawingGroup);
Core\CSharp\System\Windows\Media\DrawingVisual.cs (4)
68Debug.Assert(intersectionDetail != IntersectionDetail.NotCalculated); 158Debug.Assert(_proxy.IsOnChannel(channel)); 231Debug.Assert(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentConnected)); 232Debug.Assert(_proxy.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\DrawingVisualDrawingContext.cs (2)
46Debug.Assert(null != ownerVisual); 62Debug.Assert(null != _ownerVisual);
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
115Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Effects\Generated\BlurEffect.cs (2)
198Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 247Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowEffect.cs (2)
264Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 336Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (2)
135Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 215Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\PixelShader.cs (1)
201Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (3)
128Debug.Assert(!channel.IsOutOfBandChannel); 129Debug.Assert(!targetResource.GetHandle(channel).IsNull); 222Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (3)
103Debug.Assert(newUri.IsAbsoluteUri); 176Debug.Assert(len == lengthRead); 204Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (7)
419Debug.Assert(false); 561Debug.Assert(!channel.IsOutOfBandChannel); 562Debug.Assert(!targetResource.GetHandle(channel).IsNull); 580Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 734Debug.Assert(sizeof(DUCE.ResourceHandle) == sizeof(Int32)); 822Debug.Assert(_duceResource.IsOnChannel(channel)); 977Debug.Assert(false);
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (2)
171Debug.Assert(worldMatrix != null); 172Debug.Assert(geometryMatrix != null);
Core\CSharp\System\Windows\Media\FactoryMaker.cs (2)
126Debug.Assert(s_pFactory != IntPtr.Zero); 146Debug.Assert(s_pImagingFactory != IntPtr.Zero);
Core\CSharp\System\Windows\Media\FamilyMap.cs (1)
372Debug.Assert(first <= last);
Core\CSharp\System\Windows\Media\FontFamilyConverter.cs (3)
193Debug.Assert(name != null); 198Debug.Assert(name != null); 203Debug.Assert(name != null);
Core\CSharp\System\Windows\Media\FormattedText.cs (4)
1038Debug.Assert(_nextLine == null); 1058Debug.Assert(_totalHeight + _currentLine.Height <= _that._maxTextHeight); 1147Debug.Assert(_that._text.Length > 0 && textSourcePosition + line.Length <= _that._text.Length + 1); 1163Debug.Assert(_that._trimming == TextTrimming.WordEllipsis);
Core\CSharp\System\Windows\Media\Generated\BitmapCache.cs (2)
200Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 249Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (10)
135Debug.Assert(!channel.IsOutOfBandChannel); 136Debug.Assert(!targetResource.GetHandle(channel).IsNull); 172Debug.Assert(element != null); 175Debug.Assert(target._DispatcherLayoutResult != null); 176Debug.Assert(target._DispatcherLayoutResult.Status == System.Windows.Threading.DispatcherOperationStatus.Pending); 178Debug.Assert(abortStatus); 196Debug.Assert(!channel.IsOutOfBandChannel); 197Debug.Assert(!targetResource.GetHandle(channel).IsNull); 337Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 428Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\Brush.cs (4)
136Debug.Assert(!channel.IsOutOfBandChannel); 137Debug.Assert(!targetResource.GetHandle(channel).IsNull); 184Debug.Assert(!channel.IsOutOfBandChannel); 185Debug.Assert(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\CombinedGeometry.cs (6)
135Debug.Assert(!channel.IsOutOfBandChannel); 136Debug.Assert(!targetResource.GetHandle(channel).IsNull); 183Debug.Assert(!channel.IsOutOfBandChannel); 184Debug.Assert(!targetResource.GetHandle(channel).IsNull); 282Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 350Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\DashStyle.cs (2)
182Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 252Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\DrawingBrush.cs (4)
128Debug.Assert(!channel.IsOutOfBandChannel); 129Debug.Assert(!targetResource.GetHandle(channel).IsNull); 197Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 303Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (24)
54Debug.Assert(false); 74Debug.Assert(false); 96Debug.Assert(false); 120Debug.Assert(false); 152Debug.Assert(false); 190Debug.Assert(false); 224Debug.Assert(false); 264Debug.Assert(false); 286Debug.Assert(false); 304Debug.Assert(false); 324Debug.Assert(false); 339Debug.Assert(false); 369Debug.Assert(false); 387Debug.Assert(false); 399Debug.Assert(false); 411Debug.Assert(false); 425Debug.Assert(false); 441Debug.Assert(false); 453Debug.Assert(false); 465Debug.Assert(false); 476Debug.Assert(false); 493Debug.Assert(false); 508Debug.Assert(false); 517Debug.Assert(false);
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (18)
148Debug.Assert(!channel.IsOutOfBandChannel); 149Debug.Assert(!targetResource.GetHandle(channel).IsNull); 161Debug.Assert(resource != null); 172Debug.Assert(resource != null); 219Debug.Assert(!channel.IsOutOfBandChannel); 220Debug.Assert(!targetResource.GetHandle(channel).IsNull); 274Debug.Assert(!channel.IsOutOfBandChannel); 275Debug.Assert(!targetResource.GetHandle(channel).IsNull); 322Debug.Assert(!channel.IsOutOfBandChannel); 323Debug.Assert(!targetResource.GetHandle(channel).IsNull); 370Debug.Assert(!channel.IsOutOfBandChannel); 371Debug.Assert(!targetResource.GetHandle(channel).IsNull); 587Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 699Debug.Assert(_duceResource.IsOnChannel(channel)); 755Debug.Assert(!channel.IsOutOfBandChannel); 756Debug.Assert(!thisResource.GetHandle(channel).IsNull); 783Debug.Assert(!channel.IsOutOfBandChannel); 784Debug.Assert(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\DrawingImage.cs (4)
128Debug.Assert(!channel.IsOutOfBandChannel); 129Debug.Assert(!targetResource.GetHandle(channel).IsNull); 197Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 244Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\EllipseGeometry.cs (2)
200Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 277Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
117Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\Geometry.cs (2)
131Debug.Assert(!channel.IsOutOfBandChannel); 132Debug.Assert(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (8)
128Debug.Assert(!channel.IsOutOfBandChannel); 129Debug.Assert(!targetResource.GetHandle(channel).IsNull); 176Debug.Assert(!channel.IsOutOfBandChannel); 177Debug.Assert(!targetResource.GetHandle(channel).IsNull); 224Debug.Assert(!channel.IsOutOfBandChannel); 225Debug.Assert(!targetResource.GetHandle(channel).IsNull); 323Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 380Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\GeometryGroup.cs (10)
155Debug.Assert(!channel.IsOutOfBandChannel); 156Debug.Assert(!targetResource.GetHandle(channel).IsNull); 168Debug.Assert(resource != null); 179Debug.Assert(resource != null); 262Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 349Debug.Assert(_duceResource.IsOnChannel(channel)); 399Debug.Assert(!channel.IsOutOfBandChannel); 400Debug.Assert(!thisResource.GetHandle(channel).IsNull); 427Debug.Assert(!channel.IsOutOfBandChannel); 428Debug.Assert(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (6)
109Debug.Assert(!channel.IsOutOfBandChannel); 110Debug.Assert(!targetResource.GetHandle(channel).IsNull); 157Debug.Assert(!channel.IsOutOfBandChannel); 158Debug.Assert(!targetResource.GetHandle(channel).IsNull); 241Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 293Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (1)
117Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\GuidelineSet.cs (2)
208Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 285Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\ImageBrush.cs (4)
128Debug.Assert(!channel.IsOutOfBandChannel); 129Debug.Assert(!targetResource.GetHandle(channel).IsNull); 197Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 303Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (4)
128Debug.Assert(!channel.IsOutOfBandChannel); 129Debug.Assert(!targetResource.GetHandle(channel).IsNull); 219Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 274Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\LinearGradientBrush.cs (1)
202Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\LineGeometry.cs (2)
178Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 249Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\MatrixTransform.cs (2)
156Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 203Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (1)
118Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\PathGeometry.cs (1)
206Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (1)
117Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\Pen.cs (6)
128Debug.Assert(!channel.IsOutOfBandChannel); 129Debug.Assert(!targetResource.GetHandle(channel).IsNull); 218Debug.Assert(!channel.IsOutOfBandChannel); 219Debug.Assert(!targetResource.GetHandle(channel).IsNull); 392Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 459Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\RadialGradientBrush.cs (1)
246Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\RectangleGeometry.cs (2)
200Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 277Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\RenderData.cs (11)
534Debug.Assert(_duceResource.IsOnChannel(channel)); 546Debug.Assert(cbExtraData <= (uint)Int32.MaxValue); 562Debug.Assert((_buffer != null) || (_curOffset == 0)); 565Debug.Assert((_buffer == null) || (_curOffset <= _buffer.Length)); 1107Debug.Assert(false); 1137Debug.Assert((_buffer != null) || (_curOffset == 0)); 1140Debug.Assert((_buffer == null) || (_curOffset <= _buffer.Length)); 1453Debug.Assert(false); 1483Debug.Assert((_buffer != null) || (_curOffset == 0)); 1486Debug.Assert((_buffer == null) || (_curOffset <= _buffer.Length)); 1811Debug.Assert(false);
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (25)
84Debug.Assert(sizeof(MILCMD_DRAW_LINE) == 40); 150Debug.Assert(sizeof(MILCMD_DRAW_LINE_ANIMATE) == 48); 210Debug.Assert(sizeof(MILCMD_DRAW_RECTANGLE) == 40); 277Debug.Assert(sizeof(MILCMD_DRAW_RECTANGLE_ANIMATE) == 48); 349Debug.Assert(sizeof(MILCMD_DRAW_ROUNDED_RECTANGLE) == 56); 438Debug.Assert(sizeof(MILCMD_DRAW_ROUNDED_RECTANGLE_ANIMATE) == 72); 512Debug.Assert(sizeof(MILCMD_DRAW_ELLIPSE) == 40); 603Debug.Assert(sizeof(MILCMD_DRAW_ELLIPSE_ANIMATE) == 56); 663Debug.Assert(sizeof(MILCMD_DRAW_GEOMETRY) == 16); 719Debug.Assert(sizeof(MILCMD_DRAW_IMAGE) == 40); 781Debug.Assert(sizeof(MILCMD_DRAW_IMAGE_ANIMATE) == 40); 833Debug.Assert(sizeof(MILCMD_DRAW_GLYPH_RUN) == 8); 881Debug.Assert(sizeof(MILCMD_DRAW_DRAWING) == 8); 935Debug.Assert(sizeof(MILCMD_DRAW_VIDEO) == 40); 995Debug.Assert(sizeof(MILCMD_DRAW_VIDEO_ANIMATE) == 40); 1039Debug.Assert(sizeof(MILCMD_PUSH_CLIP) == 8); 1084Debug.Assert(sizeof(MILCMD_PUSH_OPACITY_MASK) == 24); 1131Debug.Assert(sizeof(MILCMD_PUSH_OPACITY) == 8); 1184Debug.Assert(sizeof(MILCMD_PUSH_OPACITY_ANIMATE) == 16); 1228Debug.Assert(sizeof(MILCMD_PUSH_TRANSFORM) == 8); 1314Debug.Assert(sizeof(MILCMD_PUSH_GUIDELINE_SET) == 8); 1358Debug.Assert(sizeof(MILCMD_PUSH_GUIDELINE_Y1) == 8); 1409Debug.Assert(sizeof(MILCMD_PUSH_GUIDELINE_Y2) == 16); 1458Debug.Assert(sizeof(MILCMD_PUSH_EFFECT) == 8); 1507Debug.Assert(sizeof(MILCMD_POP) == 1);
Core\CSharp\System\Windows\Media\Generated\RotateTransform.cs (2)
200Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 259Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\ScaleTransform.cs (2)
222Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 287Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\SkewTransform.cs (2)
222Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 287Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\SolidColorBrush.cs (2)
156Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 242Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (1)
117Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media\Generated\TransformGroup.cs (10)
148Debug.Assert(!channel.IsOutOfBandChannel); 149Debug.Assert(!targetResource.GetHandle(channel).IsNull); 161Debug.Assert(resource != null); 172Debug.Assert(resource != null); 240Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 310Debug.Assert(_duceResource.IsOnChannel(channel)); 359Debug.Assert(!channel.IsOutOfBandChannel); 360Debug.Assert(!thisResource.GetHandle(channel).IsNull); 387Debug.Assert(!channel.IsOutOfBandChannel); 388Debug.Assert(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media\Generated\TranslateTransform.cs (2)
178Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 231Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (4)
109Debug.Assert(!channel.IsOutOfBandChannel); 110Debug.Assert(!targetResource.GetHandle(channel).IsNull); 200Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 255Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (8)
110Debug.Assert(element != null); 113Debug.Assert(target._DispatcherLayoutResult != null); 114Debug.Assert(target._DispatcherLayoutResult.Status == System.Windows.Threading.DispatcherOperationStatus.Pending); 116Debug.Assert(abortStatus); 134Debug.Assert(!channel.IsOutOfBandChannel); 135Debug.Assert(!targetResource.GetHandle(channel).IsNull); 227Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 334Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\Geometry.cs (5)
198Debug.Assert(pWorldMatrix != null); 309Debug.Assert(pbPathData != (byte*)0); 435Debug.Assert(pbPathData != (byte*)0); 649Debug.Assert(pbPathData != (byte*)0); 746Debug.Assert(pbPathData != (byte*)0);
Core\CSharp\System\Windows\Media\GeometryDrawing.cs (1)
61Debug.Assert(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\GeometryGroup.cs (1)
70Debug.Assert(pg.CanFreeze);
Core\CSharp\System\Windows\Media\GlyphRun.cs (6)
640Debug.Assert(clusterMap[currentClusterStart] < lastGlyphInCluster); 1349Debug.Assert(!IsSideways); 1607Debug.Assert(!IsSideways); 1893Debug.Assert(_glyphTypeface != null); 2396Debug.Assert(!IsInitializing); 2407Debug.Assert(!IsInitialized);
Core\CSharp\System\Windows\Media\GlyphRunDrawing.cs (1)
57Debug.Assert(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\GlyphsSerializer.cs (5)
109Debug.Assert(_clusters[characterIndex] > glyphClusterStart); 120Debug.Assert(_indices.Count > glyphClusterStart - _glyphClusterInitialOffset); 126Debug.Assert(_characters == null || _characters.Count == 0 || _indices.Count == _characters.Count); 174Debug.Assert(_glyphStringBuider.Length == 0); 309Debug.Assert(caretStopStringLength == sb.ToString().Length);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (2)
1741Debug.Assert(charBufferRange.Length > 0); 1817Debug.Assert(glyphIndices != null || glyphMetrics != null);
Core\CSharp\System\Windows\Media\GuidelineCollection.cs (2)
60Debug.Assert(!isDynamic || guidelinesX.Length % 2 == 0); 69Debug.Assert(!isDynamic || guidelinesY.Length % 2 == 0);
Core\CSharp\System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (8)
45Debug.Assert(geometry != null); 345Debug.Assert(_modifierStack != null); 346Debug.Assert(_modifierStack.Count > 0); 356Debug.Assert((_modifierStack.Count > 0) || (_currentTransform == null)); 364Debug.Assert((_modifierStack.Count > 0) || (_currentClip == null)); 368Debug.Assert(currentModifier == null); 394Debug.Assert(_intersectionDetail != IntersectionDetail.FullyContains); 399Debug.Assert(intersectionDetail != IntersectionDetail.NotCalculated);
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (7)
348Debug.Assert(_pointStack != null); 349Debug.Assert(_pointStack.Count > 0); 385Debug.Assert(_noOpLayerDepth >= 1); 422Debug.Assert(!_currentLayerIsNoOp); 423Debug.Assert(_noOpLayerDepth == 0); 433Debug.Assert(_currentLayerIsNoOp); 434Debug.Assert(_noOpLayerDepth == 0);
Core\CSharp\System\Windows\Media\HostVisual.cs (9)
147Debug.Assert(target != null); 148Debug.Assert(target.Dispatcher.Thread == Thread.CurrentThread); 200Debug.Assert(_target != null); 201Debug.Assert(_target.Dispatcher.Thread == Thread.CurrentThread); 223Debug.Assert(!targetsHandle.IsNull); 259Debug.Assert(IsOnChannel(channel)); 272Debug.Assert(_target._contentRoot.IsOnChannel(channel)); 273Debug.Assert(_target.OutOfBandChannel == MediaContext.CurrentMediaContext.OutOfBandChannel); 275Debug.Assert(!created);
Core\CSharp\System\Windows\Media\Imaging\BitmapCodecInfo.cs (9)
51Debug.Assert(codecInfoHandle != null); 120Debug.Assert(length >= 0); 172Debug.Assert(length >= 0); 224Debug.Assert(length >= 0); 276Debug.Assert(length >= 0); 328Debug.Assert(length >= 0); 380Debug.Assert(length >= 0); 432Debug.Assert(length >= 0); 484Debug.Assert(length >= 0);
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (4)
1036Debug.Assert(_syncObject != null); 1170Debug.Assert((uri.Scheme == Uri.UriSchemeHttp) || (uri.Scheme == Uri.UriSchemeHttps)); 1171Debug.Assert(stream.CanSeek); 1324Debug.Assert(decoder != IntPtr.Zero);
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
480Debug.Assert(false);
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (2)
426Debug.Assert(_supportsGlobalThumbnail); 458Debug.Assert(_supportsGlobalMetadata);
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (7)
59Debug.Assert(decoder != null); 159Debug.Assert(decoder != null); 491Debug.Assert(_decoder != null); 765Debug.Assert(_decoder is LateBoundBitmapDecoder); 766Debug.Assert(IsDownloading == false); 771Debug.Assert(_decoder.InternalDecoder != null); 776Debug.Assert(_syncObject != null);
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameEncode.cs (2)
57Debug.Assert(source != null); 186Debug.Assert(sourceBitmapFrameEncode._source != null);
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (5)
243Debug.Assert(_decoder != null); 386Debug.Assert(decoder.SyncObject != null); 392Debug.Assert(!_decoder.IsDownloading); 461Debug.Assert(oldWidth > 0 && oldHeight > 0); 488Debug.Assert(false);
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (4)
536Debug.Assert(blockWriter != null); 537Debug.Assert(blockWriter.MetadataBlocks != null); 1026Debug.Assert(length >= 0); 1073Debug.Assert(length >= 0);
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (1)
200Debug.Assert(metadataHandle != null && !metadataHandle.IsInvalid);
Core\CSharp\System\Windows\Media\Imaging\BitmapPalette.cs (7)
190Debug.Assert(source != null); 193Debug.Assert(bitmapSource != null && !bitmapSource.IsInvalid); 227Debug.Assert(palette != null); 304Debug.Assert(palette != null && !palette.IsInvalid); 319Debug.Assert(_palette != null && !_palette.IsInvalid); 353Debug.Assert(_palette != null && !_palette.IsInvalid); 379Debug.Assert(cActualColors == numColors);
Core\CSharp\System\Windows\Media\Imaging\BitmapPalettes.cs (1)
297Debug.Assert(key < c_maxPalettes);
Core\CSharp\System\Windows\Media\Imaging\BitmapSizeOptions.cs (4)
224Debug.Assert(_preservesAspectRatio == true); 231Debug.Assert(_preservesAspectRatio == true); 238Debug.Assert(_preservesAspectRatio == false); 279Debug.Assert(false);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (5)
604Debug.Assert(_syncObject != null); 885Debug.Assert(_isSourceCached); 1070Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 1107Debug.Assert(_duceResource.IsOnChannel(channel)); 1297Debug.Assert(destFmt == colorConvertedBitmap.Format);
Core\CSharp\System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
121Debug.Assert(wicBitmap != IntPtr.Zero);
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
104Debug.Assert ((sizeX > 0) && (sizeY > 0)); 105Debug.Assert ((dpiX > 0) && (dpiY > 0));
Core\CSharp\System\Windows\Media\Imaging\InteropBitmapSource.cs (4)
78Debug.Assert (_unmanagedSource != null && !_unmanagedSource.IsInvalid); 115Debug.Assert (_unmanagedSource != null && !_unmanagedSource.IsInvalid); 175Debug.Assert (_unmanagedSource != null && !_unmanagedSource.IsInvalid); 469Debug.Assert(_sizeOptions.Rotation == Rotation.Rotate0);
Core\CSharp\System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
352Debug.Assert(newStream.CanSeek == true);
Core\CSharp\System\Windows\Media\Imaging\RenderTargetBitmap.cs (2)
306Debug.Assert(renderTargetBitmap != null && !renderTargetBitmap.IsInvalid); 312Debug.Assert(bitmapSource != null && !bitmapSource.IsInvalid);
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (15)
254Debug.Assert(locked); 691Debug.Assert(_pBackBufferLock == null); 738Debug.Assert(!_isWaitingForCommit); 936Debug.Assert(!backwardsCompat); 942Debug.Assert(!backwardsCompat); 948Debug.Assert(!backwardsCompat); 966Debug.Assert(!backwardsCompat); 1045Debug.Assert(!backwardsCompat); 1051Debug.Assert(!backwardsCompat); 1384Debug.Assert(_duceResource.IsOnChannel(channel)); 1433Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 1502Debug.Assert(_isWaitingForCommit); // How else are we here? 1505Debug.Assert(_lockCount == 0); // How else are we here? 1506Debug.Assert(_hasDirtyRects); // How else are we here? 1516Debug.Assert(_duceResource.IsOnChannel(channel)); // How else are we here?
Core\CSharp\System\Windows\Media\LinearGradientBrush.cs (1)
144Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\LineGeometry.cs (2)
116Debug.Assert(worldMatrix != null); 117Debug.Assert(geometryMatrix != null);
Core\CSharp\System\Windows\Media\MatrixStack.cs (4)
165Debug.Assert(!IsEmpty); 177Debug.Assert(!IsEmpty); 193Debug.Assert(_size == 0); // The stack must be empty before this is called. 194Debug.Assert(_highWaterMark <= _items.Length);
Core\CSharp\System\Windows\Media\MediaContext.cs (23)
213Debug.Assert(dispatcher.Reserved0 == null); 379Debug.Assert(CheckAccess()); 1401Debug.Assert(Channel != null); 1427Debug.Assert(dispatcher.Reserved0 == cm); 1450Debug.Assert(CheckAccess()); 1467Debug.Assert(CheckAccess()); 1498Debug.Assert(_timeManager != null); 1527Debug.Assert(dispatcher != null); 1528Debug.Assert(iv != null); 1540Debug.Assert(!_isDisposed); 1541Debug.Assert(iv != null); 1568Debug.Assert(dispatcher != null); 1569Debug.Assert(iv != null); 1587Debug.Assert(iv != null); 1637Debug.Assert(callback != null); 1642Debug.Assert(arg != null); 1683Debug.Assert(op != null); 1721Debug.Assert(CheckAccess()); 1851Debug.Assert(CheckAccess()); 1852Debug.Assert( 2091Debug.Assert(CheckAccess()); 2093Debug.Assert(!_isDisposed); 2094Debug.Assert(_registeredICompositionTargets != null);
Core\CSharp\System\Windows\Media\MediaContextNotificationWindow.cs (1)
189Debug.Assert(_ownerMediaContext != null);
Core\CSharp\System\Windows\Media\MediaPlayer.cs (1)
596Debug.Assert(_duceResource._duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (2)
1069Debug.Assert(absoluteUri.IsAbsoluteUri); 1238Debug.Assert(_nativeMedia != null && !_nativeMedia.IsInvalid);
Core\CSharp\System\Windows\Media\MediaSystem.cs (1)
166Debug.Assert(s_refCount > 0);
Core\CSharp\System\windows\Media\MILUtilities.cs (10)
103Debug.Assert(pD3DMatrix[2] == 0.0f || Single.IsNaN(pD3DMatrix[2])); 104Debug.Assert(pD3DMatrix[3] == 0.0f || Single.IsNaN(pD3DMatrix[3])); 112Debug.Assert(pD3DMatrix[6] == 0.0f || Single.IsNaN(pD3DMatrix[6])); 113Debug.Assert(pD3DMatrix[7] == 0.0f || Single.IsNaN(pD3DMatrix[7])); 119Debug.Assert(pD3DMatrix[8] == 0.0f || Single.IsNaN(pD3DMatrix[8])); 120Debug.Assert(pD3DMatrix[9] == 0.0f || Single.IsNaN(pD3DMatrix[9])); 121Debug.Assert(pD3DMatrix[10] == 1.0f || Single.IsNaN(pD3DMatrix[10])); 122Debug.Assert(pD3DMatrix[11] == 0.0f || Single.IsNaN(pD3DMatrix[11])); 130Debug.Assert(pD3DMatrix[14] == 0.0f || Single.IsNaN(pD3DMatrix[14])); 131Debug.Assert(pD3DMatrix[15] == 1.0f || Single.IsNaN(pD3DMatrix[15]));
Core\CSharp\System\Windows\Media\PathGeometry.cs (30)
155Debug.Assert(pathData.Size >= currentOffset + sizeof(MIL_PATHGEOMETRY)); 176Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_PATHFIGURE)); 196Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT)); 197Debug.Assert(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT)); 206Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_LINE)); 207Debug.Assert(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_LINE)); 221Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_BEZIER)); 222Debug.Assert(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_BEZIER)); 238Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_QUADRATICBEZIER)); 239Debug.Assert(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_QUADRATICBEZIER)); 254Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_ARC)); 255Debug.Assert(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_ARC)); 275Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_POLY)); 276Debug.Assert(pathData.Size >= currentOffset + sizeof(MIL_SEGMENT_POLY)); 280Debug.Assert(pSegmentPoly->Count <= Int32.MaxValue); 287Debug.Assert(pathData.SerializedData.Length >= 291Debug.Assert(pathData.Size >= 385Debug.Assert(result != null); 407Debug.Assert(figureCollection != null); 527Debug.Assert(sameSegCount == 1); 558Debug.Assert(sameSegCount == 1); 627Debug.Assert(pbPathData != (byte*)0); 680Debug.Assert(pPathData1 != (byte*)0); 684Debug.Assert(pPathData2 != (byte*)0); 826Debug.Assert(!pathData.IsEmpty()); 845Debug.Assert(pbPathData != (byte*)0); 906Debug.Assert(pbPathData1 != (byte*)0); 910Debug.Assert(pbPathData2 != (byte*)0); 939Debug.Assert(detail != IntersectionDetail.NotCalculated); 1064Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\PathStreamGeometryContext.cs (17)
87Debug.Assert(figureCount > 0); 98Debug.Assert(segmentCount > 0); 109Debug.Assert(_currentFigure != null); 124Debug.Assert(_currentFigure == null || _figures != null); 251Debug.Assert(_figures != null); 252Debug.Assert(_currentFigure != null); 308Debug.Assert(false); 320Debug.Assert(_currentSegmentPoints == null); 330Debug.Assert(points != null); 347Debug.Assert(_figures != null); 348Debug.Assert(_currentFigure != null); 350Debug.Assert(count != 0); 376Debug.Assert(_currentFigure != null); 380Debug.Assert(count > 0); 421Debug.Assert(count % 3 == 0); 438Debug.Assert(count % 2 == 0); 447Debug.Assert(false);
Core\CSharp\System\Windows\Media\Pen.cs (7)
94Debug.Assert((MIL_PEN_CAP)PenLineCap.Flat == MIL_PEN_CAP.MilPenCapFlat); 95Debug.Assert((MIL_PEN_CAP)PenLineCap.Square == MIL_PEN_CAP.MilPenCapSquare); 96Debug.Assert((MIL_PEN_CAP)PenLineCap.Round == MIL_PEN_CAP.MilPenCapRound); 97Debug.Assert((MIL_PEN_CAP)PenLineCap.Triangle == MIL_PEN_CAP.MilPenCapTriangle); 104Debug.Assert((MIL_PEN_JOIN)PenLineJoin.Miter == MIL_PEN_JOIN.MilPenJoinMiter); 105Debug.Assert((MIL_PEN_JOIN)PenLineJoin.Bevel == MIL_PEN_JOIN.MilPenJoinBevel); 106Debug.Assert((MIL_PEN_JOIN)PenLineJoin.Round == MIL_PEN_JOIN.MilPenJoinRound);
Core\CSharp\System\Windows\Media\PixelFormat.cs (7)
71Debug.Assert(mask != null); 180Debug.Assert(Marshal.SizeOf(typeof(Guid)) == 16); 543Debug.Assert(pixelFormatInfo != IntPtr.Zero); 556Debug.Assert(channelCount >= 1); 567Debug.Assert(cbBytes > 0); 576Debug.Assert(cbBytes == channelMask.Length); 653Debug.Assert(pixelFormatInfo != IntPtr.Zero);
Core\CSharp\System\Windows\Media\RadialGradientBrush.cs (1)
87Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (2)
199Debug.Assert(worldMatrix != null); 200Debug.Assert(geometryMatrix != null);
Core\CSharp\System\Windows\Media\RenderCapability.cs (3)
39Debug.Assert(mediaContext != null); 166Debug.Assert(mediaContext != null); 177Debug.Assert(mediaContext != null);
Core\CSharp\System\Windows\Media\RenderContext.cs (1)
92Debug.Assert(channel != null);
Core\CSharp\System\Windows\Media\RenderData.cs (17)
92Debug.Assert(cbRecordSize >= 0); 95Debug.Assert((_curOffset % 8) == 0); 96Debug.Assert((cbRecordSize % 8) == 0); 97Debug.Assert((sizeof(RecordHeader) % 8) == 0); 115Debug.Assert((_buffer != null) && (_buffer.Length >= newOffset)); 118Debug.Assert(_buffer.Length > 0); 143Debug.Assert(ctx != null); 245Debug.Assert(!this.IsFrozen); 285Debug.Assert(_dependentResources[i] as Freezable == null); 378Debug.Assert(_duceResource.IsOnChannel(channel)); 408Debug.Assert(_duceResource.IsOnChannel(channel)); 460Debug.Assert(_duceResource.IsOnChannel(channel)); 475Debug.Assert(cbRequiredSize >= 0); 485Debug.Assert(_buffer.Length < cbRequiredSize); 495Debug.Assert(newSize >= cbRequiredSize); 512Debug.Assert(index <= (uint)Int32.MaxValue); 519Debug.Assert(_dependentResources.Count >= index);
Core\CSharp\System\Windows\Media\StreamGeometry.cs (2)
439Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 509Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media\TextFormatting\TextCharacters.cs (3)
219Debug.Assert(characterBufferReference.CharacterBuffer == _characterBufferReference.CharacterBuffer); 220Debug.Assert(offsetToFirstChar >= 0 && offsetToFirstChar < _length); 310Debug.Assert(shapeables != null);
Core\CSharp\System\Windows\Media\Typeface.cs (1)
528Debug.Assert(i > 0);
Core\CSharp\System\Windows\Media\VideoDrawing.cs (1)
46Debug.Assert(!ctx.ShouldStopWalking);
Core\CSharp\System\Windows\Media\Visual.cs (23)
584Debug.Assert(BitmapEffectStateField.GetValue(this) != null); 662Debug.Assert(IsOnChannel(channel)); 663Debug.Assert(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentNodeConnected)); 867Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 893Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 918Debug.Assert(cyclicBrushToChannelsMap != null); 919Debug.Assert(cyclicBrushToChannelsMap.ContainsKey(cyclicBrush)); 920Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 941Debug.Assert(channelsToCyclicBrushMap != null); 942Debug.Assert(channelsToCyclicBrushMap.ContainsKey(channel)); 943Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 1319Debug.Assert(CheckFlagsAnd(VisualFlags.ReentrancyFlag)); // Exit must be matched with Enter. See Enter comments. 2107Debug.Assert(BitmapEffectStateField.GetValue(this) != null); 2238Debug.Assert(bitmapEffectState != null); 2277Debug.Assert(intersectionDetail != IntersectionDetail.NotCalculated); 2335Debug.Assert(intersectionDetail != IntersectionDetail.NotCalculated); 2399Debug.Assert(resultCallback != null); 2466Debug.Assert(intersectionDetail != IntersectionDetail.NotCalculated); 3243Debug.Assert(currentBitmapEffect.IsFrozen == emulatingEffect.IsFrozen); 3313Debug.Assert(bitmapEffectState != null); 4530Debug.Assert(ancestor != null); 4647Debug.Assert((group == null) || (group.Children.Count > 0)); 4725Debug.Assert(ancestor != null);
Core\CSharp\System\Windows\Media\VisualBrush.cs (10)
197Debug.Assert(!_pendingLayout); 240Debug.Assert(element != null); 262Debug.Assert(_pendingLayout); 266Debug.Assert(element != null); 277Debug.Assert(_DispatcherLayoutResult != null); 278Debug.Assert(_DispatcherLayoutResult.Status == DispatcherOperationStatus.Pending); 280Debug.Assert(abortStatus); 292Debug.Assert(_pendingLayout); 295Debug.Assert(element != null); 333Debug.Assert(_reentrancyFlag); // Exit must be matched with Enter. See Enter comments.
Core\CSharp\System\Windows\Media\VisualCollection.cs (16)
96Debug.Assert(_owner != null); 102Debug.Assert(_owner != null); 108Debug.Assert(_owner != null); 115Debug.Assert(_owner != null); 292Debug.Assert(_items != null); 420Debug.Assert(value != null); 421Debug.Assert(_items[index] == null); 422Debug.Assert(value._parent == null); 423Debug.Assert(!value.IsRootElement); 438Debug.Assert(_items[index] != null); 494Debug.Assert(_items[addedPosition] == null); 573Debug.Assert(visual._parent != null); 688Debug.Assert(_items[i]._parent == _owner); 869Debug.Assert(visual._parent != null); 870Debug.Assert(destination == null || destination._parent == visual._parent); 1027Debug.Assert(_index == -2);
Core\CSharp\System\Windows\Media\VisualProxy.cs (7)
161Debug.Assert(count == 0); 183Debug.Assert(count == 1); 299Debug.Assert(index != PROXY_NOT_FOUND); 354Debug.Assert(index >= 0 && index < Count); 397Debug.Assert(index >= 0 && index < Count); 476Debug.Assert(index >= 0 && index < Count); 577Debug.Assert(delta % 2 == 0 && newLength >= 2);
Core\CSharp\System\Windows\Media\VisualTarget.cs (5)
58Debug.Assert(!_connected); 83Debug.Assert(channel != null); 84Debug.Assert(outOfBandChannel != null); 106Debug.Assert(!resourceCreated); 201Debug.Assert(_connected);
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (1)
175Debug.Assert(reference == null);
Core\CSharp\System\Windows\Media3D\Generated\AmbientLight.cs (2)
133Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 198Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\AxisAngleRotation3D.cs (2)
178Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 231Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\Camera.cs (2)
124Debug.Assert(!channel.IsOutOfBandChannel); 125Debug.Assert(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (4)
138Debug.Assert(!channel.IsOutOfBandChannel); 139Debug.Assert(!targetResource.GetHandle(channel).IsNull); 237Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 286Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\DirectionalLight.cs (2)
152Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 223Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (4)
131Debug.Assert(!channel.IsOutOfBandChannel); 132Debug.Assert(!targetResource.GetHandle(channel).IsNull); 215Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 263Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
113Debug.Assert(_collection.Count == 0);
Core\CSharp\System\Windows\Media3D\Generated\GeometryModel3D.cs (8)
124Debug.Assert(!channel.IsOutOfBandChannel); 125Debug.Assert(!targetResource.GetHandle(channel).IsNull); 174Debug.Assert(!channel.IsOutOfBandChannel); 175Debug.Assert(!targetResource.GetHandle(channel).IsNull); 224Debug.Assert(!channel.IsOutOfBandChannel); 225Debug.Assert(!targetResource.GetHandle(channel).IsNull); 323Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 395Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\MaterialGroup.cs (10)
144Debug.Assert(!channel.IsOutOfBandChannel); 145Debug.Assert(!targetResource.GetHandle(channel).IsNull); 157Debug.Assert(resource != null); 168Debug.Assert(resource != null); 236Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 306Debug.Assert(_duceResource.IsOnChannel(channel)); 355Debug.Assert(!channel.IsOutOfBandChannel); 356Debug.Assert(!thisResource.GetHandle(channel).IsNull); 383Debug.Assert(!channel.IsOutOfBandChannel); 384Debug.Assert(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\MatrixCamera.cs (2)
174Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 233Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\MatrixTransform3D.cs (2)
152Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 192Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\MeshGeometry3D.cs (2)
234Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 336Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\Model3D.cs (2)
124Debug.Assert(!channel.IsOutOfBandChannel); 125Debug.Assert(!targetResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\Model3DGroup.cs (10)
144Debug.Assert(!channel.IsOutOfBandChannel); 145Debug.Assert(!targetResource.GetHandle(channel).IsNull); 157Debug.Assert(resource != null); 168Debug.Assert(resource != null); 236Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 322Debug.Assert(_duceResource.IsOnChannel(channel)); 372Debug.Assert(!channel.IsOutOfBandChannel); 373Debug.Assert(!thisResource.GetHandle(channel).IsNull); 400Debug.Assert(!channel.IsOutOfBandChannel); 401Debug.Assert(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\OrthographicCamera.cs (2)
152Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 247Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\PerspectiveCamera.cs (2)
152Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 247Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\PointLight.cs (2)
133Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 228Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\QuaternionRotation3D.cs (2)
155Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 202Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\RotateTransform3D.cs (4)
153Debug.Assert(!channel.IsOutOfBandChannel); 154Debug.Assert(!targetResource.GetHandle(channel).IsNull); 271Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 338Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\ScaleTransform3D.cs (2)
280Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 357Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (4)
131Debug.Assert(!channel.IsOutOfBandChannel); 132Debug.Assert(!targetResource.GetHandle(channel).IsNull); 237Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 286Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\SpotLight.cs (2)
196Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 309Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Generated\Transform3DGroup.cs (10)
144Debug.Assert(!channel.IsOutOfBandChannel); 145Debug.Assert(!targetResource.GetHandle(channel).IsNull); 157Debug.Assert(resource != null); 168Debug.Assert(resource != null); 236Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 306Debug.Assert(_duceResource.IsOnChannel(channel)); 355Debug.Assert(!channel.IsOutOfBandChannel); 356Debug.Assert(!thisResource.GetHandle(channel).IsNull); 383Debug.Assert(!channel.IsOutOfBandChannel); 384Debug.Assert(!thisResource.GetHandle(channel).IsNull);
Core\CSharp\System\Windows\Media3D\Generated\TranslateTransform3D.cs (2)
205Debug.Assert(!skipOnChannelCheck || _duceResource.IsOnChannel(channel)); 264Debug.Assert(_duceResource.IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Matrix3D.cs (7)
1049Debug.Assert(IsDistinguishedIdentity); 1061Debug.Assert(IsDistinguishedIdentity); 1077Debug.Assert(IsDistinguishedIdentity); 1203Debug.Assert(!IsDistinguishedIdentity); 1204Debug.Assert(IsAffine); 1220Debug.Assert(!IsDistinguishedIdentity); 1221Debug.Assert(IsAffine);
Core\CSharp\System\Windows\Media3D\Rect3D.cs (1)
66Debug.Assert(size.IsEmpty == IsEmpty);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (3)
604Debug.Assert(Geometry == null || Geometry is MeshGeometry3D); 632Debug.Assert(Geometry == null || Geometry is MeshGeometry3D); 660Debug.Assert(Geometry == null || Geometry is MeshGeometry3D);
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (6)
344Debug.Assert(child != null); 345Debug.Assert(child.InternalVisualParent == null); 395Debug.Assert(child != null); 396Debug.Assert(child.InternalVisualParent == this); 732Debug.Assert(IsOnChannel(channel)); 821Debug.Assert(IsOnChannel(channel));
Core\CSharp\System\Windows\Media3D\Visual3D.cs (13)
254Debug.Assert(child != null); 255Debug.Assert(child.InternalVisualParent == null); 302Debug.Assert(child != null); 303Debug.Assert(child.InternalVisualParent == this); 974Debug.Assert(InternalVisualParent == newParent); 982Debug.Assert(InternalVisualParent == newParent); 1104Debug.Assert(model != null); 1284Debug.Assert(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentConnected)); 1285Debug.Assert(IsOnChannel(channel)); 1482Debug.Assert(IsOnChannel(channel)); 1483Debug.Assert(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentNodeConnected)); 1686Debug.Assert(ancestor != null); 1837Debug.Assert(ancestor != null);
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (2)
201Debug.Assert(uri != null && uri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(uri.Scheme, PackUriHelper.UriSchemePack) && IsPackApplicationUri(uri)); 218Debug.Assert(String.Compare(partName, uri.GetComponents(UriComponents.Path, UriFormat.UriEscaped), StringComparison.OrdinalIgnoreCase) == 0);
Core\CSharp\System\Windows\PresentationSource.cs (1)
627Debug.Assert(InputElement.IsUIElement3D(uie) || InputElement.IsUIElement(uie));
Core\CSharp\System\Windows\ReverseInheritProperty.cs (1)
203Debug.Assert(originChangedAction != null);
Core\CSharp\System\Windows\UIElement.cs (5)
3147Debug.Assert(intersectionDetail != IntersectionDetail.NotCalculated); 3240Debug.Assert(_proxy.IsOnChannel(channel)); 3310Debug.Assert(!CheckFlagsAnd(channel, VisualProxyFlags.IsContentConnected)); 3311Debug.Assert(_proxy.IsOnChannel(channel)); 4195Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed);
Core\CSharp\System\Windows\UIElement3D.cs (1)
1361Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed);
Graphics\include\exports.cs (23)
134Debug.Assert((cbData == 0) || ((Int64)(IntPtr)pbFrom) % 4 == 0); 135Debug.Assert((cbData == 0) || ((Int64)(IntPtr)pbTo) % 4 == 0); 136Debug.Assert(cbData % 4 == 0); 137Debug.Assert(cbData >= 0); 625Debug.Assert(!handle.IsNull); 661Debug.Assert(!handle.IsNull); 1087Debug.Assert(channel != null); 1107Debug.Assert(channel != null); 1298Debug.Assert(_others.Count > 0); 1324Debug.Assert(index == 0); 1560Debug.Assert(index <= 1); 1638Debug.Assert(index == 0); 1677Debug.Assert(channel != null); 1702Debug.Assert(sourceChannel != null); 1707Debug.Assert(found); 1714Debug.Assert(!(_map.Get(targetChannel, out duplicate))); 1740Debug.Assert(channel != null); 1745Debug.Assert(found); 1808Debug.Assert(channel != null); 1813Debug.Assert(found); 2147Debug.Assert(!hCompositionNode.IsNull); 2178Debug.Assert(!hCompositionNode.IsNull); 2386Debug.Assert(!hCompositionNode.IsNull);
Shared\MS\Internal\AppDomainShutdownMonitor.cs (3)
37Debug.Assert(listener.Target != null); 38Debug.Assert(listener.Target is IAppDomainShutdownListener); 51Debug.Assert(listener.Target == null || listener.Target is IAppDomainShutdownListener);
Shared\MS\Internal\GenericEnumerator.cs (1)
103Debug.Assert(_position >= 0);
Shared\MS\Internal\Ink\BitStream.cs (2)
30Debug.Assert(buffer != null); 43Debug.Assert(buffer != null);
Shared\MS\Internal\PartialList.cs (1)
46Debug.Assert(initialIndex >= 0 && initialIndex + count <= list.Count);
Shared\MS\Internal\PriorityQueue.cs (2)
98Debug.Assert(_count > 0); 140Debug.Assert(_count != 0);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
467Debug.Assert(target != null);
Shared\System\Windows\Media\TypeConverterHelper.cs (1)
74Debug.Assert(inputString is Uri);
PresentationFramework (1058)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
311Debug.Assert(tv != null);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
409Debug.Assert(target != null); 479Debug.Assert(startNode != null);
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
241Debug.Assert(textView != null);
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (3)
441Debug.Assert(Application.IsShuttingDown); 898Debug.Assert(!Application.IsApplicationObjectShuttingDown); 928Debug.Assert(((PackageDocument)_document.Value).Package ==
src\Framework\MS\Internal\AppModel\Journaling.cs (11)
136Debug.Assert(value.JEGroupState == this); 137Debug.Assert(_groupExitEntry == null || _groupExitEntry.ContentId == value.ContentId); 232Debug.Assert(this.KeepAliveRoot == contentObject); // set by ctor; shouldn't change 239Debug.Assert(navMode == NavigationMode.Back || navMode == NavigationMode.Forward); 240Debug.Assert(this.KeepAliveRoot != null); 430Debug.Assert(pageFunction != null && pageFunction.KeepAlive); 475Debug.Assert(navMode == NavigationMode.Back || navMode == NavigationMode.Forward); 480Debug.Assert(pf != null); 512Debug.Assert(!pageFunction.KeepAlive); 587Debug.Assert(navMode == NavigationMode.Back || navMode == NavigationMode.Forward); 600Debug.Assert(pageFunction != null);
src\Framework\MS\Internal\AppModel\JournalNavigationScope.cs (2)
295Debug.Assert(journal != null); 479Debug.Assert(sender == _journal);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
292Debug.Assert(topWindow != IntPtr.Zero); 690Debug.Assert(sink.KeyboardInputSite == null);
src\Framework\MS\Internal\AppModel\XappLauncher.cs (5)
131Debug.Assert(!_isInAsynchronousOperation && !IsCanceledOrShuttingDown); 383Debug.Assert(_isInAsynchronousOperation); 857Debug.Assert(!_canceled); 1006Debug.Assert(!_canceled); 1019Debug.Assert(!(_canceled && _isInAsynchronousOperation));
src\Framework\MS\Internal\Commands\CommandHelpers.cs (3)
104Debug.Assert(controlType != null); 105Debug.Assert(command != null); 106Debug.Assert(executedRoutedEventHandler != null);
src\Framework\MS\Internal\Controls\CustomCategoryAttribute.cs (1)
18Debug.Assert("Content".Equals(name, StringComparison.Ordinal)
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
162Debug.Assert(_frameSize != new Size(0, 0));
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
43Debug.Assert(inkCanvas != null);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
95Debug.Assert(annotation != null); 137Debug.Assert((token & AllValues) != 0); 625Debug.Assert(false); 640Debug.Assert(cargo != null); 664Debug.Assert(false); 712Debug.Assert(false); 822Debug.Assert(snc.IsExpanded); 830Debug.Assert(snc.IsExpanded); 1276Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1290Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (3)
212Debug.Assert(node != null && !IsEmpty); 239Debug.Assert(node != null); 384Debug.Assert(node != null && !IsEmpty);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteHelper.cs (2)
104Debug.Assert(!helper.IsLocked(flag)); 114Debug.Assert(_helper.IsLocked(_flag));
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (2)
528Debug.Assert(subgroup != null); 550Debug.Assert(subgroup != null);
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (1)
476Debug.Assert(args.Action == NotifyCollectionChangedAction.Remove);
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (1)
481Debug.Assert(sourceType != targetType);
src\Framework\MS\Internal\Data\DisplayMemberTemplateSelector.cs (1)
30Debug.Assert(!(String.IsNullOrEmpty(displayMemberPath) && String.IsNullOrEmpty(stringFormat)));
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (2)
43Debug.Assert(_xpath != null); 445Debug.Assert(ContextNode != null);
src\Framework\MS\Internal\DataStreams.cs (1)
342Debug.Assert(state != null);
src\Framework\MS\Internal\Documents\ColumnResult.cs (1)
196Debug.Assert(_paragraphs != null && _paragraphs.Count > 0);
src\Framework\MS\Internal\Documents\ContentElementCollection.cs (5)
44Debug.Assert(owner != null); 185Debug.Assert(Items[item.Index] == item); 321Debug.Assert(collection != null); 722Debug.Assert(BelongsToOwner(item) && Items[item.Index] == item); 732Debug.Assert(BelongsToOwner(Items[i + 1]));
src\Framework\MS\Internal\Documents\HostedElements.cs (5)
88Debug.Assert(_currentTextSegment == 0); 105Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 116Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 195Debug.Assert(_currentPosition.GetAdjacentElementFromOuterPosition(LogicalDirection.Forward) is IInputElement); 199Debug.Assert(_currentPosition.GetAdjacentElement(LogicalDirection.Forward) is IInputElement);
src\Framework\MS\Internal\Documents\TableColumnCollectionInternal.cs (8)
49Debug.Assert(Items[index] == null); 68Debug.Assert(BelongsToOwner(Items[i])); 118Debug.Assert(BelongsToOwner(Items[i])); 143Debug.Assert(item != null && item.Index == -1); 144Debug.Assert(Items[index] == null); 180Debug.Assert(item != null); 298Debug.Assert(BelongsToOwner(Items[i])); 306Debug.Assert(BelongsToOwner(Items[i + count]));
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (8)
71Debug.Assert(BelongsToOwner(Items[i])); 246Debug.Assert(BelongsToOwner(Items[i])); 267Debug.Assert(item != null && item.Index == -1); 268Debug.Assert(Items[index] == null); 296Debug.Assert(BelongsToOwner(item) && Items[item.Index] == item); 310Debug.Assert(BelongsToOwner(Items[i + 1])); 379Debug.Assert(BelongsToOwner(Items[i])); 396Debug.Assert(BelongsToOwner(item) && Items[item.Index] == item);
src\Framework\MS\Internal\Documents\TextParagraphView.cs (8)
174Debug.Assert(lines != null && lines.Count > 0); 180Debug.Assert(false); 295Debug.Assert(lines != null && lines.Count > 0); 299Debug.Assert(lineIndex >= 0 && lineIndex < lines.Count); 358Debug.Assert(lineIndex < lines.Count); 557Debug.Assert(lines != null && lines.Count > 0); 594Debug.Assert(lines != null && lines.Count > 0); 721Debug.Assert(lines != null && lines.Count > 0);
src\Framework\MS\Internal\Documents\UndoManager.cs (3)
134Debug.Assert(((UndoManager)undoManager)._scope == null); 172Debug.Assert(((UndoManager)undoManager)._scope == scope); 308Debug.Assert(false);
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (1)
120Debug.Assert(match.Value.Length > 0 && match.Value[0] == BamlConst.EscapeChar);
src\Framework\MS\Internal\Globalization\BamlResourceSerializer.cs (1)
84Debug.Assert(elementNode != null);
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (1)
581Debug.Assert(node.NodeType == BamlNodeType.StartElement);
src\Framework\MS\Internal\Globalization\LocalizableResourceBuilder.cs (1)
452Debug.Assert(inheritableAttribute != null);
src\Framework\MS\Internal\Globalization\LocalizationComments.cs (1)
362Debug.Assert(enumPrefix != null && enumNames != null);
src\Framework\MS\Internal\Helper.cs (2)
418Debug.Assert( fe != null ); 862Debug.Assert(item != null);
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (5)
93Debug.Assert(dataObject != null && _preferredClipboardData!= null); 144Debug.Assert(inkCanvasSelection.SelectedStrokes.Count == orderedStrokes.Count); 202Debug.Assert(dataObject != null && _preferredClipboardData!= null); 273Debug.Assert(_preferredClipboardData != null); 282Debug.Assert(value != null);
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (3)
271Debug.Assert(behavior != null); 375Debug.Assert(behavior == ActiveEditingBehavior); 624Debug.Assert(newEditingBehavior != null);
src\Framework\MS\Internal\Ink\EraserBehavior.cs (3)
111Debug.Assert(_cachedEraseMode != mode); 165Debug.Assert(newEraseMode == InkCanvasEditingMode.EraseByPoint 357Debug.Assert(null != e.HitStroke);
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
150Debug.Assert( _inkCanvas.EditingCoordinator.UserIsEditing == true ); 217Debug.Assert(strokes != null && elements != null);
src\Framework\MS\Internal\Ink\LassoHelper.cs (2)
176System.Diagnostics.Debug.Assert(null != points); 177System.Diagnostics.Debug.Assert((0 <= percentIntersect) && (100 >= percentIntersect));
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (6)
284Debug.Assert(tappedElement == null); 290Debug.Assert(tappedStroke == null); 379System.Diagnostics.Debug.Assert(null != _lassoHelper); 396Debug.Assert(canvas != null); 397Debug.Assert(childElement != null); 399Debug.Assert(canvas.CheckAccess());
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
80Debug.Assert(_hitResult != InkCanvasSelectionHitResult.None); 339Debug.Assert(false);
src\Framework\MS\Internal\Ink\XamlClipboardData.cs (1)
122Debug.Assert(setString.Length > 0);
src\Framework\MS\Internal\IO\Packaging\ByteStream.cs (3)
54Debug.Assert(stream != null); 60Debug.Assert(_access == FileAccess.Read); 136Debug.Assert(_length > 0);
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (6)
466Debug.Assert(false); 475Debug.Assert(false); 592Debug.Assert(dottedExtensionName != null); 620Debug.Assert(pathWithGaps != null && stopGaps != null); 629Debug.Assert(stopGaps.Length > nextStopGapToUse); 637Debug.Assert(stopGaps.Length == nextStopGapToUse);
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (8)
299Debug.Assert(bufferCharacterCount >= 0); 365Debug.Assert(_fixedPageContentExtractor != null); 400Debug.Assert(_contextStack.Count == 0); 406Debug.Assert(_topLevelReader != null); 413Debug.Assert(false); 516Debug.Assert(topOfStack.HasIndexableContent); 778Debug.Assert(_xamlReader != null); 800Debug.Assert(String.CompareOrdinal(_xamlReader.LocalName, _fixedPageName) == 0);
src\Framework\MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (1)
42Debug.Assert(_pageNode != null);
src\Framework\MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (1)
47Debug.Assert(_glyphsNode != null
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (1)
124Debug.Assert(oldParaClient._visual != null);
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (1)
185Debug.Assert(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (4)
96Debug.Assert(calculatedColumns != null 388Debug.Assert(tableParaClient != null); 391Debug.Assert( calculatedColumns != null 405Debug.Assert(0 <= durCellWidth);
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (3)
83Debug.Assert(Cell.Table != null); 152Debug.Assert(Cell.Table != null); 181Debug.Assert(Cell.Table != null);
src\Framework\MS\Internal\PtsHost\ColumnPropertiesGroup.cs (1)
46internal double ColumnWidth { get { Debug.Assert(!double.IsNaN(_columnWidth)); return _columnWidth; } }
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (12)
239Debug.Assert(_ur.ChangeType == PTS.FSKCHANGE.fskchInside); // Inconsistent UpdateRecord data 307Debug.Assert(_ur == null); // UpdateRecord has been already created. 370Debug.Assert(StructuralCache.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment. 375Debug.Assert(_ur == null); 500Debug.Assert(iArea == 0); 673Debug.Assert(iArea == 0); 758Debug.Assert(pmcsclientOut == IntPtr.Zero); 810Debug.Assert(iArea == 0); 895Debug.Assert(pmcsclientOut == IntPtr.Zero); 949Debug.Assert(ParagraphEndCharacterPosition >= startPosition); 1090Debug.Assert(textPointer is TextPointer); 1216Debug.Assert(ur.Next.FirstPara == null || ur.Next.FirstPara.Next == null);
src\Framework\MS\Internal\PtsHost\DtrList.cs (1)
319Debug.Assert(_dtrs.Length > 0);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (4)
458Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 479Debug.Assert(fskupd != PTS.FSKUPDATE.fskupdNoChange); 493Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 679Debug.Assert(arrayColumnDesc.Length == 1);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
455Debug.Assert(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (4)
462Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 483Debug.Assert(fskupd != PTS.FSKUPDATE.fskupdNoChange); 497Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 685Debug.Assert(arrayColumnDesc.Length == 1);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (4)
264Debug.Assert(pmcsclientOut == IntPtr.Zero); 519Debug.Assert(pmcsclientOut == IntPtr.Zero); 538Debug.Assert(pmcsclientOut == IntPtr.Zero); 624Debug.Assert(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (8)
324Debug.Assert(child != null); 474Debug.Assert(pageDetails.u.complex.cSections == 1); // Only one section is supported right now. 490Debug.Assert(sectionDetails.u.withpagenotes.cEndnoteColumns == 0); // Footnotes are not supported yet. 494Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0); 495Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0); 532Debug.Assert(false); // Complex columns are not supported yet. 954Debug.Assert(e != null); 957Debug.Assert(_structuralCache.TextContainer is TextContainer);
src\Framework\MS\Internal\PtsHost\Line.cs (2)
681Debug.Assert(dcp >= 0 && (dcp + cch <= _line.Length)); 701Debug.Assert(cchGlyphRuns > 0 && glyphRunsCollection.Count > 0);
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
349Debug.Assert(number >= 0 && number <= 9);
src\Framework\MS\Internal\PtsHost\PageVisual.cs (2)
76Debug.Assert(vc.Count <= 1); 82Debug.Assert(vc.Count <= 1);
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
168Debug.Assert(false);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (2)
652Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0); 653Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
src\Framework\MS\Internal\PtsHost\PtsHost.cs (5)
421Debug.Assert(cnms == 1); // Only one section is supported right now. 2701Debug.Assert(false); 3150Debug.Assert(false); 3384Debug.Assert(false); 3500Debug.Assert(false);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (11)
1016Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0); 1017Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0); 1070Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0); 1071Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0); 1157Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 1246Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0); 1247Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0); 1469Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0); 1470Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0); 1536Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0); 1537Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (3)
206Debug.Assert(cCells == Row.FormatCellCount); 275Debug.Assert (_spannedCells[j] != null); 294Debug.Assert(Row.Index - cell.RowIndex + 1 == cell.RowSpan);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (3)
383Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 404Debug.Assert(fskupd != PTS.FSKUPDATE.fskupdNoChange); 418Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual);
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
482Debug.Assert(pmcsclientOut == IntPtr.Zero); 650Debug.Assert(pmcsclientOut == IntPtr.Zero); 698Debug.Assert(ParagraphEndCharacterPosition >= startPosition);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (21)
77Debug.Assert( Table != null 349Debug.Assert( TableParagraph.Table != null 398Debug.Assert( TableParagraph.Table != null 475Debug.Assert(TableParagraph.Table != null 656Debug.Assert( TableParagraph.Table != null 888Debug.Assert( TableParagraph.Table != null 965Debug.Assert( TableParagraph.Table != null 1025Debug.Assert( TableParagraph.Table != null 1112Debug.Assert( TableParagraph.Table != null 1213Debug.Assert( TableParagraph.Table != null 1241Debug.Assert(false); 1263Debug.Assert(Table != null); 1289Debug.Assert(Table != null); 1481Debug.Assert(TableParagraph == (TableParagraph)(PtsContext.HandleToObject(tableObjDetails.fsnmTable))); 1511Debug.Assert(tableDetails.cRows == cRowsActual); 1565Debug.Assert(tableRowDetails.cCells == cCellsActual); 1699Debug.Assert( cellParaClient.Visual != null 1833Debug.Assert( cellParaClient.Visual != null 2171Debug.Assert(0 <= _calculatedColumns[i].DurMinWidth && 0 <= _calculatedColumns[i].DurMaxWidth); 2496Debug.Assert(_calculatedColumns[i].UserWidth.IsAbsolute); 2520Debug.Assert(_calculatedColumns[i].DurMinWidth <= _calculatedColumns[i].DurMaxWidth);
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (1)
320Debug.Assert(Table.RowGroups.Count > 0);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (32)
149Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 186Debug.Assert(!((TextParagraph) Paragraph).HasFiguresFloatersOrInlineObjects()); 266Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 298Debug.Assert(Paragraph.Element as ContentElement != e); 366Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 428Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 819Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 909Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 951Debug.Assert(position is TextPointer); 982Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 1011Debug.Assert(position is TextPointer); 1042Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 1218Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 1551Debug.Assert(textDetails.fsktd == PTS.FSKTEXTDETAILS.fsktdCached); 1575Debug.Assert(!PTS.ToBoolean(textDetails.fLinesComposite)); 1655Debug.Assert(insertionIndex >= 0 && insertionIndex <= lineVisuals.Count); 2855Debug.Assert(index > 0); 2989Debug.Assert(index == 0); 2990Debug.Assert(elIndex == 0); 3004Debug.Assert(index > 0); 3029Debug.Assert(elIndex == arrayLineElement.Length - 1); 3030Debug.Assert(index == arrayLineDesc.Length - 1); 3154Debug.Assert(index > 0); 3202Debug.Assert(backspaceCaretPosition != null); 3255Debug.Assert(index == 0); 3256Debug.Assert(elIndex == 0); 3270Debug.Assert(index > 0); 3634Debug.Assert(!PTS.ToBoolean(textDetails.fLinesComposite)); 3752Debug.Assert(_lineIndexFirstVisual == lineIndexFirstVisible); 3781Debug.Assert(visualChildren.Count == (lineIndexFirstInvisible - lineIndexFirstVisible)); 4218Debug.Assert(localEnd > localStart); 4432Debug.Assert(localEnd > localStart);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
160Debug.Assert(iArea == 0);
src\Framework\MS\Internal\PtsHost\TextParaLineResult.cs (4)
61Debug.Assert(false); 77Debug.Assert(false); 90Debug.Assert(false); 106Debug.Assert(false);
src\Framework\MS\Internal\PtsHost\UpdateRecord.cs (1)
45Debug.Assert(Next != null); // This is the last UR, cannot merge with next.
src\Framework\MS\Internal\PtsTable\CalculatedColumn.cs (1)
58Debug.Assert(0 <= durMinWidth && durMinWidth <= durMaxWidth);
src\Framework\MS\Internal\PtsTable\RowSpanVector.cs (5)
145Debug.Assert(0 <= _index && _index < _size); 153Debug.Assert(0 <= _index && _index < _size); 186Debug.Assert(_entries[i].Cell != null); 187Debug.Assert(i >= j); 253Debug.Assert( _entries.Length > 0
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
88Debug.Assert(dcp >= 0);
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (5)
47Debug.Assert(element != null); 59Debug.Assert(element != null); 77Debug.Assert(element != null); 236Debug.Assert(element != null); 261Debug.Assert(!position.IsNull);
src\Framework\MS\Internal\Text\LineMetrics.cs (2)
119get { Debug.Assert((_packedData & HasBeenUpdatedMask) != 0); return _width; } 134get { Debug.Assert((_packedData & HasBeenUpdatedMask) != 0); return _start; }
src\Framework\MS\Internal\Text\SimpleLine.cs (1)
133Debug.Assert(content != null);
src\Framework\MS\Internal\Text\TextLineResult.cs (4)
61Debug.Assert(false); 73Debug.Assert(false); 84Debug.Assert(false); 96Debug.Assert(false);
src\Framework\MS\Internal\Text\TextProperties.cs (1)
264Debug.Assert(element != null);
src\Framework\MS\Internal\Text\TypographyProperties.cs (1)
110Debug.Assert((uint)PropertyId.PropertyCount <= 32);
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
203Debug.Assert(false);
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
672Debug.Assert((int)owningButton.GetValue(Grid.RowProperty) > 0);
src\Framework\System\Windows\BroadcastEventHelper.cs (7)
22Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 43Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 47Debug.Assert(loadedPending.Length == 3); 70Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 91Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 95Debug.Assert(unloadedPending.Length == 3); 511Debug.Assert( fo.IsFE );
src\Framework\System\Windows\Controls\Calendar.cs (14)
214Debug.Assert(c != null); 270Debug.Assert(c != null); 331Debug.Assert(c != null); 388Debug.Assert(c != null); 419Debug.Assert(false); 546Debug.Assert(c != null); 632Debug.Assert(c != null); 930Debug.Assert(false); 949Debug.Assert(false); 989Debug.Assert(false); 1022Debug.Assert(false); 1094Debug.Assert(false); 1196Debug.Assert(this.DisplayMode == CalendarMode.Year); 1209Debug.Assert(this.DisplayMode == CalendarMode.Decade);
src\Framework\System\Windows\Controls\CalendarBlackoutDatesCollection.cs (2)
116Debug.Assert(dayInterval != 0); 333Debug.Assert(day != null);
src\Framework\System\Windows\Controls\ComboBox.cs (1)
642Debug.Assert(_editableTextBoxSite == sender);
src\Framework\System\Windows\Controls\ContentPresenter.cs (3)
1016Debug.Assert(tc.CanConvertTo(typeof(UIElement))); 1087Debug.Assert(!(content is String) && !(content is UIElement)); // these are handled by different templates 1126Debug.Assert(!(tc != null && tc.CanConvertTo(typeof(UIElement)))); // this is handled by a different template
src\Framework\System\Windows\Controls\DataGrid.cs (2)
5288Debug.Assert(!IsUpdatingSelectedCells); 5294Debug.Assert(IsUpdatingSelectedCells);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1153Debug.Assert(startIndex >= 0);
src\Framework\System\Windows\Controls\DataGridColumn.cs (1)
596Debug.Assert(Width.IsStar);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (2)
549Debug.Assert(assignedDisplayIndexMap.ContainsKey(displayIndex)); 693Debug.Assert(removedDisplayIndex >= 0);
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
52Debug.Assert(_columns.Contains(column));
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
231Debug.Assert(stateCode != DATAGRIDROW_stateNullCode);
src\Framework\System\Windows\Controls\DatePicker.cs (11)
210Debug.Assert(dp != null); 256Debug.Assert(dp != null); 321Debug.Assert(dp != null); 339Debug.Assert(dp != null); 366Debug.Assert(dp != null); 427Debug.Assert(dp != null); 523Debug.Assert(dp != null); 575Debug.Assert(dp != null); 943Debug.Assert(c != null); 944Debug.Assert(args != null); 966Debug.Assert(e.AddedItems.Count < 2);
src\Framework\System\Windows\Controls\DateTimeHelper.cs (1)
181Debug.Assert(DateTime.Compare(start, end) < 1);
src\Framework\System\Windows\Controls\DefinitionBase.cs (6)
333Debug.Assert(value >= -1 && _parentIndex != value); 716Debug.Assert(sharedSizeGroup != null); 732Debug.Assert(_registry.Contains(key)); 749Debug.Assert(sharedSizeScope != null && sharedSizeGroupId != null); 762Debug.Assert(!_registry.Contains(member)); 846Debug.Assert( _userSize.GridUnitType == GridUnitType.Auto
src\Framework\System\Windows\Controls\Frame.cs (21)
473Debug.Assert(_ownJournalScope != null); 485Debug.Assert(_ownJournalScope == null); 527Debug.Assert(_journalOwnership == (JournalOwnership)GetValue(JournalOwnershipProperty)); 651Debug.Assert(sender == this && _ownJournalScope != null); 657Debug.Assert(sender == this && _ownJournalScope != null); 664Debug.Assert(sender == this && _ownJournalScope != null); 670Debug.Assert(sender == this && _ownJournalScope != null); 677Debug.Assert(sender == this && _ownJournalScope != null); 696Debug.Assert(sender == this && _ownJournalScope != null); 701Debug.Assert(sender == this && _ownJournalScope != null); 708Debug.Assert(sender == this && _ownJournalScope != null); 771Debug.Assert(d as Frame != null && ((Frame)d).NavigationService != null); 844Debug.Assert(canGoFwd == (bool)GetValue(CanGoForwardProperty)); 859Debug.Assert(canGoBack == (bool)GetValue(CanGoBackProperty)); 1018Debug.Assert(backStack == GetValue(BackStackProperty)); 1030Debug.Assert(fwdStack == GetValue(ForwardStackProperty)); 1192Debug.Assert(GetValue(BackStackProperty) == _ownJournalScope.BackStack); 1235Debug.Assert(JournalEntry.GetType().IsSerializable); 1265Debug.Assert(_journalOwnership == JournalOwnership.OwnsJournal); 1361Debug.Assert(_ownJournalScope == null ^ _journalOwnership == JournalOwnership.OwnsJournal); 1394Debug.Assert(_ownJournalScope == null ^ _journalOwnership == JournalOwnership.OwnsJournal);
src\Framework\System\Windows\Controls\Grid.cs (20)
486Debug.Assert(DefinitionsU.Length > 0 && DefinitionsV.Length > 0); 746Debug.Assert(DefinitionsU.Length > 0 && DefinitionsV.Length > 0); 994Debug.Assert(0 <= cell.ColumnIndex && cell.ColumnIndex < DefinitionsU.Length); 995Debug.Assert(0 <= cell.RowIndex && cell.RowIndex < DefinitionsV.Length); 1093Debug.Assert(ExtData.DefinitionsU != null && ExtData.DefinitionsU.Length > 0); 1140Debug.Assert(ExtData.DefinitionsV != null && ExtData.DefinitionsV.Length > 0); 1188Debug.Assert(false); 1454Debug.Assert(0 < count && 0 <= start && (start + count) <= definitions.Length); 1481Debug.Assert(0 < count && 0 <= start && (start + count) <= definitions.Length); 1509Debug.Assert(1 < count && 0 <= start && (start + count) <= definitions.Length); 1542Debug.Assert( minSize <= preferredSize 1573Debug.Assert(tempDefinitions[i].UserSize.IsAuto); 1582Debug.Assert(!tempDefinitions[i].UserSize.IsAuto); 1590Debug.Assert(_IsZero(sizeToDistribute)); 1610Debug.Assert(!tempDefinitions[i].UserSize.IsAuto); 1621Debug.Assert(tempDefinitions[i].UserSize.IsAuto); 1630Debug.Assert(_IsZero(sizeToDistribute)); 2160Debug.Assert(!definitions[i].IsShared || !definitions[i].UserSize.IsStar); 2234Debug.Assert(nonStarIndex == starDefinitionsCount); 4109Debug.Assert(grid != null);
src\Framework\System\Windows\Controls\GridSplitter.cs (2)
425Debug.Assert(_decorator != null); 448Debug.Assert(_decorator != null);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
642Debug.Assert(column != null); 993Debug.Assert(header != null || index != -1); 1077Debug.Assert(header != null); 1086Debug.Assert(header != null);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
289Debug.Assert(column != null);
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
2390System.Diagnostics.Debug.Assert(_dynamicallySelectedStrokes.Contains(s)); 2703System.Diagnostics.Debug.Assert(object.ReferenceEquals(sender, DefaultDrawingAttributes)); 2842Debug.Assert(inkCanvas != null); 2921Debug.Assert(inkCanvas != null);
src\Framework\System\Windows\Controls\InkPresenter.cs (3)
491System.Diagnostics.Debug.Assert(sender == this.Strokes); 541System.Diagnostics.Debug.Assert(stroke != null); 550System.Diagnostics.Debug.Assert(stroke != null);
src\Framework\System\Windows\Controls\ItemCollection.cs (12)
733Debug.Assert(_deferLevel == 0 || _collectionView == null || _deferInnerRefresh != null); 736Debug.Assert(_deferLevel != 0 || _deferInnerRefresh == null); 1575Debug.Assert(_isInitializing == false); 1583Debug.Assert(_isInitializing == true); 1930Debug.Assert(sender == _collectionView); 1936Debug.Assert(sender == _collectionView); 1963Debug.Assert(_collectionView != null); 1974Debug.Assert(_collectionView == null || _deferInnerRefresh != null); 2204Debug.Assert(e.NewStartingIndex >= 0); 2215Debug.Assert(e.OldStartingIndex >= 0); 2223Debug.Assert(e.OldStartingIndex >= 0); 2233Debug.Assert(e.OldStartingIndex >= 0);
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
3102Debug.Assert(direction == FocusNavigationDirection.Up ||
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
303Debug.Assert(false);
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (11)
232Debug.Assert(false); 397Debug.Assert(mode != CalendarMode.Month); 469Debug.Assert(false); 551Debug.Assert(e != null); 569Debug.Assert(b != null); 685Debug.Assert(selectedDate != null); 930Debug.Assert(this.Owner.DisplayMode == CalendarMode.Year); 1060Debug.Assert(childButton != null); 1251Debug.Assert(childButton != null); 1298Debug.Assert(childButton != null); 1308Debug.Assert(this.Owner.DisplayDateInternal != null);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
495Debug.Assert(stateCode != DATAGRIDROWHEADER_stateNullCode);
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
168Debug.Assert(e.NewValue is bool);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (4)
246Debug.Assert(menu.HasPushedMenuMode); 915Debug.Assert(_pushedMenuMode == null); 917Debug.Assert(_pushedMenuMode != null); 932Debug.Assert(_pushedMenuMode != null);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
2504Debug.Assert(i >= 0 && i < GetNumberOfCombinations(placement));
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
812Debug.Assert(IsScrollClient); 847Debug.Assert(IsScrollClient);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (9)
603Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 1556Debug.Assert(IsSynchronizedWithCurrentItemPrivate); 1584Debug.Assert(IsSynchronizedWithCurrentItemPrivate); 2228Debug.Assert(String.IsNullOrEmpty(path) || path == "/InnerText"); 2327Debug.Assert(_owner.CheckAccess()); 2340Debug.Assert(_owner.CheckAccess()); 2550Debug.Assert(_owner.CheckAccess()); 2607Debug.Assert(_owner.CheckAccess()); 2646Debug.Assert(_owner.CheckAccess());
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
1781Debug.Assert(_panningInfo != null); 1915Debug.Assert(_panningInfo != null);
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (3)
415Debug.Assert(false); 433Debug.Assert(!_isAddingRange); 439Debug.Assert(_isAddingRange);
src\Framework\System\Windows\Controls\SoundPlayerAction.cs (2)
159Debug.Assert(m_player.IsLoadCompleted); 244Debug.Assert(m_player.IsLoadCompleted);
src\Framework\System\Windows\Controls\Stack.cs (2)
820Debug.Assert(measureElement.IsScrolling); 845Debug.Assert(logicalOffset == 0 || (logicalOffset > 0 && logicalOffset < children.Count));
src\Framework\System\Windows\Controls\TextBlock.cs (23)
1504Debug.Assert(lineCount == LineCount); 1620Debug.Assert(lineCount == LineCount); 1776Debug.Assert(lineCount == LineCount); 1883Debug.Assert(lineCount == LineCount); 1888Debug.Assert(lineIndex < lineCount); 1899Debug.Assert(lineCount == LineCount); 1901Debug.Assert(lineIndex < lineCount); 1927Debug.Assert(lineBounds.Count > 0); 2152Debug.Assert(lineCount == LineCount); 2294Debug.Assert(lineCount == LineCount); 2567Debug.Assert(lineIndex > 0); 2570Debug.Assert(dcp >= 0); 2585Debug.Assert(lineIndex < lineCount - 1); 2695Debug.Assert(lineIndex > 0); 2698Debug.Assert(dcp >= 0); 3405Debug.Assert(IsLayoutDataValid); 3406Debug.Assert(CheckFlags(Flags.RequiresAlignment)); 3424Debug.Assert(lineCount == LineCount); 3598Debug.Assert(lineCount == LineCount); 3635Debug.Assert(e != null); 3638Debug.Assert(_complexContent.TextContainer is TextContainer); 3909Debug.Assert(owner != null); 3910Debug.Assert(textContainer != null);
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (10)
982Debug.Assert(rowIndex >= 0); 1010Debug.Assert(rowIndex >= 0); 1049Debug.Assert(rowIndex >= 0); 1065Debug.Assert(oldIndex >= 0); 1066Debug.Assert(newIndex >= 0); 1155Debug.Assert(columnIndex >= 0); 1198Debug.Assert(columnIndex >= 0); 1237Debug.Assert(columnIndex >= 0); 1256Debug.Assert(oldIndex >= 0); 1257Debug.Assert(newIndex >= 0);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
3650Debug.Assert(args.Action == NotifyCollectionChangedAction.Reset && args.ItemCount == 1); 9200Debug.Assert(_cleanupDelay != null); 9221Debug.Assert(_cleanupOperation != null); 9310Debug.Assert(startIndex >= 0 && count > 0);
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
720Debug.Assert(clsid.ToString("D") == CLSID.WebBrowser); 772Debug.Assert(_axIWebBrowser2 != null);
src\Framework\System\Windows\Data\BindingListCollectionView.cs (1)
746Debug.Assert(true);
src\Framework\System\Windows\Data\ObjectDataProvider.cs (4)
166Debug.Assert((_objectInstance == null) ? (_objectType == null) : (_objectType == _objectInstance.GetType())); 353Debug.Assert(_mode != SourceMode.FromType); 454Debug.Assert(_objectType != null); 523Debug.Assert(_objectType != null);
src\Framework\System\Windows\Data\RelativeSource.cs (3)
176Debug.Assert(_mode == RelativeSourceMode.FindAncestor); 214Debug.Assert((!IsUninitialized) || (_mode == RelativeSourceMode.FindAncestor)); 278Debug.Assert(IsUninitialized);
src\Framework\System\Windows\Data\XmlDataProvider.cs (1)
772Debug.Assert(doc != null);
src\Framework\System\Windows\Documents\AdornerLayer.cs (2)
654Debug.Assert(adorner != null); 727Debug.Assert(element != null);
src\Framework\System\Windows\Documents\ChildDocumentBlock.cs (4)
53Debug.Assert(childContainer != null); 60Debug.Assert(docRef != null); 78Debug.Assert(newBlock != null); 133Debug.Assert(ChildContainer.Highlights.GetLayer(typeof(TextSelection)) == null);
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (1)
46Debug.Assert(scope != null);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (1)
61Debug.Assert(textView != null && textView.RenderScope != null);
src\Framework\System\Windows\Documents\DocumentSequence.cs (9)
274Debug.Assert(innerDP != null); 298Debug.Assert(innerDP != null); 595Debug.Assert(docRef != null); 602Debug.Assert(paginator != null); 610Debug.Assert(paginator != null); 1094Debug.Assert(documentSequence != null); 1095Debug.Assert(documentPaginator != null); 1096Debug.Assert(documentPage != null); 1207Debug.Assert(false);
src\Framework\System\Windows\Documents\DocumentSequenceHighlightLayer.cs (1)
82Debug.Assert(ranges.Count > 0);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (12)
49Debug.Assert(parent != null); 50Debug.Assert(parent is FixedDocumentSequence); 237Debug.Assert(_start != null); 250Debug.Assert(_end != null); 405Debug.Assert(docRef != null); 521Debug.Assert(_parent != null); 670Debug.Assert(sender != null); 671Debug.Assert(args != null); 672Debug.Assert(args.Ranges != null); 721Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1015Debug.Assert(parentTextPointer != null); 1038Debug.Assert(parentChangePosition != null);
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (7)
42Debug.Assert(childBlock != null); 43Debug.Assert(childPosition != null); 573Debug.Assert(_childTp != null); 914Debug.Assert(direction == LogicalDirection.Backward); 959Debug.Assert(tp != null); 971Debug.Assert(thisTp.ChildBlock.ChildContainer == tp.ChildBlock.ChildContainer); 1015Debug.Assert(xGapAwareCompareTo(tp1, tp2) <= 0);
src\Framework\System\Windows\Documents\FixedDocument.cs (9)
363Debug.Assert(page != null); 692Debug.Assert(IsValidPageIndex(index)); 738Debug.Assert(fp != null); 1075Debug.Assert(sender != null); 1076Debug.Assert(args != null); 1077Debug.Assert(args.Ranges != null); 1080Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1208Debug.Assert(pageNo >= 0 && pageNo<PageCount); 1401Debug.Assert(panel != null && page != null);
src\Framework\System\Windows\Documents\FixedElement.cs (2)
204Debug.Assert(_object == null && e._type == ElementType.Object); 267Debug.Assert(false);
src\Framework\System\Windows\Documents\FixedFindEngine.cs (13)
41Debug.Assert(start != null); 42Debug.Assert(end != null); 43Debug.Assert( ((start is DocumentSequenceTextPointer) && (end is DocumentSequenceTextPointer)) || 45Debug.Assert(findPattern != null); 54Debug.Assert(paginator != null); 94Debug.Assert(firstSearchPageStart != null); 95Debug.Assert(firstSearchPageEnd != null); 129Debug.Assert(fixedDoc != null); 316Debug.Assert(endAsFTP != null); 336Debug.Assert(startAsFTP != null); 348Debug.Assert(doc != null); 349Debug.Assert(translatedPageNo >= 0 && translatedPageNo < doc.PageCount); 374Debug.Assert(pageStream != null);
src\Framework\System\Windows\Documents\FixedFlowMap.cs (2)
144Debug.Assert(fp >= 0 && fp < _flowOrder.Count); 176Debug.Assert(flowOld.Type == FlowNodeType.Virtual || flowNew != null);
src\Framework\System\Windows\Documents\FixedHighlight.cs (3)
46Debug.Assert(element != null && beginOffset >= 0 && endOffset >= 0); 146Debug.Assert(_gBeginOffset >= 0); 147Debug.Assert(_gEndOffset <= chrct);
src\Framework\System\Windows\Documents\FixedNode.cs (5)
89Debug.Assert(childLevels >= 1); 105Debug.Assert(childPath != null); 144Debug.Assert(path != null && path.Length >= 2); // At least a page index and an element index 354Debug.Assert(level < _path.Length); 365Debug.Assert(_path.Length >= 2);
src\Framework\System\Windows\Documents\FixedPage.cs (3)
894Debug.Assert(e != null); 930Debug.Assert(currentLevelIndex >= 0 && currentLevelIndex <= ((Canvas)element).Children.Count); 1061Debug.Assert(currentChildrens != null);
src\Framework\System\Windows\Documents\FixedPageStructure.cs (6)
45Debug.Assert(pageIndex >= 0); 121Debug.Assert(_lineResults != null); 159Debug.Assert(_lineResults != null); 213Debug.Assert(flowStart != null && flowStart.Type != FlowNodeType.Virtual); 214Debug.Assert(flowEnd != null && flowEnd.Type != FlowNodeType.Virtual); 686Debug.Assert(_fixedSOMPageConstructor != null);
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (7)
43Debug.Assert(compared != null); 44Debug.Assert(This != null); 52Debug.Assert(compareHor != SpatialComparison.None); 53Debug.Assert(compareVer != SpatialComparison.None); 109Debug.Assert(false); 116Debug.Assert(false); 233Debug.Assert(container != null);
src\Framework\System\Windows\Documents\FixedSOMGroup.cs (5)
45Debug.Assert(compared != null); 56Debug.Assert(compareHor != SpatialComparison.None); 57Debug.Assert(compareVer != SpatialComparison.None); 108Debug.Assert(false); 115Debug.Assert(false);
src\Framework\System\Windows\Documents\FixedSOMImage.cs (1)
75Debug.Assert(path.Fill is ImageBrush);
src\Framework\System\Windows\Documents\FixedSOMLineCollection.cs (2)
65Debug.Assert(point1.X == point2.X); 71Debug.Assert(point1.Y == point2.Y);
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (10)
232Debug.Assert(fixedPage != null); 246Debug.Assert(_fixedPage != null); 251Debug.Assert(obj != null); 382Debug.Assert(obj is Image || obj is Path); 412Debug.Assert(glyphs != null); 587Debug.Assert (fixedBlock.SemanticBoxes.Count > 0); 642Debug.Assert(textRunRect.Height != 0 && fixedBlock.LineHeight != 0); 1019Debug.Assert(false); 1146Debug.Assert(currentPageElement != null); 1156Debug.Assert(nextPageElement != null);
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (3)
100Debug.Assert(o != null); 110Debug.Assert(compareHor != SpatialComparison.None && compareVer != SpatialComparison.None); 306Debug.Assert(false);
src\Framework\System\Windows\Documents\FixedSOMTable.cs (2)
175Debug.Assert(row != null); 191Debug.Assert(row != null);
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (1)
49Debug.Assert(otherRun != null);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (23)
202Debug.Assert(!_IsBoundaryPage(pageIndex)); 220Debug.Assert(page != null); 221Debug.Assert(page.IsInitialized); 390Debug.Assert(fn.Type == FlowNodeType.Start); 483Debug.Assert(pStart.CompareTo(pEnd) < 0); 522Debug.Assert(fixes.Length == 1); 599Debug.Assert(flowNode.Type == FlowNodeType.Run); 603Debug.Assert(flowNode.Type == FlowNodeType.Run); 604Debug.Assert(fixes != null); 817Debug.Assert(pathPrefix != null); 840Debug.Assert(prevRun != null); 841Debug.Assert(currentRun != null); 1022Debug.Assert(pathPrefix == null); 1023Debug.Assert(level1Index >= 0); 1033Debug.Assert(newPathPrefix != null); 1104Debug.Assert(false); 1309Debug.Assert(false); 1332Debug.Assert(e is Image); 1430Debug.Assert(elem is FixedPage || elem is Canvas); 1582Debug.Assert(false); 1696Debug.Assert(run.EndIndex - run.StartIndex == run.Text.Length); 1773Debug.Assert(uiElement != null); 1794Debug.Assert(newLineResult != null);
src\Framework\System\Windows\Documents\FixedTextContainer.cs (8)
54Debug.Assert(parent != null && parent is FixedDocument); 206Debug.Assert(_start != null); 219Debug.Assert(_end != null); 401Debug.Assert(res); 417Debug.Assert(highlights != null); 535Debug.Assert(_fixedTextBuilder != null); 544Debug.Assert(_containerElement != null); 627Debug.Assert(start.CompareTo(end) <= 0);
src\Framework\System\Windows\Documents\FixedTextView.cs (11)
130Debug.Assert(pos != null); 178Debug.Assert(ftp != null); 256Debug.Assert(startPosition != null && this.Contains(startPosition)); 257Debug.Assert(endPosition != null && this.Contains(endPosition)); 422Debug.Assert(pos != null); 481Debug.Assert(false); 879 Debug.Assert(itp != null); 977Debug.Assert(hitGlyphs != null); 1029Debug.Assert(charStart - charCount == 1); 1040Debug.Assert(charEnd - charCount == 1); 1147Debug.Assert(symbolType == TextPointerContext.Text || symbolType == TextPointerContext.EmbeddedElement);
src\Framework\System\Windows\Documents\FlowNode.cs (2)
58Debug.Assert( (type != FlowNodeType.Run) || ((int)cookie != 0)); 103Debug.Assert(_fp != fn._fp || (_fp == fn._fp) && (_scopeId == fn._scopeId));
src\Framework\System\Windows\Documents\FlowPosition.cs (12)
46Debug.Assert(!FlowNode.IsNull(node)); 138Debug.Assert(flow != null); 185Debug.Assert(dir == LogicalDirection.Forward || dir == LogicalDirection.Backward); 193Debug.Assert(GetPointerContext(dir) == TextPointerContext.Text); 210Debug.Assert(GetPointerContext(dir) == TextPointerContext.Text); 251Debug.Assert(type == FlowNodeType.Object || type == FlowNodeType.Noop || type == FlowNodeType.Start || type == FlowNodeType.End); 382Debug.Assert(this._OverlapAwareCompare(pEnd) < 0); 435Debug.Assert(dir == LogicalDirection.Backward); 593Debug.Assert(dir == LogicalDirection.Backward); 643Debug.Assert(dir == LogicalDirection.Backward); 733Debug.Assert(flow != null); 761Debug.Assert(this._flowNode.Equals(flow._flowNode));
src\Framework\System\Windows\Documents\Glyphs.cs (4)
81Debug.Assert(_glyphRunProperties != null); 255Debug.Assert(glyphRunProperties.glyphIndices != null); 279Debug.Assert(0 <= nibble && nibble <= 15); 358Debug.Assert(parsedGlyphs.Count == glyphCount);
src\Framework\System\Windows\Documents\HighlightVisual.cs (4)
179Debug.Assert(highlights != null); 248Debug.Assert(bg != null); 254Debug.Assert(highlightGeometry != null); 272Debug.Assert(highlightGeometry != null);
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
588Debug.Assert(targetUri != null);
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
376Debug.Assert((oldSource == null) || (oldSource == _source)); 411Debug.Assert(newSource == _source);
src\Framework\System\Windows\Documents\NullTextContainer.cs (2)
186Debug.Assert(_start != null); 199Debug.Assert(_end != null);
src\Framework\System\Windows\Documents\NullTextNavigator.cs (5)
52Debug.Assert(position is NullTextPointer || position is NullTextPointer); 68Debug.Assert(position is NullTextPointer || position is NullTextPointer); 201Debug.Assert(distance == 0); 318Debug.Assert(false); // must never call this 326Debug.Assert(false); // must never call this
src\Framework\System\Windows\Documents\PageContentAsyncResult.cs (2)
67Debug.Assert(source == null || source.IsAbsoluteUri); 106get { Debug.Assert(false); return null; }
src\Framework\System\Windows\Documents\RtfToXamlLexer.cs (1)
424Debug.Assert(false);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (39)
2754Debug.Assert(HasBorder); 5204Debug.Assert(dnRow != null); // Need row 5205Debug.Assert(dnRow != null && !dnRow.IsPending); // Row props attached when row is closed 5206Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5654Debug.Assert(Type == DocumentNodeType.dnTable); 5983Debug.Assert(value >= 0); 5984Debug.Assert(!IsPending); 6045Debug.Assert(value == null || !value.IsPending); 6314Debug.Assert(nUnfilledRowIndex != 0); 6406Debug.Assert(nStart + nChild < Count); 6491Debug.Assert(Count == 0 || (nStart >= 0 && nStart < Count)); 6502Debug.Assert(nStart + nChild < Count); 6520Debug.Assert(nAt + dn.ChildCount <= nEnd); 6521Debug.Assert(!dn.IsTerminated); 6530Debug.Assert(dnChild.ChildCount == 0 && dnChild.IsTerminated); 6552Debug.Assert(Count == 0 || (nStart >= 0 && nStart < Count)); 6563Debug.Assert(nStart + nChild < Count); 6581Debug.Assert(nAt + dn.ChildCount <= nEnd); 6582Debug.Assert(!dn.IsTerminated); 6594Debug.Assert(dnChild.ChildCount == 0 && dnChild.IsTerminated); 6619Debug.Assert(Count == 0 || (index >= 0 && index < Count)); 6620Debug.Assert(index + nChildCount < Count); 6649Debug.Assert(Count == 0 || (index >= 0 && index < Count)); 6691Debug.Assert(EntryAt(i).ClosedParent != null); 6694Debug.Assert(nAt + dn.ChildCount < Count); 6698Debug.Assert(dnPa.IsPending || (nAt > dnPa.Index && nAt <= dnPa.Index + dnPa.ChildCount)); 6716Debug.Assert(dnPa != null && dnPa.Type == DocumentNodeType.dnTable); 6719Debug.Assert(dnPa != null && dnPa.Type == DocumentNodeType.dnTableBody); 6722Debug.Assert(dnPa != null && dnPa.Type == DocumentNodeType.dnRow); 6725Debug.Assert(dnPa != null && dnPa.Type == DocumentNodeType.dnList); 6991Debug.Assert(false); 7168Debug.Assert(_fMain); 7215Debug.Assert(dnPa.LastChildIndex >= nAt + nExcise - 1); 8293Debug.Assert(dn.ChildCount == 0); 8324Debug.Assert(dn.ChildCount == 0); 9961Debug.Assert(nInsertAt >= 0 && nChildren > 0 && nInsertAt + nChildren - 1 < dna.Count); 11172Debug.Assert(dna.Count > 0 && dna.EntryAt(dna.Count - 1).Type == DocumentNodeType.dnParagraph); 11387Debug.Assert(!dnPara.IsTerminated); 11610Debug.Assert(!dnTop.IsTerminated);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
421Debug.Assert(range.first != null && range.second != null); 576Debug.Assert(end >= begin);
src\Framework\System\Windows\Documents\Table.cs (2)
441Debug.Assert(table != null); 493Debug.Assert(_currentChildType != ChildrenTypes.BeforeFirst);
src\Framework\System\Windows\Documents\TableCell.cs (1)
413Debug.Assert(value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\TableColumn.cs (1)
178Debug.Assert (value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\TableRow.cs (5)
212Debug.Assert(rowSpanVector != null); 239Debug.Assert(i <= firstAvailableIndex); 259Debug.Assert(_spannedCells != null); 269Debug.Assert(_cells.Count <= _formatCellCount); 325Debug.Assert(value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\TableRowGroup.cs (1)
276Debug.Assert(value >= -1 && _parentIndex != value);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (3)
233Debug.Assert(openLists.Count > 0); 407Debug.Assert(openLists.Count > 0); 438Debug.Assert(openLists.Count > 0);
src\Framework\System\Windows\EventTrigger.cs (1)
310Debug.Assert( eventTrigger._routedEventHandler == null && eventTrigger._source == null);
src\Framework\System\Windows\FrameworkContentElement.cs (7)
658Debug.Assert(entry.Value == DependencyProperty.UnsetValue); 1493Debug.Assert((uint)InternalFlags.InheritanceBehavior0 == 0x08); 1494Debug.Assert((uint)InternalFlags.InheritanceBehavior1 == 0x10); 1495Debug.Assert((uint)InternalFlags.InheritanceBehavior2 == 0x20); 1508Debug.Assert((uint)InternalFlags.InheritanceBehavior0 == 0x08); 1509Debug.Assert((uint)InternalFlags.InheritanceBehavior1 == 0x10); 1510Debug.Assert((uint)InternalFlags.InheritanceBehavior2 == 0x20);
src\Framework\System\Windows\FrameworkElement.cs (12)
1943Debug.Assert( IsTemplatedParentAnFE ); 2351Debug.Assert( foTemplatedParent.IsFE ); 2617Debug.Assert((uint)InternalFlags.InheritanceBehavior0 == 0x08); 2618Debug.Assert((uint)InternalFlags.InheritanceBehavior1 == 0x10); 2619Debug.Assert((uint)InternalFlags.InheritanceBehavior2 == 0x20); 2632Debug.Assert((uint)InternalFlags.InheritanceBehavior0 == 0x08); 2633Debug.Assert((uint)InternalFlags.InheritanceBehavior1 == 0x10); 2634Debug.Assert((uint)InternalFlags.InheritanceBehavior2 == 0x20); 2991Debug.Assert(fe != null || fce != null); 3033Debug.Assert( feTemplatedParent != null ); 4103Debug.Assert(sourceTransform != null); 4112Debug.Assert(_transform != null);
src\Framework\System\Windows\FrameworkElementFactory.cs (2)
747Debug.Assert( _frameworkTemplate != null ); 823Debug.Assert( _frameworkTemplate != null );
src\Framework\System\Windows\FrameworkTemplate.cs (2)
777Debug.Assert(fo.TemplatedParent == templatedParent); 1169Debug.Assert(!(rootElement is FrameworkElement) ||
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
3207Debug.Assert(DoubleUtil.GreaterThanOrClose(rangeEnd1, rangeStart1)); 3208Debug.Assert(DoubleUtil.GreaterThanOrClose(rangeEnd2, rangeStart2));
src\Framework\System\Windows\Interop\DocobjHost.cs (2)
85Debug.Assert(_mainThread.ApartmentState == ApartmentState.STA); 120Debug.Assert(lease.CurrentState == LeaseState.Initial);
src\Framework\System\Windows\Localization.cs (1)
133Debug.Assert(property == AttributesProperty);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
68Debug.Assert(StaticResources[StaticResources.Count - 1] is StaticResource);
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (4)
1549Debug.Assert(dataByteSize == 1); 1689Debug.Assert(ownerType != null); 1979Debug.Assert(sr != null); 2619Debug.Assert(property.Type.UnderlyingType == typeof(DependencyProperty));
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
192Debug.Assert(wpfMember.DependencyProperty != null);
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (2)
140Debug.Assert(bamlType != null); 170Debug.Assert(bamlMember != null);
src\Framework\System\Windows\Markup\Baml2006\WpfXamlMember.cs (1)
128Debug.Assert(!IsAttachable && !IsEvent);
src\Framework\System\Windows\Markup\BamlMapTable.cs (18)
92Debug.Assert(null != xamlTypeMapper); 168Debug.Assert(cmp > 0); 274Debug.Assert(type.IsEnum); 279Debug.Assert(ReflectionHelper.IsNullableType(type)); 561Debug.Assert(propType.IsEnum); 572Debug.Assert(ReflectionHelper.IsNullableType(propType)); 630Debug.Assert(-id <= _knownStrings.Length); 635Debug.Assert(id < StringIdMap.Count); 872Debug.Assert(memberId < 0); 1104Debug.Assert( 1116Debug.Assert(bamlAssemblyInfoRecord.AssemblyId >= 0); 1127Debug.Assert(AssemblyIdMap.Count == record.AssemblyId || 1279Debug.Assert(TypeIdMap.Count == record.TypeId || 1296Debug.Assert(ownerTypeName != null); 1297Debug.Assert(attributeName != null); 1514Debug.Assert(targetType != null && memberName != null); 1656Debug.Assert(AttributeIdMap.Count == record.AttributeId || 1672Debug.Assert(StringIdMap.Count == record.StringId ||
src\Framework\System\Windows\Markup\BamlRecordReader.cs (34)
116Debug.Assert(null != bamlStream); 117Debug.Assert(null != parserContext && null != parserContext.XamlTypeMapper); 142Debug.Assert(null != parserContext && null != parserContext.XamlTypeMapper); 356Debug.Assert(bamlRecord.RecordType == BamlRecordType.LinePosition); 558Debug.Assert(bamlConnectionIdRecord.ConnectionId > 0); 570Debug.Assert(0 == ReaderContextStack.Count); // if not zero we missed an EndElement 654Debug.Assert(false); 743Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType); 831Debug.Assert(ReaderFlags.DependencyObject == CurrentContext.ContextType || 1038Debug.Assert(_rootElement != null); 1088Debug.Assert(null == ParentContext); 1257Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexClr ); 1258Debug.Assert( CurrentContext.ContextType != ReaderFlags.PropertyComplexDP ); 1310Debug.Assert(CurrentContext.ContextType == ReaderFlags.ConstructorParams); 1340Debug.Assert(parent is DependencyObject); 1460Debug.Assert(param is String); 1503Debug.Assert(paramString != null); 2145Debug.Assert(serializerTypeId == (short)KnownElements.DependencyPropertyConverter); 2571Debug.Assert(o is DependencyObject); 2788Debug.Assert(element is DependencyObject); 3029Debug.Assert(!holder.ReadOnly); // this is being checked in XamlReaderHelper, just assert 3054Debug.Assert(arrayExt != null); 3173Debug.Assert (holder.Collection == null); 3679Debug.Assert(null != CurrentContext && 3740Debug.Assert(false); // 3749Debug.Assert(currentTarget is DependencyObject); 3764Debug.Assert(false); // We do not expect to be here after all checks done in propertyType identification above 3826Debug.Assert(genericType != null); 3870Debug.Assert(memberInfo is MethodInfo); 3886Debug.Assert(null != CurrentContext && 3936Debug.Assert(null != CurrentContext && 4952Debug.Assert(contentProperty != null); 5819Debug.Assert(_attributeInfo != null); 5918Debug.Assert(this.AttachedPropertyGetter != null);
src\Framework\System\Windows\Markup\BamlRecords.cs (8)
777Debug.Assert(null == _writeCache[(int)record.RecordType]); 917Debug.Assert( value <= 3 && value >= 0 ); 1110Debug.Assert(RecordSize < 0); 2478Debug.Assert(value <= ExtensionIdMask); 2817Debug.Assert(!ValueObjectSet); 4795Debug.Assert( SerializerTypeId != 0 ); 4972Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null); 5015Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null);
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (11)
125Debug.Assert(null != DocumentStartRecord); 144Debug.Assert(null != DocumentStartRecord); 416Debug.Assert(_deferElementDepth == 0); 417Debug.Assert(_deferComplexPropertyDepth == 0); 418Debug.Assert(_staticResourceElementDepth == 0); 419Debug.Assert(_dynamicResourceElementDepth == 0); 420Debug.Assert(_staticResourceRecordList == null); 438Debug.Assert(_staticResourceElementDepth == 0); 890Debug.Assert(_deferElementDepth == 2); 1079Debug.Assert(extensionTypeId != (short)KnownElements.TypeExtension); 1096Debug.Assert(typeValue != null);
src\Framework\System\Windows\Markup\BamlWriter.cs (4)
409Debug.Assert(typeValue != null); 1299Debug.Assert(stackNode != null); 1307Debug.Assert(stackNode != null); 1315Debug.Assert(stackNode != null);
src\Framework\System\Windows\Markup\Localizer\BamlLocalizableResource.cs (1)
70Debug.Assert(other != null);
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1205Debug.Assert(sb.Length > 0); 1206Debug.Assert(!Char.IsWhiteSpace(sb[0]));
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
57Debug.Assert(instance != null); 743Debug.Assert(obj != null); 767Debug.Assert(descriptor != null); 816Debug.Assert(DO != null);
src\Framework\System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
35Debug.Assert(factory != null);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (4)
274Debug.Assert( (object)key != null); 458Debug.Assert(item != null && _writer != null); 847Debug.Assert(property.PropertyDescriptor != null); 1051Debug.Assert(property.Value != null);
src\Framework\System\Windows\Markup\XamlReader.cs (1)
1057Debug.Assert(parent == null || root == parent);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (6)
950Debug.Assert(propertyOwnerType != null); 979Debug.Assert(attachedPropertyInfo.IsPublic || 2221Debug.Assert( propertyMember is DependencyProperty); 2403Debug.Assert(memberName != null); 2406Debug.Assert(memberInfo != null); 2421Debug.Assert(targetType != null);
src\Framework\System\Windows\Markup\XmlnsDictionary.cs (1)
722Debug.Assert(prefix != null);
src\Framework\System\Windows\Media\Animation\BeginStoryboard.cs (1)
188Debug.Assert( frameworkTemplate != null );
src\Framework\System\Windows\Media\Animation\ControllableStoryboardAction.cs (1)
72Debug.Assert( frameworkTemplate != null );
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (1)
220Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
336Debug.Assert(animationClock.CurrentState != ClockState.Stopped);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
491Debug.Assert(_keyFrames[index] != null);
src\Framework\System\Windows\Media\Animation\Storyboard.cs (1)
265Debug.Assert( nameScope == null );
src\Framework\System\Windows\Navigation\Journal.cs (7)
271Debug.Assert(ValidateIndexes()); 281Debug.Assert(ValidateIndexes()); 297Debug.Assert(journalEntry.ContentId != 0); 347Debug.Assert(ValidateIndexes()); 442Debug.Assert(ValidateIndexes()); 489Debug.Assert(je.GetType().IsSerializable); 593Debug.Assert(ValidateIndexes());
src\Framework\System\Windows\Navigation\JournalEntry.cs (2)
324Debug.Assert(_jeGroupState.JournalDataStreams == null); 341Debug.Assert(navMode == NavigationMode.Back || navMode == NavigationMode.Forward);
src\Framework\System\Windows\Navigation\NavigationService.cs (28)
290Debug.Assert(IsConsistent(navInfo)); 322Debug.Assert(navMode != NavigationMode.Refresh); // because of !IsSameUri() above 343Debug.Assert(_navStatus == NavigationStatus.Navigating); 520Debug.Assert(!(_bp is Visual)); 726Debug.Assert(_parentNavigationService == newParent); 1005Debug.Assert(_navigateQueueItem == null && _navStatus == NavigationStatus.Navigated); 1029Debug.Assert(finishingChildPageFunction == null || 1048Debug.Assert(finishingChildPageFunction._Return == null); 1082Debug.Assert(pfReturnInfo == null); 1088Debug.Assert(pf.ParentPageFunctionId != Guid.Empty); 1127Debug.Assert(IsConsistent(navInfo)); 1152Debug.Assert(!JournalScope.Journal.HasUncommittedNavigation); 1156Debug.Assert(_navigateQueueItem == null); 1345Debug.Assert(!JournalScope.Journal.HasUncommittedNavigation); 1362Debug.Assert(navMode == NavigationMode.Back || navMode == NavigationMode.Forward); 1365Debug.Assert(_contentId != 0); 1369Debug.Assert(_journalEntryGroupState == null || 2285Debug.Assert(navigateInfo.IsConsistent); 2441Debug.Assert(_navStatus == NavigationStatus.Navigated); 2784Debug.Assert(sender == _bp); 3313Debug.Assert(IsConsistent(navigateInfo)); 3350Debug.Assert(destinationJournalEntry == null 3433Debug.Assert(_contentId != 0 && 3976Debug.Assert(ps._Resume); // should've been set by JournalEntryPFxx.ResumePageFunction() 4081Debug.Assert(parentPF._Return == null); 4183Debug.Assert(parentEntryIndex < journal.CurrentIndex); 4688Debug.Assert(_postedOp == null); 4779Debug.Assert(child != null);
src\Framework\System\Windows\Navigation\NavigationWindow.cs (2)
247Debug.Assert(_navigationService == null && _JNS == null); 340Debug.Assert(_JNS != null);
src\Framework\System\Windows\Navigation\PageFunction.cs (2)
279Debug.Assert((returnEventArgs == null) || (ra != null)); 283Debug.Assert(eh != null);
src\Framework\System\Windows\PropertyPath.cs (1)
435Debug.Assert(aryIPI.Length > 0);
src\Framework\System\Windows\ResourceDictionary.cs (9)
196Debug.Assert(classicResourceUri != null); 210Debug.Assert(genericResourceUri != null); 1099Debug.Assert(deferrableContent.Stream != null); 1100Debug.Assert(deferrableContent.SchemaContext != null); 1101Debug.Assert(deferrableContent.ObjectWriterFactory != null); 1102Debug.Assert(deferrableContent.ServiceProvider != null); 1103Debug.Assert(deferrableContent.RootObject != null); 1281Debug.Assert(staticResources != null && staticResources.Count > 0); 1319Debug.Assert(obj is DeferredResourceReference);
src\Framework\System\Windows\ResourceReferenceExpression.cs (1)
552Debug.Assert(!_resource.IsFrozen);
src\Framework\System\Windows\Shapes\Shape.cs (5)
637Debug.Assert(mode != Stretch.None); 659Debug.Assert(mode == Stretch.UniformToFill); 691Debug.Assert(geometry != null); 731Debug.Assert(geometry != null); 742Debug.Assert(_renderedGeometry != null);
src\Framework\System\Windows\Shell\JumpList.cs (12)
561Debug.Assert(_initializing == false); 796Debug.Assert(removedList != null); 797Debug.Assert(shellObject != null); 875Debug.Assert(false); 885Debug.Assert(shellObjects != null); 930Debug.Assert(jumpItems.Count != 0); 931Debug.Assert(cdl != null); 986Debug.Assert(jumpItems.Count != linksOnlyList.Count); 992Debug.Assert(HRESULT.DESTS_E_NO_MATCHING_ASSOC_HANDLER != hr); 1016Debug.Assert(jumpTask != null); 1133Debug.Assert(jumpPath != null); 1207Debug.Assert(false);
src\Framework\System\Windows\Shell\ThumbButtonInfo.cs (1)
279Debug.Assert(command != null);
src\Framework\System\Windows\StyleHelper.cs (52)
60Debug.Assert(fe != null || fce != null); 99Debug.Assert(fe != null || fce != null); 165Debug.Assert((fe != null && fce == null)|| (fe == null && fce != null)); 360Debug.Assert(frameworkTemplate != null ); 380Debug.Assert( !frameworkTemplate.HasXamlNodeContent ); 384Debug.Assert(frameworkTemplate != null); 425Debug.Assert( frameworkTemplate != null ); 779Debug.Assert(childIndex >= 0); 1287Debug.Assert( childIndex != 0 ); // This should go to the other AddDelegateToFireTrigger overload 1345Debug.Assert((fe != null && fce == null) || (fe == null && fce != null)); 1377Debug.Assert((fe != null && fce == null) || (fe == null && fce != null)); 1378Debug.Assert((fe != null && fe == container) || (fce != null && fce == container)); 1379Debug.Assert(newStyle != null || newFrameworkTemplate != null ); 1441Debug.Assert((fe != null && fce == null) || (fe == null && fce != null)); 1442Debug.Assert((fe != null && fe == container) || (fce != null && fce == container)); 1443Debug.Assert(oldStyle != null || oldFrameworkTemplate != null ); 1677Debug.Assert(oldStyle != null || oldFrameworkTemplate != null ); 1695Debug.Assert(dataField == ThemeStyleDataField); 1777Debug.Assert(frameworkTemplate != null ); 2051Debug.Assert(frameworkTemplate != null ); 2189Debug.Assert(feContainer != null || fceContainer != null); 2224Debug.Assert(oldFrameworkTemplate != null ); 2273Debug.Assert( oldFrameworkTemplate != null ); 2487Debug.Assert( feTemplatedParent != null ); 2511Debug.Assert(ownerStyle != null || frameworkTemplate != null ); 2523Debug.Assert( frameworkTemplate != null ); 2892Debug.Assert(dataField == ThemeStyleDataField); 3158Debug.Assert(fe != null || fce != null); 3240Debug.Assert(fe != null || fce != null); 3312Debug.Assert(feContainer != null); 3321Debug.Assert(feContainer != null); 3361Debug.Assert(feContainer != null); 3384Debug.Assert(feContainer != null); 3412Debug.Assert(feContainer != null); 3456Debug.Assert(fe != null || fce != null); 3457Debug.Assert(container == fe || container == fce); 3497Debug.Assert(fe != null || fce != null); 3498Debug.Assert(container == fe || container == fce); 3907Debug.Assert(sourceType == ValueLookupType.Simple || 3937Debug.Assert(sourceType == ValueLookupType.Trigger || 3991Debug.Assert(sourceType == ValueLookupType.Simple || 4201Debug.Assert(child.FE != null || child.FCE != null); 4310Debug.Assert(ownerStyle != null || frameworkTemplate != null ); 4382Debug.Assert(ownerStyle != null || frameworkTemplate != null ); 4553Debug.Assert( ft != null ); 5316Debug.Assert(frameworkTemplate != null ); 5323Debug.Assert(frameworkTemplate != null); 5347Debug.Assert(frameworkTemplate != null); 5392Debug.Assert(frameworkTemplate != null ); 5397Debug.Assert(frameworkTemplate != null); 5453Debug.Assert( 5559Debug.Assert(routedEvent != null);
src\Framework\System\Windows\SystemResources.cs (7)
1135Debug.Assert(hwndDpiInfo == hwndDpiInfoKey); 1163Debug.Assert(_hwndNotify != null); 1164Debug.Assert(_hwndNotifyHook != null); 1165Debug.Assert(callerName.Equals(nameof(EnsureResourceChangeListener), StringComparison.InvariantCulture)); 1194Debug.Assert(hwndDpiInfo.DpiAwarenessContextValue == dpiContextValue); 1641Debug.Assert(hwndDpiInfo != null); 1901Debug.Assert(_inflatedList != null);
src\Framework\System\Windows\SystemThemeKey.cs (1)
31Debug.Assert(id > SystemResourceKeyID.InternalSystemThemeStylesStart &&
src\Framework\System\Windows\TemplateContent.cs (10)
39Debug.Assert(_xamlType == null); 247Debug.Assert(TemplateLoadData.Reader != null); 680Debug.Assert(sharedValue != null); 820Debug.Assert(xamlReader.NodeType == Xaml.XamlNodeType.StartObject); 821Debug.Assert(xamlReader.Type.UnderlyingType == typeof(StaticResourceExtension)); 843Debug.Assert(resource != null); 866Debug.Assert(xamlReader.NodeType == System.Xaml.XamlNodeType.StartMember); 961Debug.Assert(xamlReader.NodeType == System.Xaml.XamlNodeType.StartObject); 1220Debug.Assert(xamlReader.NodeType == System.Xaml.XamlNodeType.EndMember); 1299Debug.Assert(templateChildName != null);
src\Framework\System\Windows\TemplateNameScope.cs (2)
165Debug.Assert(_affectedChildren.Count == childIndex); 215Debug.Assert(fo.IsFE);
src\Framework\System\Windows\TriggerActionCollection.cs (1)
281Debug.Assert (Owner == null);
src\Framework\System\Windows\TriggerCollection.cs (1)
106Debug.Assert (Owner == null);
src\Framework\System\Windows\Window.cs (16)
753Debug.Assert(false); 2372Debug.Assert( _swh != null ); 2381Debug.Assert( _swh != null ); 3992Debug.Assert(hMonitor != IntPtr.Zero); 6777Debug.Assert(0 != (int)_overlaySize.Width); 6778Debug.Assert(0 != (int)_overlaySize.Height); 6826Debug.Assert(null != _taskbarList); 6852Debug.Assert(false); 6875Debug.Assert(null != _taskbarList); 6889Debug.Assert(0 <= taskbarInfo.ProgressValue && taskbarInfo.ProgressValue <= 1); 6901Debug.Assert(null != _taskbarList); 6930Debug.Assert(null != _taskbarList); 7011Debug.Assert(null != _taskbarList); 7043Debug.Assert(null != _taskbarList); 7524Debug.Assert( _swh != null ); 7798Debug.Assert( sourceWindow != null );
src\Shared\MS\Internal\Xaml\Context\XamlContextStack.cs (5)
24Debug.Assert(CurrentFrame != null); 25Debug.Assert(CurrentFrame.Depth == Depth); 83Debug.Assert(iteratorFrame != null); 107Debug.Assert(CurrentFrame.Depth == Depth); 120Debug.Assert(CurrentFrame.Depth == Depth);
PresentationFramework.Aero (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35Debug.Assert(_platformCulture != null);
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35Debug.Assert(_platformCulture != null);
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35Debug.Assert(_platformCulture != null);
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (1)
35Debug.Assert(_platformCulture != null);
System (103)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
2860Debug.Assert( names.Length > 0);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
2517Debug.Assert( names.Length > 0);
compmod\system\componentmodel\BindingList.cs (1)
600Debug.Assert(itemTypeProperties != null);
compmod\system\componentmodel\CultureInfoConverter.cs (3)
218Debug.Assert(invariantIndex >= 0 && invariantIndex < installedCultures.Length); 228Debug.Assert(array[0] == null); 272Debug.Assert(cultureConverter != null);
net\System\IriHelper.cs (1)
30Debug.Assert(Char.IsHighSurrogate(highSurr));
net\System\Net\_Connection.cs (2)
710Debug.Assert(m_WriteList.Count == 0); 1565Debug.Assert(request.WriteBuffer == null);
net\System\Net\_DigestClient.cs (2)
461Debug.Assert(challenge != null); 462Debug.Assert(index >= 0 && index < challenge.Length);
net\System\Net\_NetworkingPerfCounters.cs (4)
58Debug.Assert(instanceCounter != null); 59Debug.Assert(globalCounter != null); 139Debug.Assert(cp != null); 171Debug.Assert(avgCounterIndex + 1 < counters.Length);
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
68Debug.Assert(registry != null);
net\System\Net\_ServiceNameStore.cs (2)
45Debug.Assert(!String.IsNullOrEmpty(uriPrefix)); 81Debug.Assert(!String.IsNullOrEmpty(uriPrefix));
net\System\Net\_SSPIWrapper.cs (1)
89Debug.Assert(s_DefaultCredentialsHandleCacheSize > 0);
net\System\Net\_WebProxyDataBuilder.cs (5)
89Debug.Assert(!string.IsNullOrEmpty(proxyString)); 108Debug.Assert(!string.IsNullOrEmpty(proxyListString)); 143Debug.Assert(proxyListHashTable.Count > 0); 159Debug.Assert(rawString != null); 209Debug.Assert(rawString != null);
net\System\Net\Cache\_CacheStreams.cs (1)
40Debug.Assert(wrappedStream != null);
net\System\Net\Cache\IERequestCache.cs (2)
750Debug.Assert(m_CallNesting == 0); 963Debug.Assert(m_CallNesting == 0);
net\System\Net\HttpListener.cs (7)
316Debug.Assert(selectorDelegate != null); 2424Debug.Assert(blob != IntPtr.Zero); 2427Debug.Assert(tokenPointer != IntPtr.Zero); 2433Debug.Assert(blob != IntPtr.Zero); 2448Debug.Assert(size >= 0); 2475Debug.Assert(tokenSize < Int32.MaxValue); 2487Debug.Assert(tokenSize < Int32.MaxValue);
net\System\Net\HttpListenerRequest.cs (4)
1060Debug.Assert(m_TokenBindings == null); 1123Debug.Assert(handle != null); 1124Debug.Assert(!handle.IsInvalid); 1185Debug.Assert((long)(&pThisResultData->identifierData->hashAlgorithm) == (long)(pThisResultData->identifierData) + 1 );
net\System\Net\HttpListenerTimeoutManager.cs (2)
36Debug.Assert(configTimeouts != null); 37Debug.Assert(configTimeouts.Length == (timeouts.Length + 1));
net\System\Net\HttpWebRequest.cs (2)
3050Debug.Assert(_WriteBuffer != null); 5449Debug.Assert(callback != null);
net\System\Net\mail\Base64Stream.cs (1)
569Debug.Assert(thisPtr.written == thisPtr.count);
net\System\Net\mail\MailAddressParser.cs (1)
73Debug.Assert(!String.IsNullOrEmpty(data));
net\System\Net\mail\MailBnfHelper.cs (2)
374Debug.Assert(index >= 0); 375Debug.Assert(index < data.Length);
net\System\Net\mail\MailWriter.cs (1)
58System.Diagnostics.Debug.Assert(this.contentStream == sender);
net\System\Net\mail\Message.cs (1)
460System.Diagnostics.Debug.Assert(this.headersEncoding != null);
net\System\Net\mail\QEncodedStream.cs (1)
384System.Diagnostics.Debug.Assert(thisPtr.written == thisPtr.count);
net\System\Net\mail\QuotedPrintableStream.cs (1)
416System.Diagnostics.Debug.Assert(thisPtr.written == thisPtr.count);
net\System\Net\mail\SmtpDateTime.cs (1)
331Debug.Assert(dateValue.Kind == DateTimeKind.Unspecified);
net\System\Net\mail\SmtpReplyReaderFactory.cs (2)
317System.Diagnostics.Debug.Assert(readState == ReadState.Status0); 404System.Diagnostics.Debug.Assert(parent.readState == ReadState.Status0);
net\System\Net\NetRegistryConfiguration.cs (2)
169Debug.Assert(currentProcess != null); 181Debug.Assert(appExePath != null);
net\System\Net\ServicePoint.cs (4)
679Debug.Assert(connectionGroupPrefixSafeInternal.Length > connectionGroupPrefixSafe.Length); 680Debug.Assert(connectionGroupPrefixUnsafeInternal.Length > connectionGroupPrefixUnsafe.Length); 681Debug.Assert(connectionGroupPrefixSafeInternal.StartsWith(connectionGroupPrefixSafe, StringComparison.Ordinal)); 682Debug.Assert(connectionGroupPrefixUnsafeInternal.StartsWith(connectionGroupPrefixUnsafe, StringComparison.Ordinal));
net\System\Net\ServicePointManager.cs (6)
273Debug.Assert((int)SecurityProtocolType.SystemDefault == (int)SslProtocols.None); 274Debug.Assert((int)SecurityProtocolType.Ssl3 == (int)SslProtocols.Ssl3); 275Debug.Assert((int)SecurityProtocolType.Tls == (int)SslProtocols.Tls); 276Debug.Assert((int)SecurityProtocolType.Tls11 == (int)SslProtocols.Tls11); 277Debug.Assert((int)SecurityProtocolType.Tls12 == (int)SslProtocols.Tls12); 278Debug.Assert((int)SecurityProtocolType.Tls13 == (int)SslProtocols.Tls13);
net\System\Net\UnsafeNativeMethods.cs (2)
1723Debug.Assert(chainCount == 0 || !chainList.IsInvalid); 1732Debug.Assert(!chainRef.IsInvalid);
net\System\Net\webclient.cs (1)
1733Debug.Assert(n < 0x10);
net\System\Net\WebUtility.cs (4)
605Debug.Assert(UNICODE_PLANE01_START <= smpChar && smpChar <= UNICODE_PLANE16_END); 617Debug.Assert(charsRemaining >= 1); 618Debug.Assert(Char.IsSurrogate(*pch)); 652Debug.Assert(n < 0x10);
net\System\UriHelper.cs (1)
583Debug.Assert(dest.Length > destOffset);
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (2)
69Debug.Assert(serviceNames != null); 70Debug.Assert(!String.IsNullOrEmpty(searchServiceName));
security\system\security\cryptography\oid.cs (2)
75Debug.Assert(value != null); 76Debug.Assert(friendlyName != null);
security\system\security\cryptography\x509\x509certificate2.cs (1)
158Debug.Assert(false);
security\system\security\cryptography\x509\x509chain.cs (4)
285Debug.Assert(pChain.cChain > 0); 310Debug.Assert(index < chainStatus.Length); 322Debug.Assert(index < chainStatus.Length); 331Debug.Assert(index == chainStatus.Length);
security\system\security\cryptography\x509\x509utils.cs (1)
410Debug.Assert(false);
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
1391Debug.Assert(info != null);
sys\system\collections\concurrent\BlockingCollection.cs (8)
228Debug.Assert(boundedCapacity > 0 || boundedCapacity == NON_BOUNDED); 242Debug.Assert(boundedCapacity > 0); 530Debug.Assert((m_currentAdders & ~COMPLETE_ADDING_ON_MASK) > 0); 759Debug.Assert(m_boundedCapacity != NON_BOUNDED); 1047Debug.Assert((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count)); 1100Debug.Assert(collections != null); 1147Debug.Assert(originalWaitMillisecondsTimeout != Timeout.Infinite); 1449Debug.Assert((index == WaitHandle.WaitTimeout) || (index >= 0 && index < handles.Count));
sys\system\collections\concurrent\ConcurrentBag.cs (4)
331Debug.Assert(list != null); 983Debug.Assert(m_tail == null); 1007Debug.Assert(m_head != null); 1048Debug.Assert(tail != null);
sys\System\IO\compression\CopyEncoder.cs (2)
18Debug.Assert(output != null); 19Debug.Assert(output.FreeBytes >= PaddingSize);
sys\System\IO\compression\DeflaterManaged.cs (1)
216Debug.Assert(NeedsInput());
sys\System\IO\compression\DeflateStream.cs (2)
519Debug.Assert(array != null); 520Debug.Assert(count != 0);
sys\System\IO\compression\FastEncoderWindow.cs (1)
309Debug.Assert(RecalculateHash((int)search) == RecalculateHash(bufPos));
sys\system\threading\Barrier.cs (1)
750Debug.Assert(phase < CurrentPhaseNumber);
System.Core (293)
Microsoft\Scripting\Actions\CallSiteBinder.cs (1)
231Debug.Assert(result != null);
Microsoft\Scripting\Actions\DynamicObject.cs (2)
492Debug.Assert(binder is ConvertBinder && fallbackInvoke == null); 496Debug.Assert(convert.Method == null);
Microsoft\Scripting\Actions\ExpandoObject.cs (8)
134Debug.Assert(data[exactMatch] == Uninitialized); 142Debug.Assert(index != ExpandoObject.NoMatch); 222Debug.Assert(index >= 0 && index <= _data.Length); 247Debug.Assert(oldClass != newClass); 299Debug.Assert(collection != null); 415Debug.Assert(collection != null); 826Debug.Assert(originalClass != klass); 875Debug.Assert(index != ExpandoObject.NoMatch);
Microsoft\Scripting\Ast\BinaryExpression.cs (11)
158Debug.Assert(IsOpAssignment(op)); 342Debug.Assert(method == null && TypeUtils.AreEquivalent(type, left.Type)); 346Debug.Assert(method == null && TypeUtils.AreEquivalent(type, right.Type) && nodeType == ExpressionType.Coalesce); 416Debug.Assert(IsLiftedLogical); 422Debug.Assert(opTrueFalse != null); 615System.Diagnostics.Debug.Assert(method != null); 726System.Diagnostics.Debug.Assert(method != null); 1339Debug.Assert(typeof(System.MulticastDelegate).IsAssignableFrom(delegateType) && delegateType != typeof(System.MulticastDelegate)); 1345Debug.Assert(pms.Length == conversion.Parameters.Count); 1476Debug.Assert(typeof(System.MulticastDelegate).IsAssignableFrom(delegateType) && delegateType != typeof(System.MulticastDelegate)); 1479Debug.Assert(pms.Length == conversion.Parameters.Count);
Microsoft\Scripting\Ast\BlockExpression.cs (18)
60Debug.Assert(ExpressionCount > 0); 209Debug.Assert(args.Length == 2); 210Debug.Assert(variables == null || variables.Count == 0); 246Debug.Assert(args.Length == 3); 247Debug.Assert(variables == null || variables.Count == 0); 285Debug.Assert(args.Length == 4); 286Debug.Assert(variables == null || variables.Count == 0); 326Debug.Assert(args.Length == 5); 327Debug.Assert(variables == null || variables.Count == 0); 337Debug.Assert(expressions.Count != 0); 343Debug.Assert(index >= 0 && index < _expressions.Count); 359Debug.Assert(variables == null || variables.Count == 0); 430Debug.Assert(args.Length == 1); 431Debug.Assert(variables == null || variables.Count == VariableCount); 460Debug.Assert(args.Length == ExpressionCount); 461Debug.Assert(variables == null || variables.Count == VariableCount); 480Debug.Assert(args.Length == ExpressionCount); 481Debug.Assert(variables == null || variables.Count == VariableCount);
Microsoft\Scripting\Ast\DebugViewWriter.cs (10)
118Debug.Assert(String.IsNullOrEmpty(le.Name)); 123Debug.Assert(String.IsNullOrEmpty(p.Name)); 128Debug.Assert(String.IsNullOrEmpty(target.Name)); 136Debug.Assert(node != null); 137Debug.Assert(writer != null); 148Debug.Assert(_stack.Count == 0); 571Debug.Assert(parent != null); 610Debug.Assert(child.NodeType == parent.NodeType); 623Debug.Assert(binary != null); 1141Debug.Assert(_stack.Count == 0);
Microsoft\Scripting\Ast\DynamicExpression.cs (7)
47Debug.Assert(delegateType.GetMethod("Invoke").GetReturnType() == typeof(object) || GetType() != typeof(DynamicExpression)); 454Debug.Assert(args.Length == ((IArgumentProvider)this).ArgumentCount); 465Debug.Assert(delegateType.GetMethod("Invoke").GetReturnType() == returnType); 500Debug.Assert(args.Length == 1); 548Debug.Assert(args.Length == 2); 598Debug.Assert(args.Length == 3); 650Debug.Assert(args.Length == 4);
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (6)
119Debug.Assert(node != null); 126Debug.Assert(node != null); 133Debug.Assert(node != null); 143Debug.Assert(node != null); 153Debug.Assert(node != null); 765Debug.Assert(node.Indexer != null);
Microsoft\Scripting\Ast\IndexExpression.cs (4)
51Debug.Assert(instance != null && instance.Type.IsArray); 52Debug.Assert(instance.Type.GetArrayRank() == arguments.Count); 135Debug.Assert(instance != null); 136Debug.Assert(arguments == null || arguments.Length == _arguments.Count);
Microsoft\Scripting\Ast\InvocationExpression.cs (2)
114Debug.Assert(lambda != null); 115Debug.Assert(arguments == null || arguments.Length == _arguments.Count);
Microsoft\Scripting\Ast\LambdaExpression.cs (2)
62Debug.Assert(delegateType != null); 278Debug.Assert(create != null);
Microsoft\Scripting\Ast\MethodCallExpression.cs (21)
165Debug.Assert(instance == null); 166Debug.Assert(args == null || args.Count == _arguments.Count); 201Debug.Assert(instance != null); 202Debug.Assert(args == null || args.Count == _arguments.Count); 234Debug.Assert(instance == null); 235Debug.Assert(args == null || args.Count == 1); 274Debug.Assert(instance == null); 275Debug.Assert(args == null || args.Count == 2); 315Debug.Assert(instance == null); 316Debug.Assert(args == null || args.Count == 3); 358Debug.Assert(instance == null); 359Debug.Assert(args == null || args.Count == 4); 403Debug.Assert(instance == null); 404Debug.Assert(args == null || args.Count == 5); 421Debug.Assert(instance != null); 451Debug.Assert(instance != null); 452Debug.Assert(args == null || args.Count == 2); 468Debug.Assert(instance != null); 500Debug.Assert(instance != null); 501Debug.Assert(args == null || args.Count == 3); 835Debug.Assert(nodeKind == ExpressionType.Invoke || nodeKind == ExpressionType.Call || nodeKind == ExpressionType.Dynamic || nodeKind == ExpressionType.New);
Microsoft\Scripting\Ast\TypeUtils.cs (15)
200Debug.Assert(source != null && dest != null); 227Debug.Assert(source != null && dest != null); 264Debug.Assert(t != null); 270Debug.Assert(t != null); 276Debug.Assert(t != null); 282Debug.Assert(t != null); 288Debug.Assert(source != null && dest != null); 312Debug.Assert(genericParameters != null); 313Debug.Assert(sourceArguments != null); 314Debug.Assert(destArguments != null); 315Debug.Assert(genericParameters.Length == sourceArguments.Length); 316Debug.Assert(genericParameters.Length == destArguments.Length); 323Debug.Assert(sourceArgument != null && destArgument != null); 333Debug.Assert(genericParameter != null); 421Debug.Assert(left.IsValueType);
Microsoft\Scripting\Ast\UnaryExpression.cs (5)
265Debug.Assert(i == temps.Length); 269Debug.Assert(i == temps.Length); 272Debug.Assert(i == block.Length); 394System.Diagnostics.Debug.Assert(method != null); 431System.Diagnostics.Debug.Assert(method != null);
Microsoft\Scripting\Compiler\BoundConstants.cs (2)
110Debug.Assert(!ILGen.CanEmitConstant(value, type)); 171Debug.Assert(lc.CanEmitBoundConstants); // this should've been checked already
Microsoft\Scripting\Compiler\CompilerScope.cs (3)
189Debug.Assert(locals != null); 281Debug.Assert(_parent == null && parent != this); 381Debug.Assert(ShouldCache(v) && !_locals.ContainsKey(v));
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (2)
209Debug.Assert(types != null && types.Length > 0); 223Debug.Assert(result != null);
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (1)
40Debug.Assert(hoistedLocals != null && locals != null);
Microsoft\Scripting\Compiler\ILGen.cs (20)
40Debug.Assert(methodBase is MethodInfo || methodBase is ConstructorInfo); 52Debug.Assert(index >= 0); 78Debug.Assert(index >= 0); 88Debug.Assert(index >= 0); 477Debug.Assert(value != null); 773Debug.Assert(TypeUtils.IsNullableType(typeFrom)); 774Debug.Assert(TypeUtils.IsNullableType(typeTo)); 808Debug.Assert(!TypeUtils.IsNullableType(typeFrom)); 809Debug.Assert(TypeUtils.IsNullableType(typeTo)); 822Debug.Assert(TypeUtils.IsNullableType(typeFrom)); 823Debug.Assert(!TypeUtils.IsNullableType(typeTo)); 832Debug.Assert(TypeUtils.IsNullableType(typeFrom)); 833Debug.Assert(!TypeUtils.IsNullableType(typeTo)); 834Debug.Assert(typeTo.IsValueType); 846Debug.Assert(TypeUtils.IsNullableType(typeFrom)); 856Debug.Assert(isTypeFromNullable || isTypeToNullable); 868Debug.Assert(nullableType.IsValueType); 875Debug.Assert(nullableType.IsValueType); 882Debug.Assert(nullableType.IsValueType); 992Debug.Assert(!type.IsEnum);
Microsoft\Scripting\Compiler\LabelInfo.cs (1)
352Debug.Assert(CanJumpInto);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (5)
38Debug.Assert(node != null); 79Debug.Assert(node.NodeType == ExpressionType.ArrayIndex && node.Method == null); 198Debug.Assert(node.NodeType == ExpressionType.Unbox); 199Debug.Assert(type.IsValueType && !TypeUtils.IsNullableType(type)); 207Debug.Assert(TypeUtils.AreReferenceAssignable(type, node.Type));
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (11)
41Debug.Assert(b.NodeType != ExpressionType.AndAlso && b.NodeType != ExpressionType.OrElse && b.NodeType != ExpressionType.Coalesce); 57Debug.Assert(!b.IsLiftedToNull || b.Type == typeof(bool?)); 82Debug.Assert(TypeUtils.IsNullableType(e.Type)); 83Debug.Assert(op == ExpressionType.Equal || op == ExpressionType.NotEqual); 162Debug.Assert(!TypeUtils.IsNullableType(leftType)); 163Debug.Assert(!TypeUtils.IsNullableType(rightType)); 304Debug.Assert(!resultType.IsNullableType()); 323Debug.Assert(op == ExpressionType.Equal || op == ExpressionType.NotEqual); 337Debug.Assert(TypeUtils.IsNullableType(leftType) || TypeUtils.IsNullableType(rightType)); 383Debug.Assert(TypeUtils.IsNullableType(leftType)); 496Debug.Assert(leftIsNullable || rightIsNullable);
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (3)
58Debug.Assert(_labelBlock != null && _labelBlock.Kind == kind); 64Debug.Assert(node.Target != null); 80Debug.Assert(label != null);
Microsoft\Scripting\Compiler\LambdaCompiler.cs (4)
247Debug.Assert(type != null); 251Debug.Assert(type == local.LocalType); 265Debug.Assert(type != null && variable != null); 298Debug.Assert(_method is DynamicMethod);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (11)
54Debug.Assert(newValue == CompilationFlags.EmitAsTail || newValue == CompilationFlags.EmitAsMiddle || newValue == CompilationFlags.EmitAsNoTail); 63Debug.Assert(newValue == CompilationFlags.EmitExpressionStart || newValue == CompilationFlags.EmitNoExpressionStart); 72Debug.Assert(newValue == CompilationFlags.EmitAsDefaultType || newValue == CompilationFlags.EmitAsVoidType); 95Debug.Assert(node != null); 138Debug.Assert(TypeUtils.AreReferenceAssignable(type, node.Type)); 434Debug.Assert(args.ArgumentCount + skipParameters == pis.Length); 563Debug.Assert(!type.IsValueType); 572Debug.Assert(result == AnalyzeTypeIsResult.Unknown); 923System.Diagnostics.Debug.Assert(variables != null); 924System.Diagnostics.Debug.Assert(arguments != null); 938Debug.Assert(TypeUtils.AreEquivalent(TypeUtils.GetNonNullableType(resultType), TypeUtils.GetNonNullableType(mc.Type)));
Microsoft\Scripting\Compiler\LambdaCompiler.Generated.cs (1)
38Debug.Assert(node != null);
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
196Debug.Assert(_labelBlock.Parent == null && _labelBlock.Kind == LabelScopeKind.Lambda);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (15)
38Debug.Assert(node.Test.Type == typeof(bool)); 96Debug.Assert(b.Method == null); 111Debug.Assert(b.Method == null); 124Debug.Assert(b.Conversion.Parameters.Count == 1); 126Debug.Assert(p.Type.IsAssignableFrom(b.Left.Type) || 177Debug.Assert(b.Conversion.Parameters.Count == 1); 212Debug.Assert(!b.Left.Type.IsValueType); 297Debug.Assert(b.Method.IsStatic); 424Debug.Assert(b.Method.IsStatic); 520Debug.Assert(node.NodeType == ExpressionType.Equal || node.NodeType == ExpressionType.NotEqual); 521Debug.Assert(!node.IsLiftedToNull); 536Debug.Assert(!node.Right.Type.IsValueType); 545Debug.Assert(!node.Left.Type.IsValueType); 581Debug.Assert(node.NodeType == ExpressionType.AndAlso || node.NodeType == ExpressionType.OrElse); 582Debug.Assert(!node.IsLiftedToNull);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (5)
113Debug.Assert(_scope.Node == node); 195Debug.Assert(TypeUtils.AreReferenceAssignable(testValue.Type, test.Type)); 260Debug.Assert(key > buckets[buckets.Count - 1].Key); 545Debug.Assert(key == bucket[bucket.Count - 1].Key + 1); 546Debug.Assert(slot == jmpLabels.Length);
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (3)
146Debug.Assert(TypeUtils.AreEquivalent(operandType, resultType)); 272Debug.Assert(node.Type.IsValueType && !TypeUtils.IsNullableType(node.Type)); 303Debug.Assert(pis != null && pis.Length == 1);
Microsoft\Scripting\Compiler\RuntimeVariableList.cs (2)
86Debug.Assert(data != null); 87Debug.Assert(indexes != null);
Microsoft\Scripting\Compiler\StackSpiller.cs (3)
134Debug.Assert(result.Node != null); 926Debug.Assert(original != null); 927Debug.Assert(max < original.Count);
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (9)
74Debug.Assert(_freeTemps == null || !_freeTemps.Contains(temp)); 75Debug.Assert(_usedTemps == null || !_usedTemps.Contains(temp)); 85Debug.Assert(_freeTemps == null || !_freeTemps.Contains(temp)); 100Debug.Assert(_usedTemps == null || mark <= _usedTemps.Count); 102Debug.Assert(mark == 0 || _usedTemps != null); 114Debug.Assert(_usedTemps == null || _usedTemps.Count == 0); 146Debug.Assert(!_done); 207Debug.Assert(_comma.Capacity == _comma.Count + 1); 235Debug.Assert(first == 0);
Microsoft\Scripting\Compiler\VariableBinder.cs (1)
206Debug.Assert(referenceScope != null);
Microsoft\Scripting\Utils\CacheDict.cs (1)
62Debug.Assert(size > 0);
Microsoft\Scripting\Utils\ContractUtils.cs (6)
47Debug.Assert(!string.IsNullOrEmpty(paramName)); 55Debug.Assert(!string.IsNullOrEmpty(paramName)); 75Debug.Assert(!string.IsNullOrEmpty(offsetName)); 76Debug.Assert(!string.IsNullOrEmpty(countName)); 77Debug.Assert(array != null); 87Debug.Assert(arrayName != null);
Microsoft\Scripting\Utils\TypeExtensions.cs (1)
30Debug.Assert(methodInfo != null && delegateType != null);
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (1)
113Debug.Assert(m_csp == IntPtr.Zero);
System\Collections\Generic\HashSet.cs (2)
191Debug.Assert(index == count); 1106Debug.Assert(m_freeList == -1);
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (1)
217Debug.Assert(this. numEventsInBuffer == 0);
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (1)
99Debug.Assert(session != null);
System\IO\LogStream.cs (1)
74Debug.Assert(!String.IsNullOrEmpty(path));
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
180Debug.Assert(handle != null && !handle.IsInvalid);
System\IO\Pipes\Pipe.cs (2)
760Debug.Assert(afsar._overlapped == null); 889Debug.Assert(asyncResult._overlapped == pOverlapped);
System\Linq\Parallel\Merging\ArrayMergeHelper.cs (1)
89Debug.Assert(m_outputArray != null);
System\Security\Cryptography\BCryptNative.cs (16)
683Debug.Assert(input != null); 684Debug.Assert(inputOffset >= 0); 685Debug.Assert(inputCount >= 0); 686Debug.Assert(inputCount <= input.Length - inputOffset); 687Debug.Assert(output != null); 688Debug.Assert(outputOffset >= 0); 689Debug.Assert(outputCount >= 0); 690Debug.Assert(outputCount <= output.Length - outputOffset); 733Debug.Assert(input != null); 734Debug.Assert(inputOffset >= 0); 735Debug.Assert(inputCount >= 0); 736Debug.Assert(inputCount <= input.Length - inputOffset); 737Debug.Assert(output != null); 738Debug.Assert(outputOffset >= 0); 739Debug.Assert(outputCount >= 0); 740Debug.Assert(outputCount <= output.Length - outputOffset);
System\Security\Cryptography\ECDsaCng.cs (6)
448Debug.Assert(data != null); 449Debug.Assert(offset >= 0 && offset <= data.Length); 450Debug.Assert(count >= 0 && count <= data.Length - offset); 451Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.Name)); 461Debug.Assert(data != null); 462Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.Name));
System\Security\Cryptography\Rfc4050KeyFormatter.cs (1)
146Debug.Assert(isDHKey || isDsaKey);
System\Security\Cryptography\RsaCng.cs (6)
163Debug.Assert(data != null); 164Debug.Assert(offset >= 0 && offset <= data.Length); 165Debug.Assert(count >= 0 && count <= data.Length); 166Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.Name)); 178Debug.Assert(data != null); 179Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.Name));
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (1)
65Debug.Assert(error != SignatureVerificationResult.Valid);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (8)
184Debug.Assert(newCert != null); 185Debug.Assert(!ReferenceEquals(certificate, newCert)); 186Debug.Assert(!certificate.HasPrivateKey); 187Debug.Assert(newCert.HasPrivateKey); 260Debug.Assert(!cryptHandle.IsInvalid); 287Debug.Assert(ecBlob.Length >= sizeof(Interop.BCrypt.BCRYPT_ECCKEY_BLOB)); 312Debug.Assert(!cryptHandle.IsInvalid); 333Debug.Assert(!cryptHandle.IsInvalid);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (4)
155Debug.Assert(newCert != null); 156Debug.Assert(!ReferenceEquals(certificate, newCert)); 157Debug.Assert(!certificate.HasPrivateKey); 158Debug.Assert(newCert.HasPrivateKey);
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
206Debug.Assert(context != IntPtr.Zero);
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (17)
598Debug.Assert(_fIsReentrant); 599Debug.Assert(_fUpgradeThreadHoldingRead); 656Debug.Assert((_owners & WRITER_HELD) > 0); 752Debug.Assert((_owners & WRITER_HELD) > 0); 864Debug.Assert(lrwc.readercount == 1); 1011Debug.Assert(enterLockType == EnterLockType.UpgradeToWrite); 1055Debug.Assert(enterLockType == EnterLockType.UpgradeToWrite); 1218Debug.Assert(_numReadWaiters != 0 || _numUpgradeWaiters != 0); 1568Debug.Assert( 1588Debug.Assert(DeprioritizeEnterAnyReadIncrement == (1 << 16)); 1597Debug.Assert(DeprioritizeEnterAnyWriteIncrement == 1); 1604Debug.Assert((reason & EnterSpinLockReason.Wait) != 0 || reason == (reason & EnterSpinLockReason.OperationMask)); 1605Debug.Assert( 1614Debug.Assert( 1625Debug.Assert((GetEnterDeprioritizationStateChange(reason) & DeprioritizeEnterAnyWriteIncrement) == 0); 1629Debug.Assert((GetEnterDeprioritizationStateChange(reason) & DeprioritizeEnterAnyWriteIncrement) != 0); 1690Debug.Assert(
System.Data (578)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
649Debug.Assert(null != parent); 685Debug.Assert(null != parent);
fx\src\data\Microsoft\SqlServer\Server\SmiGettersStream.cs (4)
25Debug.Assert( null != sink ); 26Debug.Assert( null != getters ); 27Debug.Assert( 0 <= ordinal ); 28Debug.Assert( null != metaData );
fx\src\data\Microsoft\SqlServer\Server\SmiSettersStream.cs (4)
25Debug.Assert( null != sink ); 26Debug.Assert( null != setters ); 27Debug.Assert( 0 <= ordinal ); 28Debug.Assert( null != metaData );
fx\src\data\Microsoft\SqlServer\Server\SmiXetterAccessMap.cs (2)
106Debug.Assert( SmiXetterTypeCode.XetBoolean <= xetterType && SmiXetterTypeCode.XetDateTimeOffset >= xetterType ); 113Debug.Assert(SmiXetterTypeCode.XetBoolean <= xetterType && SmiXetterTypeCode.XetDateTimeOffset >= xetterType &&
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (128)
1578Debug.Assert( typeCode == ExtendedClrTypeCode.Invalid || 1729Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int64 ) ); 1733Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 1737Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Boolean ) ); 1741Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) ); 1745Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) ); 1749Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlDecimal ) ); 1753Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Double ) ); 1757Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 1761Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int32 ) ); 1765Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) ); 1771Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) ); 1775Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Single ) ); 1779Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Guid ) ); 1783Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) ); 1787Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int16 ) ); 1791Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) ); 1795Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) ); 1799Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 1803Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Byte ) ); 1807Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 1811Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.String ) ); 1815Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlXml ) ); 1825Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 1855Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int64)); 1859Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray)); 1863Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Boolean)); 1867Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.CharArray)); 1871Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime)); 1875Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlDecimal)); 1887Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Double)); 1891Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray)); 1895Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int32)); 1899Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney)); 1905Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.CharArray)); 1909Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Single)); 1913Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Guid)); 1917Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime)); 1921Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int16)); 1925Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney)); 1929Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.CharArray)); 1933Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray)); 1937Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Byte)); 1941Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray)); 1945Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.String)); 1949Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlXml)); 1984Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.ByteArray)); 1993Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime)); 1997Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.TimeSpan)); 2009Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTimeOffset)); 2049Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int64 ) ); 2053Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 2057Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Boolean ) ); 2061Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) ); 2065Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) ); 2069Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlDecimal ) ); 2073Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Double ) ); 2077Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 2081Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int32 ) ); 2085Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) ); 2091Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) ); 2095Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Single ) ); 2099Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Guid ) ); 2103Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.DateTime ) ); 2107Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Int16 ) ); 2111Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlMoney ) ); 2115Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlChars ) ); 2119Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 2123Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.Byte ) ); 2127Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 2131Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.String ) ); 2135Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlXml ) ); 2144Debug.Assert( CanAccessSetterDirectly( metaData[i], ExtendedClrTypeCode.SqlBytes ) ); 2172Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int64)); 2176Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes)); 2180Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Boolean)); 2184Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlChars)); 2188Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime)); 2192Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlDecimal)); 2196Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Double)); 2200Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes)); 2204Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int32)); 2208Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney)); 2214Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlChars)); 2218Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Single)); 2222Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Guid)); 2226Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime)); 2230Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Int16)); 2234Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlMoney)); 2238Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlChars)); 2242Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes)); 2246Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.Byte)); 2250Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes)); 2254Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.String)); 2258Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlXml)); 2267Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.SqlBytes)); 2272Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTime)); 2277Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.TimeSpan)); 2293Debug.Assert(CanAccessSetterDirectly(metaData[i], ExtendedClrTypeCode.DateTimeOffset)); 2383Debug.Assert(result != null); 2747Debug.Assert( ExtendedClrTypeCode.First <= setterTypeCode && ExtendedClrTypeCode.Last >= setterTypeCode ); 2748Debug.Assert( SqlDbType.BigInt <= metaData.SqlDbType && SqlDbType.DateTimeOffset >= metaData.SqlDbType ); 2767Debug.Assert( ExtendedClrTypeCode.First <= setterTypeCode && ExtendedClrTypeCode.Last >= setterTypeCode ); 2768Debug.Assert( SqlDbType.BigInt <= metaData.SqlDbType && SqlDbType.DateTimeOffset >= metaData.SqlDbType ); 2996Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3004Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3012Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3025Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3039Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3048Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3061Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3075Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3083Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3091Debug.Assert(!IsDBNull_Unchecked(sink, getters, ordinal)); 3099Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3107Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3115Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3123Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3131Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3139Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3147Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3154Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3162Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3170Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3189Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) ); 3201Debug.Assert(!IsDBNull_Unchecked(sink, getters, ordinal)); 3233Debug.Assert(readSize >= 0); 3262Debug.Assert(readSize >= 0);
fx\src\data\System\Data\Common\DBConnectionString.cs (1)
471Debug.Assert(0 >= StringComparer.Ordinal.Compare(restrictionValues[i-1], restrictionValues[i]));
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (3)
366Debug.Assert(IsValidPoolBlockingPeriodValue(value)); 496Debug.Assert(IsValidApplicationIntentValue(value)); 694Debug.Assert(IsValidAuthenticationTypeValue(value));
fx\src\data\System\Data\ConstraintCollection.cs (1)
598Debug.Assert (name != null);
fx\src\data\System\Data\DataColumn.cs (2)
435Debug.Assert(this.encodedColumnName != null && this.encodedColumnName.Length != 0); 493Debug.Assert(value != null);
fx\src\data\System\Data\DataColumnCollection.cs (1)
751Debug.Assert (name != null);
fx\src\data\System\Data\DataRelationCollection.cs (1)
371Debug.Assert (name != null);
fx\src\data\System\Data\DataSet.cs (1)
270Debug.Assert(info != null);
fx\src\data\System\Data\DataTable.cs (16)
482Debug.Assert(DataSet != null); 507Debug.Assert(fk != null); 569Debug.Assert(con.Equals("F")); 783Debug.Assert(bitStates != null); 784Debug.Assert(bitStates.Length > bitIndex); 804Debug.Assert(Rows.Count > rowIndex); 805Debug.Assert(rowErrors != null); 806Debug.Assert(colErrors != null); 830Debug.Assert(Rows.Count > rowIndex); 831Debug.Assert(rowErrors != null); 832Debug.Assert(colErrors != null); 843Debug.Assert(columnsInError.Length == columnErrors.Length); 1994Debug.Assert(ndx != null); 3065Debug.Assert(key.HasValue); 6030Debug.Assert(table != null); 6083Debug.Assert(ds != null);
fx\src\data\System\Data\DataTableCollection.cs (1)
668Debug.Assert (name != null);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
876Debug.Assert(cbMissing == -1 && lengthOrIndicator <= cbMaxData);
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (1)
481Debug.Assert(allRestrictions.Length >= restrictionsCount);
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (1)
382Debug.Assert(sourceColumns.Length == targetColumns.Length);
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (7)
123Debug.Assert ( connections != null ); 159Debug.Assert ( connections != null ); 195Debug.Assert ( connections != null ); 262Debug.Assert ( connections != null ); 896Debug.Assert ( _state == State.Running || _state == State.ShuttingDown ); 990Debug.Assert ( destroyObject == false ); 1006Debug.Assert ( rootTxn == true || returnToGeneralPool == true || destroyObject == true );
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContext.cs (3)
56Debug.Assert(accessToken != null && accessToken.Length > 0); 57Debug.Assert(expirationTime > DateTime.MinValue && expirationTime < DateTime.MaxValue); 105Debug.Assert(oldValue == STATUS_LOCKED);
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContextKey.cs (2)
53Debug.Assert(!string.IsNullOrWhiteSpace(stsAuthority)); 54Debug.Assert(!string.IsNullOrWhiteSpace(servicePrincipalName));
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (3)
135Debug.Assert(requestedCollectionRow != null); 315Debug.Assert(dataSourceInfoTable.TableName == DbMetaDataCollectionNames.DataSourceInformation); 380Debug.Assert (_metaDataCollectionsDataSet != null);
fx\src\data\System\Data\ProviderBase\TimeoutTimer.cs (5)
53Debug.Assert(timeout != null); // Need a valid timeouttimer if no error 64Debug.Assert(0 <= milliseconds); 75Debug.Assert(timeout != null); // Need a valid timeouttimer if no error 88Debug.Assert(0 <= seconds || InfiniteTimeout == seconds); // no need to support negative seconds at present 181Debug.Assert(0<=milliseconds); // This property guarantees no negative return values
fx\src\data\System\Data\Selection.cs (1)
115Debug.Assert(indexFields != null);
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (4)
122Debug.Assert(instanceName == null); 128Debug.Assert(String.Compare(_Cluster, 0, instance2, 0, _clusterLength, StringComparison.OrdinalIgnoreCase) == 0); 132Debug.Assert(version == null); 133Debug.Assert(String.Compare(_Version, 0, instance2, 0, _versionLength, StringComparison.OrdinalIgnoreCase) == 0);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Algorithm.cs (10)
151Debug.Assert(plainText != null); 266Debug.Assert(cipherText != null); 319Debug.Assert((iv != null) && (cipherText != null)); 320Debug.Assert (offset > -1 && count > -1); 321Debug.Assert ((count+offset) <= cipherText.Length); 378Debug.Assert(cipherText != null); 392Debug.Assert(retVal == _version.Length); 394Debug.Assert(retVal == iv.Length); 396Debug.Assert(retVal == length); 401Debug.Assert (computedHash.Length >= authenticationTag.Length);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (2)
34Debug.Assert(encryptionKey != null); 35Debug.Assert(string.Equals(encryptionAlgorithm, SqlAeadAes256CbcHmac256Algorithm.AlgorithmName, StringComparison.OrdinalIgnoreCase) == true);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (2)
37Debug.Assert(encryptionKey != null); 38Debug.Assert(string.Equals(encryptionAlgorithm, SqlAes256CbcAlgorithm.AlgorithmName, StringComparison.OrdinalIgnoreCase) == true);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
672Debug.Assert(null != _object);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (3)
681Debug.Assert(rowvalue is SqlString); 1324Debug.Assert (_parser.ShouldEncryptValuesForBulkCopy()); 1970Debug.Assert (_parser.ShouldEncryptValuesForBulkCopy());
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (3)
69Debug.Assert(cb == byteArr.Length); 81Debug.Assert(stateObj._longlen == 0 && stateObj._longlenleft == 0); 93Debug.Assert(cachedBytes.Count == 0);
fx\src\data\System\Data\SqlClient\SqlClientWrapperSmiStream.cs (2)
22Debug.Assert( null != sink ); 23Debug.Assert( null != stream );
fx\src\data\System\Data\SqlClient\SqlClientWrapperSmiStreamChars.cs (2)
25Debug.Assert( null != sink ); 26Debug.Assert( null != stream );
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (10)
394Debug.Assert(!string.IsNullOrEmpty(keyPath)); 510Debug.Assert(plainText != null); 511Debug.Assert(certificate != null); 526Debug.Assert((cipherText != null) && (cipherText.Length != 0)); 527Debug.Assert(certificate != null); 542Debug.Assert((dataToSign != null) && (dataToSign.Length != 0)); 543Debug.Assert(certificate != null); 568Debug.Assert((dataToVerify != null) && (dataToVerify.Length != 0)); 569Debug.Assert((signature != null) && (signature.Length != 0)); 570Debug.Assert(certificate != null);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (10)
318Debug.Assert(columnEncryptionKey != null); 319Debug.Assert(rsaCngProvider != null); 332Debug.Assert((encryptedColumnEncryptionKey != null) && (encryptedColumnEncryptionKey.Length != 0)); 333Debug.Assert(rsaCngProvider != null); 346Debug.Assert((dataToSign != null) && (dataToSign.Length != 0)); 347Debug.Assert(rsaCngProvider != null); 361Debug.Assert((dataToVerify != null) && (dataToVerify.Length != 0)); 362Debug.Assert((signature != null) && (signature.Length != 0)); 363Debug.Assert(rsaCngProvider != null); 375Debug.Assert(rsaCngProvider != null);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (10)
326Debug.Assert(columnEncryptionKey != null); 327Debug.Assert(rscp != null); 341Debug.Assert((encryptedColumnEncryptionKey != null) && (encryptedColumnEncryptionKey.Length != 0)); 342Debug.Assert(rscp != null); 355Debug.Assert((dataToSign != null) && (dataToSign.Length != 0)); 356Debug.Assert(rscp != null); 370Debug.Assert((dataToVerify != null) && (dataToVerify.Length != 0)); 371Debug.Assert((signature != null) && (signature.Length != 0)); 372Debug.Assert(rscp != null); 384Debug.Assert(rscp != null);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (16)
354Debug.Assert(SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.YukonVersion); 366Debug.Assert(SmiContextFactory.Instance.NegotiatedSmiVersion >= SmiContextFactory.KatmaiVersion); 1443Debug.Assert(!_internalEndExecuteInitiated || _stateObj == null); 1533Debug.Assert(_stateObj == null); 1651Debug.Assert(!inRetry); 1868Debug.Assert(!_internalEndExecuteInitiated || _stateObj == null); 2074Debug.Assert(!_internalEndExecuteInitiated || _stateObj == null); 2200Debug.Assert(!usedCache || !inRetry); 2221Debug.Assert(!_internalEndExecuteInitiated); 3710Debug.Assert(originalRpcRequest != null); 4499Debug.Assert(_rpcArrayOf1[0] == rpc); 4534Debug.Assert(_rpcArrayOf1[0] == rpc); 4690Debug.Assert(_stateObj == null); 5275Debug.Assert(null != paramMetaData); 6130Debug.Assert(_RPCList != null); 6131Debug.Assert(_parameterCollectionList != null);
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (1)
199Debug.Assert(quotePrefix == "\"" || quotePrefix == "[");
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2255Debug.Assert(o != null);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (2)
3482Debug.Assert(_sharedState._nextColumnDataToRead == _sharedState._nextColumnHeaderToRead); 3996Debug.Assert(IsCommandBehavior(CommandBehavior.SequentialAccess));
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (5)
1069Debug.Assert( _currentPosition != PositionState.AfterResults ); 1101Debug.Assert( _currentPosition != PositionState.AfterResults ); 1108Debug.Assert( _currentPosition != PositionState.AfterResults ); 1115Debug.Assert( _currentPosition != PositionState.AfterResults ); 1127Debug.Assert( _currentPosition != PositionState.AfterResults );
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (4)
910Debug.Assert(_asyncCommandCount > 0); 2223Debug.Assert(_dbConnectionPool.AuthenticationContexts != null); 2715Debug.Assert(null != userOptions); 2733Debug.Assert(null != userOptions && null!=routing);
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (6)
33Debug.Assert(key != null && plainText != null); 34Debug.Assert(hash.Length != 0 && hash.Length <= MaxSHA256HashBytes); 50Debug.Assert(input != null); 99Debug.Assert(input != null); 178Debug.Assert(startIndex >= 0); 229Debug.Assert(cipherAlgorithm != null);
fx\src\data\System\Data\SqlClient\SqlStream.cs (3)
161Debug.Assert(reader != null && !reader.IsClosed); 218Debug.Assert(cb == count); 545Debug.Assert(charsToSkip == 0);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
874Debug.Assert(2 == validLocations.Length); 902Debug.Assert(2 == validLocations.Length); 993Debug.Assert(2 == validLocations.Length);
fx\src\data\System\Data\SqlClient\TdsParser.cs (25)
826Debug.Assert(GUID_SIZE == connectionIdBytes.Length); 1192Debug.Assert(connection != null && _connHandler.Connection == connection); 1521Debug.Assert(2 == stateObj._bShortBytes.Length); 1570Debug.Assert (4 == stateObj._bIntBytes.Length); 4237Debug.Assert(0 <= col.scale && col.scale <= 7); 5617Debug.Assert(length <= TdsEnums.MAXSIZE); 7628Debug.Assert(authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated || authentication == SqlAuthenticationMethod.ActiveDirectoryPassword); 9180Debug.Assert (8 == cekTable[i].CekMdVersion.Length); 9223Debug.Assert(SqlDbType.Xml != mdPriv.type); 9224Debug.Assert(SqlDbType.Udt != mdPriv.type); 9274Debug.Assert (md.cipherMD.CipherAlgorithmName.Length < 256); 9979Debug.Assert(value is SqlBytes); 10032Debug.Assert(value is SqlString); 10060Debug.Assert(value is SqlString); 10173Debug.Assert(!_parser._asyncWrite); 10185Debug.Assert(_parser._asyncWrite); 10301Debug.Assert(_size >= _written); 10323Debug.Assert(_size >= _written); 10406Debug.Assert(encoding == null || !needBom); 10465Debug.Assert(readSize >= 0); 10943Debug.Assert(value is SqlBytes); 10986Debug.Assert(value is SqlString); 11004Debug.Assert(value is SqlString); 11164Debug.Assert(stateObj._longlenleft == 0); 11256Debug.Assert(stateObj._longlenleft == 0);
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (4)
222Debug.Assert(_databaseId == databaseId); 223Debug.Assert(_cekId == cekId); 224Debug.Assert(_cekVersion == cekVersion); 225Debug.Assert (_cekMdVersion != null && cekMdVersion != null && _cekMdVersion.Length == _cekMdVersion.Length);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
1756Debug.Assert(_longlenleft == 0); 2730Debug.Assert(async || _asyncWriteCount == 0); 2924Debug.Assert(_asyncWriteCount >= 0); 3598Debug.Assert(!_snapshotInBuffs.Any(b => object.ReferenceEquals(b, buffer)));
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (17)
117Debug.Assert( 135Debug.Assert( 151Debug.Assert( 191Debug.Assert( 228Debug.Assert( 280Debug.Assert( 312Debug.Assert( 377Debug.Assert( 391Debug.Assert( 404Debug.Assert( 437Debug.Assert( 450Debug.Assert( 463Debug.Assert( 479Debug.Assert( 528Debug.Assert( 547Debug.Assert( 567Debug.Assert(
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (7)
465 Debug.Assert(m_state >= SqlBytesCharsState.Null && m_state <= SqlBytesCharsState.Stream); 470 Debug.Assert((m_lCurLen >= 0 && m_lCurLen <= x_lMaxLen) || FStream()); 471 Debug.Assert(FStream() || (m_rgbBuf != null && m_lCurLen <= m_rgbBuf.Length)); 472 Debug.Assert(!FStream() || (m_lCurLen == x_lNull)); 474 Debug.Assert(m_rgbWorkBuf == null || m_rgbWorkBuf.Length == 1); 481 Debug.Assert(FStream()); 591 Debug.Assert(false);
fx\src\data\System\Data\SQLTypes\SQLChars.cs (7)
463 Debug.Assert(m_state >= SqlBytesCharsState.Null && m_state <= SqlBytesCharsState.Stream); 468 Debug.Assert((m_lCurLen >= 0 && m_lCurLen <= x_lMaxLen) || FStream()); 469 Debug.Assert(FStream() || (m_rgchBuf != null && m_lCurLen <= m_rgchBuf.Length)); 470 Debug.Assert(!FStream() || (m_lCurLen == x_lNull)); 472 Debug.Assert(m_rgchWorkBuf == null || m_rgchWorkBuf.Length == 1); 484 Debug.Assert(FStream()); 576 Debug.Assert(false);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (21)
156Debug.Assert ( value != null ); 157Debug.Assert ( !m_disposed ); 175Debug.Assert ( value != null ); 176Debug.Assert ( !m_disposed ); 436Debug.Assert ( path != null ); 437Debug.Assert ( path == path.Trim() ); 438Debug.Assert ( path.Length > 0 ); 439Debug.Assert(path.Length <= MaxWin32PathLength); 440Debug.Assert(path.IndexOfAny(InvalidPathChars) < 0); 441Debug.Assert ( path.StartsWith ( @"\\", StringComparison.OrdinalIgnoreCase ) ); 442Debug.Assert ( !path.StartsWith ( @"\\.\", StringComparison.Ordinal ) ); 460Debug.Assert ( path != null ); 530Debug.Assert(access == System.IO.FileAccess.ReadWrite); 588Debug.Assert ( path != null ); 589Debug.Assert (transactionContext != null); 641Debug.Assert(access == System.IO.FileAccess.ReadWrite); 787System.Diagnostics.Debug.Assert ( m_fs == null ); 881System.Diagnostics.Debug.Assert( path.Length <= ( UInt16.MaxValue / sizeof(char) ) ); 1082System.Diagnostics.Debug.Assert(Marshal.OffsetOf(typeof(UnsafeNativeMethods.FILE_FULL_EA_INFORMATION), "EaName").ToInt64() <= (Int64) Int32.MaxValue); 1089System.Diagnostics.Debug.Assert ( cbOffset < m_cbBuffer ); 1095System.Diagnostics.Debug.Assert ( cbOffset < m_cbBuffer || transactionContext.Length == 0 && cbOffset == m_cbBuffer );
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (1)
108Debug.Assert(snum.Scale == x_iMoneyScale);
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (1)
73Debug.Assert(path.Length < Int16.MaxValue);
fx\src\data\System\NewXml\DataPointer.cs (22)
53Debug.Assert( rowElem != null ); 54Debug.Assert( rowElem.Row != null ); 69Debug.Assert( rowElem.Row != null ); 83Debug.Assert( node == this.doc || node.OwnerDocument == this.doc ); 94Debug.Assert( node == this.doc || node.OwnerDocument == this.doc ); 105Debug.Assert( node == this.doc || node.OwnerDocument == this.doc ); 339Debug.Assert( name != null ); 382Debug.Assert( name != null ); 566Debug.Assert( this.column == null ); 570Debug.Assert( this.column == null ); 574Debug.Assert( this.column == null ); 587Debug.Assert( this.column == null ); 591Debug.Assert( this.column == null ); 595Debug.Assert( this.column == null ); 606Debug.Assert( this.column == null ); 625Debug.Assert( this.column == null ); 639Debug.Assert( this.column == null ); 653Debug.Assert( this.column == null ); 670Debug.Assert( rowElem != null ); 673Debug.Assert( row != null ); 680Debug.Assert( ! Convert.IsDBNull( row[ this.column, rowVersion ] ) ); 683Debug.Assert( (this.column.ColumnMapping == MappingType.SimpleContent) ? (this.fOnValue == true) : true );
fx\src\data\System\NewXml\DataSetMappper.cs (6)
34Debug.Assert( this.dataSet == null ); 86Debug.Assert( elem != null ); 95Debug.Assert( rowElem.Row != null ); 131Debug.Assert( rowElem != null ); 133Debug.Assert( (node is XmlBoundElement) ? ((XmlBoundElement)node).Row == null : true ); 217Debug.Assert( rowElem.Row != null );
fx\src\data\System\NewXml\RegionIterator.cs (14)
28Debug.Assert( rowElement != null && rowElement.Row != null ); 47Debug.Assert( oldState != ElementState.None ); 56Debug.Assert( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true ); 73Debug.Assert( oldState != ElementState.None ); 80Debug.Assert( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true ); 94Debug.Assert( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true ); 101Debug.Assert( currentNode != null ); 103Debug.Assert( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true ); 112Debug.Assert( this.CurrentNode != null ); 113Debug.Assert( this.CurrentNode.NodeType == XmlNodeType.Element ); 124Debug.Assert( oldState != ElementState.None ); 130Debug.Assert( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true ); 135Debug.Assert( ! XmlDataDocument.IsTextLikeNode( n ) ); 138Debug.Assert( (oldState == ElementState.Defoliated) ? (rowElement.ElementState == ElementState.Defoliated) : true );
fx\src\data\System\NewXml\TreeIterator.cs (2)
18Debug.Assert( nodeTop != null ); 72Debug.Assert( currentNode != null );
fx\src\data\System\NewXml\XmlBoundElement.cs (4)
194Debug.Assert( element is XmlBoundElement ); 226Debug.Assert( dp.NodeType == XmlNodeType.Element ); 255Debug.Assert( dp.NodeType == XmlNodeType.Element ); 314Debug.Assert( ((IXmlDataVirtualNode)dp).IsOnColumn( null ) );
fx\src\data\System\NewXml\XmlDataDocument.cs (119)
59Debug.Assert( pointers.ContainsValue(pointer) == false ); 66Debug.Assert( temp != null ); 98Debug.Assert( dataSet == null ); 99Debug.Assert( ds != null ); 180Debug.Assert( ignoreXmlEvents == true ); 193Debug.Assert( DocumentElement == null || ! fLoadFromDataSet ); 222Debug.Assert( fDataRowCreatedSpecial == false ); 223Debug.Assert( fBoundToDataSet == false && fBoundToDocument == false ); 228Debug.Assert( fDataRowCreatedSpecial == true ); 243Debug.Assert( dataSet != null ); 334Debug.Assert( fDataRowCreatedSpecial == false ); 346Debug.Assert( be != null ); 373Debug.Assert( rowElem.Row != null ); 406Debug.Assert( mapper.GetColumnSchemaForNode( rowElem, node ) != null ); 453Debug.Assert( this.ignoreXmlEvents == true ); 455Debug.Assert( this.GetRowFromElement( this.DocumentElement ) != null ); 463Debug.Assert( docElem.LastChild == docElem.FirstChild ); 479Debug.Assert( ! mapper.IsMapped() ); 480Debug.Assert( ! fBoundToDocument ); 481Debug.Assert( ! fBoundToDataSet ); 493Debug.Assert( fDataRowCreatedSpecial == false ); 494Debug.Assert( mapper.IsMapped() ); 495Debug.Assert( fBoundToDataSet && fBoundToDocument ); 531Debug.Assert( newState == ElementState.WeakFoliation || newState == ElementState.StrongFoliation ); 558Debug.Assert( node.Row != null ); 596Debug.Assert( node.Row != null ); 597Debug.Assert( node.Row.RowState != DataRowState.Deleted ); 638Debug.Assert( col.ColumnMapping == MappingType.SimpleContent ); 796Debug.Assert( be != null ); 807Debug.Assert( pointer != null ); 864Debug.Assert( DataSet.EnforceConstraints == false ); 875Debug.Assert( newNode != null ); 891Debug.Assert( ignoreDataSetEvents == true ); 892Debug.Assert( ignoreXmlEvents == true ); 893Debug.Assert( IsFoliationEnabled == false ); 932Debug.Assert( clone.FirstChild == null ); 1000Debug.Assert( false ); 1074Debug.Assert( reader is XmlTextReader ); 1097Debug.Assert( DocumentElement != null ); 1129Debug.Assert( r.Element == null ); 1144Debug.Assert( false ); 1148Debug.Assert( false ); 1164Debug.Assert( node != null ); 1172Debug.Assert( r == null ); 1180Debug.Assert( be.Row != null ); 1196Debug.Assert( row.RowState == DataRowState.Detached ); 1205Debug.Assert( row.RowState == DataRowState.Detached ); 1214Debug.Assert( row.Element == null ); 1216Debug.Assert( row.RowState == DataRowState.Detached ); 1222Debug.Assert( row.Element == null ); 1234Debug.Assert( tb != null ) ; 1243Debug.Assert( this.ignoreXmlEvents == true ); 1246Debug.Assert( rowElement != null ); 1252Debug.Assert( rowElement != null ); 1358Debug.Assert( e != null ); 1409Debug.Assert( relation.ChildTable == row.Table ); 1417Debug.Assert( args.Row.RowState != DataRowState.Deleted ); 1434Debug.Assert( be != null ); 1448Debug.Assert( row != null ); 1449Debug.Assert( rowElement != null ); 1472Debug.Assert( this.ignoreXmlEvents == true ); 1508Debug.Assert( pointer != null ); 1537Debug.Assert( child.Element == childElement && childElement.Row == child ); 1539Debug.Assert( ignoreXmlEvents == true ); 1566Debug.Assert( colInParent != null ); 1601Debug.Assert( DataSet.EnforceConstraints == false ); 1634Debug.Assert( DataSet.EnforceConstraints == false ); 1647Debug.Assert( oldParent == null ); 1685Debug.Assert( DataSet.EnforceConstraints == false ); 1693Debug.Assert( args.NewParent == null ); 1748Debug.Assert( ! IsRowLive( row ) ); 1756Debug.Assert( ! IsRowLive( be.Row ) ); 1785Debug.Assert( rowElement != null ); 1876Debug.Assert( false ); // This should have been handled above, irrespective of ignoreDataSetEvents value (true or false) 1989Debug.Assert( ! (args.Action == CollectionChangeAction.Add || args.Action == CollectionChangeAction.Remove) || rel.Nested == false ); 2031Debug.Assert( child.ParentNode != prevSibling.ParentNode ); 2033Debug.Assert( prevSibling.ParentNode != null ); 2034Debug.Assert( IsFoliationEnabled == false ); 2035Debug.Assert( IgnoreXmlEvents == true ); 2037Debug.Assert( prevSibling != this.DocumentElement ); 2042Debug.Assert( child.ParentNode == null ); 2048Debug.Assert( parent != null ); 2049Debug.Assert( parent.NodeType != XmlNodeType.Attribute ); // We need to get get the grand-parent region 2050Debug.Assert( parent != DocumentElement ); // We cannot promote children of the DocumentElement 2059Debug.Assert( iter.CurrentNode is XmlBoundElement && ((XmlBoundElement)(iter.CurrentNode)).Row != null ); 2068Debug.Assert( parent != null ); 2140Debug.Assert( col.ColumnMapping != MappingType.Hidden ); 2141Debug.Assert( row.Table.DataSet.EnforceConstraints == false ); 2149Debug.Assert( xmlText != null ); 2150Debug.Assert( row.Table.DataSet.EnforceConstraints == false ); 2155Debug.Assert( oVal != null && ! ( oVal is DBNull ) ); 2178Debug.Assert( row != null ); 2212Debug.Assert( rowElement != null ); 2213Debug.Assert( rowElement.Row != null ); 2214Debug.Assert( this.DataSet.EnforceConstraints == false ); 2217Debug.Assert( row != null ); 2263Debug.Assert( c.Table == row.Table ); 2413Debug.Assert(rowElemList[0] != null && rowElemList[0] is XmlBoundElement); 2417Debug.Assert( subRowElem != null ); 2429Debug.Assert( ! IsRowLive( be.Row ) ); 2437Debug.Assert(rowElemList[0] != null && rowElemList[0] is XmlBoundElement); 2458Debug.Assert( rowElem.Row != null ); 2509Debug.Assert( false ); 2512Debug.Assert( IsRowLive( rowElem.Row ) ); 2517Debug.Assert( rowElem.Row != null ); 2558Debug.Assert( false ); 2562Debug.Assert( ! IsRowLive( rowElem.Row ) ); 2571Debug.Assert( row != null ); 2585Debug.Assert( row != null ); 2587Debug.Assert( row.RowState == DataRowState.Detached || row.RowState == DataRowState.Deleted ); 2595Debug.Assert( childRowElem.Row != null ); 2609Debug.Assert( parentRow != null ); 2659Debug.Assert( node.OwnerDocument == this || node == this ); 2690Debug.Assert( IsRowLive( rowElement.Row ) ); 2694Debug.Assert( rowElement.Row != null ); 2695Debug.Assert( IsRowLive( rowElement.Row ) ); 2709Debug.Assert( ! IsRowLive( rowElement.Row ) ); 2713Debug.Assert( rowElement.Row != null ); 2714Debug.Assert( ! IsRowLive( rowElement.Row ) );
fx\src\data\System\NewXml\XPathNodePointer.cs (33)
63Debug.Assert( XmlDataDocument.IsTextNode( node.NodeType ) ); 94Debug.Assert( xnt != -1 ); 115Debug.Assert( owner != null ); 398Debug.Assert( rowElem != null ); 399Debug.Assert( rowElem.Row != null ); 416Debug.Assert( rowElem.Row != null ); 447Debug.Assert( node == this._doc || node.OwnerDocument == this._doc ); 458Debug.Assert( node == this._doc || node.OwnerDocument == this._doc ); 567Debug.Assert( _node.Attributes != null ); 636Debug.Assert( xntInt != -1 ); 657Debug.Assert( xntInt != -1 ); 676Debug.Assert( _column.ColumnMapping != MappingType.Attribute && _column.ColumnMapping != MappingType.Hidden ); 917Debug.Assert( _parentOfNS != null ); 982Debug.Assert( other != null ); 995Debug.Assert( other.NodeType != XPathNodeType.Namespace ); 1008Debug.Assert( this.NodeType != XPathNodeType.Namespace ); 1025Debug.Assert( this._fOnValue != other._fOnValue ); 1032Debug.Assert( this.Row == other.Row ); //in the same row 1048Debug.Assert( curNode1 != null ); 1049Debug.Assert( curNode2 != null ); 1099Debug.Assert( false ); 1156Debug.Assert( this._column != null ); 1324Debug.Assert( attrs!=null ); 1410Debug.Assert( _parentOfNS != null ); 1414Debug.Assert( this._column.Namespace == s_strReservedXmlns ); 1418Debug.Assert( be != null ); 1420Debug.Assert( curRow != null ); 1439Debug.Assert( attr != null ); 1481Debug.Assert( rowElem != null ); 1484Debug.Assert( row != null ); 1491Debug.Assert( ! Convert.IsDBNull( row[ this._column, rowVersion ] ) ); 1494Debug.Assert( (this._column.ColumnMapping == MappingType.SimpleContent) ? (this._fOnValue == true) : true ); 1497Debug.Assert( !this._fOnValue );
System.Data.DataSetExtensions (9)
System\Data\DataRowComparer.cs (1)
207Debug.Assert(row.Table != null);
System\Data\EnumerableRowCollection.cs (1)
316Debug.Assert(pred != null);
System\Data\LinqDataView.cs (1)
126Debug.Assert(base.Sort != null);
System\Data\SortExpressionBuilder.cs (6)
62Debug.Assert(keySelector != null); 63Debug.Assert(compare != null); 74Debug.Assert(_currentSelector != null); 75Debug.Assert(_currentComparer != null); 110Debug.Assert(a.Count == Count); 131Debug.Assert(_selectors.Count == _comparers.Count); //weak now that we have two dimensions
System.Data.Entity (529)
System\Data\Common\EntitySql\AST\Literal.cs (22)
154System.Diagnostics.Debug.Assert(IsNumber && !IsSignedNumber); 156System.Diagnostics.Debug.Assert(_computedValue == null); 393Debug.Assert(stringLiteralValue.Length >= 2); 429Debug.Assert(after == (before - 2) / 2); 514Debug.Assert(year >= 1 && year <= 9999); 515Debug.Assert(month >= 1 && month <= 12); 516Debug.Assert(day >= 1 && day <= 31); 517Debug.Assert(hour >= 0 && hour <= 24); 518Debug.Assert(minute >= 0 && minute <= 59); 519Debug.Assert(second >= 0 && second <= 59); 520Debug.Assert(ticks >= 0 && ticks <= 9999999); 545Debug.Assert(year >= 1 && year <= 9999); 546Debug.Assert(month >= 1 && month <= 12); 547Debug.Assert(day >= 1 && day <= 31); 548Debug.Assert(hour >= 0 && hour <= 24); 549Debug.Assert(minute >= 0 && minute <= 59); 550Debug.Assert(second >= 0 && second <= 59); 551Debug.Assert(ticks >= 0 && ticks <= 9999999); 589Debug.Assert(hour >= 0 && hour <= 24); 590Debug.Assert(minute >= 0 && minute <= 59); 591Debug.Assert(second >= 0 && second <= 59); 592Debug.Assert(ticks >= 0 && ticks <= 9999999);
System\Data\Common\EntitySql\CqlParser.cs (2)
2971System.Diagnostics.Debug.Assert(elist.Count==2); 2980System.Diagnostics.Debug.Assert(elist.Count==2);
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
151Debug.Assert(bestCandidateRank != null);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (3)
374Debug.Assert(functionDefList.Count == inlineFunctionInfos.Count); 2967Debug.Assert(projectionItemErrCtxs.Count == rowType.Members.Count); 3963Debug.Assert(TypeSemantics.IsCollectionType(lambdaVariable.ResultType));
System\Data\Common\EntitySql\StaticContext.cs (3)
48Debug.Assert(Contains(key)); 54Debug.Assert(Contains(key)); 453Debug.Assert(CurrentScopeIndex >= 0);
System\Data\Common\EntityUtil.cs (1)
1836Debug.Assert(providerFactory != null);
System\Data\Common\Internal\Materialization\Shaper.cs (10)
287Debug.Assert(targetMember != null); 288Debug.Assert(targetMember.RelationshipMultiplicity == RelationshipMultiplicity.One || targetMember.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne); 411Debug.Assert(associationType.DataSpace == DataSpace.CSpace); 651Debug.Assert(Helper.IsGeometricTypeKind(spatialTypeKind)); 694Debug.Assert(null != (object)sourceKey); 695Debug.Assert(wrappedSource != null); 696Debug.Assert(wrappedSource.Entity != null); 697Debug.Assert(targetMember != null); 698Debug.Assert(this.Context != null); 710Debug.Assert(associationSet.AssociationSetEnds[sourceMember.Name].EntitySet == sourceEntitySet);
System\Data\Common\Utils\Boolean\BoolExpr.cs (2)
255Debug.Assert(null != (object)identifier); 336Debug.Assert(null != children);
System\Data\Common\Utils\Boolean\Clause.cs (1)
53Debug.Assert(isAnd || ExprType.Or == treeType);
System\Data\Common\Utils\Boolean\ConversionContext.cs (1)
80Debug.Assert(2 == vertex.Children.Length);
System\Data\Common\Utils\Boolean\DomainConstraint.cs (2)
38Debug.Assert(null != identifier && null != domain); 99Debug.Assert(null != variable && null != range);
System\Data\Common\Utils\Boolean\Literal.cs (1)
43Debug.Assert(null != term);
System\Data\Common\Utils\Boolean\Sentence.cs (1)
83Debug.Assert(isAnd || ExprType.Or == treeType);
System\Data\Common\Utils\Boolean\Simplifier.cs (1)
59Debug.Assert(isAnd || ExprType.Or == tree.ExprType);
System\Data\Common\Utils\Boolean\Solver.cs (1)
276Debug.Assert(null != vertices);
System\Data\Common\Utils\Boolean\Visitor.cs (2)
70Debug.Assert(null != expression); 197Debug.Assert(null != translator);
System\Data\Common\Utils\CommandHelper.cs (9)
47Debug.Assert(null != commandText); 77Debug.Assert(null != entityCommand); 102Debug.Assert(null != entityCommand); 103Debug.Assert(null != storeProviderCommand); 122Debug.Assert(null != entityCommand); 123Debug.Assert(null != storeProviderCommand); 124Debug.Assert(null != connection); 160Debug.Assert(Helper.IsGeometricType(parameterType)); 168Debug.Assert(null != workspace && null != containerName && null != functionImportName);
System\Data\Common\Utils\KeyToListMap.cs (1)
29Debug.Assert(null != comparer);
System\Data\Common\Utils\MetadataHelper.cs (13)
166Debug.Assert(null != workspace); 221Debug.Assert(null != end); 275Debug.Assert(null != toEnd); 276Debug.Assert(null != type); 288Debug.Assert(null != end); 299Debug.Assert(function != null); 314Debug.Assert(member != null); 315Debug.Assert(Helper.IsEdmProperty(member) || Helper.IsAssociationEndMember(member)); 328Debug.Assert(table.EntityContainer.GetDataSpace() == DataSpace.SSpace); 593Debug.Assert(entitySet1 != null); 594Debug.Assert(entitySet2 != null); 651Debug.Assert(entitySet != null); 688Debug.Assert(null != typeUsage && null != typeUsage.EdmType && typeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType);
System\Data\Common\Utils\Set.cs (1)
313Debug.Assert(other.Comparer.GetType().Equals(this.Comparer.GetType()));
System\Data\EntityClient\EntityAdapter.cs (1)
132Debug.Assert(null != entityCache);
System\Data\EntityClient\EntityCommand.cs (2)
564Debug.Assert(this._connection != null); 624Debug.Assert(CommandType.StoredProcedure == this.CommandType);
System\Data\EntityClient\EntityConnection.cs (3)
150Debug.Assert(_storeConnection != null); 278Debug.Assert(this.StoreConnection != null); 1128System.Diagnostics.Debug.Assert(
System\Data\EntityClient\EntityDataReader.cs (2)
43Debug.Assert(command != null && storeDataReader != null); 172Debug.Assert(this._command.Connection != null);
System\Data\EntityClient\EntityTransaction.cs (1)
35Debug.Assert(connection != null && storeTransaction != null);
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (5)
62Debug.Assert(reader != null); 103Debug.Assert(reader != null); 112Debug.Assert(reader != null); 121Debug.Assert(reader != null); 130Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\EntityContainer.cs (3)
184Debug.Assert(reader != null); 192Debug.Assert(reader != null); 200Debug.Assert(null != reader);
System\Data\EntityModel\SchemaObjectModel\EntityContainerAssociationSet.cs (3)
92Debug.Assert( reader != null ); 157Debug.Assert( relationshipEnd != null ); 158Debug.Assert( !_relationshipEnds.ContainsKey( relationshipEnd.Name ) );
System\Data\EntityModel\SchemaObjectModel\EntityContainerEntitySet.cs (4)
143Debug.Assert(reader != null); 169Debug.Assert( reader != null ); 185Debug.Assert( reader != null ); 197Debug.Assert( reader != null );
System\Data\EntityModel\SchemaObjectModel\EntityContainerRelationshipSet.cs (2)
68Debug.Assert( reader != null ); 164Debug.Assert( Relationship != null );
System\Data\EntityModel\SchemaObjectModel\Function.cs (12)
608Debug.Assert(reader != null); 619Debug.Assert(reader != null); 631Debug.Assert(reader != null); 643Debug.Assert(reader != null); 658Debug.Assert(reader != null); 670Debug.Assert(reader != null); 678Debug.Assert(reader != null); 687Debug.Assert(reader != null); 688Debug.Assert(UnresolvedReturnType == null); 722Debug.Assert(reader != null); 737Debug.Assert(reader != null); 756Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\ModelFunction.cs (1)
145Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\OnOperation.cs (1)
101Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (7)
183Debug.Assert(reader != null); 184Debug.Assert(UnresolvedType == null); 212Debug.Assert(reader != null); 314Debug.Assert(reader != null); 323Debug.Assert(reader != null); 332Debug.Assert(reader != null); 341Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (4)
51Debug.Assert(reader != null); 65Debug.Assert(UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty)); 78Debug.Assert(!(_type is ScalarType)); 83Debug.Assert(entityType != null);
System\Data\EntityModel\SchemaObjectModel\Relationship.cs (2)
189Debug.Assert(reader != null); 208Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\RelationshipEnd.cs (3)
197Debug.Assert(reader != null); 212Debug.Assert(reader != null); 237Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\RelationshipEndCollection.cs (3)
254Debug.Assert(ends.Length-index >= Count); 275Debug.Assert(data != null); 276Debug.Assert(keysInDefOrder != null);
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (8)
155Debug.Assert(reader != null); 156Debug.Assert(UnresolvedType == null); 183Debug.Assert(reader != null); 193Debug.Assert(reader != null); 234Debug.Assert(reader != null); 243Debug.Assert(reader != null); 252Debug.Assert(reader != null); 261Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\RowTypeElement.cs (1)
48Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (6)
64Debug.Assert(reader != null); 117Debug.Assert(reader != null); 126Debug.Assert(reader != null); 135Debug.Assert(reader != null); 144Debug.Assert(reader != null); 216Debug.Assert(entityType != null);
System\Data\EntityModel\SchemaObjectModel\Schema.cs (18)
302Debug.Assert(e != null); 740Debug.Assert(_depth > 0); 824Debug.Assert(usingElement != null); 825Debug.Assert(typeName != null); 937Debug.Assert(reader != null); 953Debug.Assert(reader != null); 965Debug.Assert(reader != null); 978Debug.Assert(reader != null); 987Debug.Assert(reader != null); 1013Debug.Assert(reader != null); 1027Debug.Assert(reader != null); 1047Debug.Assert(reader != null); 1062Debug.Assert(reader != null); 1077Debug.Assert(reader != null); 1089Debug.Assert(reader != null); 1104Debug.Assert(reader != null); 1118Debug.Assert(reader != null); 1133Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (3)
241Debug.Assert(reader.NodeType == XmlNodeType.Element); 497Debug.Assert(reader != null); 635Debug.Assert(reader.NamespaceURI != null);
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (1)
207Debug.Assert(_unresolvedUnderlyingTypeName != string.Empty);
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
166Debug.Assert(schemaCollection.All(s => s.SchemaVersion == currentSchemaVersion || s.SchemaVersion != XmlConstants.UndefinedVersion));
System\Data\EntityModel\SchemaObjectModel\StructuredProperty.cs (1)
154Debug.Assert(Type is SchemaEnumType);
System\Data\EntityModel\SchemaObjectModel\StructuredType.cs (1)
410Debug.Assert(baseType != null);
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (8)
108Debug.Assert(reader != null); 121Debug.Assert(reader != null); 133Debug.Assert(reader != null); 145Debug.Assert(reader != null); 157Debug.Assert(reader != null); 169Debug.Assert(reader != null); 181Debug.Assert(reader != null); 195Debug.Assert(reader != null);
System\Data\EntityModel\SchemaObjectModel\TypeRefElement.cs (3)
52Debug.Assert(reader != null); 87Debug.Assert(UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty)); 93Debug.Assert(_typeUsage != null);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (4)
431Debug.Assert( (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTime) ||(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.DateTimeOffset)||(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Time)) ; 536Debug.Assert(reader.LocalName == EdmProviderManifest.MaxLengthFacetName); 556Debug.Assert(reader.LocalName == EdmProviderManifest.SridFacetName); 700Debug.Assert(_default != null);
System\Data\EntityModel\SchemaObjectModel\ValidationHelper.cs (4)
34Debug.Assert(element != null); 35Debug.Assert(typeUsageBuilder != null); 74Debug.Assert(element != null); 96Debug.Assert(element != null);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (8)
236Debug.Assert((cdmType != null) && (clrType != null)); 242Debug.Assert(typeSpace == DataSpace.CSpace || typeSpace == DataSpace.OSpace || Helper.IsRowType(edmType) || Helper.IsCollectionType(edmType)); 449Debug.Assert((edmType != null) && (objectType != null)); 476Debug.Assert(Helper.IsAssociationType(edmType)); 692Debug.Assert(Helper.IsPrimitiveType(edmEnumType.UnderlyingType)); 693Debug.Assert(Helper.IsSupportedEnumUnderlyingType(edmEnumType.UnderlyingType.PrimitiveTypeKind)); 696Debug.Assert(Helper.IsPrimitiveType(objectEnumType.UnderlyingType)); 697Debug.Assert(Helper.IsSupportedEnumUnderlyingType(objectEnumType.UnderlyingType.PrimitiveTypeKind));
System\Data\Mapping\FunctionImportMappingNonComposable.cs (2)
47Debug.Assert(functionImport.ReturnParameters.Count == structuralTypeMappingsList.Count); 103Debug.Assert (resultMapping != null);
System\Data\Mapping\ObjectTypeMapping.cs (1)
135Debug.Assert(!m_memberMapping.ContainsKey(memberMapping.EdmMember.Name));
System\Data\Mapping\StorageComplexTypeMapping.cs (1)
128Debug.Assert(conditionMember != null);
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
432Debug.Assert(object.ReferenceEquals(this, args.ContainerMapping));
System\Data\Mapping\StorageMappingFragment.cs (1)
203Debug.Assert(conditionMember != null);
System\Data\Mapping\StorageMappingItemCollection.cs (2)
230Debug.Assert(errors != null); 816Debug.Assert(key.First.Equals(setMapping.Set));
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (5)
73Debug.Assert(container != null); 131Debug.Assert(entityContainerMap.HasViews); 163Debug.Assert(entityContainer != null); 164Debug.Assert(entity != null); 165Debug.Assert(type != null);
System\Data\Mapping\StorageMappingItemLoader.cs (11)
98Debug.Assert(storageMappingItemCollection != null); 99Debug.Assert(scalarMemberMappings != null); 319Debug.Assert(nav.LocalName == StorageMslConstructs.EntityContainerMappingElement); 1253Debug.Assert(nav.LocalName == StorageMslConstructs.QueryViewElement); 1309Debug.Assert(isOfTypeEntityTypes.Count > 0 || entityTypes.Count > 0); 1310Debug.Assert(!(isOfTypeEntityTypes.Count > 0 && entityTypes.Count > 0)); 3013Debug.Assert(partialAttribute == "true" || partialAttribute == "false"); 3024Debug.Assert(nav.LocalName == StorageMslConstructs.ComplexTypeMappingElement); 3143Debug.Assert(endRef != null); 3309Debug.Assert(isNullAttribute == "true" || isNullAttribute == "false"); 3676Debug.Assert(typeUsage != null);
System\Data\Mapping\StorageScalarPropertyMapping.cs (1)
58Debug.Assert(columnMember != null);
System\Data\Mapping\StorageSetMapping.cs (1)
243Debug.Assert(m_typeSpecificQueryViews.ContainsKey(key));
System\Data\Mapping\Update\Internal\KeyManager.cs (4)
299Debug.Assert(null != addedEntry); 300Debug.Assert(!addedEntry.IsRelationship); 301Debug.Assert(!addedEntry.IsKeyEntry); 302Debug.Assert(addedEntry.EntityKey.IsTemporary);
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (1)
482Debug.Assert(null != change && null != keySelectors && null != parent);
System\Data\Mapping\Update\Internal\PropagatorResult.cs (5)
326Debug.Assert(null != record); 366Debug.Assert(null != stateEntry); 517Debug.Assert(null != structuralType); 518Debug.Assert(null != values); 519Debug.Assert(values.Length == TypeHelpers.GetAllStructuralMembers(structuralType).Count);
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (3)
123Debug.Assert(extendedRecord != null); 125Debug.Assert(BuiltInTypeKind.EntityType == extendedRecord.DataRecordInfo.RecordType.EdmType.BuiltInTypeKind); 141Debug.Assert(associationSet.ElementType.Equals(record.DataRecordInfo.RecordType.EdmType));
System\Data\Mapping\Update\Internal\SourceInterpreter.cs (4)
45Debug.Assert(null != source); 46Debug.Assert(null != translator); 47Debug.Assert(null != sourceTable); 57Debug.Assert(null != source);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (5)
217Debug.Assert(propertyResult.IsSimple); 413Debug.Assert(null != target && null != property && null != value); 428Debug.Assert(null != target && null != property); 437Debug.Assert(null != value && value.IsSimple && null != property); 498Debug.Assert(null != processor);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (3)
345Debug.Assert(null != role); 346Debug.Assert(null != property); 548Debug.Assert(clrEnumType.IsEnum);
System\Data\Mapping\ViewGeneration\CellCreator.cs (4)
195Debug.Assert(originalCell != null); 196Debug.Assert(memberToExpand != null); 450Debug.Assert(conditionMap.EdmProperty != null); 494Debug.Assert(conditionExpression != null);
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (2)
194Debug.Assert(child.OpType == commonChildOpType); 571Debug.Assert(bools1.Count == bools2.Count);
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (3)
117Debug.Assert(constraint.ToRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.Many) == false); 144Debug.Assert(constraint.FromRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.One)); 145Debug.Assert(constraint.ToRole.RelationshipMultiplicity.Equals(RelationshipMultiplicity.One));
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (14)
79Debug.Assert(typesGenerationMode != ViewGenMode.GenerateAllViews); 99Debug.Assert(_views.Count > 0); 128Debug.Assert(_errorLog.Count > 0); 214Debug.Assert(!Helper.IsRefType(_generatedType)); 315Debug.Assert(!Helper.IsRefType(_generatedType)); 350Debug.Assert(!(isAlwaysTrue && isAlwaysFalse)); 357Debug.Assert(caseStatement.Clauses.Count == 0); 470Debug.Assert(nonConditionalScalarAttributes != null); 556Debug.Assert(_context.ViewTarget == ViewTarget.UpdateView || !_config.IsValidationEnabled); 721Debug.Assert(fragment != null); 768Debug.Assert(entry.Value.ElseValue == null); 945Debug.Assert(usedViews.Count > 0); 978Debug.Assert(attributeTile != null); 1218Debug.Assert(view.FromVariable != null);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingProcessor.cs (1)
266Debug.Assert(succeeded);
System\Data\Mapping\ViewGeneration\QueryRewriting\Tile.cs (2)
184Debug.Assert(namedQuery != null); 219Debug.Assert(arg1 != null && arg2 != null);
System\Data\Mapping\ViewGeneration\Structures\BoolExpression.cs (2)
100Debug.Assert(childList.Count > 0); 120Debug.Assert(childList.Count == 1);
System\Data\Mapping\ViewGeneration\Structures\BoolExpressionVisitors.cs (2)
279Debug.Assert(kind == ExprType.Or || kind == ExprType.And); 509Debug.Assert(kind == ExprType.Or || kind == ExprType.And);
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (1)
104Debug.Assert(value != null);
System\Data\Mapping\ViewGeneration\Structures\CellIdBoolean.cs (1)
30Debug.Assert(index >= 0);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (3)
595Debug.Assert(slotIndexes != null); 611Debug.Assert(this.Extent is AssociationSet); 635Debug.Assert(slotIndexes != null);
System\Data\Mapping\ViewGeneration\Structures\ConstantProjectedSlot.cs (1)
30Debug.Assert(value != null);
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (3)
46Debug.Assert(values != null); 47Debug.Assert(possibleDiscreteValues != null); 156Debug.Assert(Helper.IsEntityType(type) || Helper.IsComplexType(type) || Helper.IsRefType(type) || Helper.IsAssociationType(type));
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (1)
107Debug.Assert(wrappers != null);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (2)
207Debug.Assert(foreignKeySlots != null); 271Debug.Assert(otherEnds.Count() == 1);
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (1)
120Debug.Assert(m_mergedCells.Count == 1);
System\Data\Mapping\ViewGeneration\Structures\MemberMaps.cs (3)
38Debug.Assert(m_queryDomainMap != null); 39Debug.Assert(m_updateDomainMap != null); 40Debug.Assert(m_projectedSlotMap != null);
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (1)
68Debug.Assert(possibleValues != null);
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (3)
223Debug.Assert(OpType == CellTreeOpType.Union); 324Debug.Assert(boolArray.Length == another.Length); 593Debug.Assert(children.Any());
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (1)
50Debug.Assert(context.ViewTarget == ViewTarget.QueryView || context.Config.IsValidationEnabled);
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (5)
321Debug.Assert(errorListForInvalidParentColumnsForForeignKey != null && errorListForInvalidParentColumnsForForeignKey.Count > 0); 436Debug.Assert(pNode != null); 694Debug.Assert(childSlot != null); 717Debug.Assert(parentSlot != null); 803Debug.Assert(endSlots.Count > 0);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (3)
63Debug.Assert(extent.Equals(cell.GetLeftQuery(viewTarget).Extent)); 64Debug.Assert(cell.CQuery.NumProjectedSlots == cell.SQuery.NumProjectedSlots); 248Debug.Assert(m_viewTarget == ViewTarget.QueryView);
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (2)
170Debug.Assert(mode != ViewGenMode.GenerateAllViews); 244Debug.Assert(mode != ViewGenMode.GenerateAllViews);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (5)
135Debug.Assert(viewGenerator != null); //make sure there is no exception thrown that does not add error to log 168Debug.Assert(container != null); 200Debug.Assert(viewGenerator != null); 237Debug.Assert(container != null); 282Debug.Assert(smallestCell != null && lowestLineNum >= 0);
System\Data\Mapping\ViewValidator.cs (5)
63Debug.Assert(null != setMapping); 64Debug.Assert(null != elementType); 240Debug.Assert(null != expression.Target); 245Debug.Assert(null != target.EntityContainer); 271Debug.Assert(setMapping != null);
System\Data\Metadata\AspProxy.cs (4)
79Debug.Assert(_triedLoadingWebAssembly == false); 80Debug.Assert(_webAssembly == null); 144Debug.Assert(!string.IsNullOrEmpty(path)); 145Debug.Assert(path.StartsWith(EdmConstants.WebHomeSymbol, StringComparison.Ordinal));
System\Data\Metadata\CacheForPrimitiveTypes.cs (3)
94Debug.Assert(facetDescriptions.Length > 0); 144Debug.Assert(type != null); 153Debug.Assert(facetDescriptions != null && facetDescriptions.Length > 0);
System\Data\Metadata\ClrPerspective.cs (1)
112Debug.Assert(((GlobalItem)map.EdmItem).DataSpace == DataSpace.CSpace);
System\Data\Metadata\Converter.cs (5)
450Debug.Assert(element.RelationshipKind == RelationshipKind.Association); 578Debug.Assert(properties.Count != 0); 655Debug.Assert(relationshipSet.Relationship.RelationshipKind == RelationshipKind.Association); 731Debug.Assert(somProperty.TypeUsage.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType); 809Debug.Assert(somRelationshipEnd.Multiplicity != RelationshipMultiplicity.Many);
System\Data\Metadata\CustomAssemblyResolver.cs (2)
23Debug.Assert(wildcardAssemblyEnumerator != null); 24Debug.Assert(referenceResolver != null);
System\Data\Metadata\DefaultAssemblyResolver.cs (1)
64Debug.Assert(referenceName != null);
System\Data\Metadata\Edm\EntityType.cs (2)
107Debug.Assert(Members.Contains(member)); 120Debug.Assert(Members.Contains(member));
System\Data\Metadata\Edm\EnumType.cs (2)
168Debug.Assert(Helper.IsEnumMemberValueInRange(UnderlyingType.PrimitiveTypeKind, Convert.ToInt64(enumMember.Value, CultureInfo.InvariantCulture))); 169Debug.Assert(enumMember.Value.GetType() == UnderlyingType.ClrEquivalentType);
System\Data\Metadata\Edm\FacetDescription.cs (1)
254System.Diagnostics.Debug.Assert(this.FacetType.Identity == "Edm.Boolean");
System\Data\Metadata\Edm\FilteredReadOnlyMetadataCollection.cs (1)
51Debug.Assert(collection != null);
System\Data\Metadata\Edm\ItemCollection.cs (1)
90Debug.Assert(item.DataSpace == this.DataSpace);
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
152System.Diagnostics.Debug.Assert(type != null); 436System.Diagnostics.Debug.Assert(mi != null);
System\Data\Metadata\Edm\MetadataCollection.cs (1)
363System.Diagnostics.Debug.Assert(index == -1 || index == listCount);
System\Data\Metadata\Edm\MetadataPropertyAttribute.cs (1)
60Debug.Assert(null != type);
System\Data\Metadata\Edm\MetadataPropertyCollection.cs (3)
64Debug.Assert(null != clrType); 111Debug.Assert(null != propertyInfo); 112Debug.Assert(null != attribute);
System\Data\Metadata\Edm\MetadataPropertyvalue.cs (2)
27Debug.Assert(null != propertyInfo); 28Debug.Assert(null != item);
System\Data\Metadata\Edm\TypeUsage.cs (1)
432System.Diagnostics.Debug.Assert(((RefType)edmType).ElementType.DataSpace == DataSpace.CSpace);
System\Data\Metadata\Helper.cs (1)
222Debug.Assert(xmlReaders != null);
System\Data\Metadata\MetadataArtifactLoader.cs (9)
87Debug.Assert(path != null); 88Debug.Assert(resolver != null); 147Debug.Assert(!string.IsNullOrEmpty(validExtension)); 225Debug.Assert(!string.IsNullOrEmpty(path)); 226Debug.Assert(!string.IsNullOrEmpty(validExtension)); 316Debug.Assert(!string.IsNullOrEmpty(resource)); 334Debug.Assert(!string.IsNullOrEmpty(resource)); 352Debug.Assert(!string.IsNullOrEmpty(resource)); 385Debug.Assert(!string.IsNullOrEmpty(resource));
System\Data\Metadata\MetadataArtifactLoaderComposite.cs (1)
46Debug.Assert(children != null);
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (10)
46Debug.Assert(resolver != null); 160Debug.Assert(resolver != null); 163Debug.Assert(!string.IsNullOrEmpty(assemblyName)); 230Debug.Assert(assembly != null); 241Debug.Assert(resourceName != null); 242Debug.Assert(assembly != null); 265Debug.Assert(assembly != null); 279Debug.Assert(resolver != null); 294Debug.Assert(path != null); 295Debug.Assert(MetadataArtifactLoader.PathStartsWithResPrefix(path));
System\Data\Metadata\MetadataArtifactLoaderResource.cs (2)
35Debug.Assert(assembly != null); 36Debug.Assert(resourceName != null);
System\Data\Metadata\MetadataWorkspace.cs (3)
321Debug.Assert(itemCollectionType != null); 1222Debug.Assert(null != functionImport); 1434Debug.Assert(entitySet.EntityContainer != null);
System\Data\Metadata\ObjectHelper.cs (1)
53Debug.Assert(errors != null);
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
163Debug.Assert(CacheEntry.TypesInAssembly.Count == 0);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (3)
139Debug.Assert(cspaceType is StructuralType); 693Debug.Assert(ospaceEndTypes[0] is StructuralType); 694Debug.Assert(ospaceEndTypes[1] is StructuralType);
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (1)
168Debug.Assert(Helper.IsAssociationType(type));
System\Data\Metadata\StoreItemCollection.Loader.cs (2)
207Debug.Assert(provEx != null); 208Debug.Assert(addError != null);
System\Data\Metadata\TypeHelpers.cs (1)
496System.Diagnostics.Debug.Assert(edmType != null);
System\Data\Metadata\TypeSemantics.cs (4)
761Debug.Assert(fromRowType != null && toRowType != null); 799Debug.Assert(edmType1 != null && edmType2 != null); 921Debug.Assert(refType1.ElementType != null && reftype2.ElementType != null); 1035Debug.Assert(fromType != null && toType != null);
System\Data\Objects\DataClasses\ComplexObject.cs (1)
50Debug.Assert(_parentPropertyName == null);
System\Data\Objects\DataClasses\EntityCollection.cs (1)
657Debug.Assert(_wrappedRelatedEntities.Count == 0);
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
598Debug.Assert(properties != null); 619Debug.Assert(retrievedProperties != null);
System\Data\Objects\DataClasses\RelationshipManager.cs (7)
1222Debug.Assert(wrappedOwner.Entity != null); 1223Debug.Assert(visited != null); 1229Debug.Assert((object)ownerKey != null); 1301Debug.Assert(properties != null); 1302Debug.Assert(propertiesToRetrieve != null); 1364Debug.Assert(ownerEntry != null); 1437Debug.Assert(wrappedOwner.Entity != null);
System\Data\Objects\ELinq\ExpressionConverter.cs (6)
289Debug.Assert(null != metadata); 629Debug.Assert(operationType == ExpressionType.TypeAs || operationType == ExpressionType.TypeIs); 843Debug.Assert(null != input); 907Debug.Assert(null != linq); 976Debug.Assert(null != left); 977Debug.Assert(null != right);
System\Data\Objects\ELinq\InitializerFacet.cs (8)
40Debug.Assert(null != clrType); 220Debug.Assert(ClrType.IsGenericType && 222Debug.Assert(propertyTranslatorResults.Count == 2); 237Debug.Assert(ClrType.IsGenericType && 257Debug.Assert(null != newExpression); 356Debug.Assert(null != initExpression); 357Debug.Assert(null != members); 446Debug.Assert(null != navigationProperty);
System\Data\Objects\ELinq\MethodCallTranslator.cs (10)
178Debug.Assert(!s_vbMethodsInitialized); 583Debug.Assert(!s_vbMethodsInitialized); 1574Debug.Assert(5 == call.Arguments.Count); 1672Debug.Assert(1 == call.Arguments.Count); 1680Debug.Assert(2 == call.Arguments.Count); 1748Debug.Assert(isUnary || 2 == call.Arguments.Count); 2026Debug.Assert(0 <= call.Arguments.Count); 2033Debug.Assert(1 <= call.Arguments.Count); 2115Debug.Assert(2 <= call.Arguments.Count); 3014Debug.Assert(2 == call.Arguments.Count);
System\Data\Objects\ELinq\Translator.cs (1)
395Debug.Assert(!s_vbPropertiesInitialized);
System\Data\Objects\EntityEntry.cs (16)
1675Debug.Assert(!this.IsKeyEntry); 2411Debug.Assert(!this.IsKeyEntry); 2758Debug.Assert(properties != null); 2759Debug.Assert(propertyName != null); 2760Debug.Assert(propertyValue != null); 2866Debug.Assert(!this.IsKeyEntry); 2867Debug.Assert((object)_entityKey != null); 2903Debug.Assert(this.IsKeyEntry); 2917Debug.Assert(properties != null); 2918Debug.Assert(_cacheTypeMetadata != null); 2919Debug.Assert(_cacheTypeMetadata.DataRecordInfo != null); 2920Debug.Assert(_cacheTypeMetadata.DataRecordInfo.RecordType != null); 2946Debug.Assert(!this.IsKeyEntry); 2959Debug.Assert(!member.IsComplex); 3276Debug.Assert(!(value is IEntityWrapper)); 3364Debug.Assert(!(value is IEntityWrapper));
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1208Debug.Assert(member.BuiltInTypeKind == BuiltInTypeKind.NavigationProperty);
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (1)
180Debug.Assert(ospaceEntityType.ClrType == _entityType.ClrType);
System\Data\Objects\Internal\TransactionManager.cs (18)
220Debug.Assert(!this.IsAddTracking); 239Debug.Assert(this.IsAddTracking); 258Debug.Assert(!this.IsAttachTracking); 275Debug.Assert(this.IsAttachTracking); 316Debug.Assert(this.IsDetectChanges); 350Debug.Assert(!this.IsLocalPublicAPI); 357Debug.Assert(this.IsLocalPublicAPI); 364Debug.Assert(!this.IsOriginalValuesGetter); 371Debug.Assert(this.IsOriginalValuesGetter); 378Debug.Assert(!this.IsForeignKeyUpdate); 386Debug.Assert(this.IsForeignKeyUpdate); 394Debug.Assert(!this.IsRelatedEndAdd); 400Debug.Assert(this.IsRelatedEndAdd); 411Debug.Assert(_graphUpdateCount > 0); 417Debug.Assert(!IsDetaching); 423Debug.Assert(IsDetaching); 429Debug.Assert(!IsFixupByReference); 435Debug.Assert(IsFixupByReference);
System\Data\Objects\ObjectContext.cs (2)
1166Debug.Assert(!Object.ReferenceEquals(entry.Entity, wrappedEntity.Entity)); 2675Debug.Assert(edmTypes != null && edmTypes.Length > 0);
System\Data\Objects\ObjectStateManager.cs (5)
758Debug.Assert(relatedEnd != null); 759Debug.Assert(wrappedEntity != null); 760Debug.Assert(wrappedEntity.Entity != null); 1745Debug.Assert(!(entity is IEntityWithKey)); 3396Debug.Assert(reference != null);
System\Data\Query\InternalTrees\ColumnMapFactory.cs (4)
36Debug.Assert(resultMapping != null); 130Debug.Assert(null != reader); 131Debug.Assert(null != type); 132Debug.Assert(null != workspace);
System\Data\Query\InternalTrees\Command.cs (3)
435Debug.Assert(m_vars.Contains(oldVar)); 1060Debug.Assert(definingExpr.Op != null); 1062Debug.Assert(scalarOp != null);
System\Data\Query\InternalTrees\NodeInfo.cs (2)
564Debug.Assert(varDefListNode.Op.OpType == OpType.VarDefList); 573Debug.Assert(varDefOp != null);
System\Data\Query\InternalTrees\Nodes.cs (1)
170Debug.Assert(extendedNodeInfo != null);
System\Data\Query\InternalTrees\OpCopier.cs (3)
681Debug.Assert(!n.HasChild0); 699Debug.Assert(n.HasChild0); 1100Debug.Assert(op != null);
System\Data\Query\InternalTrees\RelOps.cs (2)
993Debug.Assert(keyVars != null); 994Debug.Assert(!keyVars.IsEmpty);
System\Data\Query\InternalTrees\RuleProcessor.cs (1)
134Debug.Assert(subTreeRoot == newSubTreeRoot);
System\Data\Spatial\SpatialHelpers.cs (1)
19Debug.Assert(Helper.IsSpatialType(columnType));
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (2)
465Debug.Assert(null != commandText); 466Debug.Assert(null != commandTree);
System\Data\SqlClient\SqlGen\SqlBuilder.cs (1)
50Debug.Assert(s != null);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (23)
546Debug.Assert(selectStatementStack.Count == 0); 547Debug.Assert(isParentAJoinStack.Count == 0); 610Debug.Assert(false); 655Debug.Assert(false); 671Debug.Assert(e.When.Count == e.Then.Count); 757Debug.Assert(false); // The constructor should have prevented this 776Debug.Assert(false); 1460Debug.Assert(result.Select.IsEmpty); 1515Debug.Assert(aggregate.Arguments.Count == 1); 1643Debug.Assert(false); 2321Debug.Assert(joinSymbol.NameToExtent.ContainsKey(e.Property.Name)); 2406Debug.Assert(e.ExpressionKind == DbExpressionKind.All); 2476Debug.Assert(input.Select.IsEmpty); 2913Debug.Assert(e.Arguments.Count <= 1); 2935Debug.Assert(collectionType != null); 2944Debug.Assert(isScalarElement); 3698Debug.Assert(sortClause.Collation != null); 3757Debug.Assert(oldStatement.FromExtents.Count == 1); 4025Debug.Assert(false); 4039Debug.Assert(!String.IsNullOrEmpty(name)); 4080Debug.Assert(TypeSemantics.IsCollectionType(e.ResultType)); 4112Debug.Assert(TypeSemantics.IsCollectionType(e.ResultType)); 4257Debug.Assert(aggregate.Arguments.Count == 1);
System\Data\SqlClient\SqlGen\SqlSelectClauseBuilder.cs (1)
118Debug.Assert(false); // we have removed all possibilities of SELECT *.
System\Data\SqlClient\SqlGen\SymbolPair.cs (1)
53Debug.Assert(false);
System\Data\SqlClient\SqlProviderManifest.cs (1)
516System.Diagnostics.Debug.Assert(edmType.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType);
System\Data\SqlClient\SqlProviderServices.cs (4)
299Debug.Assert(sqlTypes != null); 787Debug.Assert(sqlConnection != null); 863Debug.Assert(!string.IsNullOrEmpty(attachDBFile)); 1044Debug.Assert(sqlConnection != null);
System\Data\SqlClient\SqlSpatialServices.cs (1)
127Debug.Assert(expectedSpatialType == this.SqlTypes.SqlGeographyType || expectedSpatialType == this.SqlTypes.SqlGeometryType);
System\Data\SqlClient\SqlTypesAssembly.cs (1)
589Debug.Assert(sqlStringFromStringCtor != null);
System.Data.Entity.Design (19)
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
263Debug.Assert(errors != null); 282Debug.Assert(xmlReaders != null);
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
223Debug.Assert(item != null); 255Debug.Assert(item != null);
System\Data\EntityModel\Emitters\CommentEmitter.cs (8)
169Debug.Assert(!string.IsNullOrEmpty(text)); 205Debug.Assert(start <= last); 295Debug.Assert(commentCollection != null); 310Debug.Assert(summaryComments != null); 311Debug.Assert(commentCollection != null); 324Debug.Assert(tag != null); 325Debug.Assert(summaryComments != null); 326Debug.Assert(commentCollection != null);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
495Debug.Assert(null != functionImport);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
588Debug.Assert(MetadataUtil.IsComplexType(typeUsage.EdmType));
System\Data\EntityModel\EntityClassGenerator.cs (5)
334Debug.Assert(exception != null); 335Debug.Assert(sourceLocation != null); 342Debug.Assert(exception != null); 343Debug.Assert(sourceLocation != null); 350Debug.Assert(exception != null);
System.Data.Linq (138)
ChangeConflicts.cs (1)
280Debug.Assert(this.IsDeleted);
ChangeDirector.cs (4)
251System.Diagnostics.Debug.Assert(membersToSync.Count > 0); 284System.Diagnostics.Debug.Assert(item != null); 290System.Diagnostics.Debug.Assert(syncResults.Length == membersToSync.Count); 400System.Diagnostics.Debug.Assert(table != null);
ChangeProcessor.cs (2)
417Debug.Assert(cachedTracked != null); 438Debug.Assert(cachedTracked != null);
ChangeTracker.cs (14)
336System.Diagnostics.Debug.Assert(this.IsNew || this.IsRemoved || this.IsUnmodified); 342System.Diagnostics.Debug.Assert(this.IsPossiblyModified || this.IsDeleted); 348System.Diagnostics.Debug.Assert(this.IsPossiblyModified); 349System.Diagnostics.Debug.Assert(this.type.VersionMember != null || !this.type.HasUpdateCheck); 356System.Diagnostics.Debug.Assert(this.IsNew || this.IsPossiblyModified); 357System.Diagnostics.Debug.Assert(originalState != null); 358System.Diagnostics.Debug.Assert(originalState.GetType() == this.type.Type); 366System.Diagnostics.Debug.Assert(this.IsDeleted || this.IsPossiblyModified); 372System.Diagnostics.Debug.Assert(this.IsDead || this.IsDeleted); 378System.Diagnostics.Debug.Assert(this.IsRemoved || this.IsNew); 384System.Diagnostics.Debug.Assert(this.IsNew || this.IsPossiblyModified); 484System.Diagnostics.Debug.Assert(!mm.IsAssociation); 522System.Diagnostics.Debug.Assert(instance != null); 524System.Diagnostics.Debug.Assert(instance.GetType() == this.type.Type);
DataContext.cs (2)
392System.Diagnostics.Debug.Assert(metaTable != null); 1112System.Diagnostics.Debug.Assert(metaTable != null);
Mapping\AttributedMetaModel.cs (1)
878System.Diagnostics.Debug.Assert(functionAttrib != null);
Mapping\MappedMetaModel.cs (1)
1269System.Diagnostics.Debug.Assert(this.otherType.IsEntity);
Mapping\MappingSource.cs (9)
251System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 325System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 376System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 394System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 418System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 469System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 478System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 533System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element); 567System.Diagnostics.Debug.Assert(reader.NodeType == XmlNodeType.Element);
SqlClient\Common\SqlFactory.cs (3)
242Debug.Assert(IsSqlHighPrecisionDateTimeType(timeSpan)); 466System.Diagnostics.Debug.Assert(value != null); 477System.Diagnostics.Debug.Assert(false);
SqlClient\Common\SqlNode.cs (3)
844System.Diagnostics.Debug.Assert(expr != null); 1489System.Diagnostics.Debug.Assert(sqlType.CanBeColumn); 1494System.Diagnostics.Debug.Assert(expr != null);
SqlClient\Common\SqlVisitor.cs (1)
251System.Diagnostics.Debug.Assert(false);
SqlClient\Query\QueryConverter.cs (4)
1516System.Diagnostics.Debug.Assert(select.Selection.NodeType == SqlNodeType.AliasRef); 1995System.Diagnostics.Debug.Assert(function != null); 2419System.Diagnostics.Debug.Assert(cons != null); 2445System.Diagnostics.Debug.Assert(resultSelector.Parameters.Count == 1);
SqlClient\Query\SqlBinder.cs (7)
784System.Diagnostics.Debug.Assert(mm != null); 799System.Diagnostics.Debug.Assert(mm != null); 831System.Diagnostics.Debug.Assert(mm != null); 995System.Diagnostics.Debug.Assert(type != null); 996System.Diagnostics.Debug.Assert(mi != null); 1088System.Diagnostics.Debug.Assert(result is SqlColumnRef); 1555System.Diagnostics.Debug.Assert(false);
SqlClient\Query\SqlFormatter.cs (1)
560System.Diagnostics.Debug.Assert(spc.Arguments.Count >= pc);
SqlClient\Query\SqlMethodCallConverter.cs (6)
944Debug.Assert(GetMethodSupport(mc) == MethodSupport.Method); 978Debug.Assert(GetMethodSupport(mc) == MethodSupport.Method); 1309Debug.Assert(TypeSystem.GetNonNullableType(bo.Left.ClrType) == typeof(DateTimeOffset)); 2469Debug.Assert(mc.Arguments.Count == 3); 2470Debug.Assert(mc.Arguments[0].ClrType == typeof(string)); 2471Debug.Assert(mc.Arguments[1].ClrType == typeof(string));
SqlClient\Query\SqlNamer.cs (1)
48System.Diagnostics.Debug.Assert(ss != null && ss.Select != null && ss.Select.Row != null && ss.Select.Row.Columns.Count == 1);
SqlClient\Query\SqlOuterApplyReducer.cs (4)
317System.Diagnostics.Debug.Assert(source != null); 318System.Diagnostics.Debug.Assert(aliasesForLifting != null); 325System.Diagnostics.Debug.Assert(source != null); 326System.Diagnostics.Debug.Assert(aliasesForLifting != null);
SqlClient\Query\SqlParameterizer.cs (1)
192System.Diagnostics.Debug.Assert(false);
SqlClient\Query\Translator.cs (11)
28System.Diagnostics.Debug.Assert(rowType != null && rowType.Table != null); 131System.Diagnostics.Debug.Assert(thisType.IsEntity); 277System.Diagnostics.Debug.Assert(link.Expansion != null); 278System.Diagnostics.Debug.Assert(link.KeyExpressions == keyExpressions); 286System.Diagnostics.Debug.Assert( 357System.Diagnostics.Debug.Assert(exprs1.Count > 0); 358System.Diagnostics.Debug.Assert(exprs2.Count > 0); 359System.Diagnostics.Debug.Assert(exprs1.Count == exprs2.Count); 447System.Diagnostics.Debug.Assert(expr.NodeType == SqlNodeType.IsNull || expr.NodeType == SqlNodeType.IsNotNull); 455System.Diagnostics.Debug.Assert(exprs.Count > 0); 513System.Diagnostics.Debug.Assert(members.Count > 0);
SqlClient\Reader\ObjectReaderCompiler.cs (52)
169System.Diagnostics.Debug.Assert( 820System.Diagnostics.Debug.Assert(miInvoke != null); 826System.Diagnostics.Debug.Assert(TypeSystem.IsNullableType(u.Operand.ClrType)); 836System.Diagnostics.Debug.Assert(opt.HasValue.ClrType == typeof(int?)); 842System.Diagnostics.Debug.Assert(TypeSystem.IsNullableType(actualType)); 991System.Diagnostics.Debug.Assert(miInsertLookup != null); 1043System.Diagnostics.Debug.Assert(miRaiseEvent != null); 1068System.Diagnostics.Debug.Assert(piCanDeferLoad != null); 1158System.Diagnostics.Debug.Assert(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)); 1172System.Diagnostics.Debug.Assert(argType.IsAssignableFrom(eType)); 1195System.Diagnostics.Debug.Assert(ci != null); 1207System.Diagnostics.Debug.Assert(miSetSource != null); 1220System.Diagnostics.Debug.Assert(memberType.IsGenericType && memberType.GetGenericTypeDefinition() == typeof(EntitySet<>)); 1234System.Diagnostics.Debug.Assert(argType.IsAssignableFrom(eType)); 1257System.Diagnostics.Debug.Assert(ci != null); 1269System.Diagnostics.Debug.Assert(miAssign != null); 1278System.Diagnostics.Debug.Assert( 1313System.Diagnostics.Debug.Assert(ci != null); 1353System.Diagnostics.Debug.Assert(miCreateGroup != null); 1381System.Diagnostics.Debug.Assert(mi != null); 1400System.Diagnostics.Debug.Assert(mi != null); 1453System.Diagnostics.Debug.Assert(miExecute != null); 1479System.Diagnostics.Debug.Assert(ci != null); 1511System.Diagnostics.Debug.Assert(miRead != null); 1523System.Diagnostics.Debug.Assert(miAdd != null); 1601System.Diagnostics.Debug.Assert(miCast != null); 1608System.Diagnostics.Debug.Assert(miConvert != null); 1616System.Diagnostics.Debug.Assert(miFirst != null); 1646System.Diagnostics.Debug.Assert(ci != null); 1652System.Diagnostics.Debug.Assert(miFirst != null); 1655System.Diagnostics.Debug.Assert(ci != null); 1668System.Diagnostics.Debug.Assert(miAsQueryable != null); 1686System.Diagnostics.Debug.Assert(miAsQueryable != null); 1702System.Diagnostics.Debug.Assert(miCreateOrderedEnumerable != null); 1718System.Diagnostics.Debug.Assert(ci != null); 1726System.Diagnostics.Debug.Assert(miAssign != null); 1739System.Diagnostics.Debug.Assert(ci != null); 1749System.Diagnostics.Debug.Assert(miToArray != null); 1782System.Diagnostics.Debug.Assert(miGetTypeFromHandle != null); 1785System.Diagnostics.Debug.Assert(miChangeType != null); 1954System.Diagnostics.Debug.Assert(vMatch != null); 1960System.Diagnostics.Debug.Assert(i == n - 1); 1976System.Diagnostics.Debug.Assert(dt.ClrType == typeof(Type)); 1986System.Diagnostics.Debug.Assert(targetType != null && locDiscriminator != null); 2065System.Diagnostics.Debug.Assert(miEquals != null); 2094System.Diagnostics.Debug.Assert(mi != null); 2137System.Diagnostics.Debug.Assert(readerMethod != null); 2198System.Diagnostics.Debug.Assert(meth != null); 2276System.Diagnostics.Debug.Assert(address == false); 2286System.Diagnostics.Debug.Assert(false); 2291System.Diagnostics.Debug.Assert(tc == TypeCode.Int32); 2796System.Diagnostics.Debug.Assert(false);
SqlClient\SqlProvider.cs (9)
136System.Diagnostics.Debug.Assert(false); 710System.Diagnostics.Debug.Assert(this.conManager.Connection.State == ConnectionState.Closed); 839System.Diagnostics.Debug.Assert(qis.Length == 1); 1439System.Diagnostics.Debug.Assert(resultType != null); 1440System.Diagnostics.Debug.Assert(node != null); 1818Debug.Assert(!useReturnValue); 1894System.Diagnostics.Debug.Assert(enumerator != null); 1922System.Diagnostics.Debug.Assert(enumerable != null); 1923System.Diagnostics.Debug.Assert(executeResult != null);
SqlClient\SqlTypeSystemProvider.cs (1)
225System.Diagnostics.Debug.Assert(scale <= precision);
System.Data.Services (1)
System\Data\Services\Parsing\WebConvert.cs (1)
710Debug.Assert(IsCharHexDigit(c));
System.Data.Services.Client (3)
System\Data\Services\Client\ALinq\PathBox.cs (2)
82Debug.Assert(parameterExpressions.Count > 0); 110Debug.Assert(sb != null); // there should always be an expand path because must call StartNewPath first.
System\Data\Services\Client\ArraySet.cs (1)
53Debug.Assert(index < this.count);
System.Data.Services.Design (11)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
380Debug.Assert(item != null); 411Debug.Assert(item != null);
System\Data\EntityModel\Emitters\CommentEmitter.cs (8)
164Debug.Assert(!string.IsNullOrEmpty(text)); 200Debug.Assert(start <= last); 292Debug.Assert(commentCollection != null); 308Debug.Assert(summaryComments != null); 309Debug.Assert(commentCollection != null); 323Debug.Assert(tag != null); 324Debug.Assert(summaryComments != null); 325Debug.Assert(commentCollection != null);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
513Debug.Assert(Helper.IsComplexType(typeUsage.EdmType));
System.Data.SqlXml (862)
System\Xml\Xsl\IlGen\GenerateHelper.cs (10)
609default: Debug.Assert(false); return; 825Debug.Assert(!(methInfo is ConstructorBuilder)); 1063Debug.Assert(nameType == GenerateNameType.TagNameAndNamespace); 1380Debug.Assert(this.isDebug && this.lastSourceInfo != null); 1381Debug.Assert(sourceInfo != null); 1410Debug.Assert(this.module.EmitSymbols); 1517Debug.Assert(opcode.OperandType == OperandType.ShortInlineI); 1526Debug.Assert(opcode.OperandType == OperandType.InlineI || opcode.OperandType == OperandType.InlineVar); 1535Debug.Assert(opcode.OperandType == OperandType.InlineI8); 1645Debug.Assert(opcode.Equals(OpCodes.Brtrue) || opcode.Equals(OpCodes.Brtrue_S) ||
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (3)
289Debug.Assert(this.hasNext); 351Debug.Assert(this.storage.IsCached); 419Debug.Assert(brctxt != BranchingContext.None);
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (3)
222Debug.Assert(Enum.IsDefined(typeof(OptimizerPatternName), pattern)); 223Debug.Assert((int) pattern < 32); 232Debug.Assert(Enum.IsDefined(typeof(OptimizerPatternName), pattern));
System\Xml\Xsl\IlGen\StaticDataManager.cs (2)
119Debug.Assert(ndNmspDecl != null); 120Debug.Assert(ndNmspDecl.Left is QilLiteral && ndNmspDecl.Right is QilLiteral);
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (12)
178Debug.Assert(value); 199Debug.Assert(value); 220Debug.Assert(value); 402Debug.Assert(ndContent != null); 444case QilNodeType.NamespaceDecl: Debug.Assert(ndContent == null); break; 445case QilNodeType.TextCtor: Debug.Assert(ndContent == null); break; 446case QilNodeType.RawTextCtor: Debug.Assert(ndContent == null); break; 450case QilNodeType.XsltCopyOf: Debug.Assert(ndContent == null); break; 654Debug.Assert(!typ.IsSingleton); 688Debug.Assert(!typ.IsSingleton); 733Debug.Assert(ndElem.NodeType == QilNodeType.ElementCtor); 964Debug.Assert(nd.NodeType == QilNodeType.NamespaceDecl);
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
109Debug.Assert(!(useLRE && emitSymbols));
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
4205Debug.Assert(left.NodeType == right.NodeType);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (48)
85Debug.Assert(iter.NodeType == QilNodeType.Let || iter.NodeType == QilNodeType.Parameter); 208Debug.Assert(iter.NodeType == QilNodeType.Parameter); 706Debug.Assert(this.iterCurr.CurrentBranchingContext == BranchingContext.None); 787Debug.Assert(this.iterCurr.CurrentBranchingContext == BranchingContext.None); 846Debug.Assert(info.ConstructMethod == XmlILConstructMethod.Iterator); 849Debug.Assert(ndCond.Left.XmlType.TypeCode == XmlTypeCode.Boolean); 883Debug.Assert(!ndCond.Center.XmlType.IsSingleton || !ndCond.Right.XmlType.IsSingleton); 917Debug.Assert(itemStorageType == typeof(bool)); 940Debug.Assert(XmlILConstructInfo.Read(ndChoice).PushToWriterFirst); 1508Debug.Assert(ndParsedTagName.Right.XmlType.IsSingleton); 1954Debug.Assert(ndIter != null); 1965Debug.Assert(ndIter.NodeType == QilNodeType.Let || ndIter.NodeType == QilNodeType.Parameter); 1966Debug.Assert(!patt.MatchesPattern(OptimizerPatternName.IsPositional)); 1982Debug.Assert(ndFor.XmlType.IsSingleton); 2039Debug.Assert(!ndLet.XmlType.IsSingleton); 2068Debug.Assert(ndIter != null); 2081Debug.Assert(ndIter.NodeType == QilNodeType.For); 2084Debug.Assert(locPos != null); 2097Debug.Assert(ndSort.Variable.NodeType == QilNodeType.For); 2118Debug.Assert(!this.iterNested.Storage.IsCached); 2367Debug.Assert(!XmlILConstructInfo.Read(ndInvoke).PushToWriterFirst || useWriter); 2915Debug.Assert(false); 3137Debug.Assert(this.iterCurr.CurrentBranchingContext == BranchingContext.None); 3312Debug.Assert(XmlILConstructInfo.Read(ndInvoke).ConstructMethod != XmlILConstructMethod.Writer); 3474Debug.Assert(XmlILConstructInfo.Read(ndCopy).PushToWriterFirst); 3480Debug.Assert(ndCopy.Left.XmlType.IsNode); 3492Debug.Assert(ndCopy.Left.XmlType.IsNode); 3699Debug.Assert(ndDod.NodeType == QilNodeType.DocOrderDistinct && ndLoop != null); 3828Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, nodeType, ValidateNames.Flags.AllExceptPrefixMapping)); 3895Debug.Assert(relOp == QilNodeType.Eq || relOp == QilNodeType.Ne); 3932Debug.Assert(relOp == QilNodeType.Eq || relOp == QilNodeType.Ne); 3954Debug.Assert(ndSecond.NodeType == QilNodeType.NameOf); 3992default: Debug.Assert(false); opcode = OpCodes.Nop; break; 4004default: Debug.Assert(false); opcode = OpCodes.Nop; break; 4019default: Debug.Assert(false); opcode = OpCodes.Nop; break; 4026Debug.Assert(this.iterCurr.CurrentBranchingContext == BranchingContext.None); 4036default: Debug.Assert(false); opcode = OpCodes.Nop; break; 4056Debug.Assert(relOp == QilNodeType.Eq || relOp == QilNodeType.Ne); 4075Debug.Assert(this.iterCurr.CurrentBranchingContext == BranchingContext.None); 4242Debug.Assert(xmlTypes == XmlNodeKindFlags.PI); 4271Debug.Assert(xmlTypes == XmlNodeKindFlags.Element); 4277Debug.Assert(!isXmlTypeUnion || (xmlTypes & XmlNodeKindFlags.Content) == XmlNodeKindFlags.Content); 4406Debug.Assert(!XmlILConstructInfo.Read(nd).PushToWriterLast); 4419Debug.Assert(!XmlILConstructInfo.Read(nd).PushToWriterLast); 4436Debug.Assert(!XmlILConstructInfo.Read(nd).PushToWriterLast); 4445Debug.Assert(!XmlILConstructInfo.Read(nd).PushToWriterLast); 4454Debug.Assert(nd.XmlType.IsSingleton && !XmlILConstructInfo.Read(nd).PushToWriterLast); 4467Debug.Assert(!XmlILConstructInfo.Read(nd).PushToWriterLast);
System\Xml\Xsl\QIL\QilPatternFactory.cs (5)
28Debug.Assert(f != null); 533Debug.Assert(args.NodeType == QilNodeType.FormalParameterList); 537Debug.Assert(args.NodeType == QilNodeType.FormalParameterList); 542Debug.Assert(args.NodeType == QilNodeType.ActualParameterList); 543Debug.Assert(func.Arguments.Count == args.Count);
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
42Debug.Assert(node != null);
System\Xml\Xsl\QIL\SubstitutionList.cs (1)
60Debug.Assert(s.Count % 2 == 0);
System\Xml\Xsl\QueryReaderSettings.cs (1)
28Debug.Assert(xmlNameTable != null);
System\Xml\Xsl\Runtime\ContentIterators.cs (2)
107Debug.Assert(nodeType != XPathNodeType.Attribute && nodeType != XPathNodeType.Namespace); 399Debug.Assert(this.state == IteratorState.HaveCurrentHaveNext);
System\Xml\Xsl\Runtime\DecimalFormatter.cs (3)
44Debug.Assert(formatPicture != null && decimalFormat != null); 225Debug.Assert(i+1 < result.Length); 227Debug.Assert('0' <= ch && ch <= '9' || ch == EscChar);
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (1)
41Debug.Assert(GetDocumentIndex(navThis) != GetDocumentIndex(navThat));
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
22Debug.Assert(namespaceUri != null && ebType != null);
System\Xml\Xsl\Runtime\NumberFormatter.cs (3)
80Debug.Assert(1 <= val && val <= MaxAlphabeticValue); 81Debug.Assert(Math.Pow(totalChars, MaxAlphabeticLength) >= MaxAlphabeticValue); 104Debug.Assert(1 <= val && val <= MaxRomanValue);
System\Xml\Xsl\Runtime\StringConcat.cs (1)
53Debug.Assert(value != null);
System\Xml\Xsl\Runtime\TreeIterators.cs (3)
453Debug.Assert(this.state == IteratorState.HaveCurrentHaveNext || this.state == IteratorState.HaveCurrentNoNext); 476Debug.Assert(this.state == IteratorState.HaveCurrentHaveNext || this.state == IteratorState.HaveCurrentNoNext); 757Debug.Assert(this.state == IteratorState.HaveCurrentHaveNext || this.state == IteratorState.HaveCurrentNoNext);
System\Xml\Xsl\Runtime\WhitespaceRuleLookup.cs (7)
38Debug.Assert(rules != null); 82Debug.Assert(this.nameTable != null && this.ruleTemp != null); 83Debug.Assert(localName != null && (object) this.nameTable.Get(localName) == (object) localName); 84Debug.Assert(namespaceName != null && (object) this.nameTable.Get(namespaceName) == (object) namespaceName); 153Debug.Assert(obj is InternalWhitespaceRule); 156Debug.Assert(LocalName != null && that.LocalName != null); 157Debug.Assert(NamespaceName != null && that.NamespaceName != null);
System\Xml\Xsl\Runtime\WhitespaceRuleReader.cs (1)
48Debug.Assert(wsRules != null);
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (6)
85Debug.Assert(localName != null && localName.Length != 0 && prefix != null && ns != null); 93Debug.Assert(this.numEntries != 0); 136Debug.Assert(text != null); 137Debug.Assert(this.arrAttrs != null && this.numEntries != 0); 148Debug.Assert(this.arrAttrs != null && this.numEntries != 0); 327Debug.Assert(this.numEntries == this.arrAttrs.Length);
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
95Debug.Assert(((int)value & Mask) == 0);
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (2)
197Debug.Assert(methMatch.ContainsGenericParameters == false); 274Debug.Assert(that != null);
System\Xml\Xsl\Runtime\XmlNavigatorFilter.cs (2)
148Debug.Assert(TypeFilters[(int) nodeType] != null); 156Debug.Assert(nodeType != XPathNodeType.Attribute && nodeType != XPathNodeType.Namespace);
System\Xml\Xsl\Runtime\XmlNavigatorStack.cs (2)
53Debug.Assert(!IsEmpty); 61Debug.Assert(!IsEmpty);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (14)
217Debug.Assert(ValidateNames.ValidateName(prefix, localName, ns, XPathNodeType.Attribute, ValidateNames.Flags.All)); 492Debug.Assert(prefix != null && ns != null); 496Debug.Assert(prefix.Length == 0 || ns.Length != 0); 636Debug.Assert(prefix != null && ns != null); 944Debug.Assert(navigator != null); 1080Debug.Assert(false); 1092Debug.Assert(navigator.NodeType == XPathNodeType.Element); 1139Debug.Assert(rootType == XPathNodeType.Element || rootType == XPathNodeType.Comment || rootType == XPathNodeType.ProcessingInstruction); 1168Debug.Assert(rootType == XPathNodeType.Attribute || rootType == XPathNodeType.Namespace); 1196Debug.Assert(this.nsmgr != null); 1225Debug.Assert(prefix.Length != 0 && ns.Length != 0); 1268Debug.Assert(prefix != null && ns != null && ns.Length != 0); 1367Debug.Assert(ValidateNames.ParseNCName(name.Name, 0) == name.Name.Length); 1413Debug.Assert(this.stkNames != null);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (9)
81Debug.Assert(data != null); 322Debug.Assert(this.atomizedNames != null); 330Debug.Assert(this.filters != null); 379Debug.Assert(this.prefixMappingsList != null); 450Debug.Assert(this.types != null); 781Debug.Assert(this.collations != null); 839Debug.Assert(context != null); 871Debug.Assert(context != null); 1014Debug.Assert(node.NodeType == XPathNodeType.Namespace);
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (1)
41Debug.Assert(defaultWriterSettings != null && staticData != null);
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (1)
294Debug.Assert(false);
System\Xml\Xsl\Runtime\XmlSortKey.cs (6)
64Debug.Assert(this.nextKey != null && that.nextKey != null); 68Debug.Assert(this.priority != that.priority); 78Debug.Assert(that != null && !(this is XmlEmptySortKey)); 113Debug.Assert(obj is XmlSortKey); 306Debug.Assert(this.dblVal == Double.NegativeInfinity || this.dblVal == Double.PositiveInfinity); 311Debug.Assert(that.dblVal == Double.NegativeInfinity || that.dblVal == Double.PositiveInfinity);
System\Xml\Xsl\Runtime\XslNumber.cs (5)
33Debug.Assert(startIdx >= 0 && tokLen > 0); 48Debug.Assert(startIdx >= 0 && tokLen > 0); 115Debug.Assert(groupingSeparator.Length <= 1); 235Debug.Assert(1 <= dblVal && dblVal < double.PositiveInfinity); 275Debug.Assert(groupSeparator.Length == 1);
System\Xml\Xsl\Runtime\XsltFunctions.cs (6)
66Debug.Assert(value.Length < startIndex || Double.IsNaN(startIndex)); 84Debug.Assert(0 <= startIndex && startIndex <= endIndex && endIndex <= value.Length); 87Debug.Assert(endIndex <= startIndex || Double.IsNaN(endIndex)); 242Debug.Assert(item is XPathNavigator); 287Debug.Assert(stringValue != null); 502Debug.Assert(lang != null);
System\Xml\Xsl\Runtime\XsltLibrary.cs (7)
293Debug.Assert(op == ComparisonOperator.Eq || op == ComparisonOperator.Ne); 297Debug.Assert(compType == TypeCode.Boolean); 304Debug.Assert(compType == TypeCode.Boolean || compType == TypeCode.Double || compType == TypeCode.String); 334Debug.Assert(op == ComparisonOperator.Eq || op == ComparisonOperator.Ne); 373Debug.Assert(ComparisonOperator.Lt <= op && op <= ComparisonOperator.Ge); 403Debug.Assert(XPathNodeType.SignificantWhitespace == XPathNodeType.Text + 1); 404Debug.Assert(XPathNodeType.Whitespace == XPathNodeType.Text + 2);
System\Xml\Xsl\SourceLineInfo.cs (3)
73Debug.Assert(lineInfo.Start.Line == lineInfo.End.Line); 74Debug.Assert(lineInfo.Start.Pos == 0 && lineInfo.End.Pos == 0); 84Debug.Assert(uriString != null);
System\Xml\Xsl\XmlILCommand.cs (2)
29Debug.Assert(delExec != null && staticData != null); 206Debug.Assert(results != null);
System\Xml\Xsl\XmlIlGenerator.cs (2)
133Debug.Assert(this.qil.Root != null); 200Debug.Assert(ndParam.NodeType == QilNodeType.Parameter);
System\Xml\Xsl\XmlQueryCardinality.cs (1)
25Debug.Assert(0x00 <= value && value <= 0x07);
System\Xml\Xsl\XmlQueryType.cs (1)
504Debug.Assert(IsAtomicValue && baseType.IsAtomicValue);
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
63Debug.Assert(schemaType.DerivedBy == XmlSchemaDerivationMethod.Union); 451Debug.Assert(!isNillable); 493Debug.Assert(!IsAtomicValue || schemaType.Datatype.Variety == XmlSchemaDatatypeVariety.Atomic);
System\Xml\Xsl\XPath\XPathBuilder.cs (16)
106Debug.Assert(op != XPathOperator.Unknown); 121Debug.Assert(op == XPathOperator.Or || op == XPathOperator.And); 131Debug.Assert(compType == XmlTypeCode.Boolean || compType == XmlTypeCode.Double || compType == XmlTypeCode.String); 151Debug.Assert(val.XmlType.IsSingleton); 188Debug.Assert(op == XPathOperator.Eq || op == XPathOperator.Ne); 211Debug.Assert(op == XPathOperator.Lt || op == XPathOperator.Le || op == XPathOperator.Gt || op == XPathOperator.Ge); 232Debug.Assert(op == XPathOperator.UnaryMinus); 233Debug.Assert(right == null); 253Debug.Assert(op == XPathOperator.Union); 747Debug.Assert(current != null); 759Debug.Assert(environment != null); 781Debug.Assert(unknown.NodeType == QilNodeType.Unknown); 807Debug.Assert(this.last != null); 812Debug.Assert(unknown != null); 860Debug.Assert(maxArgs == 0 || maxArgs == Infinity || argTypes != null && argTypes.Length == maxArgs); 886Debug.Assert(numArgs > maxArgs);
System\Xml\Xsl\XPath\XPathParser.cs (4)
29Debug.Assert(this.scanner == null && this.builder == null); 30Debug.Assert(scanner != null && builder != null); 229Debug.Assert(scanner.Name == "processing-instruction"); 446Debug.Assert(IsPrimaryExpr());
System\Xml\Xsl\XPath\XPathQilFactory.cs (2)
123Debug.Assert(op == QilNodeType.Eq || op == QilNodeType.Ne); 138Debug.Assert(op == QilNodeType.Lt || op == QilNodeType.Le || op == QilNodeType.Gt || op == QilNodeType.Ge);
System\Xml\Xsl\XPath\XPathScanner.cs (17)
80Debug.Assert(xpathExpr != null); 94Debug.Assert(0 <= index && index <= xpathExpr.Length); 100Debug.Assert(-1 <= curIndex && curIndex < xpathExpr.Length); 105Debug.Assert(curIndex == xpathExpr.Length); 124Debug.Assert(kind == LexKind.Name); 125Debug.Assert(name != null); 132Debug.Assert(kind == LexKind.Name); 133Debug.Assert(prefix != null); 150Debug.Assert(kind == LexKind.String); 151Debug.Assert(stringValue != null); 163Debug.Assert(kind == LexKind.Name); 170Debug.Assert(kind == LexKind.Axis); 171Debug.Assert(axis != XPathAxis.Unknown); 419Debug.Assert(IsAsciiDigit(curChar) || curChar == '.'); 484Debug.Assert(LexKind.FirstStringable <= t); 496Debug.Assert(LexKind.FirstStringable <= t); 499Debug.Assert("()[].@,*/$}".IndexOf((char)t) >= 0);
System\Xml\Xsl\XPathConvert.cs (118)
143Debug.Assert(0 != (u & 0x80000000)); 198Debug.Assert(dec.MantissaSize > 0); 209Debug.Assert(dec[ib] > 0 && dec[ib] <= 9); 219Debug.Assert(dec[ib] >= 0 && dec[ib] <= 9); 246Debug.Assert(exponent > 0 && exponent < 512); 260Debug.Assert(digit <= 9); 261Debug.Assert(0 != (this.u2 & 0x80000000)); 265Debug.Assert(this.exp >= 4); 303Debug.Assert(1 == rgu[4]); 326Debug.Assert(this.IsZero); 382Debug.Assert(0 != (this.u2 & 0x80000000)); 383Debug.Assert(0 != (numOp.u2 & 0x80000000)); 396Debug.Assert(uHi < 0xFFFFFFFF); 401Debug.Assert(uHi < 0xFFFFFFFF); 408Debug.Assert(uHi < 0xFFFFFFFF); 415Debug.Assert(uHi < 0xFFFFFFFF); 422Debug.Assert(uHi < 0xFFFFFFFF); 428Debug.Assert(0 != uT); 430Debug.Assert(uHi < 0xFFFFFFFF); 437Debug.Assert(uHi < 0xFFFFFFFF); 444Debug.Assert(uHi < 0xFFFFFFFF); 453Debug.Assert(this.error <= 2 || numOp.error <= 2); 473Debug.Assert(0 != (rgu5 & 0x40000000)); 491Debug.Assert(0 == rgu3); 492Debug.Assert(0 == rgu4); 493Debug.Assert(0 == rgu5); 517Debug.Assert(0 != (bn.u2 & 0x80000000)); 535Debug.Assert(wT >= 12 && wT < 32); 548Debug.Assert(wT > 0 && wT < 32); 578Debug.Assert(this.exp <= 32); 587Debug.Assert(this.error < 0xFFFFFFFF); 591Debug.Assert(0 == this.u2 && 0 == this.u1); 601Debug.Assert(this.error < 0xFFFFFFFF); 634Debug.Assert(!IsSpecial(dbl)); 635Debug.Assert(0 < dbl); 701Debug.Assert(iT >= 0 && iT < 16); 704Debug.Assert(numHH.exp + tenPower.exp > 1); 712Debug.Assert(iT > 0 && iT <= 32); 714Debug.Assert(numHH.exp + tenPower.exp > 1); 721Debug.Assert(iT >= 0 && iT < 16); 724Debug.Assert(numHH.exp + tenPower.exp <= 32); 732Debug.Assert(iT > 0 && iT <= 32); 734Debug.Assert(numHH.exp + tenPower.exp <= 32); 741Debug.Assert(numHH.exp > 0 && numHH.exp < 32); 754Debug.Assert(uLL <= uLH && uLH <= uHL && uHL <= uHH); 776Debug.Assert(uHH >= uScale && uHH / uScale < 10); 779Debug.Assert(uLL <= uHH); 789Debug.Assert(0 != uHH || !numHH.IsZero); 818Debug.Assert(0 <= bLL && bLL < bHH && bHH <= 9); 855Debug.Assert(dblInt == Math.Floor(dblInt) && 1 <= dblInt && dblInt <= 9007199254740991.0d); 870Debug.Assert(iT >= 0 && iT <= 15); 871Debug.Assert(dblInt >= C10toN[iT] && dblInt < C10toN[iT + 1]); 875Debug.Assert(iT >= 0); 878Debug.Assert(dblInt == Math.Floor(dblInt) && 0 <= dblInt && dblInt < C10toN[iT]); 938Debug.Assert(!IsSpecial(dbl)); 939Debug.Assert(0 < dbl); 952Debug.Assert(0 == (dblHi & 0x7FF00000)); 961Debug.Assert(0 != (DblHi(dblT) & 0x7FF00000)); 998Debug.Assert(1 <= dblT && dblT < 2); 1035Debug.Assert(0 == c5Den); 1050Debug.Assert(cu <= 2); 1066Debug.Assert(c2Num > 0 && c2Den > 0); 1072Debug.Assert(0 == (biDen[biDen.Length - 1] & 0xF0000000)); 1073Debug.Assert(0 != (biDen[biDen.Length - 1] & 0x08000000)); 1521Debug.Assert(0 <= idx && idx < length); 1528Debug.Assert(capacity >= InitCapacity); 1529Debug.Assert(length >= 0 && length <= capacity); 1535Debug.Assert(0 == length || 0 != digits[length - 1]); 1561Debug.Assert(cu >= 0); 1579Debug.Assert(2 <= capacity); 1595Debug.Assert((object)this != (object)biSrc); 1608Debug.Assert(dec.MantissaSize >= 0); 1620Debug.Assert(dec[ib] >= 0 && dec[ib] <= 9); 1629Debug.Assert(1 < uMul); 1638Debug.Assert(0 != uMul); 1658Debug.Assert(c5 >= 0); 1685Debug.Assert(cbit >= 0); 1740Debug.Assert(cu >= 0); 1756Debug.Assert(cbit >= 0); 1805Debug.Assert(idx >= 0 && idx < length); 1806Debug.Assert(digits[idx] != bi.digits[idx]); 1814Debug.Assert((object)this != (object)bi); 1857Debug.Assert((object)this != (object)bi); 1868Debug.Assert(0 == wCarry || 1 == wCarry); 1909Debug.Assert((object)this != (object)bi); 1917Debug.Assert(length <= cu); 1924Debug.Assert(uQuo >= 0 && uQuo <= 9); 1937Debug.Assert(0 == wCarry || 1 == wCarry); 1948Debug.Assert(1 == wCarry); 1949Debug.Assert(idx == cu); 1967Debug.Assert(CompareTo(bi) < 0); 2064Debug.Assert(value <= MaxDigits); 2071Debug.Assert(0 <= ib && ib < mantissaSize); 2184Debug.Assert(0 != mantissaSize && 0 != dec[0] && 0 != dec[mantissaSize - 1]); 2194Debug.Assert(dec[ib] >= 0 && dec[ib] <= 9); 2202Debug.Assert(dec[ib] >= 0 && dec[ib] <= 9); 2295Debug.Assert(Double.IsNaN(dblLowPrec) || dblLowPrec == dbl); 2393Debug.Assert(c2Dbl < 32 || 0 != biDec[0]); 2407Debug.Assert(0 == c2Dbl || 0 == c2Dec); 2408Debug.Assert(0 == c5Dbl || 0 == c5Dec); 2541Debug.Assert(Double.IsInfinity(dbl)); 2547Debug.Assert(0 != dec.MantissaSize); 2580Debug.Assert(dec[ib] >= 0 && dec[ib] <= 9); 2593Debug.Assert(0 != cntDigits); 2594Debug.Assert(sizeFract == cntDigits || sizeFract > cntDigits && pch[-1] == '0'); 2603Debug.Assert(sizeFract == cntDigits); 2606Debug.Assert(dec[ib] >= 0 && dec[ib] <= 9); 2612Debug.Assert(0 == sizeInt && 0 == cntDigits); 2703Debug.Assert(IsAsciiDigit(ch)); 2716Debug.Assert(ch == '.'); 2747Debug.Assert(pchFirstDig != null); 2754Debug.Assert(pchFirstDig != pch); 2758Debug.Assert(IsAsciiDigit(*pchFirstDig)); 2765Debug.Assert(expAdj < 0); 2777Debug.Assert(IsAsciiDigit(*pchFirstDig) && *pchFirstDig != '0'); 2783Debug.Assert(IsAsciiDigit(*pch) && *pch != '0'); 2788Debug.Assert(pch - pchFirstDig == numDig || pch - pchFirstDig == numDig + 1); 2792Debug.Assert(numDig > 0 && numDig <= FloatingDecimal.MaxDigits);
System\Xml\Xsl\XslException.cs (1)
153Debug.Assert(lineInfo == null || lineInfo.Uri != null);
System\Xml\Xsl\Xslt\Compiler.cs (9)
92Debug.Assert(stylesheet != null); 162Debug.Assert(var.NodeType == XslNodeType.Variable || var.NodeType == XslNodeType.Param); 190Debug.Assert(qname != null); 204Debug.Assert(nameTest != null); 218Debug.Assert(name != null); 254Debug.Assert(value <= ErrorCount); 273Debug.Assert((savedErrorCount = -1) < 0); 276Debug.Assert((savedErrorCount = -1) < 0); 405Debug.Assert(characters.Length == 8);
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (6)
170Debug.Assert(varName.LocalName != null && varName.NamespaceUri != null); 177Debug.Assert(prefix != null); 210Debug.Assert(nsUri != null); 216Debug.Assert(recPrefix == null); 252Debug.Assert(localName != null); 347Debug.Assert(scope.records[currentRecord].IsNamespace);
System\Xml\Xsl\Xslt\Focus.cs (1)
47Debug.Assert(focusType != SingletonFocusType.Iterator);
System\Xml\Xsl\Xslt\InvokeGenerator.cs (2)
95Debug.Assert(argName != null); 134Debug.Assert(invokeArgs[prevArg] is QilIterator);
System\Xml\Xsl\Xslt\KeyMatchBuilder.cs (4)
42Debug.Assert(base.numFixupLast == 0); 43Debug.Assert(base.numFixupPosition == 0); 68Debug.Assert(node != null); 69Debug.Assert(fixup != null);
System\Xml\Xsl\Xslt\MatcherBuilder.cs (6)
217Debug.Assert(!double.IsNaN(x.priority)); 218Debug.Assert(!double.IsNaN(y.priority)); 356Debug.Assert(patternList.Count > 0); 376Debug.Assert((int)(QilLiteral)matcher == NoMatch); 399Debug.Assert(pattern.Priority > lastPriority); 462Debug.Assert(priority == branches.Length - 1);
System\Xml\Xsl\Xslt\OutputScopeManager.cs (3)
53Debug.Assert(prefix != null); 54Debug.Assert(uri != null); 125Debug.Assert(prefix != null);
System\Xml\Xsl\Xslt\QilGenerator.cs (36)
129Debug.Assert(compiler != null); 208Debug.Assert(IsDebug && curLoop.IsFocusSet); 380Debug.Assert(var.XmlType.IsSubtypeOf(T.NamespaceS)); 381Debug.Assert(var.Binding is QilList); 388Debug.Assert(nsList[i].NodeType == QilNodeType.NamespaceDecl); 389Debug.Assert(varList[i].NodeType == QilNodeType.NamespaceDecl); 416Debug.Assert(tmpl != null && tmpl.Function == null); 417Debug.Assert(tmpl.NodeType == XslNodeType.AttributeSet || tmpl.NodeType == XslNodeType.Template); 441Debug.Assert(tmpl.NodeType == XslNodeType.Template); 556Debug.Assert(tmpl != null && tmpl.Function != null && tmpl.Function.Definition.NodeType == QilNodeType.Unknown); 603Debug.Assert(instructions != null); 838Debug.Assert(pos < source.Length); 866Debug.Assert(i == source.Length || source[i] == '{'); 909Debug.Assert(avt != null); 950Debug.Assert(curLoop.IsFocusSet); 999Debug.Assert(withParam.NodeType == XslNodeType.WithParam); 1033Debug.Assert(node.NodeType == XslNodeType.ApplyImports); 1196Debug.Assert(when.NodeType == XslNodeType.If || when.NodeType == XslNodeType.Otherwise); 1232Debug.Assert(node.NodeType == XslNodeType.Variable); 1240Debug.Assert(node.NodeType == XslNodeType.Variable || node.NodeType == XslNodeType.Param || node.NodeType == XslNodeType.WithParam); 1266Debug.Assert(varValue.SourceLine == null); 1271Debug.Assert(withParam.NodeType == XslNodeType.WithParam); 1437Debug.Assert(result.XmlType == T.StringX); 1443Debug.Assert(sort.NodeType == XslNodeType.Sort); 1777Debug.Assert(num.Level == NumberLevel.Any); 1796Debug.Assert(sheet.TemplateMatches.Count == 0); 1866Debug.Assert(varPar.NodeType == XslNodeType.Variable || varPar.NodeType == XslNodeType.Param); 1895Debug.Assert(varPar.NodeType == XslNodeType.Variable || varPar.NodeType == XslNodeType.Param); 1966Debug.Assert(expr != null); 1990Debug.Assert(pttrn != null); 2011Debug.Assert(pttrn != null); 2099Debug.Assert( 2338Debug.Assert(n.SourceLine == null); 2357Debug.Assert(nsVar.XmlType.IsSubtypeOf(T.NamespaceS)); 2394Debug.Assert(let.NodeType == QilNodeType.Let); 2399Debug.Assert(0 <= varScope && varScope <= vars.Count);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (6)
73Debug.Assert(ns != null); 128Debug.Assert(ns != null); 343Debug.Assert(name.XmlType == T.StringX && key.XmlType == T.StringX); 371Debug.Assert(defList != null && defList.Count > 0); 385Debug.Assert(defList != null && defList.Count > 0); 553Debug.Assert(propValue.ValueType == XsltConvert.DoubleType);
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (3)
28Debug.Assert(! inUse); 57Debug.Assert(value.XmlType.TypeCode == XmlTypeCode.String); 68Debug.Assert(inUse); // If we want allow multiple calls to ToQil() this logic should be changed
System\Xml\Xsl\Xslt\Scripts.cs (1)
117Debug.Assert(compilerInfo != null);
System\Xml\Xsl\Xslt\Stylesheet.cs (2)
80Debug.Assert(var.NodeType == XslNodeType.Variable || var.NodeType == XslNodeType.Param); 95Debug.Assert(template.ImportPrecedence == 0);
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (17)
29Debug.Assert(environment != null); 51Debug.Assert(filter.Variable.XmlType.IsSubtypeOf(T.NodeNotRtf)); 52Debug.Assert(filter.Variable.Binding.NodeType == QilNodeType.Unknown); // fixupNode 53Debug.Assert(filter.Body.XmlType.IsSubtypeOf(T.Boolean)); 77Debug.Assert(op == XPathOperator.Union); 78Debug.Assert(left != null); 79Debug.Assert(right != null); 114Debug.Assert( 173Debug.Assert(left != null); 174Debug.Assert(right != null); 177Debug.Assert(nop.Child == this.fixupNode); 182Debug.Assert(left.NodeType == QilNodeType.Filter); 189Debug.Assert(nop.Child != null); 193Debug.Assert(right.NodeType == QilNodeType.Filter); 261Debug.Assert(prefix.Length == 0); 316Debug.Assert(parent.NodeType == QilNodeType.Filter); 381Debug.Assert(current != null);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (7)
29Debug.Assert(this.scanner == null && this.ptrnBuilder == null); 30Debug.Assert(scanner != null && ptrnBuilder != null); 115Debug.Assert(scanner.CanBeFunction); 116Debug.Assert(scanner.Prefix.Length == 0); 117Debug.Assert(scanner.Name == "id" || scanner.Name == "key"); 232Debug.Assert(scanner.Kind == LexKind.LBracket); 235Debug.Assert(scanner.Kind == LexKind.RBracket);
System\Xml\Xsl\Xslt\XslAst.cs (5)
69Debug.Assert(nsUri != null || Prefix == null); 114Debug.Assert(node != null); 196Debug.Assert(node != null && node.NodeType == XslNodeType.List); 273Debug.Assert(list != null && list.Count > 0); 287Debug.Assert(name != null);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (8)
247Debug.Assert(tmpl.Match != null); 422Debug.Assert(target != null); 438Debug.Assert(instr.NodeType == XslNodeType.WithParam); 916Debug.Assert(op != XPathOperator.Unknown); 1249Debug.Assert(split > 0); 1277Debug.Assert(scoperecord.IsNamespace || scoperecord.ncName == null); 1278Debug.Assert(!compiler.IsPhantomNamespace(scoperecord.nsUri)); 1316Debug.Assert(parent.Content.Count == split + 1);
System\Xml\Xsl\Xslt\XsltInput.cs (21)
47Debug.Assert(reader != null); 48Debug.Assert(atoms != null); 181Debug.Assert( 219Debug.Assert(reader.NodeType == XmlNodeType.EntityReference); 221Debug.Assert(local[0] == '#' || local == "lt" || local == "gt" || local == "quot" || local == "apos"); 232Debug.Assert(reader.NodeType == XmlNodeType.Text || reader.NodeType == XmlNodeType.Whitespace || reader.NodeType == XmlNodeType.SignificantWhitespace); 235Debug.Assert(reader.NodeType == XmlNodeType.EndEntity); 295Debug.Assert(reader.NodeType != XmlNodeType.EntityReference); 386Debug.Assert(nodeType == XmlNodeType.Text || nodeType == XmlNodeType.Whitespace || nodeType == XmlNodeType.SignificantWhitespace); 428Debug.Assert(reader.NodeType == XmlNodeType.Element); 563Debug.Assert(IsKeyword(atoms.Version)); 618Debug.Assert(NodeType == XmlNodeType.Element); 619Debug.Assert(attributes.Length <= xsltAttributeNumber.Length); 722Debug.Assert(NodeType == XmlNodeType.Element); 785Debug.Assert(NodeType == XmlNodeType.Element && IsXsltNamespace()); 807Debug.Assert(extensions ? IsKeyword(atoms.ExtensionElementPrefixes) : IsKeyword(atoms.ExcludeResultPrefixes)); 845Debug.Assert(IsKeyword(atoms.XPathDefaultNamespace)); 854Debug.Assert(IsKeyword(atoms.DefaultCollation)); 931Debug.Assert(prefix != null); 1001Debug.Assert(input.NodeType == XmlNodeType.EndElement); 1004Debug.Assert(input.NodeType == XmlNodeType.Element || input.NodeType == XmlNodeType.Attribute);
System\Xml\Xsl\Xslt\XsltLoader.cs (31)
50Debug.Assert(compiler != null); 87Debug.Assert(compiler.Root != null); 258Debug.Assert(input.NodeType == XmlNodeType.Element); 276Debug.Assert(!input.IsXsltNamespace()); 277Debug.Assert(curTemplate == null); 305Debug.Assert(input.IsXsltNamespace() && (input.IsKeyword(atoms.Stylesheet) || input.IsKeyword(atoms.Transform))); 380Debug.Assert(input.NodeType == XmlNodeType.Text); 677Debug.Assert(attSet != null); 687Debug.Assert(attSet.CycleCheck == CycleCheck.Processing); 688Debug.Assert(attSet.Content[0].SourceLine != null); 787Debug.Assert(NumCharAttrs == DefaultValues.Length); 817Debug.Assert(name.Equals(format.Name)); 913Debug.Assert(input.NodeType == XmlNodeType.Text); 923Debug.Assert(curTemplate == null); 924Debug.Assert(input.CanHaveApplyImports == false); 940Debug.Assert(curTemplate == null); 1155Debug.Assert( 1208Debug.Assert(href != null); 1341Debug.Assert(input.NodeType == XmlNodeType.Text); 1378Debug.Assert(input.NodeType == XmlNodeType.Text); 1563Debug.Assert(input.NodeType == XmlNodeType.Text); 1758Debug.Assert(nodeType != XslNodeType.Unknown); 1865Debug.Assert(input.NodeType == XmlNodeType.Element); 2310Debug.Assert(input.NodeType == XmlNodeType.Element); 2345Debug.Assert(content != null && withParam != null); 2346Debug.Assert(withParam.NodeType == XslNodeType.WithParam); 2356Debug.Assert(content != null); 2363Debug.Assert(content != null); 2776Debug.Assert(node != null); 2782Debug.Assert(node != null); 2790Debug.Assert(to != null);
System\Xml\Xsl\Xslt\XsltQilFactory.cs (2)
136Debug.Assert(format != null); 148Debug.Assert(format != null);
System\Xml\Xsl\XsltOld\ActionFrame.cs (7)
89Debug.Assert(this.variables != null && index < this.variables.Length); 94Debug.Assert(this.variables != null && index < this.variables.Length); 119Debug.Assert(nodeSet != null); 124Debug.Assert(nodeSet != null); 129Debug.Assert(0 < sortarray.Count); 165Debug.Assert(parent != null); 196Debug.Assert(this.action is ContainerAction);
System\Xml\Xsl\XsltOld\ApplyImportsAction.cs (1)
29Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\ApplyTemplatesAction.cs (7)
34Debug.Assert(s_BuiltInRule != null); 45Debug.Assert(mode != null); 61Debug.Assert(this.mode == null); 123Debug.Assert(processor != null && frame != null); 153Debug.Assert(frame.State == ProcessNextNode); 154Debug.Assert(frame.NewNodeSet != null); 166Debug.Assert(frame.State == PositionAdvanced);
System\Xml\Xsl\XsltOld\AttributeAction.cs (1)
102Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\AttributeSetAction.cs (1)
33Debug.Assert(this.name == null);
System\Xml\Xsl\XsltOld\Avt.cs (6)
22Debug.Assert(constAvt != null); 27Debug.Assert(eventList != null); 40Debug.Assert(constAvt != null); 44Debug.Assert(processor != null && frame != null); 57Debug.Assert(compiler != null); 58Debug.Assert(avtText != null);
System\Xml\Xsl\XsltOld\AvtEvent.cs (2)
20Debug.Assert(key != Compiler.InvalidQueryKey); 25Debug.Assert(key != Compiler.InvalidQueryKey);
System\Xml\Xsl\XsltOld\BeginEvent.cs (2)
28Debug.Assert(input != null); 29Debug.Assert(input.NodeType != XPathNodeType.Namespace);
System\Xml\Xsl\XsltOld\CallTemplateAction.cs (2)
30Debug.Assert(this.name == null); 76Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\CommentAction.cs (1)
26Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\Compiler.cs (33)
106Debug.Assert(this.atoms != null); 125Debug.Assert(Document != null); 130Debug.Assert(Document != null); 135Debug.Assert(Document != null); 146Debug.Assert(this.rootAction == null); 148Debug.Assert(this.currentTemplate == null); 168Debug.Assert(input != null); 169Debug.Assert(xmlResolver != null); 171Debug.Assert(this.input == null && this.atoms == null); 182Debug.Assert(this.input != null && this.atoms != null); 211Debug.Assert(this.rootAction != null); 212Debug.Assert(this.stylesheet != null); 213Debug.Assert(this.queryStore != null); 214Debug.Assert(this.input == null && this.atoms == null); 302Debug.Assert(this.rootAction != null); 306Debug.Assert(this.currentTemplate != null); 307Debug.Assert(variable.VarType == VariableType.LocalVariable || variable.VarType == VariableType.LocalParameter || variable.VarType == VariableType.WithParameter); 420Debug.Assert(value != null); 421Debug.Assert((object)value == (object)Input.Value); // this is always true. Why we passing value to this function. 508Debug.Assert(this.xmlResolver != null); 519Debug.Assert(this.xmlResolver != null); 539Debug.Assert(newInput != null); 551Debug.Assert(this.input != null); 552Debug.Assert(this.input.Atoms == this.atoms); 580Debug.Assert(this.stylesheets != null); 587Debug.Assert(this.stylesheet == this.stylesheets.Peek()); 598Debug.Assert(this.stylesheet == this.stylesheets.Peek()); 607Debug.Assert(this.stylesheet == this.stylesheets.Peek()); 612Debug.Assert(this.currentTemplate != null); 619Debug.Assert(this.currentTemplate != null); 635Debug.Assert(this.queryStore != null); 926Debug.Assert(start <= avt.Length); 947Debug.Assert(avtText != null);
System\Xml\Xsl\XsltOld\ContainerAction.cs (7)
145Debug.Assert(compiler.Input.NodeType == XPathNodeType.Element); 196Debug.Assert(uri != null); 562Debug.Assert(Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl)); 627Debug.Assert(action != null); 711Debug.Assert((object) this == (object) compiler.RootAction); 794Debug.Assert(processor != null && frame != null); 818Debug.Assert(actionIndex == 0 || this.containedActions != null);
System\Xml\Xsl\XsltOld\CopyAction.cs (1)
54Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\CopyAttributesAction.cs (13)
24Debug.Assert(s_Action != null); 29Debug.Assert(processor != null && frame != null); 43Debug.Assert(frame.State == BeginEvent); 44Debug.Assert(frame.Node.NodeType == XPathNodeType.Attribute); 54Debug.Assert(frame.State == TextEvent); 55Debug.Assert(frame.Node.NodeType == XPathNodeType.Attribute); 65Debug.Assert(frame.State == EndEvent); 66Debug.Assert(frame.Node.NodeType == XPathNodeType.Attribute); 76Debug.Assert(frame.State == Advance); 77Debug.Assert(frame.Node.NodeType == XPathNodeType.Attribute); 94Debug.Assert(node.NodeType == XPathNodeType.Attribute); 99Debug.Assert(node.NodeType == XPathNodeType.Attribute); 104Debug.Assert(node.NodeType == XPathNodeType.Attribute);
System\Xml\Xsl\XsltOld\CopyCodeAction.cs (6)
31Debug.Assert(copyEvents != null); 43Debug.Assert(processor != null && frame != null); 44Debug.Assert(this.copyEvents != null && this.copyEvents.Count > 0); 53Debug.Assert(frame.State == Outputting); 56Debug.Assert(frame.Counter < this.copyEvents.Count); 77Debug.Assert(frame.Counter < this.copyEvents.Count);
System\Xml\Xsl\XsltOld\CopyNamespacesAction.cs (8)
24Debug.Assert(s_Action != null); 29Debug.Assert(processor != null && frame != null); 43Debug.Assert(frame.State == BeginEvent); 44Debug.Assert(frame.Node.NodeType == XPathNodeType.Namespace); 54Debug.Assert(frame.State == EndEvent); 55Debug.Assert(frame.Node.NodeType == XPathNodeType.Namespace); 65Debug.Assert(frame.State == Advance); 66Debug.Assert(frame.Node.NodeType == XPathNodeType.Namespace);
System\Xml\Xsl\XsltOld\CopyNodesetAction.cs (5)
26Debug.Assert(s_Action != null); 31Debug.Assert(processor != null && frame != null); 44Debug.Assert(frame.State == BeginEvent); 54Debug.Assert(frame.State == Contents); 90Debug.Assert(frame.State == EndEvent);
System\Xml\Xsl\XsltOld\CopyOfAction.cs (4)
42Debug.Assert(processor != null && frame != null); 46Debug.Assert(frame.NodeSet != null); 75Debug.Assert(frame.StoredOutput != null); 81Debug.Assert(frame.State == NodeSetCopied);
System\Xml\Xsl\XsltOld\DbgCompiler.cs (4)
62Debug.Assert(this.Debugger != null); 71Debug.Assert(this.Debugger != null); 80Debug.Assert(this.Debugger != null); 553Debug.Assert(compiler.Debugger != null);
System\Xml\Xsl\XsltOld\DocumentScope.cs (4)
28Debug.Assert(prefix != null && prefix.Length > 0); 32Debug.Assert(scope.Uri != null); 41Debug.Assert(prefix != null && prefix.Length > 0); 45Debug.Assert(scope.Uri != null);
System\Xml\Xsl\XsltOld\ElementAction.cs (2)
64Debug.Assert(this.empty == false); 91Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\EndEvent.cs (1)
19Debug.Assert(nodeType != XPathNodeType.Namespace);
System\Xml\Xsl\XsltOld\ForeachAction.cs (4)
51Debug.Assert(processor != null && frame != null); 65Debug.Assert(processor.SortArray.Count != 0); 72Debug.Assert(frame.State == ProcessNextNode); 73Debug.Assert(frame.NewNodeSet != null);
System\Xml\Xsl\XsltOld\IfAction.cs (3)
58Debug.Assert(processor != null && frame != null); 63Debug.Assert(this.testKey != Compiler.InvalidQueryKey); 77Debug.Assert(frame.Container != null);
System\Xml\Xsl\XsltOld\InputScope.cs (1)
85Debug.Assert(variable != null);
System\Xml\Xsl\XsltOld\InputScopeManager.cs (9)
31Debug.Assert(this.scopeStack != null); 32Debug.Assert(this.scopeStack.Parent != null); 68Debug.Assert(prefix != null); 69Debug.Assert(nspace != null); 85Debug.Assert(!string.IsNullOrEmpty(prefix)); 103Debug.Assert(prefix != null); 111Debug.Assert(prefix != null); 120Debug.Assert(nsList != null); 138Debug.Assert(nsList != null);
System\Xml\Xsl\XsltOld\MessageAction.cs (2)
43Debug.Assert(processor != null && frame != null); 54Debug.Assert(recOutput != null);
System\Xml\Xsl\XsltOld\NamespaceEvent.cs (4)
20Debug.Assert(input != null); 21Debug.Assert(input.NodeType == XPathNodeType.Namespace); 41Debug.Assert(res); // Namespace node as any other attribute can't fail because it doesn't signal record change 43Debug.Assert(res);
System\Xml\Xsl\XsltOld\NavigatorInput.cs (2)
179Debug.Assert(navigator.NameTable != null); 201Debug.Assert(_Navigator != null);
System\Xml\Xsl\XsltOld\NavigatorOutput.cs (2)
33Debug.Assert(record != null); 42Debug.Assert(record.AttributeList[attrib] is BuilderInfo);
System\Xml\Xsl\XsltOld\NewInstructionAction.cs (1)
47Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\NumberAction.cs (12)
81Debug.Assert(dblVal >= 1); 234Debug.Assert( 302Debug.Assert(nav.NodeType != XPathNodeType.Attribute && nav.NodeType != XPathNodeType.Namespace); 303Debug.Assert(MatchCountKey(processor, contextNode, nav)); 326Debug.Assert(!(value is int)); 344Debug.Assert(processor != null && frame != null); 348Debug.Assert(frame != null); 349Debug.Assert(frame.NodeSet != null); 388Debug.Assert(frame.StoredOutput != null); 449Debug.Assert(prefix == null || prefix.isSeparator); 466Debug.Assert(thisSeparator.isSeparator); 471Debug.Assert(!thisFormat.isSeparator);
System\Xml\Xsl\XsltOld\OutKeywords.cs (1)
20Debug.Assert(nameTable != null);
System\Xml\Xsl\XsltOld\OutputScope.cs (1)
72Debug.Assert(urn != null);
System\Xml\Xsl\XsltOld\OutputScopeManager.cs (14)
30Debug.Assert(this.elementScopesStack.Peek() != null); // We adding rootElementScope to garantee this 44Debug.Assert(nameTable != null); 45Debug.Assert(atoms != null); 63Debug.Assert(prefix != null); 64Debug.Assert(nspace != null); 73Debug.Assert(name != null); 74Debug.Assert(nspace != null); 75Debug.Assert(prefix != null); 84Debug.Assert(elementScope != null); 91Debug.Assert(elementScope != null); // We adding rootElementScope to garantee this 104Debug.Assert(prefix != null); 119Debug.Assert(this.elementScopesStack[i] is OutputScope); 134Debug.Assert(nspace != null); 136Debug.Assert(this.elementScopesStack[i] is OutputScope);
System\Xml\Xsl\XsltOld\PrefixQname.cs (1)
32Debug.Assert(qname != null);
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (2)
65Debug.Assert(processor != null && frame != null); 87Debug.Assert(frame.StoredOutput != null);
System\Xml\Xsl\XsltOld\Processor.cs (27)
127Debug.Assert(this.execResult == ExecResult.Continue); 398Debug.Assert(this.actionStack != null); 404Debug.Assert(this.builder != null); 432Debug.Assert(frame != null); 456Debug.Assert(this.templateLookup != null); 462Debug.Assert(key != Compiler.InvalidQueryKey); 467Debug.Assert(key != Compiler.InvalidQueryKey); 480Debug.Assert(key != Compiler.InvalidQueryKey); 550Debug.Assert(nav.NodeType == XPathNodeType.Element); 651Debug.Assert(this.builder != null); 659Debug.Assert(this.xsm != null); 671Debug.Assert(StateMachine.StateOnly(stateOutlook) == this.xsm.State); 672Debug.Assert(ExecutionResult == ExecResult.Continue); 676Debug.Assert(StateMachine.StateOnly(stateOutlook) == this.xsm.State); 698Debug.Assert(this.xsm != null); 709Debug.Assert(StateMachine.StateOnly(stateOutlook) == this.xsm.State); 710Debug.Assert(ExecutionResult == ExecResult.Continue); 714Debug.Assert(StateMachine.StateOnly(stateOutlook) == this.xsm.State); 730Debug.Assert(this.xsm != null); 742Debug.Assert(StateMachine.StateOnly(stateOutlook) == this.xsm.State); 845Debug.Assert(navigator != null); 864Debug.Assert(output != null); 874Debug.Assert(this.builder != null); 915Debug.Assert(saveStackSize == this.actionStack.Length); 925Debug.Assert(1 < actionStack.Length); 936Debug.Assert(2 < actionStack.Length); 973Debug.Assert(2 <= this.debuggerStack.Length);
System\Xml\Xsl\XsltOld\ReaderOutput.cs (28)
48Debug.Assert(processor != null); 49Debug.Assert(processor.NameTable != null); 164Debug.Assert(ordinal >= 0); 168Debug.Assert(ordinal == -1); 176Debug.Assert(ordinal >= 0); 180Debug.Assert(ordinal == -1); 205Debug.Assert(ordinal >= 0); 210Debug.Assert(ordinal == -1); 218Debug.Assert(ordinal >= 0); 223Debug.Assert(ordinal == -1); 237Debug.Assert(this.attributeCount == 0); 265Debug.Assert(this.processor != null || this.state == ReadState.Closed); 306Debug.Assert(this.processor.ExecutionDone); 378Debug.Assert(this.builder != null); 382Debug.Assert(NodeType == XmlNodeType.EndElement); 410Debug.Assert(this.builder != null); 439Debug.Assert(this.nameTable != null); 454Debug.Assert(NodeType != XmlNodeType.EntityReference); 512Debug.Assert(0 <= attrib && attrib < this.attributeCount); 513Debug.Assert(0 <= attrib && attrib < this.attributeList.Count); 514Debug.Assert(this.attributeList[attrib] is BuilderInfo); 525Debug.Assert(this.attributeList[attrib] is BuilderInfo); 539Debug.Assert(this.attributeList[index] is BuilderInfo); 558Debug.Assert(this.attributeList[index] is BuilderInfo); 580Debug.Assert(this.currentInfo != null); 581Debug.Assert(this.attributeCount == 0 || this.attributeList != null); 582Debug.Assert((this.currentIndex == -1) == (this.currentInfo == this.mainNode)); 583Debug.Assert((this.currentIndex == -1) || (this.currentInfo == this.attributeValue || this.attributeList[this.currentIndex] is BuilderInfo && this.attributeList[this.currentIndex] == this.currentInfo));
System\Xml\Xsl\XsltOld\RecordBuilder.cs (24)
59Debug.Assert(output != null); 105Debug.Assert(this.recordState != HaveRecord); 125Debug.Assert(this.recordState == NoRecord || (state & StateMachine.BeginRecord) == 0); 173Debug.Assert(this.recordState == NoRecord || (state & StateMachine.BeginRecord) == 0); 233Debug.Assert(this.attributeCount <= this.attributeList.Count); 236Debug.Assert(this.attributeList[attrib] != null && this.attributeList[attrib] is BuilderInfo); 256Debug.Assert(this.attributeCount == 0); 269Debug.Assert(this.attributeCount == 0); 281Debug.Assert(this.attributeCount == this.attributeList.Count); 294Debug.Assert(this.attributeList[attrib] != null && this.attributeList[attrib] is BuilderInfo); 365Debug.Assert(this.recordState == NoRecord || this.recordState == SomeRecord); 388Debug.Assert(this.recordState == NoRecord || this.recordState == SomeRecord); 403Debug.Assert(this.recordState == NoRecord || this.recordState == SomeRecord); 418Debug.Assert(this.mainNode != null); 427Debug.Assert(this.mainNode.NodeType == XmlNodeType.Element); 430Debug.Assert(this.attributeList[attr] is BuilderInfo); 447Debug.Assert(this.mainNode.NodeType == XmlNodeType.Element); 485Debug.Assert(this.attributeList[attr] is BuilderInfo); 525Debug.Assert(this.mainNode.NodeType == XmlNodeType.Comment); 526Debug.Assert((object) this.currentInfo == (object) this.mainNode); 568Debug.Assert(this.mainNode.NodeType == XmlNodeType.ProcessingInstruction || this.mainNode.NodeType == XmlNodeType.XmlDeclaration); 630Debug.Assert(this.namespaceCount == this.namespaceList.Count); 639Debug.Assert(this.namespaceList[index] != null && this.namespaceList[index] is BuilderInfo); 665Debug.Assert(prefix != null && prefix.Length > 0);
System\Xml\Xsl\XsltOld\RootAction.cs (5)
173Debug.Assert(mark == null); 226Debug.Assert(processor != null && frame != null); 241Debug.Assert(frame.State == QueryInitialized); 243Debug.Assert(Processor.IsRoot(frame.Node)); 255Debug.Assert(frame.State == RootProcessed);
System\Xml\Xsl\XsltOld\SequentialOutput.cs (11)
111Debug.Assert(record.MainNode.NodeType == XmlNodeType.Element); 361Debug.Assert(this.outputCache[record] is BuilderInfo); 479Debug.Assert(value != null); 484Debug.Assert(value != null); 511Debug.Assert(value != null); 512Debug.Assert(this.isHtmlOutput); 558Debug.Assert(value != null); 559Debug.Assert(find.Length == replace.Length); 600Debug.Assert(value != null); 605Debug.Assert(count <= list.Count); 607Debug.Assert(list[attrib] is BuilderInfo);
System\Xml\Xsl\XsltOld\SortAction.cs (2)
146Debug.Assert(processor != null && frame != null); 147Debug.Assert(frame.State == Initialized);
System\Xml\Xsl\XsltOld\StateMachine.cs (4)
96Debug.Assert(newState != Assrt); 102Debug.Assert(newState != Assrt); 112Debug.Assert(newState != Assrt); 118Debug.Assert(newState != Assrt);
System\Xml\Xsl\XsltOld\Stylesheet.cs (20)
128Debug.Assert(attributeSet.Name != null); 132Debug.Assert(this.attributeSetTable != null); 150Debug.Assert(this.templateNameTable != null); 166Debug.Assert(this.modeManagers != null); 180Debug.Assert(this.templates == null); 184Debug.Assert(manager != null); 195Debug.Assert(enumerator.Value is TemplateManager); 203Debug.Assert(this.imports[importIndex] is Stylesheet); 205Debug.Assert(stylesheet != null); 246Debug.Assert(processor != null && navigator != null); 247Debug.Assert(mode != null); 257Debug.Assert(manager.Mode.Equals(mode)); 282Debug.Assert(this.imports[importIndex] is Stylesheet); 284Debug.Assert(stylesheet != null); 302Debug.Assert(processor != null && navigator != null); 303Debug.Assert(this.templates == null && this.modeManagers == null || this.templates == this.modeManagers[XmlQualifiedName.Empty]); 345Debug.Assert(this.imports[importIndex] is Stylesheet); 347Debug.Assert(stylesheet != null); 373Debug.Assert(this.imports[importIndex] is Stylesheet); 375Debug.Assert(stylesheet != null);
System\Xml\Xsl\XsltOld\TemplateAction.cs (6)
45Debug.Assert(this.templateId == 0); 85Debug.Assert(this.matchKey == Compiler.InvalidQueryKey); 89Debug.Assert(this.name == null); 93Debug.Assert(Double.IsNaN(this.priority)); 100Debug.Assert(this.mode == null); 202Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\TemplateLookupAction.cs (7)
25Debug.Assert(processor != null && frame != null); 26Debug.Assert(frame.State == Initialized); 56Debug.Assert(node != null); 92Debug.Assert(processor != null && frame != null); 93Debug.Assert(frame.State == Initialized); 94Debug.Assert(processor.Debugger != null); 101Debug.Assert(this.mode != Compiler.BuiltInMode);
System\Xml\Xsl\XsltOld\Templatemanager.cs (8)
23Debug.Assert(x != null && x is TemplateAction); 24Debug.Assert(y != null && y is TemplateAction); 29Debug.Assert(! Double.IsNaN(tx.Priority)); 30Debug.Assert(! Double.IsNaN(ty.Priority)); 33Debug.Assert(tx.TemplateId != ty.TemplateId || tx == ty); 54Debug.Assert(template != null); 55Debug.Assert( 79Debug.Assert(this.templates != null);
System\Xml\Xsl\XsltOld\TextAction.cs (1)
64Debug.Assert(processor != null && frame != null);
System\Xml\Xsl\XsltOld\TextEvent.cs (2)
21Debug.Assert(text != null); 27Debug.Assert(input.NodeType == XPathNodeType.Text || input.NodeType == XPathNodeType.SignificantWhitespace);
System\Xml\Xsl\XsltOld\UseAttributesetsAction.cs (2)
27Debug.Assert(Ref.Equal(compiler.Input.LocalName, compiler.Atoms.UseAttributeSets)); 30Debug.Assert(this.useAttributeSets == null);
System\Xml\Xsl\XsltOld\ValueOfAction.cs (9)
24Debug.Assert(s_BuiltInRule != null); 52Debug.Assert(processor != null && frame != null); 56Debug.Assert(frame != null); 57Debug.Assert(frame.NodeSet != null); 71Debug.Assert(frame.StoredOutput != null); 86Debug.Assert(processor != null && frame != null); 90Debug.Assert(frame != null); 91Debug.Assert(frame.NodeSet != null); 105Debug.Assert(frame.StoredOutput != null);
System\Xml\Xsl\XsltOld\VariableAction.cs (4)
86Debug.Assert(this.name == null && this.nameStr == null); 101Debug.Assert(processor != null && frame != null && frame.State != ValueCalculated); 145Debug.Assert(recOutput is NavigatorOutput); 150Debug.Assert(value != null);
System\Xml\Xsl\XsltOld\WithParamAction.cs (2)
33Debug.Assert(processor != null && frame != null); 56Debug.Assert(recOutput is NavigatorOutput);
System\Xml\Xsl\XsltOld\WriterOutput.cs (2)
93Debug.Assert(list.Count >= count); 95Debug.Assert(list[attrib] is BuilderInfo);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (7)
214Debug.Assert(thisUri != null && baseUri != null); 551Debug.Assert(it != null); 755Debug.Assert(resultCollection.Count != 0); 756Debug.Assert(newList.Count != 0); 759Debug.Assert(resultCollection[0] is XPathNavigator); 791Debug.Assert(extension != null); 792Debug.Assert(method != null);
System\Xml\Xsl\XsltOld\XsltOutput.cs (2)
128Debug.Assert(this.encoding != null); 186Debug.Assert(false);
System.Drawing (3)
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
549Debug.Assert(oldBitmap == IntPtr.Zero);
commonui\System\Drawing\SystemFonts.cs (1)
335Debug.Assert(defaultFont == null);
misc\GDI\DeviceContext.cs (1)
630Debug.Assert(clip.HRegion != IntPtr.Zero);
System.Management (1)
managementpath.cs (1)
672Debug.Assert(nsPath != null);
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
3984Debug.Assert(this.owner.OutstandingAsyncRequests.Contains(this));
System.Runtime.Remoting (1)
metadata\wsdlparser.cs (1)
5504Debug.Assert(bAnonymous == false || _bSUDSType == false);
System.Security (11)
system\security\cryptography\pkcs\envelopedpkcs7.cs (2)
995Debug.Assert(false); 1036Debug.Assert(index == totalSize / (uint)Marshal.SizeOf(typeof(IntPtr)));
system\security\cryptography\pkcs\pkcsutils.cs (1)
560Debug.Assert(certificates.Count == 1);
system\security\cryptography\pkcs\signerinfo.cs (4)
47Debug.Assert(signedCms != null && pbCmsgSignerInfo != null && !pbCmsgSignerInfo.IsInvalid); 61Debug.Assert(signedCms != null && encodedSignerInfo != null && encodedSignerInfo.Length > 0); 285Debug.Assert(signer != null); 795Debug.Assert(m_signerInfos[index] != null);
system\security\cryptography\xml\signedxml.cs (4)
539System.Diagnostics.Debug.Assert(cloneElem != null); 916System.Diagnostics.Debug.Assert(a != null); 917System.Diagnostics.Debug.Assert(b != null); 918System.Diagnostics.Debug.Assert(count > 0);
System.Transactions (20)
System\Transactions\DurableEnlistmentState.cs (1)
372Debug.Assert( enlistment.PromotableSinglePhaseNotification != null );
System\Transactions\Enlistment.cs (2)
322Debug.Assert(this.Transaction.phase0Volatiles.preparedVolatileEnlistments <= 522Debug.Assert(this.transaction.phase1Volatiles.preparedVolatileEnlistments <=
System\Transactions\Oletx\OletxVolatileEnlistment.cs (1)
357Debug.Assert( ( 0 == phase ) && ( 0 == this.outstandingNotifications ) );
System\Transactions\Trace\PlainXmlWriter.cs (3)
116Debug.Assert( localName != null && localName.Length > 0 ); 133Debug.Assert(!this.writingAttribute); 143Debug.Assert(this.writingAttribute);
System\Transactions\Transaction.cs (2)
824Debug.Assert(this.internalTransaction.State != null); 862Debug.Assert(this.internalTransaction.State != null);
System\Transactions\TransactionScope.cs (2)
651Debug.Assert( rollbackTransaction != null ); 901Debug.Assert( rollbackTransaction != null );
System\Transactions\TransactionState.cs (9)
1257Debug.Assert( tx.phase0Volatiles.dependentClones >= 0 ); 1260Debug.Assert( tx.phase0Volatiles.preparedVolatileEnlistments <= 1279Debug.Assert( tx.phase1Volatiles.dependentClones >= 0 ); 2643Debug.Assert( tx.phase0Volatiles.preparedVolatileEnlistments <= 2657Debug.Assert( tx.phase0WaveDependentCloneCount >= 0 ); 2695Debug.Assert( tx.phase1Volatiles.dependentClones >= 0 ); 2702Debug.Assert( 0 <= tx.abortingDependentCloneCount ); 4366Debug.Assert(tx.phase0Volatiles.preparedVolatileEnlistments <= 4385Debug.Assert(tx.phase1Volatiles.dependentClones >= 0);
System.Web (53)
Abstractions\HttpFileCollectionWrapper.cs (1)
95Debug.Assert(files != null);
Configuration\HttpCapabilitiesEvaluator.cs (1)
267Debug.Assert(UserAgentCacheKeyLength != 0);
Configuration\SessionStateSection.cs (1)
506Debug.Assert(value is SessionStateSection);
Configuration\SqlCacheDependencyDatabase.cs (1)
90Debug.Assert(value is SqlCacheDependencyDatabase);
Configuration\SqlCacheDependencySection.cs (1)
97Debug.Assert(value is SqlCacheDependencySection);
Configuration\StrongNameUtility.cs (2)
37Debug.Assert(keyBlob != IntPtr.Zero); 40Debug.Assert(generatedSize > 0 && generatedSize <= Int32.MaxValue);
DataAccess\ADConnectionHelper.cs (2)
21Debug.Assert ((objectDN != null) && (objectDN.Length != 0)); 47Debug.Assert (entry != null);
Routing\ParsedRoute.cs (1)
11Debug.Assert(pathSegments != null);
Security\ADMembershipUser.cs (2)
184Debug.Assert(sidBinaryForm != null); 187Debug.Assert((providerUserKey != null) && (providerUserKey is SecurityIdentifier));
Security\AntiXss\CodeCharts\CodeChartHelper.cs (1)
15Debug.Assert(min <= max);
Security\AntiXss\Utf16StringReader.cs (1)
53Debug.Assert(input != null);
UI\DesignTimeTemplateParser.cs (1)
80System.Diagnostics.Debug.Assert(controlBuilder.CurrentFilterResolutionService == null);
UI\WebControls\FileUpload.cs (1)
212Debug.Assert(result != null);
UI\WebControls\MethodParametersDictionary.cs (1)
50Debug.Assert(savedState is Pair);
UI\WebParts\AppearanceEditorPart.cs (2)
68Debug.Assert(webPart != null); 273Debug.Assert(webPart != null);
UI\WebParts\BehaviorEditorPart.cs (2)
101Debug.Assert(webPart != null); 410Debug.Assert(webPart != null);
UI\WebParts\EditorPart.cs (3)
154Debug.Assert(propertyDisplayNames.Length == propertyEditors.Length); 155Debug.Assert(propertyDisplayNames.Length == errorMessages.Length); 156Debug.Assert(propertyDescriptions == null || (propertyDescriptions.Length == propertyDisplayNames.Length));
UI\WebParts\LayoutEditorPart.cs (2)
230Debug.Assert(webPart != null); 242Debug.Assert(manager != null);
UI\WebParts\PageCatalogPart.cs (1)
92Debug.Assert(WebPartManager != null);
UI\WebParts\PropertyGridEditorPart.cs (5)
100Debug.Assert(editableObject != null); 108Debug.Assert(count > 0); 248Debug.Assert(editableObject != null); 314Debug.Assert(propertyDisplayNames.Length == editorControls.Length && propertyDisplayNames.Length == _errorMessages.Length); 322Debug.Assert(editableObject != null);
UI\WebParts\ProxyWebPartManager.cs (1)
116Debug.Assert(page != null);
UI\WebParts\RowToFieldTransformer.cs (4)
43Debug.Assert(_callback != null); 100Debug.Assert(owner != null); 119Debug.Assert(WizardSteps.Count == 0); 153Debug.Assert(_fieldName != null);
UI\WebParts\RowToParametersTransformer.cs (6)
99Debug.Assert(_callback != null); 217Debug.Assert(owner != null); 235Debug.Assert(WizardSteps.Count == 0); 325Debug.Assert(WizardSteps.Count > 0); 334Debug.Assert(_consumerFieldNames != null); 335Debug.Assert(oldProviderNamesLength == 2 * _consumerFieldNames.Length);
UI\WebParts\TransformerConfigurationWizardBase.cs (1)
141Debug.Assert(WizardSteps.Count > 0);
UI\WebParts\WebPartCollection.cs (1)
38Debug.Assert(value != null);
UI\WebParts\WebPartConnection.cs (5)
252Debug.Assert(_webPartManager != null); 258Debug.Assert(providerWebPart != null); 262Debug.Assert(consumerWebPart != null); 269Debug.Assert(providerConnectionPoint != null); 278Debug.Assert(consumerConnectionPoint != null);
UI\WebParts\WebPartTracker.cs (1)
61Debug.Assert(Count >= 1);
UI\WebParts\WebPartTransformerAttribute.cs (1)
85Debug.Assert(attributes.Length == 0 || attributes.Length == 1);
UI\WebParts\WebPartUtil.cs (1)
28Debug.Assert(constructor != null);
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
1787System.Diagnostics.Debug.Assert(!String.IsNullOrEmpty(keyFormat));
System.Web.DynamicData (48)
DynamicData\ControlFilterExpression.cs (2)
123Debug.Assert(names.Count == columns.Count); 137Debug.Assert(target != null);
DynamicData\DynamicControl.cs (1)
187Debug.Assert(FieldTemplate == null);
DynamicData\DynamicControlParameter.cs (2)
36Debug.Assert(dataSource != null); 135Debug.Assert(column.ForeignKeyNames.Count == parentTable.PrimaryKeyColumns.Count);
DynamicData\DynamicDataExtensions.cs (1)
105Debug.Assert(context != null);
DynamicData\DynamicDataRoute.cs (1)
57Debug.Assert(Model != null);
DynamicData\DynamicDataRouteHandler.cs (4)
151Debug.Assert(httpContext != null); 184Debug.Assert(httpContext != null); 198Debug.Assert(httpContext != null); 206Debug.Assert(requestContext.HttpContext.Items[s_requestContextKey] == null);
DynamicData\DynamicField.cs (1)
248Debug.Assert(control != null);
DynamicData\DynamicFilter.cs (2)
125Debug.Assert(dataSource != null); 142Debug.Assert(_dataSource != null);
DynamicData\DynamicHyperLink.cs (1)
253Debug.Assert(!String.IsNullOrEmpty(tableName));
DynamicData\DynamicRouteExpression.cs (1)
38Debug.Assert(DataSource != null);
DynamicData\EntityTemplateFactory.cs (1)
125Debug.Assert(model != null);
DynamicData\FieldTemplateFactory.cs (1)
303Debug.Assert(false);
DynamicData\FieldTemplateUserControl.cs (3)
236Debug.Assert(Mode == DataBoundControlMode.Insert); 312Debug.Assert(enumType != null); 479Debug.Assert(errorMessage != null);
DynamicData\FilterFactory.cs (3)
36Debug.Assert(model != null); 63Debug.Assert(filterTemplatePath != null); 73Debug.Assert(column != null);
DynamicData\FilterUserControlBase.cs (1)
76Debug.Assert(keyStrings.Length == keyNames.Length);
DynamicData\MetaChildrenColumn.cs (1)
112Debug.Assert(fkColumn.ForeignKeyNames.Count == pkValues.Count);
DynamicData\MetaColumn.cs (1)
544Debug.Assert(column != null);
DynamicData\MetaForeignKeyColumn.cs (1)
84Debug.Assert(fkValues.Length == ForeignKeyNames.Count);
DynamicData\MetaModel.cs (6)
582Debug.Assert(contextType != null); 583Debug.Assert(tableName != null); 616Debug.Assert(contextType != null); 617Debug.Assert(model != null); 629Debug.Assert(entityType != null); 630Debug.Assert(table != null);
DynamicData\MetaTable.cs (4)
379Debug.Assert(false); 792Debug.Assert(column != null); 893Debug.Assert(rowCollection.Count == 1); 988Debug.Assert(table != null);
DynamicData\QueryableFilterRepeater.cs (1)
100Debug.Assert(_dataSource != null);
DynamicData\QueryableFilterUserControl.cs (2)
51Debug.Assert(enumType != null); 125Debug.Assert(_context != null);
DynamicData\Util\DefaultValueMapping.cs (2)
21Debug.Assert(defaultValues != null); 28Debug.Assert(_defaultValues != null);
DynamicData\Util\MetaTableHelper.cs (1)
113Debug.Assert(model != null);
DynamicData\Util\Misc.cs (2)
143Debug.Assert(enumType != null); 144Debug.Assert(enumType.IsEnum);
DynamicData\Util\RouteParametersHelper.cs (1)
34Debug.Assert(fkColumn.ForeignKeyNames.Count == fkColumn.ParentTable.PrimaryKeyColumns.Count);
DynamicData\Util\TemplateFactory.cs (1)
30Debug.Assert(!String.IsNullOrEmpty(defaultLocation));
System.Web.Entity (11)
System\Data\WebControls\EntityDataSource.cs (1)
1102Debug.Assert(Page != null);
System\Data\WebControls\EntityDataSourceView.cs (7)
119Debug.Assert(context != null); 120Debug.Assert(entitySet != null); 121Debug.Assert(mode != ManagerMode.None); 134Debug.Assert(entity != null); 135Debug.Assert(Mode != ManagerMode.None); 299Debug.Assert(_collectionManager.FlattenedEntityCollection != null); 1767Debug.Assert(asmPublicKeyToken != null);
System\Data\WebControls\WebControlParameterProxy.cs (3)
28Debug.Assert(null != entityDataSource); 29Debug.Assert(!String.IsNullOrEmpty(propertyName)); 38Debug.Assert(null != entityDataSource);
System.Web.Entity.Design (2)
System\Data\WebControls\Design\Util\DesignerForm.cs (1)
42Debug.Assert(serviceProvider != null);
System\Data\WebControls\Design\Util\WizardPanel.cs (1)
79Debug.Assert(_parentWizard != null);
System.Web.Extensions (76)
Compilation\WCFModel\MetadataFile.cs (1)
643Debug.Assert(fileType == MetadataType.Xml || fileType == MetadataType.Policy || fileType == MetadataType.Edmx);
Compilation\WCFModel\SchemaMerger.cs (1)
414Debug.Assert(differentItem1 == null && differentItem2 == null);
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (12)
142System.Diagnostics.Debug.Assert(bindingCollection != null); 154System.Diagnostics.Debug.Assert(proxyGeneratedContractTypes != null); 168System.Diagnostics.Debug.Assert(proxyGenerationErrors != null); 182System.Diagnostics.Debug.Assert(importErrors != null); 196System.Diagnostics.Debug.Assert(contractCollection != null); 211System.Diagnostics.Debug.Assert(serviceEndpointList != null); 224System.Diagnostics.Debug.Assert(serviceEndpointToChannelEndpointElementMap != null); 250System.Diagnostics.Debug.Assert(targetCompileUnit != null); 1055Debug.Assert(originalNamespace.Length == 0 || originalNamespace.EndsWith(".", StringComparison.Ordinal)); 1056Debug.Assert(replacementNamespace.Length == 0 || replacementNamespace.EndsWith(".", StringComparison.Ordinal)); 1057Debug.Assert(typeName != null); 1388Debug.Assert(wsdlImportExtensions != null);
Handlers\ScriptResourceHandler.cs (2)
128Debug.Assert(!String.IsNullOrEmpty(assemblyName)); 432Debug.Assert(!String.IsNullOrEmpty(decryptedData[i + 1]));
HttpResponseInternalWrapper.cs (1)
19Debug.Assert(httpResponse != null);
Profile\ProfileService.cs (1)
29Debug.Assert(_javaScriptSerializer != null);
Script\Serialization\JavaScriptSerializer.cs (2)
213Debug.Assert(serializationFormat == SerializationFormat.JSON || serializationFormat == SerializationFormat.JavaScript); 472Debug.Assert(false);
Script\Services\ClientProxyGenerator.cs (1)
349Debug.Assert(enumNames.Length == enumValues.Length);
Script\Services\WebServiceEnumData.cs (6)
56System.Diagnostics.Debug.Assert(names != null); 57System.Diagnostics.Debug.Assert(values != null); 58System.Diagnostics.Debug.Assert(names.Length == values.Length); 65System.Diagnostics.Debug.Assert(names != null); 66System.Diagnostics.Debug.Assert(values != null); 67System.Diagnostics.Debug.Assert(names.Length == values.Length);
Script\Services\WebServiceMethodData.cs (5)
96Debug.Assert(_webMethodAttribute != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler 103Debug.Assert(_webMethodAttribute != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler 110Debug.Assert(_methodInfo != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler 117Debug.Assert(_methodInfo != null); // If fails: WebserviceMethodData corrosponding to WCF is being used by ASMX JSON handler 181Debug.Assert(ParameterDataDictionary != null);
Script\Services\WebServiceTypeData.cs (6)
261Debug.Assert(nameAttribute != null); 262Debug.Assert(nameAttribute.Value != null); 266Debug.Assert(nsAttribute != null); 267Debug.Assert(nsAttribute.Value != null); 300Debug.Assert(enumFacet != null); 301Debug.Assert(enumFacet.Value != null);
UI\AssemblyCache.cs (3)
46Debug.Assert(assembly != null); 57Debug.Assert(!String.IsNullOrEmpty(assemblyName)); 78Debug.Assert(assembly != null);
UI\AuthenticationServiceManager.cs (1)
87Debug.Assert(sb != null);
UI\ClientScriptManagerWrapper.cs (1)
19Debug.Assert(clientScriptManager != null);
UI\CustomErrorsSectionWrapper.cs (1)
16Debug.Assert(customErrorsSection != null);
UI\HtmlFormWrapper.cs (1)
18Debug.Assert(form != null);
UI\PageRequestManager.cs (5)
83Debug.Assert(owner != null); 495Debug.Assert(_owner.IsInAsyncPostBack); 496Debug.Assert(_updatePanelsToRefresh == null); 640Debug.Assert(updatePanel != null); 916Debug.Assert(updatePanel != null);
UI\PageWrapper.cs (1)
20Debug.Assert(page != null);
UI\RegisteredArrayDeclaration.cs (1)
16Debug.Assert(arrayName != null);
UI\RegisteredDisposeScript.cs (3)
16Debug.Assert(control != null); 17Debug.Assert(disposeScript != null); 18Debug.Assert(parentUpdatePanel != null);
UI\RegisteredExpandoAttribute.cs (3)
27Debug.Assert(control != null); 28Debug.Assert(!String.IsNullOrEmpty(controlId)); 29Debug.Assert(!String.IsNullOrEmpty(name));
UI\RegisteredHiddenField.cs (2)
16Debug.Assert(control != null); 17Debug.Assert(hiddenFieldName != null);
UI\RegisteredScript.cs (5)
21Debug.Assert(control != null); 22Debug.Assert(type != null); 23Debug.Assert(!String.IsNullOrEmpty(url)); 39Debug.Assert(control != null); 43Debug.Assert(type != null);
UI\ScriptComponentDescriptor.cs (1)
154Debug.Assert(value != null);
UI\ScriptControlManager.cs (1)
209Debug.Assert(targetControls != null && targetControls.Count > 0);
UI\ScriptReference.cs (4)
157Debug.Assert(!String.IsNullOrEmpty(resourceName)); 223Debug.Assert(scriptManager != null); 391Debug.Assert(!String.IsNullOrEmpty(EffectiveResourceName)); 527Debug.Assert(debugName != null);
UI\ScriptReferenceBase.cs (1)
191Debug.Assert(pathOrName.EndsWith(".js", StringComparison.Ordinal));
UI\UpdatePanel.cs (1)
410Debug.Assert(!_rendered);
UI\WebControls\Expressions\OfTypeExpression.cs (1)
74Debug.Assert(type != null);
UI\WebControls\QueryableDataSourceHelper.cs (2)
174Debug.Assert((whereParameters != null) && (whereParameters.Count > 0)); 202Debug.Assert((orderByParameters != null) && (orderByParameters.Count > 0));
System.Web.Mobile (177)
Mobile\ConfigurationSectionHelper.cs (4)
53Debug.Assert(null != _currentNode); 132Debug.Assert(null != _currentNode); 145Debug.Assert(null != _currentNode); 154Debug.Assert(null != _currentNode);
Mobile\DeviceFilterDictionary.cs (1)
25Debug.Assert(name != null);
Mobile\DeviceFiltersSection.cs (1)
328Debug.Assert((value != null) && (value is DeviceFilterElement));
Mobile\UrlPath.cs (2)
226Debug.Assert(IsRooted(from)); 227Debug.Assert(IsRooted(to));
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (2)
349Debug.Assert(NotSecondaryUI == NotSecondaryUIInit); 591Debug.Assert(NotSecondaryUI == NotSecondaryUIInit);
UI\MobileControls\Adapters\HtmlCalendarAdapter.cs (1)
60Debug.Assert(tagEndIndex >= 0);
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (1)
128Debug.Assert (Control.VisibleItemCount <= Control.Items.Count);
UI\MobileControls\Adapters\UpWmlMobileTextWriter.cs (2)
145Debug.Assert(!AnalyzeMode); 987Debug.Assert(AnalyzeMode);
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (2)
336Debug.Assert(NotSecondaryUI == NotSecondaryUIInit); 572Debug.Assert(NotSecondaryUI == NotSecondaryUIInit);
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (1)
1559Debug.Assert(_postBackEventTargetVarName.ToLower(CultureInfo.InvariantCulture) == _postBackEventTargetVarName &&
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (2)
304Debug.Assert(NotSecondaryUI == NotSecondaryUIInit); 527Debug.Assert(NotSecondaryUI == NotSecondaryUIInit);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (1)
223Debug.Assert (target.StartsWith (prefix, StringComparison.Ordinal));
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (1)
327Debug.Assert (StyleSheetLocationAttributeValue != null);
UI\MobileControls\Command.cs (1)
51Debug.Assert(ImageUrl != null);
UI\MobileControls\CompileLiteralTextParser.cs (1)
51Debug.Assert(_tagInnerTextElements == null);
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (7)
48Debug.Assert(null != component); 90Debug.Assert(null != component); 159Debug.Assert (propertyName != null && 163Debug.Assert(prop != null); 180Debug.Assert (propertyName != null && 184Debug.Assert(prop != null); 331Debug.Assert(control.Parent is MobileControl);
UI\MobileControls\Design\Adapters\MSHTMLHostUtil.cs (6)
61Debug.Assert(null != htmlDoc3); 65Debug.Assert(null != _htmlDivOuter && null != _htmlDivInner); 82Debug.Assert(null != _htmlDivOuter && null != _htmlDivInner); 85Debug.Assert(null != htmlElement2); 91Debug.Assert(null != _htmlDivOuter && null != _htmlDivInner); 94Debug.Assert(null != htmlElement2);
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (1)
1070Debug.Assert(value != null);
UI\MobileControls\Design\BaseValidatorDesigner.cs (1)
83Debug.Assert(_baseValidator.Text != null);
UI\MobileControls\Design\CommandDesigner.cs (1)
71Debug.Assert(null != _command.Text);
UI\MobileControls\Design\Converters\ChoiceConverter.cs (1)
99Debug.Assert(deviceSpecific.Choices != null);
UI\MobileControls\Design\Converters\DataFieldConverter.cs (2)
123Debug.Assert(dataMember != null); 128Debug.Assert(dataMember != null);
UI\MobileControls\Design\Converters\DefaultCommandConverter.cs (1)
80Debug.Assert(objectList != null);
UI\MobileControls\Design\Converters\FormConverter.cs (4)
60Debug.Assert(list.Length > 0); 64Debug.Assert(obj is MobileControl); 112Debug.Assert(container is IDesignerHost && 124Debug.Assert(site != null);
UI\MobileControls\Design\Converters\StyleReferenceConverter.cs (2)
77Debug.Assert(array.Length > 0); 86Debug.Assert(null != styleSheet);
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (2)
52Debug.Assert(controlList.Length > 0); 96Debug.Assert(container != null);
UI\MobileControls\Design\DesignerForm.cs (1)
48Debug.Assert(serviceProvider != null);
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (3)
353Debug.Assert(row1.Length == row2.Length); 509Debug.Assert(site != null); 732Debug.Assert(DeviceFilter.Name == base.Text);
UI\MobileControls\Design\DeviceSpecificDesigner.cs (4)
74Debug.Assert(_parentContainer != null); 155Debug.Assert(null != _ds); 319Debug.Assert(index == 0); 328Debug.Assert(prop != null);
UI\MobileControls\Design\FormDesigner.cs (1)
200Debug.Assert(prop != null);
UI\MobileControls\Design\ImageDesigner.cs (1)
48Debug.Assert(wfServices != null);
UI\MobileControls\Design\LabelDesigner.cs (1)
74Debug.Assert(null != _label.Text);
UI\MobileControls\Design\LinkDesigner.cs (1)
74Debug.Assert(null != _link.Text);
UI\MobileControls\Design\ListComponentEditorPage.cs (2)
149Debug.Assert(null != e); 150Debug.Assert(e.CancelEdit == false);
UI\MobileControls\Design\ListDesigner.cs (3)
184Debug.Assert(_designerVerbs.Count == 2); 337Debug.Assert(_dummyDataTable != null && _dummyDataTable.Columns.Count > 1); 443Debug.Assert(index >= 0 & index <= _templateFrameNames.Length);
UI\MobileControls\Design\ListGeneralPage.cs (1)
85Debug.Assert(GetBaseControl() != null);
UI\MobileControls\Design\ListItemsPage.cs (2)
79Debug.Assert(GetBaseControl() != null); 254Debug.Assert(!_isBaseControlList);
UI\MobileControls\Design\MobileComponentEditorPage.cs (2)
74Debug.Assert(_helpService != null); 88Debug.Assert(selectedComponent is MobileControl);
UI\MobileControls\Design\MobileContainerDesigner.cs (6)
116Debug.Assert(_iWebFormsDocumentService != null); 149Debug.Assert(style != null); 307Debug.Assert(_cachedBehavior == null); 552Debug.Assert(Behavior != null && _behaviorAttributes != null); 572Debug.Assert (_behaviorAttributes != null); 595Debug.Assert (_behaviorAttributes != null);
UI\MobileControls\Design\MobileControlDesigner.cs (4)
152Debug.Assert(_host != null); 180Debug.Assert(_iWebFormsDocumentService != null); 588Debug.Assert(_defaultDeviceSpecificIdentifier == deviceSpecificParentID); 595Debug.Assert(_defaultDeviceSpecificIdentifier == deviceSpecificParentID);
UI\MobileControls\Design\MobileControlPersister.cs (3)
876Debug.Assert((tagName != null) && (tagName.Length != 0)); 965Debug.Assert(((IDataBindingsAccessor)control).HasDataBindings == true); 979Debug.Assert(control.Text != null);
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (12)
217Debug.Assert(_host != null); 245Debug.Assert(_iWebFormsDocumentService != null); 315Debug.Assert(CurrentDeviceSpecific.Choices != null); 372Debug.Assert(_control is DeviceSpecific); 388Debug.Assert ( 633Debug.Assert(AllowTemplateEditing); 711Debug.Assert(choice != null); 845Debug.Assert(Behavior != null); 854Debug.Assert(AllowTemplateEditing); 1016Debug.Assert(_defaultDeviceSpecificIdentifier == deviceSpecificParentID); 1023Debug.Assert(_defaultDeviceSpecificIdentifier == deviceSpecificParentID); 1035Debug.Assert(_control is DeviceSpecific);
UI\MobileControls\Design\ObjectListDesigner.cs (2)
86Debug.Assert(index >= 0 & index <= _templateFrameNames.Length); 503Debug.Assert(_designerVerbs.Count == 2);
UI\MobileControls\Design\ObjectListFieldsPage.cs (1)
314Debug.Assert(fieldNode.RuntimeField != null);
UI\MobileControls\Design\PhoneCallDesigner.cs (1)
75Debug.Assert(_call.Text != null);
UI\MobileControls\Design\PropertyOverridesDialog.cs (3)
564Debug.Assert(deviceSpecificParentID == _currentDeviceSpecificID); 582Debug.Assert(_currentDeviceSpecificID != null); 818Debug.Assert(_site != null);
UI\MobileControls\Design\StylesEditorDialog.cs (12)
72Debug.Assert(_tvDefinedStyles != null); 77Debug.Assert(_tvDefinedStyles != null); 399Debug.Assert(_lvAvailableStyles.Items.Count > 0); 673Debug.Assert(null != e); 674Debug.Assert(e.CancelEdit == false); 762Debug.Assert(newStyle != null); 808Debug.Assert(direction == 1 || direction == -1); 811Debug.Assert(node != null); 851Debug.Assert(SelectedStyle != null); 1186Debug.Assert(property != null); 1223Debug.Assert(property != null); 1232Debug.Assert(styleSheet != null);
UI\MobileControls\Design\StyleSheetComponentEditor.cs (1)
33Debug.Assert(component is StyleSheet);
UI\MobileControls\Design\StyleSheetDesigner.cs (10)
197Debug.Assert(_iWebFormsDocumentService != null); 263Debug.Assert(RootControl != null); 281Debug.Assert(designer != null); 292Debug.Assert(index >= 0 & index <= _templateFrameNames.Length); 545Debug.Assert(errorMsg != null && errorIconUrl != null); 678Debug.Assert(style != null); 870Debug.Assert(style != null); 877Debug.Assert(null != CurrentStyle); 1005Debug.Assert (_currentStyle != null); 1162Debug.Assert(_designerVerbs.Count == 2);
UI\MobileControls\Design\TableFieldsEditor.cs (3)
49Debug.Assert(context != null); 52Debug.Assert(objectList != null); 55Debug.Assert(designer != null);
UI\MobileControls\Design\TemplatingOptionsDialog.cs (6)
176Debug.Assert(_dsd != null); 226Debug.Assert(_cmbChoices.Items.Count > 0); 408Debug.Assert(ds.Choices != null); 485Debug.Assert(_ds != null); 486Debug.Assert(_cmbChoices.SelectedIndex >= 0); 502Debug.Assert(previousSchemaOccurrences > 0);
UI\MobileControls\Design\TextViewDesigner.cs (1)
79Debug.Assert (_textView.Text != null);
UI\MobileControls\Design\Util\DesignerUtility.cs (1)
58Debug.Assert(choice != null);
UI\MobileControls\Design\Util\EditableTreeList.cs (1)
194Debug.Assert(direction == 1 || direction == -1);
UI\MobileControls\Design\Util\ImageCreator.cs (1)
66Debug.Assert(showMessage || showTitle);
UI\MobileControls\Design\Util\WebConfigManager.cs (6)
39Debug.Assert(site != null); 163Debug.Assert(node != null); 212Debug.Assert(Document != null); 263Debug.Assert(_xmlNode.Attributes != null); 301Debug.Assert(_xmlNode != null); 311Debug.Assert(_xmlNode != null);
UI\MobileControls\DeviceSpecific.cs (2)
160Debug.Assert(Owner is MobileControl); 199Debug.Assert(_closestTemplateControl != null);
UI\MobileControls\DeviceSpecificChoice.cs (1)
57Debug.Assert(_deviceFilter != null);
UI\MobileControls\IndividualDeviceConfig.cs (7)
116Debug.Assert(typeof(IPageAdapter).IsAssignableFrom(value)); 180Debug.Assert(factory != null); 207Debug.Assert(_parentConfigName == null); 300Debug.Assert(referrer != null); 311Debug.Assert(ParentConfigName.Length != 0 && ParentConfig == null); 337Debug.Assert(PageAdapterType != null); 338Debug.Assert(DeviceQualifiesPredicate != null);
UI\MobileControls\List.cs (1)
353Debug.Assert (Items.Count >= 0);
UI\MobileControls\ListDataHelper.cs (1)
163Debug.Assert (dataSource != null);
UI\MobileControls\MobileCategoryAttribute.cs (1)
50Debug.Assert(value != null);
UI\MobileControls\MobileControl.cs (3)
268Debug.Assert(this is ITemplateable); 326Debug.Assert(control == null || 666Debug.Assert(state != null);
UI\MobileControls\MobileControlsSection.cs (4)
452Debug.Assert( ( value != null ) && ( value is DeviceElement ) ); 694Debug.Assert( ( value != null ) && ( value is ControlElement ) ); 718Debug.Assert(targetType != null); 730Debug.Assert(data is string);
UI\MobileControls\MobileControlsSectionHelper.cs (1)
62Debug.Assert(!String.IsNullOrEmpty(device.PredicateMethod));
UI\MobileControls\MobilePage.cs (1)
320Debug.Assert(pageAdapter != null);
UI\MobileControls\ObjectList.cs (2)
318Debug.Assert (Items[selectedIndex].Selected); 1194Debug.Assert(ItemCount > 0 || Items.BaseIndex == 0);
UI\MobileControls\ObjectListItemCollection.cs (1)
136Debug.Assert (changes.Length == 2);
UI\MobileControls\PhoneCall.cs (1)
153Debug.Assert(PhoneNumber != null);
UI\MobileControls\Style.cs (2)
312Debug.Assert(stylesheet == StyleSheet.Default); 679Debug.Assert(Control == null);
UI\MobileControls\StyleSheet.cs (1)
138Debug.Assert(value.Name != null);
UI\MobileControls\TextView.cs (1)
449Debug.Assert(false);
System.Windows.Forms (1419)
misc\GDI\DeviceContext.cs (1)
630Debug.Assert(clip.HRegion != IntPtr.Zero);
misc\GDI\WindowsGraphics2.cs (2)
57Debug.Assert( Enum.IsDefined(typeof(TextPaddingOptions), this.paddingFlags)); 64Debug.Assert( Enum.IsDefined(typeof(TextPaddingOptions), value));
winforms\Managed\System\WinForms\Application.cs (2)
1405Debug.Assert(process != null); 1449Debug.Assert(arguments != null && arguments.Length > 0);
winforms\Managed\System\WinForms\BindToObject.cs (1)
71Debug.Assert(this.waitingOnDataSource);
winforms\Managed\System\WinForms\ButtonBase.cs (1)
170Debug.Assert(pd != null);
winforms\Managed\System\WinForms\ComboBox.cs (6)
1130Debug.Assert(childEdit != null); 2224Debug.Assert((ModifierKeys & Keys.Alt) == 0); 2237Debug.Assert((ModifierKeys & Keys.Alt) == 0); 3210Debug.Assert(DropDownStyle == ComboBoxStyle.DropDownList); 5764Debug.Assert(!ACWindows.ContainsKey(acHandle)); 5811Debug.Assert(ACWindows.ContainsKey(this.Handle));
winforms\Managed\System\WinForms\ContainerControl.cs (3)
466Debug.Assert(control != null); 909Debug.Assert(this is Form); 1415Debug.Assert(ccAncestor != null);
winforms\Managed\System\WinForms\Control.cs (2)
7047Debug.Assert(hWnd == IntPtr.Zero || UnsafeNativeMethods.IsWindow(new HandleRef(null, hWnd))); 15036Debug.Assert(owner != null);
winforms\Managed\System\WinForms\DataGrid.cs (1)
1573Debug.Assert(this.Controls.Contains(this.toBeDisposedEditingControl));
winforms\Managed\System\WinForms\DataGridView.cs (38)
1483Debug.Assert(dataGridViewCell != null); 2184Debug.Assert(this.ptCurrentCell.X >= 0 && ptCurrentCell.Y >= 0); 2185Debug.Assert(this.ptCurrentCell.X < this.Columns.Count); 2186Debug.Assert(this.ptCurrentCell.Y < this.Rows.Count); 2249Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count); 2250Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 2252Debug.Assert(dataGridViewRow != null); 2254Debug.Assert(this.IsSharedCellVisible(dataGridViewCell, this.ptCurrentCell.Y)); 2267Debug.Assert(this.ptCurrentCell.Y != -1); 2285Debug.Assert(this.ptCurrentCell.Y != -1); 2303Debug.Assert(this.ptCurrentCell.Y != -1); 2324Debug.Assert(this.ptCurrentCell.Y >= 0); 2325Debug.Assert(this.ptCurrentCell.Y < this.Rows.Count); 2927Debug.Assert(firstDisplayedCell.RowIndex >= 0 && 2961Debug.Assert(this.displayedBandsInfo.NumTotallyDisplayedFrozenRows == 0); 3121Debug.Assert(totalVisibleFrozenWidth > 0); 3143Debug.Assert(success); 3145Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 3146Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol == value || 3197Debug.Assert(totalVisibleFrozenHeight > 0); 3219Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 3224Debug.Assert(rowsToScroll != 0); 3230Debug.Assert(success); 3464Debug.Assert(this.Columns.DisplayInOrder(this.displayedBandsInfo.FirstDisplayedScrollingCol, oldFirstVisibleScrollingCol)); 3518Debug.Assert(this.horizontalOffset == 0); 3729Debug.Assert(dataGridViewCell != null); 3730Debug.Assert(rowIndex >= 0); 3740Debug.Assert(dataGridViewCell != null); 3741Debug.Assert(rowIndex >= 0); 3750Debug.Assert(dataGridViewCell != null); 3751Debug.Assert(rowIndex >= 0); 3846Debug.Assert(value >= 0); 4332Debug.Assert(this.rowHeadersWidth != value); 4333Debug.Assert(value >= minimumRowHeadersWidth); 4590Debug.Assert(this.HorizontalOffset == 0); 4591Debug.Assert(this.VerticalOffset == 0); 4900Debug.Assert(this.ptCurrentCell.Y >= 0); 4907Debug.Assert(this.ptCurrentCell.Y >= 0);
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
100System.Diagnostics.Debug.Assert(this.GetChildCount() == 0);
winforms\Managed\System\WinForms\DataGridViewAutoSizeColumnModeEventArgs.cs (1)
21Debug.Assert(dataGridViewColumn != null);
winforms\Managed\System\WinForms\DataGridViewBand.cs (22)
210Debug.Assert(!this.bandIsRow); 222Debug.Assert(value != this.Displayed); 289Debug.Assert(!this.bandIsRow); 369Debug.Assert(dataGridViewColumnHeaderCell != null); 408Debug.Assert(value.OwningRow == null); 423Debug.Assert(dataGridViewColumnHeaderCell.SortGlyphDirection == SortOrder.None); 424Debug.Assert(value.OwningColumn == null); 427Debug.Assert(value.DataGridView == null); 545Debug.Assert(!this.bandIsRow); 573Debug.Assert(this.bandIndex >= 0); 609Debug.Assert(value != this.ReadOnly); 618Debug.Assert(this.DataGridView != null); 631Debug.Assert(!this.bandIsRow); 684Debug.Assert(!this.bandIsRow); 705Debug.Assert(this.bandIndex >= 0); 724Debug.Assert(value != this.Selected); 840Debug.Assert(this.thickness != value); 841Debug.Assert(value >= this.minimumThickness); 842Debug.Assert(value <= maxBandThickness); 860Debug.Assert(!this.bandIsRow); 958Debug.Assert(this.bandIsRow); 963Debug.Assert(rowIndex > -1);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (10)
65Debug.Assert((value & ~(ButtonState.Normal | ButtonState.Pushed | ButtonState.Checked)) == 0); 118Debug.Assert(value >= FlatStyle.Flat && value <= FlatStyle.System); 553Debug.Assert(this.RowIndex >= 0); // Cell is not in a shared row. 567Debug.Assert(this.DataGridView.CellMouseDownInContentBounds); 706Debug.Assert(paint || computeContentBounds || computeErrorIconBounds); 707Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds); 708Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint); 709Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds); 710Debug.Assert(cellStyle != null); 929Debug.Assert(valBounds.Height <= 0 || valBounds.Width <= 0);
winforms\Managed\System\WinForms\DataGridViewCell.cs (73)
226Debug.Assert((this.State & DataGridViewElementStates.Displayed) == 0); 236Debug.Assert(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State); 257Debug.Assert(this.RowIndex >= -1); 351Debug.Assert(this.RowIndex >= -1); 397Debug.Assert((this.State & DataGridViewElementStates.Frozen) == 0); 401Debug.Assert(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State); 590Debug.Assert(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State); 603Debug.Assert(this.ColumnIndex >= 0); 633Debug.Assert(value != this.ReadOnly); 657Debug.Assert((this.State & DataGridViewElementStates.Resizable) == 0); 666Debug.Assert(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State); 714Debug.Assert(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State); 728Debug.Assert(this.ColumnIndex >= 0); 743Debug.Assert(value != this.Selected); 906Debug.Assert(this.RowIndex >= -1); 911Debug.Assert(this.RowIndex >= -1); 973Debug.Assert((this.State & DataGridViewElementStates.Visible) == 0); 977Debug.Assert(this.DataGridView.Rows.GetRowState(this.RowIndex) == this.DataGridView.Rows.SharedRow(this.RowIndex).State); 1118Debug.Assert(this.DataGridView != null); 1119Debug.Assert(this.ColumnIndex >= 0); 1191Debug.Assert(this.DataGridView != null); 1212Debug.Assert(rowIndex == -1); 1225Debug.Assert(this is DataGridViewRowHeaderCell); 1236Debug.Assert(this.OwningColumn == null); 1237Debug.Assert(this.OwningRow == null); 1238Debug.Assert(rowIndex == -1); 1333Debug.Assert(dgv.EditingControl.ParentInternal == dgv.EditingPanel); 1334Debug.Assert(dgv.EditingPanel.Controls.Contains(dgv.EditingControl)); 1336Debug.Assert(dgv.EditingControl.ParentInternal == null); 1358Debug.Assert(dgv.EditingPanel.ParentInternal == dgv); 1359Debug.Assert(dgv.Controls.Contains(dgv.EditingPanel)); 1361Debug.Assert(dgv.EditingPanel.ParentInternal == null); 1364Debug.Assert(dgv.EditingControl.ParentInternal == null); 1365Debug.Assert(dgv.EditingPanel.ParentInternal == null); 1366Debug.Assert(dgv.EditingPanel.Controls.Count == 0); 1632Debug.Assert(csv); 1681Debug.Assert(this.DataGridView != null); 1797Debug.Assert(this.DataGridView != null); 1829Debug.Assert(this.DataGridView != null); 2008Debug.Assert(this.owningRow != null); 2025Debug.Assert(this.ColumnIndex < this.DataGridView.Columns.Count); 2069Debug.Assert(this.RowIndex == -1); 2091Debug.Assert(this.owningColumn != null); 2092Debug.Assert(this.owningRow != null); 2093Debug.Assert(this.ColumnIndex >= 0); 2168Debug.Assert(this.ColumnIndex < this.DataGridView.Columns.Count); 2191Debug.Assert(cellStyle != null); 2198Debug.Assert(rowStyle != null); 2205Debug.Assert(columnStyle != null); 2209Debug.Assert(dataGridViewStyle != null); 2473Debug.Assert(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet); 2500Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet); 2566Debug.Assert(width > 0); 2606Debug.Assert(maxWidth > 0); 2623Debug.Assert(height > 0); 2648Debug.Assert(this.owningColumn != null); 2649Debug.Assert(this.owningRow != null); 2678Debug.Assert(this.ColumnIndex < dataGridView.Columns.Count); 2706Debug.Assert(rowIndex >= 0); 2707Debug.Assert(this.ColumnIndex >= 0); 2736Debug.Assert(!dgv.EditingPanel.ContainsFocus); 2738Debug.Assert(dgv.EditingPanel.ParentInternal == null); 2741Debug.Assert(dgv.IsSharedCellVisible(this, rowIndex)); 2743Debug.Assert(dgv.EditingControl.ParentInternal == dgv.EditingPanel); 2744Debug.Assert(dgv.EditingPanel.ParentInternal == dgv); 2990Debug.Assert(textSize.Height <= maxHeight); 3095Debug.Assert(this.DataGridView != null); 3108Debug.Assert(this.DataGridView.IsCurrentCellInEditMode); 3141Debug.Assert(this is DataGridViewHeaderCell); 3411Debug.Assert(this.CurrentMouseLocation != DATAGRIDVIEWCELL_flagAreaNotSet); 4395Debug.Assert(this.DataGridView != null); 4676Debug.Assert(rowIndex >= 0); 4677Debug.Assert(this.ColumnIndex >= 0);
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (7)
141Debug.Assert(dataGridViewRow != null); 276Debug.Assert(!dataGridViewCell.ReadOnly); 282Debug.Assert(!dataGridViewCell.Selected); 339Debug.Assert(!dataGridViewCell.Selected); 395Debug.Assert(!dataGridViewCell.ReadOnly); 396Debug.Assert(!dataGridViewCell.Selected); 404Debug.Assert(!dataGridViewCell.Selected);
winforms\Managed\System\WinForms\DataGridViewCellLinkedList.cs (11)
42Debug.Assert(index >= 0); 43Debug.Assert(index < this.count); 83Debug.Assert(this.headElement != null); 91Debug.Assert(dataGridViewCell != null); 92Debug.Assert(dataGridViewCell.DataGridView.SelectionMode == DataGridViewSelectionMode.CellSelect || 118Debug.Assert(dataGridViewCell != null); 138Debug.Assert(dataGridViewCell != null); 242Debug.Assert(this.current != null); // Since this is for internal use only. 252Debug.Assert(this.current == null); 258Debug.Assert(this.current != null); // Since this is for internal use only. 284Debug.Assert(dataGridViewCell != null);
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (3)
77Debug.Assert(dataGridView != null); 279Debug.Assert(graphics != null); 280Debug.Assert(cellStyle != null);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (10)
132Debug.Assert(Enum.IsDefined(typeof(DataGridViewContentAlignment), value)); 201Debug.Assert((oldDataSourceNullValue == null && this.DataSourceNullValue != null) || 409Debug.Assert((oldNullValue == null && this.NullValue != null) || 433Debug.Assert(value.All < -1); 452Debug.Assert(value.Left >= 0); 453Debug.Assert(value.Right >= 0); 454Debug.Assert(value.Top >= 0); 455Debug.Assert(value.Bottom >= 0); 584Debug.Assert(value >= DataGridViewTriState.NotSet && value <= DataGridViewTriState.False); 681Debug.Assert(dgvcs != null);
winforms\Managed\System\WinForms\DataGridViewCellValueEventArgs.cs (2)
71Debug.Assert(columnIndex >= -1); 72Debug.Assert(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (14)
216Debug.Assert((value & ~(ButtonState.Normal | ButtonState.Pushed | ButtonState.Checked)) == 0); 307Debug.Assert(value >= FlatStyle.Flat && value <= FlatStyle.System); 739Debug.Assert(retCheckState == CheckState.Indeterminate); 985Debug.Assert(this.RowIndex >= 0); // Cell is not in a shared row. 999Debug.Assert(this.DataGridView.CellMouseDownInContentBounds); 1084Debug.Assert((position.X >= 0) && (position.X < this.DataGridView.Columns.Count)); 1085Debug.Assert((position.Y >= 0) && (position.Y < this.DataGridView.Rows.Count)); 1159Debug.Assert(paint || computeContentBounds || computeErrorIconBounds); 1160Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds); 1161Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint); 1162Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds); 1163Debug.Assert(cellStyle != null); 1461Debug.Assert(this.FlatStyle == FlatStyle.Popup); 1639Debug.Assert(formattedValue == null || this.FormattedValueType == null || this.FormattedValueType.IsAssignableFrom(formattedValue.GetType()));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (12)
432Debug.Assert(value >= -1); 433Debug.Assert(value < Int32.MaxValue); 513Debug.Assert(value > 0); 620Debug.Assert(this.Index > -1); 624Debug.Assert(columnStyle != null); 634Debug.Assert(dataGridViewStyle != null); 723Debug.Assert(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet); 733Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet); 1038Debug.Assert(value > 0); 1225Debug.Assert(dataGridView == null || this.Index > -1); 1233Debug.Assert(autoSizeColumnCriteriaInternal == DataGridViewAutoSizeColumnCriteriaInternal.Header || 1241Debug.Assert(dataGridView.ColumnHeadersVisible || autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Header);
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (27)
280Debug.Assert(this.DataGridView != null); 314Debug.Assert(this.DataGridView != null); 356Debug.Assert(smallestIndex >= 0); 587Debug.Assert((includeFilter & ~(DataGridViewElementStates.Displayed | DataGridViewElementStates.Frozen | DataGridViewElementStates.Resizable | 589Debug.Assert((includeFilter & DataGridViewElementStates.Resizable) == 0); 590Debug.Assert(DisplayInOrder(fromColumnIndex, toColumnIndex)); 591Debug.Assert(((DataGridViewColumn) this.items[toColumnIndex]).StateIncludes(includeFilter)); 600Debug.Assert(dataGridViewColumn != null); 611Debug.Assert(dataGridViewColumn != null); 612Debug.Assert(this.itemsSorted != null); 613Debug.Assert(this.lastAccessedSortedIndex == -1 || 640Debug.Assert((includeFilter & ~(DataGridViewElementStates.Displayed | DataGridViewElementStates.Frozen | DataGridViewElementStates.Resizable | 965Debug.Assert(this.DataGridView != null); 1007Debug.Assert(includeFilter == DataGridViewElementStates.Displayed || 1036Debug.Assert(includeFilter == DataGridViewElementStates.Displayed || 1079Debug.Assert(this.DataGridView != null); 1085Debug.Assert(this.DataGridView != null); 1183Debug.Assert(index >= 0 && index < this.Count); 1184Debug.Assert(this.DataGridView != null); 1185Debug.Assert(!this.DataGridView.NoDimensionChangeAllowed); 1186Debug.Assert(!this.DataGridView.InDisplayIndexAdjustments); 1222Debug.Assert(columnWidthIncrement != 0); 1230Debug.Assert(columnWidthIncrement != 0); 1290Debug.Assert(x != null); 1291Debug.Assert(y != null); 1296Debug.Assert(dataGridViewColumn1 != null); 1297Debug.Assert(dataGridViewColumn2 != null);
winforms\Managed\System\WinForms\DataGridViewColumnEventArgs.cs (1)
24Debug.Assert(dataGridViewColumn.Index >= -1);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (12)
106Debug.Assert(value >= SortOrder.None && value <= SortOrder.Descending); 160Debug.Assert(inFirstRow); 203Debug.Assert(csv); 319Debug.Assert(this.DataGridView != null); 327Debug.Assert(cellStyle != null); 331Debug.Assert(columnHeadersStyle != null); 334Debug.Assert(dataGridViewStyle != null); 466Debug.Assert(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet); 480Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet); 783Debug.Assert(cellStyle != null); 833Debug.Assert(this.ButtonState == ButtonState.Pushed); 1105Debug.Assert(this.SortGlyphDirection == SortOrder.Descending);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (33)
209Debug.Assert(this.DisplayMember != null && this.DisplayMember.Length > 0); 223Debug.Assert(this.ValueMember != null && this.ValueMember.Length > 0); 348Debug.Assert(value >= DataGridViewComboBoxDisplayStyle.ComboBox && value <= DataGridViewComboBoxDisplayStyle.Nothing); 517Debug.Assert(value >= FlatStyle.Flat && value <= FlatStyle.System); 740Debug.Assert(this.EditingComboBox != null); 807Debug.Assert(this.DataGridView != null); 808Debug.Assert(this.EditingComboBox != null); 839Debug.Assert(cachedDropDownWidth >= 1); 917Debug.Assert(sender == this.DataSource); 918Debug.Assert(this.DataSource is ISupportInitializeNotification); 919Debug.Assert((this.flags & DATAGRIDVIEWCOMBOBOXCELL_dataSourceInitializedHookedUp) != 0x00); 1246Debug.Assert(item != null); 1495Debug.Assert(this.EditingComboBox != null); 1498Debug.Assert(rowIndex > -1); 1506Debug.Assert(this.DataGridView != null && 1509Debug.Assert(!this.ReadOnly); 1666Debug.Assert(property != null); 1667Debug.Assert(this.DataManager != null); 1698Debug.Assert(!string.IsNullOrEmpty(field)); 1781Debug.Assert(value != null); 1782Debug.Assert(this.ValueMemberProperty != null || this.DisplayMemberProperty != null || 1824Debug.Assert(this.DisplayMemberProperty != null || this.ValueMemberProperty != null || 1879Debug.Assert(this.TemplateComboBoxColumn.CellTemplate == this); 1910Debug.Assert(e.ColumnIndex == this.ColumnIndex); 2112Debug.Assert(paint || computeContentBounds || computeErrorIconBounds || computeDropDownButtonRect); 2113Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds || !computeDropDownButtonRect); 2114Debug.Assert(!paint || !computeContentBounds || !computeDropDownButtonRect || !computeErrorIconBounds); 2115Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint || !computeDropDownButtonRect); 2116Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !computeDropDownButtonRect || !paint); 2117Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds || !computeDropDownButtonRect); 2118Debug.Assert(!computeErrorIconBounds || !paint || !computeDropDownButtonRect || !computeContentBounds); 2119Debug.Assert(cellStyle != null); 2762Debug.Assert(owner != null);
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (17)
244Debug.Assert(this.dataConnectionState[DATACONNECTIONSTATE_cancellingRowEdit]); 372Debug.Assert(this.props != null); 415Debug.Assert(sortProperty == null); 431Debug.Assert(this.props != null); 604Debug.Assert(this.currencyManager.List.Count == 1); 609Debug.Assert(this.dataConnectionState[DATACONNECTIONSTATE_finishedAddNew]); 765Debug.Assert(this.owner.CurrentCellAddress.X == -1); 869Debug.Assert(sender == this.dataSource); 870Debug.Assert(this.dataSource is ISupportInitializeNotification); 871Debug.Assert(this.dataConnectionState[DATACONNECTIONSTATE_dataSourceInitializedHookedUp]); 885Debug.Assert(this.currencyManager != null); 892Debug.Assert(this.currencyManager != null); 923Debug.Assert(this.owner.newRowIndex == this.currencyManager.List.Count - 1); 1244Debug.Assert(rowIndex >= 0); 1278Debug.Assert(rowIndex >= 0); 1326Debug.Assert(dataGridViewColumn != null); 1333Debug.Assert(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewDataErrorEventArgs.cs (1)
27Debug.Assert(rowIndex > -1);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (6)
62Debug.Assert(Enum.IsDefined(typeof(ButtonState), value)); 105Debug.Assert(!this.DataGridView.LayoutInfo.dirty); 601Debug.Assert(this.ButtonState == ButtonState.Pushed); 602Debug.Assert(this.ColumnIndex == this.DataGridView.MouseDownCellAddress.X); 603Debug.Assert(rowIndex == this.DataGridView.MouseDownCellAddress.Y); 677Debug.Assert(this.DataGridView != null);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (10)
180Debug.Assert(value >= DataGridViewImageCellLayout.NotSet && value <= DataGridViewImageCellLayout.Zoom); 237Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 635Debug.Assert(imageLayout != DataGridViewImageCellLayout.Stretch); 805Debug.Assert(paint || computeContentBounds || computeErrorIconBounds); 806Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds); 807Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint); 808Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds); 809Debug.Assert(cellStyle != null); 859Debug.Assert(imageLayout != DataGridViewImageCellLayout.NotSet); 973Debug.Assert(valBounds.Height <= 0 || valBounds.Width <= 0);
winforms\Managed\System\WinForms\DataGridViewIntLinkedList.cs (9)
40Debug.Assert(source != null); 53Debug.Assert(index >= 0); 54Debug.Assert(index < this.count); 80Debug.Assert(index >= 0); 84Debug.Assert(index == this.lastAccessedIndex); 104Debug.Assert(this.headElement != null); 243Debug.Assert(this.current != null); // Since this is for internal use only. 253Debug.Assert(this.current == null); 259Debug.Assert(this.current != null); // Since this is for internal use only.
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (7)
180Debug.Assert(value >= LinkBehavior.SystemDefault && value <= LinkBehavior.NeverUnderline); 997Debug.Assert(paint || computeContentBounds || computeErrorIconBounds); 998Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds); 999Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint); 1000Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds); 1001Debug.Assert(cellStyle != null); 1126Debug.Assert(computeContentBounds);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (821)
82Debug.Assert(this.Columns.Count > 0); 83Debug.Assert(this.newRowIndex == -1); 315Debug.Assert(dataGridViewColumn != null); 316Debug.Assert(rowIndex > -1); 317Debug.Assert(rowIndex < this.Rows.Count); 346Debug.Assert(this.noAutoSizeCount > 0); 355Debug.Assert(autoSizeColumnCriteriaFilter != DataGridViewAutoSizeColumnCriteriaInternal.None); 356Debug.Assert((autoSizeColumnCriteriaFilter & DataGridViewAutoSizeColumnCriteriaInternal.Fill) == 0); 377Debug.Assert(columnIndex >= -1 && columnIndex < this.Columns.Count); 378Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 379Debug.Assert(this.autoSizeRowsMode == DataGridViewAutoSizeRowsMode.DisplayedHeaders || 397Debug.Assert(columnIndex == -1); 398Debug.Assert((((DataGridViewAutoSizeRowsModeInternal) autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0); 402Debug.Assert(this.RowHeadersWidth > 0); 403Debug.Assert(this.RowHeadersVisible); 422Debug.Assert(preferredThickness >= minimumHeight); 429Debug.Assert(this.autoSizeRowsMode != DataGridViewAutoSizeRowsMode.None); 476Debug.Assert((((DataGridViewAutoSizeRowsModeInternal) this.autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.Header) != 0); 480Debug.Assert(this.RowHeadersWidth > 0); 481Debug.Assert(this.RowHeadersVisible); 507Debug.Assert((((DataGridViewAutoSizeRowsModeInternal) this.autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0); 548Debug.Assert(dataGridViewColumn != null); 549Debug.Assert(dataGridViewColumn.Visible); 550Debug.Assert(!dataGridViewColumn.Frozen); 551Debug.Assert(dataGridViewColumn.MinimumWidth <= width); 552Debug.Assert(dataGridViewColumn.InheritedAutoSizeMode == DataGridViewAutoSizeColumnMode.Fill); 553Debug.Assert(!this.layout.dirty); 559Debug.Assert(dataGridViewColumn.MinimumWidth == dataGridViewColumn.Width); 584Debug.Assert(!dataGridViewColumnTmp.Frozen); 724Debug.Assert(!dataGridViewColumnTmp.Frozen); 766Debug.Assert(newWeightSum > 0); 912Debug.Assert(!dataGridViewColumn.Frozen); 932Debug.Assert(this.layout.Data.Width == this.layout.Inside.Width - this.layout.RowHeaders.Width - (this.SingleVerticalBorderAdded ? 1 : 0)); 994Debug.Assert(weightSum > 0); 1159Debug.Assert(oldDesiredWidth >= mostDeservingDataGridViewColumn.DesiredFillWidth); 1170Debug.Assert(widthLoss >= 0); 1307Debug.Assert((((DataGridViewAutoSizeRowsModeInternal) autoSizeRowsMode) & DataGridViewAutoSizeRowsModeInternal.DisplayedRows) != 0); 1462Debug.Assert(this.selectedBandIndexes.Contains(rowIndex) == 1605Debug.Assert(finalClonedColumns[clonedColIndex].IsDataBound); 1629Debug.Assert(finalClonedColumns[k].IsDataBound); 1637Debug.Assert(autoSizeColumnCriteriaFilter != DataGridViewAutoSizeColumnCriteriaInternal.None); 1638Debug.Assert((autoSizeColumnCriteriaFilter & DataGridViewAutoSizeColumnCriteriaInternal.Fill) == 0); 1782Debug.Assert(this.noAutoSizeCount > 0); 1855Debug.Assert(this.noAutoSizeCount > 0); 1862Debug.Assert(autoSizeColumnCriteriaInternal == DataGridViewAutoSizeColumnCriteriaInternal.Header || 1867Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 1868Debug.Assert(autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Header || this.ColumnHeadersVisible); 1910Debug.Assert(this.noAutoSizeCount > 0); 2118Debug.Assert(this.noAutoSizeCount > 0); 2291Debug.Assert(this.noAutoSizeCount > 0); 2298Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 2299Debug.Assert(((DataGridViewAutoSizeRowCriteriaInternal) autoSizeRowMode & invalidDataGridViewAutoSizeRowCriteriaInternalMask) == 0); 2351Debug.Assert(this.noAutoSizeCount > 0); 2472Debug.Assert(this.lastRowSplitBar == -1); 2615Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count); 2616Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 2617Debug.Assert(!this.IsCurrentCellInEditMode); 2620Debug.Assert(dataGridViewCell != null); 2645Debug.Assert(!this.IsCurrentCellInEditMode); 2699Debug.Assert(((IDataGridViewEditingControl)this.editingControl).EditingControlDataGridView == this); 2703Debug.Assert(this.editingControl == null); 2705Debug.Assert(this.editingControl != null); 2715Debug.Assert(this.editingControl != null); 2728Debug.Assert(this.editingControl != null); 2729Debug.Assert(this.editingPanel != null); 2732Debug.Assert(dgvese.CellStyle != null); 2796Debug.Assert(this.lastColSplitBar == -1); 2819Debug.Assert(this.lastRowSplitBar == -1); 2826Debug.Assert(inheritedCellStyle != null); 2832Debug.Assert(cellStyle != null); 2836Debug.Assert(columnHeadersStyle != null); 2839Debug.Assert(dataGridViewStyle != null); 2968Debug.Assert(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet); 2982Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet); 3073Debug.Assert(this.ptCurrentCell.Y != -1); 3105Debug.Assert(success); 3121Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 3123Debug.Assert(dataGridViewEditingCell != null); 3157Debug.Assert(dataGridViewEditingCell != null); 3165Debug.Assert((this.AllowUserToAddRowsInternal && this.Rows.Count == 1) || 3181Debug.Assert(success); 3223Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 3254Debug.Assert(0 == this.Rows.GetFirstRow(DataGridViewElementStates.Visible)); 3293Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 3358Debug.Assert(dataGridViewCurrentCell.OwningColumn != null); 3489Debug.Assert(this.noDimensionChangeCount >= 0); 3627Debug.Assert(this.noDimensionChangeCount >= 0); 3650Debug.Assert(dataGridViewColumn != null); 3660Debug.Assert(firstVisibleFrozenColumn != null); 3665Debug.Assert(this.Columns.DisplayInOrder(firstVisibleFrozenColumn.Index, dataGridViewColumn.Index)); 3696Debug.Assert(hti.col != -1); 3742Debug.Assert(hti.col != -1); 3800Debug.Assert(this.ptCurrentCell.X > -1); 3886Debug.Assert( 3900Debug.Assert(this.ptCurrentCell.X > -1); 3929Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 3962Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 4031Debug.Assert(this.ptCurrentCell.X > -1); 4130Debug.Assert(columnIndex < this.Columns.Count); 4147Debug.Assert(success); 4162Debug.Assert(dataGridViewRow != null); 4218Debug.Assert(cx <= this.horizontalOffset); 4304Debug.Assert(rowIndex < this.displayedBandsInfo.FirstDisplayedScrollingRow); 4361Debug.Assert(insideLeft.Height >= 0); 4382Debug.Assert(insideLeft.Width >= 0); 4400Debug.Assert(colHeaders.Width >= 0); 4440Debug.Assert(newLayout.Data.X >= 0); 4441Debug.Assert(newLayout.Data.Y >= 0); 4442Debug.Assert(newLayout.Data.Width >= 0); 4443Debug.Assert(newLayout.Data.Height >= 0); 4451Debug.Assert(!this.layout.dirty); 4511Debug.Assert(this.vertScrollBar.Maximum > 0); 4523Debug.Assert(this.verticalOffset == this.vertScrollBar.Value); 4599Debug.Assert(cx <= this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 4639Debug.Assert(firstDisplayedScrollingCol >= 0); 4660Debug.Assert(this.negOffset == 0); 4679Debug.Assert(this.negOffset == 0); 4683Debug.Assert(dataGridViewColumn != null); 4684Debug.Assert(dataGridViewColumn.Thickness > displayWidth - cx); 4691Debug.Assert(this.negOffset == GetNegOffsetFromHorizontalOffset(this.horizontalOffset)); 4711Debug.Assert(jumpFromFirstVisibleScrollingCol >= -1); 4719Debug.Assert(firstDisplayedScrollingCol >= 0); 4726Debug.Assert(dataGridViewColumn != null); 4740Debug.Assert((this.displayedBandsInfo.NumDisplayedScrollingCols > 0 && this.displayedBandsInfo.FirstDisplayedScrollingCol != -1) || 4773Debug.Assert(cy < displayHeight); 4875Debug.Assert(lastDisplayedScrollingRow == -1); 4940Debug.Assert(dataGridViewColumn != null); 4941Debug.Assert(dataGridViewColumn.DataGridView == null); 4942Debug.Assert(dataGridViewColumn.Index >= 0); 4943Debug.Assert(dataGridViewColumn.DisplayIndex >= 0); 4974Debug.Assert(dataGridViewColumn != null); 4975Debug.Assert(dataGridViewColumn.DataGridView == this); 4977Debug.Assert(dataGridViewColumn.DisplayIndex >= 0); 4978Debug.Assert(dataGridViewColumn.DisplayIndex < this.Columns.Count); 5009Debug.Assert(dataGridViewColumn != null); 5010Debug.Assert(anticipatedColumnIndex >= 0 && anticipatedColumnIndex <= this.Columns.Count); 5019Debug.Assert(dataGridViewColumn.DisplayIndex >= 0 && dataGridViewColumn.DisplayIndex <= this.Columns.Count); 5073Debug.Assert(dataGridViewColumn != null); 5135Debug.Assert(dataGridViewColumn != null); 5136Debug.Assert(newDisplayIndex != dataGridViewColumn.DisplayIndex); 5137Debug.Assert(!this.dataGridViewOper[DATAGRIDVIEWOPER_inDisplayIndexAdjustments]); 5195Debug.Assert(dataGridViewColumn != null); 5199Debug.Assert(this.Columns[columnIndex].Index == columnIndex); 5205Debug.Assert(dataGridViewColumn != null); 5206Debug.Assert(insertionCount > 0); 5217Debug.Assert(this.CurrentCellInternal != null); 5225Debug.Assert(dataGridViewRow != null); 5226Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <= this.Rows.Count); 5290Debug.Assert(dataGridViewRow != null); 5349Debug.Assert(rowIndexDeleted >= 0); 5357Debug.Assert(dataGridViewRow.Index == rowIndex); 5374Debug.Assert(rowIndexInserted >= 0); 5375Debug.Assert(insertionCount > 0); 5383Debug.Assert(dataGridViewRow.Index == rowIndex); 5464Debug.Assert(this.Rows.Count > 1); 5465Debug.Assert(this.newRowIndex != -1); 5475Debug.Assert(this.newRowIndex == this.Rows.Count - 1); 5478Debug.Assert(dataGridViewRow.Index == -1); 5482Debug.Assert(this.newRowIndex == -1); 5487Debug.Assert((this.Rows.GetRowState(this.newRowIndex) & DataGridViewElementStates.Visible) != 0); 5488Debug.Assert(this.ptCurrentCell.Y == this.newRowIndex); 5555Debug.Assert(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen); 5663Debug.Assert(this.noSelectionChangeCount == 0); 5799Debug.Assert(this.ptCurrentCell.X != -1); 5984Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 5985Debug.Assert(this.ptCurrentCell.X != -1); 5995Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 5996Debug.Assert(this.ptCurrentCell.X != -1); 6006Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 6012Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 6018Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 6024Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 6027Debug.Assert(this.editingControl != null); 6028Debug.Assert(!this.dataGridViewState1[DATAGRIDVIEWSTATE1_customCursorSet]); 6043Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 6046Debug.Assert(this.editingControl != null); 6065Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 6071Debug.Assert(sender == this.editingControl || sender == this.editingPanel); 6162Debug.Assert(proposed >= this.Columns[this.trackColumn].MinimumThickness); 6163Debug.Assert(proposed <= DataGridViewBand.maxBandThickness); 6271Debug.Assert(this.editingPanel == null || this.editingPanel.Controls.Count == 0); 6280Debug.Assert(success); 6292Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 6368Debug.Assert(this.autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 6416Debug.Assert(rowIndex >= 0); 6417Debug.Assert(rowIndex < this.Rows.Count); 6418Debug.Assert((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0); 6419Debug.Assert((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Frozen) == 0); 6455Debug.Assert(numDisplayedScrollingRows > 0); 6458Debug.Assert(rowIndexTmp != -1); 6470Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow != -1); 6497Debug.Assert(rowIndexTmp != -1); 6520Debug.Assert(firstDisplayedFrozenRowIndex != -1); 6656Debug.Assert(numDisplayedScrollingCols > 0); 6660Debug.Assert(dataGridViewColumnTmp != null); 6672Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol != -1); 6699Debug.Assert(dataGridViewColumnTmp != null); 7041Debug.Assert(dataGridViewCell != null); 7042Debug.Assert(rowIndex >= 0); 7181Debug.Assert(columnIndex >= -1 && columnIndex < this.Columns.Count); 7182Debug.Assert(rowIndex >= -1 && rowIndex < this.Rows.Count); 7186Debug.Assert(dataGridViewRow != null); 7372Debug.Assert(rowIndex != -1); 7543Debug.Assert(dataGridViewColumn != null); 7605Debug.Assert(dataGridViewColumn != null); 7908Debug.Assert(firstVisibleColumn != null); 7909Debug.Assert(lastVisibleColumn != null); 7931Debug.Assert(firstVisibleRowIndex != -1); 7932Debug.Assert(lastVisibleRowIndex != -1); 7975Debug.Assert(lRowIndex != -1); 7976Debug.Assert(uRowIndex != -1); 7977Debug.Assert(lColumn != null); 7978Debug.Assert(uColumn != null); 7979Debug.Assert(lColumn.Index == uColumn.Index || this.Columns.DisplayInOrder(lColumn.Index, uColumn.Index)); 7980Debug.Assert(lRowIndex <= uRowIndex); 8007Debug.Assert(dataGridViewColumn != null); 8013Debug.Assert(prevDataGridViewColumn != null); 8062Debug.Assert(dataGridViewColumn != null); 8068Debug.Assert(nextDataGridViewColumn != null); 8092Debug.Assert(rowIndex != -1); 8098Debug.Assert(nextRowIndex != -1); 8109Debug.Assert(dataGridViewColumn != null); 8115Debug.Assert(prevDataGridViewColumn != null); 8169Debug.Assert(dataGridViewColumn != null); 8175Debug.Assert(nextDataGridViewColumn != null); 8255Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 8348Debug.Assert(dataGridViewColumn != null); 8463Debug.Assert(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen); 8494Debug.Assert(xOffset > 0); 8525Debug.Assert(index < this.Columns.Count); 8526Debug.Assert(this.Columns[index].Visible); 8577Debug.Assert(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen); 8649Debug.Assert(!this.vertScrollBar.Enabled || 8680Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8713Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 8731Debug.Assert(mouseY > rectScrollingArea.Bottom); 8777Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 8831Debug.Assert((!this.RightToLeftInternal && mouseX > rectScrollingArea.Right) || (this.RightToLeftInternal && mouseX < rectScrollingArea.Left)); 8897Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 9117Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 9231Debug.Assert((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 && 9254Debug.Assert(yOffset > 0); 9283Debug.Assert(index >= 0 && index < this.Rows.Count); 9284Debug.Assert((this.Rows.GetRowState(index) & DataGridViewElementStates.Visible) != 0); 9319Debug.Assert(indexTmp != -1); 9324Debug.Assert((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0 && 9340Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow != -1); 9449Debug.Assert(xColumnLeftEdge == GetColumnXFromIndex(hti.col)); 9551Debug.Assert(yRowTopEdge == GetRowYFromIndex(hti.row)); 9628Debug.Assert(xColumnLeftEdge == GetColumnXFromIndex(hti.col)); 9629Debug.Assert(yRowTopEdge == GetRowYFromIndex(hti.row)); 9706Debug.Assert(dataGridViewColumn != null); 9765Debug.Assert(rowIndex >= 0); 9786Debug.Assert(this.dataGridViewOper[DATAGRIDVIEWOPER_trackColSelect] || this.dataGridViewOper[DATAGRIDVIEWOPER_trackCellSelect]); 9847Debug.Assert(dataGridViewEditingCell != null); 9853Debug.Assert(this.ptCurrentCell.X == dataGridViewCell.ColumnIndex); 9889Debug.Assert(dataGridViewCell != null); 9890Debug.Assert(this.editingControl != null); 9947Debug.Assert(dataGridViewCell != null); 9948Debug.Assert(dataGridViewCell.DataGridView == this); 9993Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 10039Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 10063Debug.Assert(lo <= hi); 10064Debug.Assert(lo < this.Rows.Count); 10065Debug.Assert(hi < this.Rows.Count); 10095Debug.Assert(lo <= hi); 10096Debug.Assert(lo > -1); 10354Debug.Assert(this.layout.Data.Height >= 0); 10376Debug.Assert(this.layout.RowHeaders.Height >= 0); 10397Debug.Assert(this.layout.Data.Width >= 0); 10405Debug.Assert(this.layout.ColumnHeaders.Width >= 0); 10438Debug.Assert(this.layout.Data.Height >= 0); 10449Debug.Assert(this.layout.Data.Width >= 0); 10457Debug.Assert(this.layout.ColumnHeaders.Width >= 0); 10491Debug.Assert(this.horizScrollBar.Maximum > 0); 10533Debug.Assert(this.vertScrollBar.Maximum > 0); 10581Debug.Assert(success); 10693Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count); 10694Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 10711Debug.Assert(dataGridViewColumn.Index >= 0); 10712Debug.Assert(dataGridViewColumn.Index < this.Columns.Count); 10713Debug.Assert(dataGridViewColumn.DataGridView == this); 10732Debug.Assert(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet); 10759Debug.Assert(rowIndex >= 0); 10765Debug.Assert(rowIndex == this.Rows.Count - 1); 10797Debug.Assert(rowIndex >= 0); 10988Debug.Assert(dataGridViewRow.Cells.Count < newColumnCount); 11004Debug.Assert(weightSum <= (float)ushort.MaxValue); 11007Debug.Assert(dataGridViewColumns != null); 11061Debug.Assert(weightSum <= (float)ushort.MaxValue); 11084Debug.Assert(dataGridViewColumn.CellType != null); 11101Debug.Assert(dataGridViewColumn.CellType != null); 11176Debug.Assert(dataGridViewRows != null); 11216Debug.Assert(!this.AllowUserToAddRowsInternal); 11339Debug.Assert(dataGridViewColumn != null); 11353Debug.Assert(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet); 11436Debug.Assert(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet); 11486Debug.Assert(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet); 11770Debug.Assert(dataGridViewCell != null); 11856Debug.Assert(dataGridViewCell != null); 11892Debug.Assert(dataGridViewCell != null); 11974Debug.Assert(dataGridViewCell != null); 12022Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 12053Debug.Assert(this.noDimensionChangeCount >= 0); 12059Debug.Assert(dataGridViewCell.RowIndex >= -1); 12060Debug.Assert(dataGridViewCell.ColumnIndex >= -1); 12088Debug.Assert(columnIndex >= 0); 12089Debug.Assert(rowIndex >= 0); 12155Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 12186Debug.Assert(this.noDimensionChangeCount >= 0); 12203Debug.Assert(dataGridViewCell != null); 12235Debug.Assert(dataGridViewCell != null); 12268Debug.Assert(dataGridViewCell != null); 12282Debug.Assert(hti.Type != DataGridViewHitTestType.None && 12285Debug.Assert(this.ptMouseDownCell.X == hti.col); 12286Debug.Assert(this.ptMouseDownCell.Y == hti.row); 12337Debug.Assert(this.Columns[columnIndex].Resizable == DataGridViewTriState.True); 12438Debug.Assert(hti.Type == DataGridViewHitTestType.Cell); 12510Debug.Assert(this.MultiSelect || this.individualSelectedCells.Count <= 1); 12545Debug.Assert(success); 12569Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 12622Debug.Assert(this.selectedBandIndexes.Contains(hti.col)); 12626Debug.Assert(success); 12642Debug.Assert(this.selectedBandIndexes.Count <= 1); 12705Debug.Assert(this.selectedBandIndexes.Count <= 1); 12721Debug.Assert(success); 12746Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 12794Debug.Assert(this.selectedBandIndexes.Contains(hti.row) == 12801Debug.Assert(this.selectedBandIndexes.Contains(hti.row)); 12805Debug.Assert(success); 12822Debug.Assert(this.selectedBandIndexes.Count <= 1); 12885Debug.Assert(this.selectedBandIndexes.Count <= 1); 12932Debug.Assert(dataGridViewCell != null); 12966Debug.Assert(dataGridViewCell != null); 12997Debug.Assert(dataGridViewCell != null); 13028Debug.Assert(hti.Type != DataGridViewHitTestType.None && 13040Debug.Assert(!this.dataGridViewState2[DATAGRIDVIEWSTATE2_messageFromEditingCtrls]); 13065Debug.Assert(dataGridViewCell != null); 13133Debug.Assert(this.MultiSelect); 13154Debug.Assert(success); 13171Debug.Assert(dataGridViewCell.RowIndex >= 0); 13233Debug.Assert(dataGridViewCellStyle != null); 13452Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 13484Debug.Assert(this.noDimensionChangeCount >= 0); 13504Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 13538Debug.Assert(this.noDimensionChangeCount >= 0); 13828Debug.Assert(dataGridViewColumn != null); 13835Debug.Assert(dataGridViewColumn != null); 13836Debug.Assert(newDisplayIndex != dataGridViewColumn.DisplayIndex); 13895Debug.Assert(this.dataGridViewOper[DATAGRIDVIEWOPER_inDisplayIndexAdjustments]); 13908Debug.Assert(this.dataGridViewOper[DATAGRIDVIEWOPER_inDisplayIndexAdjustments]); 14003Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 14086Debug.Assert(autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.None); 14087Debug.Assert(autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Fill); 14119Debug.Assert(this.sortOrder != SortOrder.None); 14156Debug.Assert(hti.Type == DataGridViewHitTestType.ColumnHeader); 14243Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 14271Debug.Assert(this.individualSelectedCells.Count == 0); 14311Debug.Assert(success); 14317Debug.Assert(success); 14323Debug.Assert(success); 14328Debug.Assert(this.CurrentCellAddress == new Point(-1, -1)); 14333Debug.Assert(this.selectedBandIndexes.Contains(hti.col)); 14475Debug.Assert(dataGridViewColumn != null); 14499Debug.Assert(dataGridViewColumn.Width == minimumWidth); 14525Debug.Assert(dataGridViewColumn != null); 14579Debug.Assert(dataGridViewColumn != null); 14580Debug.Assert(dataGridViewColumn.DataGridView == null); 14596Debug.Assert(hti.col >= 0); 14597Debug.Assert(this.MultiSelect); 14617Debug.Assert(dataGridViewColumn != null); 14624Debug.Assert(dataGridViewColumn != null); 14631Debug.Assert(dataGridViewColumn != null); 14638Debug.Assert(dataGridViewColumn != null); 14645Debug.Assert(dataGridViewColumn != null); 14652Debug.Assert(dataGridViewColumn != null); 14659Debug.Assert(dataGridViewColumn != null); 14662Debug.Assert(dataGridViewColumn != null); 14669Debug.Assert(dataGridViewColumn != null); 14672Debug.Assert(dataGridViewColumn != null); 14693Debug.Assert(success); 14723Debug.Assert(dataGridViewColumn != null); 14806Debug.Assert(this.Columns.DisplayInOrder(dataGridViewColumn.Index, this.displayedBandsInfo.FirstDisplayedScrollingCol)); 14849Debug.Assert(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet); 15041Debug.Assert(this.ptCurrentCell.Y >= 0); 15046Debug.Assert(this.newRowIndex != -1); 15047Debug.Assert(this.AllowUserToAddRowsInternal); 15233Debug.Assert(!this.ReadOnly); 15269Debug.Assert((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0); 15273Debug.Assert(this.dataConnection != null); 15274Debug.Assert(this.dataConnection.CurrencyManager != null); 15275Debug.Assert(this.dataConnection.CurrencyManager.Position == this.ptCurrentCell.Y); 15330Debug.Assert(!this.Columns[dataGridViewCell.ColumnIndex].ReadOnly); 15331Debug.Assert(!this.Rows[dataGridViewCell.RowIndex].ReadOnly); 15332Debug.Assert(!this.ReadOnly); 15772Debug.Assert(this.ptCurrentCell.X == -1); 15780Debug.Assert(success); 15786Debug.Assert(rowIndex >= 0); 15787Debug.Assert(insertionCount > 0); 15801Debug.Assert(rowIndex >= 0); 15809Debug.Assert(this.ptCurrentCell.X == -1); 15817Debug.Assert(success); 15823Debug.Assert(rowIndex >= 0); 15824Debug.Assert(dataGridViewRows != null); 15825Debug.Assert(dataGridViewRows.Length > 0); 15839Debug.Assert(dataGridViewRows != null); 15840Debug.Assert(dataGridViewRows.Length > 0); 15848Debug.Assert(this.ptCurrentCell.X == -1); 15850Debug.Assert(success); 15856Debug.Assert(dataGridViewColumn != null); 15953Debug.Assert(dataGridViewRow.Cells.Count < newColumnCount); 16015Debug.Assert(success); 16077Debug.Assert(dataGridViewRows != null); 16145Debug.Assert(dataGridViewCell != null); 16203Debug.Assert(dataGridViewCell != null); 16237Debug.Assert(dataGridViewCell != null); 16372Debug.Assert(dgvcme != null); 16382Debug.Assert(dgvcme != null); 16437Debug.Assert(dgvcme != null); 16453Debug.Assert(this.Columns[columnIndex].Resizable == DataGridViewTriState.True); 16466Debug.Assert(this.columnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.EnableResizing); 16473Debug.Assert(dgvcme != null); 16489Debug.Assert(this.Rows[rowIndex].Resizable == DataGridViewTriState.True); 16502Debug.Assert(this.rowHeadersWidthSizeMode == DataGridViewRowHeadersWidthSizeMode.EnableResizing); 16530Debug.Assert(this.ptMouseDownCell.Y != -2); 16924Debug.Assert(this.cumulativeVerticalWheelDelta > -NativeMethods.WHEEL_DELTA); 16925Debug.Assert(this.cumulativeVerticalWheelDelta < NativeMethods.WHEEL_DELTA); 16926Debug.Assert(this.cumulativeHorizontalWheelDelta > -NativeMethods.WHEEL_DELTA); 16927Debug.Assert(this.cumulativeHorizontalWheelDelta < NativeMethods.WHEEL_DELTA); 17020Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 17028Debug.Assert(totalVisibleFrozenHeight == this.Rows.GetRowsHeight(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 17029Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 17326Debug.Assert(dataGridViewColumn.Index >= 0); 17327Debug.Assert(dataGridViewColumn.DataGridView == null); 17351Debug.Assert(this.ptCurrentCell.X == -1); 17359Debug.Assert(success); 17375Debug.Assert(autoSizeColumnMode != DataGridViewAutoSizeColumnMode.NotSet); 17401Debug.Assert(this.ptCurrentCell.X == -1); 17409Debug.Assert(success); 17474Debug.Assert(dataGridViewColumn != null); 17475Debug.Assert(dataGridViewColumn.Index >= 0 && dataGridViewColumn.Index < this.Columns.Count); 17533Debug.Assert(success); 17541Debug.Assert(success); 17557Debug.Assert(columnIndex == 0); 17641Debug.Assert(this.horizontalOffset >= dataGridViewColumn.Thickness); 17690Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted < this.Rows.Count); 17705Debug.Assert(this.newRowIndex != -1); 17706Debug.Assert(this.newRowIndex == this.Rows.Count-1); 17733Debug.Assert(rowIndexDeleted < this.ptCurrentCell.Y); 17741Debug.Assert(success); 17749Debug.Assert(success); 17992Debug.Assert(rowIndex >= 0); 18114Debug.Assert(columnIndex >= 0 && rowIndex >= 0); 18187Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 18211Debug.Assert(this.noDimensionChangeCount >= 0); 18239Debug.Assert(rowIndex >= 0); 18410Debug.Assert(hti.Type == DataGridViewHitTestType.RowHeader); 18501Debug.Assert(success); 18523Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 18552Debug.Assert(this.individualSelectedCells.Count == 0); 18580Debug.Assert(this.selectedBandIndexes.Contains(hti.row) == 18594Debug.Assert(success); 18600Debug.Assert(success); 18609Debug.Assert(success); 18614Debug.Assert(this.CurrentCellAddress == new Point(-1, -1)); 18619Debug.Assert(this.selectedBandIndexes.Contains(hti.row)); 18795Debug.Assert(rowIndex != -1); 18796Debug.Assert(this.autoSizeRowsMode == DataGridViewAutoSizeRowsMode.None); 18822Debug.Assert(columnIndex >= 0 && rowIndex >= 0); 18835Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 18859Debug.Assert(this.noDimensionChangeCount >= 0); 18938Debug.Assert(hti.row >= 0); 18939Debug.Assert(this.MultiSelect); 19030Debug.Assert(success); 19099Debug.Assert(rowIndex >= -1); 19294Debug.Assert(this.noDimensionChangeCount >= 0); 19318Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 19341Debug.Assert(this.noDimensionChangeCount >= 0); 19492Debug.Assert(dataGridViewColumnHeaderCell != null); 19541Debug.Assert(success); 19658Debug.Assert(success); 19666Debug.Assert(success); 19697Debug.Assert(rowIndexTmp != -1); 19725Debug.Assert((this.Rows.GetRowState(rowIndexTmp) & DataGridViewElementStates.Visible) != 0); 19727Debug.Assert(numDisplayedScrollingRows > 0); 19730Debug.Assert(rowIndexTmp != -1); 19830Debug.Assert(bounds.Left == 0); 19831Debug.Assert(bounds.Top == 0); 19912Debug.Assert(cellBounds.Width > 0); 19981Debug.Assert(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen); 19989Debug.Assert(cellBounds.Width > 0); 20030Debug.Assert(clipRegion != null); 20094Debug.Assert(this.dataGridViewOper[DATAGRIDVIEWOPER_trackColHeadersResize] || this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowResize]); 20099Debug.Assert(this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowHeadersResize] || 20170Debug.Assert((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Frozen) == 0); 20171Debug.Assert((this.Rows.GetRowState(indexTmp) & DataGridViewElementStates.Visible) != 0); 20307Debug.Assert(this.inPerformLayoutCount >= 0); 20338Debug.Assert(this.editingControl != null); 20392Debug.Assert(this.editingControl != null); 20481Debug.Assert(rowIndex >= 0); 20549Debug.Assert(dataGridViewRow.Index == -1); 20561Debug.Assert(dataGridViewRow.Index == -1); 20738Debug.Assert(success); 20764Debug.Assert(this.ptAnchorCell.Y >= 0); 20811Debug.Assert(success); 20853Debug.Assert(success); 20913Debug.Assert(success); 20967Debug.Assert(success); 20994Debug.Assert(this.ptAnchorCell.Y >= 0); 21030Debug.Assert(success); 21072Debug.Assert(success); 21135Debug.Assert(success); 21185Debug.Assert(success); 21205Debug.Assert(this.ptAnchorCell.Y >= 0); 21268Debug.Assert(success); 21318Debug.Assert(success); 21405Debug.Assert(success); 21461Debug.Assert(success); 21498Debug.Assert(success); 21955Debug.Assert(this.ptCurrentCell.Y != -1); 21956Debug.Assert(this.CurrentCellInternal != null); 21957Debug.Assert(this.EditMode != DataGridViewEditMode.EditOnEnter || 21965Debug.Assert(success); 22311Debug.Assert(dataGridViewCell != null); 22334Debug.Assert(success); 22546Debug.Assert(success); 22552Debug.Assert(success); 22570Debug.Assert(this.ptAnchorCell.X >= 0); 22587Debug.Assert(success); 22597Debug.Assert(success); 22603Debug.Assert(success); 22622Debug.Assert(success); 22642Debug.Assert(success); 22648Debug.Assert(success); 22685Debug.Assert(success); 22695Debug.Assert(success); 22701Debug.Assert(success); 22720Debug.Assert(success); 22740Debug.Assert(success); 22746Debug.Assert(success); 22803Debug.Assert(success); 22813Debug.Assert(success); 22819Debug.Assert(success); 22846Debug.Assert(success); 22864Debug.Assert(success); 22870Debug.Assert(success); 22887Debug.Assert(success); 22920Debug.Assert(success); 22926Debug.Assert(success); 22937Debug.Assert(this.ptAnchorCell.X >= 0); 22949Debug.Assert(success); 22965Debug.Assert(success); 22976Debug.Assert(success); 22982Debug.Assert(success); 22997Debug.Assert(success); 23010Debug.Assert(success); 23016Debug.Assert(success); 23032Debug.Assert(this.ptAnchorCell.X >= 0); 23035Debug.Assert(success); 23050Debug.Assert(success); 23061Debug.Assert(success); 23067Debug.Assert(success); 23082Debug.Assert(success); 23095Debug.Assert(success); 23101Debug.Assert(success); 23116Debug.Assert(this.ptAnchorCell.X >= 0); 23132Debug.Assert(success); 23156Debug.Assert(success); 23167Debug.Assert(success); 23173Debug.Assert(success); 23196Debug.Assert(success); 23207Debug.Assert(success); 23213Debug.Assert(success); 23226Debug.Assert(success); 23270Debug.Assert(firstDisplayedScrollingRowIndex != -1); 23288Debug.Assert(nextScreenVisibleRowIndexTmp != -1); 23324Debug.Assert(success); 23351Debug.Assert(this.ptAnchorCell.Y >= 0); 23367Debug.Assert(success); 23382Debug.Assert(this.ptAnchorCell.Y >= 0); 23415Debug.Assert(this.ptAnchorCell.Y >= 0); 23519Debug.Assert(previousScreenVisibleRowIndexTmp != -1); 23543Debug.Assert(previousScreenVisibleRowIndex != -1); 23566Debug.Assert(success); 23590Debug.Assert(this.ptAnchorCell.Y >= 0); 23621Debug.Assert(this.ptAnchorCell.Y >= 0); 23654Debug.Assert(this.ptAnchorCell.Y >= 0); 23785Debug.Assert(success); 23791Debug.Assert(success); 23825Debug.Assert(success); 23835Debug.Assert(success); 23841Debug.Assert(success); 23860Debug.Assert(success); 23880Debug.Assert(success); 23886Debug.Assert(success); 23923Debug.Assert(success); 23933Debug.Assert(success); 23939Debug.Assert(success); 23958Debug.Assert(success); 23978Debug.Assert(success); 23984Debug.Assert(success); 24044Debug.Assert(success); 24054Debug.Assert(success); 24060Debug.Assert(success); 24087Debug.Assert(success); 24105Debug.Assert(success); 24111Debug.Assert(success); 24128Debug.Assert(success); 24161Debug.Assert(success); 24167Debug.Assert(success); 24181Debug.Assert(this.ptAnchorCell.X >= 0); 24191Debug.Assert(success); 24198Debug.Assert(success); 24209Debug.Assert(success); 24215Debug.Assert(success); 24230Debug.Assert(success); 24243Debug.Assert(success); 24249Debug.Assert(success); 24268Debug.Assert(this.ptAnchorCell.X >= 0); 24271Debug.Assert(success); 24278Debug.Assert(success); 24289Debug.Assert(success); 24295Debug.Assert(success); 24310Debug.Assert(success); 24323Debug.Assert(success); 24329Debug.Assert(success); 24343Debug.Assert(this.ptAnchorCell.X >= 0); 24363Debug.Assert(success); 24378Debug.Assert(success); 24389Debug.Assert(success); 24395Debug.Assert(success); 24418Debug.Assert(success); 24429Debug.Assert(success); 24435Debug.Assert(success); 24448Debug.Assert(success); 24481Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 24498Debug.Assert(!this.selectedBandIndexes.Contains(this.ptCurrentCell.X)); 24506Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 24523Debug.Assert(!this.selectedBandIndexes.Contains(this.ptCurrentCell.Y)); 24772Debug.Assert(success); 24797Debug.Assert(this.ptAnchorCell.Y >= 0); 24831Debug.Assert(success); 24865Debug.Assert(success); 24889Debug.Assert(this.ptAnchorCell.Y >= 0); 24916Debug.Assert(success); 24957Debug.Assert(success); 24979Debug.Assert(this.ptAnchorCell.Y >= 0); 25008Debug.Assert(success); 25042Debug.Assert(success); 25095Debug.Assert(success); 25136Debug.Assert(success); 25157Debug.Assert(this.ptAnchorCell.Y >= 0); 25207Debug.Assert(success); 25249Debug.Assert(success); 25322Debug.Assert(success); 25369Debug.Assert(success); 25398Debug.Assert(success); 25443Debug.Assert(dataGridViewCell != null); 25450Debug.Assert(success); 25462Debug.Assert(dataGridViewCurrentCell != null); 25475Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 25477Debug.Assert(dataGridViewEditingCell != null); 25503Debug.Assert(this.newRowIndex == this.Rows.Count - 1); 25510Debug.Assert(this.IsCurrentCellInEditMode); 25556Debug.Assert(dgvcme.Clicks == 1); 25639Debug.Assert(this.ptCurrentCell.Y != -1); 25659Debug.Assert(this.dataGridViewState1[DATAGRIDVIEWSTATE1_currentCellInEditMode]); 25663Debug.Assert(dataGridViewEditingCell != null); 25715Debug.Assert(list.Count == rowsCount); 25793Debug.Assert(this.noSelectionChangeCount > 0); 25819Debug.Assert(this.noSelectionChangeCount > 0); 25840Debug.Assert(dataGridViewCell.ColumnIndex != columnIndexException || dataGridViewCell.RowIndex != rowIndexException); 25858Debug.Assert(this.noSelectionChangeCount > 0); 25910Debug.Assert(this.noSelectionChangeCount > 0); 26080Debug.Assert(rowIndex >= 0); 26081Debug.Assert(rowIndex < this.Rows.Count); 26124Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 26248Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26264Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= 0); 26309Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 26310Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingCol < this.Columns.Count); 26311Debug.Assert(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol >= -1 && this.displayedBandsInfo.LastTotallyDisplayedScrollingCol < this.Columns.Count); 26312Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 26313Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingRow < this.Rows.Count); 26314Debug.Assert(this.Columns[columnIndex].Visible); 26315Debug.Assert((this.Rows.GetRowState(rowIndex) & DataGridViewElementStates.Visible) != 0); 26371Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 26402Debug.Assert(firstDisplayedScrollingRow != -1); 26424Debug.Assert(rowCount != 0); 26425Debug.Assert(deltaY != 0); 26426Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 26447Debug.Assert(rowsRect.X > 0); 26453Debug.Assert(rowsRect.Height >= 0); 26458Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow > -1); 26482Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26484Debug.Assert(firstVisibleScrollingRow != -1); 26486Debug.Assert(newScrolledOffRowCount >= rowCount); 26493Debug.Assert(rows != 0); 26494Debug.Assert((rows > 0 && (scrollEventType == ScrollEventType.SmallIncrement || scrollEventType == ScrollEventType.LargeIncrement)) || 26498Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26508Debug.Assert(newFirstVisibleScrollingRow != -1); 26525Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow == oldFirstVisibleScrollingRow); 26546Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow == newFirstVisibleScrollingRow); 26560Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 26585Debug.Assert(newFirstVisibleScrollingRow != -1); 26706Debug.Assert(this.noDimensionChangeCount >= 0); 26707Debug.Assert(this.noSelectionChangeCount >= 0); 26734Debug.Assert(index >= 0); 26803Debug.Assert(this.columnHeadersHeight != columnHeadersHeight); 26804Debug.Assert(columnHeadersHeight >= minimumColumnHeadersHeight); 26805Debug.Assert(columnHeadersHeight <= maxHeadersThickness); 26863Debug.Assert(rowIndex >= 0 && 26926Debug.Assert(oldCurrentCellX == this.ptCurrentCell.X); 26927Debug.Assert(oldCurrentCellY == this.ptCurrentCell.Y); 27022Debug.Assert(oldCurrentCellY >= 0); 27118Debug.Assert(oldCurrentCellX == this.ptCurrentCell.X); 27119Debug.Assert(oldCurrentCellY == this.ptCurrentCell.Y); 27163Debug.Assert(oldCurrentCellY >= 0); 27193Debug.Assert(columnIndexFrom >= 0 && columnIndexTo >= 0); 27194Debug.Assert((this.Columns[columnIndexFrom]).DisplayIndex <= (this.Columns[columnIndexTo]).DisplayIndex); 27195Debug.Assert(rowIndexFrom >= 0 && rowIndexTo >= 0); 27196Debug.Assert(rowIndexFrom <= rowIndexTo); 27197Debug.Assert(this.noSelectionChangeCount > 0); 27223Debug.Assert(dataGridViewColumn != null); 27251Debug.Assert(dataGridViewColumn != null); 27277Debug.Assert(this.noSelectionChangeCount > 0); 27307Debug.Assert(columnIndexFrom >= 0 && columnIndexTo >= 0); 27308Debug.Assert((this.Columns[columnIndexFrom]).DisplayIndex <= (this.Columns[columnIndexTo]).DisplayIndex); 27309Debug.Assert(this.noSelectionChangeCount > 0); 27323Debug.Assert(this.selectedBandIndexes.Contains(columnIndex)); 27331Debug.Assert(dataGridViewColumn != null); 27348Debug.Assert(this.selectedBandIndexes.Contains(columnIndexTo)); 27356Debug.Assert(rowIndexFrom >= 0 && rowIndexTo >= 0); 27357Debug.Assert(rowIndexFrom <= rowIndexTo); 27358Debug.Assert(this.noSelectionChangeCount > 0); 27376Debug.Assert(!this.selectedBandIndexes.Contains(rowIndex)); 27385Debug.Assert(this.selectedBandIndexes.Contains(rowIndex)); 27486Debug.Assert(columnIndex >= 0 && rowIndex >= 0 && 27558Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 27593Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 27662Debug.Assert(this.individualSelectedCells.Contains(dataGridViewCell)); 27678Debug.Assert(this.selectedBandIndexes.Contains(columnIndex)); 27712Debug.Assert(this.selectedBandIndexes.Contains(rowIndex)); 27774Debug.Assert(this.individualSelectedCells.Count <= 1); 27787Debug.Assert(this.selectedBandIndexes.Count <= 1); 27823Debug.Assert(this.selectedBandIndexes.Count <= 1); 27839Debug.Assert(this.selectedBandIndexes.Count <= 1); 27863Debug.Assert(this.selectedBandIndexes.Count <= 1); 27880Debug.Assert(this.selectedBandIndexes.Contains(rowIndex) == 27889Debug.Assert(this.selectedBandIndexes.Contains(rowIndex) == 27903Debug.Assert(this.selectedBandIndexes.Count <= 1); 27919Debug.Assert(this.selectedBandIndexes.Count <= 1); 27946Debug.Assert(success); 27970Debug.Assert(!this.selectedBandIndexes.Contains(columnIndex)); 27976Debug.Assert(this.selectedBandIndexes.Contains(columnIndex)); 27989Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 28001Debug.Assert(this.selectedBandIndexes.Count <= 1); 28085Debug.Assert(!this.selectedBandIndexes.Contains(rowIndex)); 28092Debug.Assert(this.selectedBandIndexes.Contains(rowIndex)); 28105Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 28117Debug.Assert(this.selectedBandIndexes.Count <= 1); 28231Debug.Assert(!(comparer != null && this.DataSource != null)); 28232Debug.Assert(direction == ListSortDirection.Ascending || direction == ListSortDirection.Descending); 28252Debug.Assert(rowVFIndex != -1); 28254Debug.Assert(0 == this.Rows.GetRowCount(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen)); 28266Debug.Assert(dataGridViewColumn != null); 28310Debug.Assert(rowVIndex != -1); 28314Debug.Assert(rowVIndex != -1); 28323Debug.Assert(this.dataGridViewOper[DATAGRIDVIEWOPER_inSort]); 28345Debug.Assert(rowIndex1 != this.newRowIndex); 28346Debug.Assert(rowIndex2 != this.newRowIndex); 28492Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28512Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0); 28671Debug.Assert(success); 28729Debug.Assert(dataGridViewColumn != null); 28732Debug.Assert(lastVisibleRowIndex != -1); 28837Debug.Assert(success); 28866Debug.Assert(this.editingPanel != null); 28877Debug.Assert(this.editingControl != null); 28947Debug.Assert(dataGridViewColumnTmp != null); 28951Debug.Assert(ColumnNeedsDisplayedState(dataGridViewColumnTmp)); 28963Debug.Assert(numDisplayedScrollingCols > 0); 28967Debug.Assert(dataGridViewColumnTmp != null); 28971Debug.Assert(ColumnNeedsDisplayedState(dataGridViewColumnTmp)); 29105Debug.Assert(rowVisible); 29161Debug.Assert(rowIndexTmp != -1); 29176Debug.Assert(numDisplayedScrollingRows > 0); 29179Debug.Assert(rowIndexTmp != -1); 29252Debug.Assert(anchorColumnIndex >= 0); 29253Debug.Assert(anchorRowIndex >= 0); 29254Debug.Assert(newEdgeColumnIndex >= 0); 29255Debug.Assert(newEdgeRowIndex >= 0); 29256Debug.Assert(this.noSelectionChangeCount > 0); 29279Debug.Assert(dataGridViewColumn != null); 29296Debug.Assert(dataGridViewColumn != null); 29359Debug.Assert(dataGridViewColumn != null); 29374Debug.Assert(dataGridViewColumn != null); 29396Debug.Assert(dataGridViewColumn != null); 29397Debug.Assert(oldEdgeRowIndex < anchorRowIndex); 29415Debug.Assert(dataGridViewColumn != null); 29429Debug.Assert(dataGridViewColumn != null); 29430Debug.Assert(oldEdgeRowIndex <= anchorRowIndex); 29452Debug.Assert(dataGridViewColumn != null); 29468Debug.Assert(dataGridViewColumn != null); 29492Debug.Assert(dataGridViewColumn != null); 29505Debug.Assert(dataGridViewColumn != null); 29529Debug.Assert(dataGridViewColumn != null); 29545Debug.Assert(dataGridViewColumn != null); 29565Debug.Assert(oldEdgeRowIndex >= anchorRowIndex); 29566Debug.Assert(dataGridViewColumn != null); 29585Debug.Assert(dataGridViewColumn != null); 29619Debug.Assert(dataGridViewColumn != null); 29658Debug.Assert(dataGridViewColumn != null); 29678Debug.Assert(oldEdgeRowIndex >= anchorRowIndex); 29753Debug.Assert(this.dataGridViewOper[DATAGRIDVIEWOPER_trackRowSelect] || this.dataGridViewOper[DATAGRIDVIEWOPER_trackCellSelect]); 29807Debug.Assert(this.editingPanel != null); 29818Debug.Assert(this.editingControl != null); 29875Debug.Assert(hti.row == -1); 29879Debug.Assert(hti.col == -1); 29883Debug.Assert(hti.row == -1); 29884Debug.Assert(hti.col == -1);
winforms\Managed\System\WinForms\DataGridViewRow.cs (30)
202Debug.Assert(this.Index >= -1); 682Debug.Assert(inheritedCellStyle != null); 688Debug.Assert(cellStyle != null); 692Debug.Assert(rowHeadersStyle != null); 695Debug.Assert(dataGridViewStyle != null); 824Debug.Assert(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet); 838Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet); 871Debug.Assert(inheritedRowStyle != null); 872Debug.Assert(rowIndex >= 0); 873Debug.Assert(this.DataGridView != null); 879Debug.Assert(rowStyle != null); 883Debug.Assert(dataGridViewStyle != null); 886Debug.Assert(rowsDefaultCellStyle != null); 889Debug.Assert(alternatingRowsDefaultCellStyle != null); 1061Debug.Assert(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet); 1079Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet); 1227Debug.Assert(this.Cells.Count == dataGridView.Columns.Count); 1265Debug.Assert(this.Index == -1); 1266Debug.Assert(!this.Selected); 1368Debug.Assert(rowIndex >= -1); 1376Debug.Assert(rowIndex >= -1); 1499Debug.Assert(this.DataGridView != null); 1507Debug.Assert(this.DataGridView != null); 1624Debug.Assert(cellBounds.Width > 0); 1701Debug.Assert(dataGridViewColumn.Visible && !dataGridViewColumn.Frozen); 1711Debug.Assert(cellBounds.Width > 0); 1799Debug.Assert(cellBounds.Width > 0); 1829Debug.Assert(this.Index == -1); 1873Debug.Assert(values != null); 2182Debug.Assert(index >= 0);
winforms\Managed\System\WinForms\DataGridViewRowCancelEventArgs.cs (2)
24Debug.Assert(dataGridViewRow != null); 25Debug.Assert(dataGridViewRow.Index >= 0);
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (111)
340Debug.Assert(this.DataGridView != null); 353Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 356Debug.Assert(values == null); 358Debug.Assert((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 374Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 375Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 389Debug.Assert(dataGridViewCell.OwningRow == dataGridViewRow); 401Debug.Assert((rowState & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 411Debug.Assert(dataGridViewRow.State == SharedRowState(index)); 421Debug.Assert(this.DataGridView != null); 488Debug.Assert(this.DataGridView != null); 516Debug.Assert(rowTemplate.Cells.Count == this.DataGridView.Columns.Count); 518Debug.Assert((rowTemplateState & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 524Debug.Assert(dataGridViewCell.OwningRow == rowTemplate); 536Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 537Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 548Debug.Assert(this.DataGridView != null); 574Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 575Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 582Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 589Debug.Assert(dataGridViewCell.OwningRow == dataGridViewRow); 604Debug.Assert((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 606Debug.Assert(this.rowStates.Count == this.SharedList.Count); 617Debug.Assert(dataGridViewRow.State == SharedRowState(index)); 641Debug.Assert(this.DataGridView != null); 645Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 646Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 647Debug.Assert(!newRow); 662Debug.Assert(this.DataGridView != null); 709Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 710Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 818Debug.Assert(this.DataGridView != null); 849Debug.Assert(dataGridViewRow.Index == -1); 863Debug.Assert(this.DataGridView != null); 877Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 878Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 895Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 900Debug.Assert(dataGridViewCell.OwningRow == dataGridViewRow); 912Debug.Assert((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 920Debug.Assert(dataGridViewRow.State == SharedRowState(index)); 923Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1003Debug.Assert(visibleRowIndex < GetRowCount(DataGridViewElementStates.Visible)); 1159Debug.Assert(skipRows >= 0); 1339Debug.Assert(toRowIndex >= fromRowIndex); 1340Debug.Assert((GetRowState(toRowIndex) & includeFilter) == includeFilter); 1407Debug.Assert(toRowIndex >= fromRowIndex); 1408Debug.Assert((GetRowState(toRowIndex) & includeFilter) == includeFilter); 1424Debug.Assert(toRowIndex >= fromRowIndex); 1425Debug.Assert(toRowIndex == this.items.Count || (GetRowState(toRowIndex) & includeFilter) == includeFilter); 1456Debug.Assert(dataGridViewRow.Index == rowIndex); 1470Debug.Assert(this.DataGridView != null); 1554Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 1559Debug.Assert(rowTemplate.Cells.Count == this.DataGridView.Columns.Count); 1561Debug.Assert((rowTemplateState & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 1567Debug.Assert(dataGridViewCell.OwningRow == rowTemplate); 1582Debug.Assert(this.DataGridView != null); 1601Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 1625Debug.Assert(this.DataGridView != null); 1626Debug.Assert(rowIndex >= 0 && rowIndex <= this.Count); 1627Debug.Assert(dataGridViewRow != null); 1628Debug.Assert(dataGridViewRow.DataGridView == null); 1629Debug.Assert(!this.DataGridView.NoDimensionChangeAllowed); 1630Debug.Assert(this.DataGridView.NewRowIndex == -1 || rowIndex != this.Count); 1631Debug.Assert(!dataGridViewRow.Selected); 1647Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 1654Debug.Assert(dataGridViewCell.OwningRow == dataGridViewRow); 1669Debug.Assert((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 1671Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1682Debug.Assert(dataGridViewRow.State == SharedRowState(rowIndex)); 1711Debug.Assert(this.DataGridView != null); 1731Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 1783Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1812Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1836Debug.Assert(this.DataGridView != null); 1858Debug.Assert(dataGridViewRow.Index == -1); 1861Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1875Debug.Assert(this.DataGridView != null); 1901Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 1923Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 1928Debug.Assert(dataGridViewCell.OwningRow == dataGridViewRow); 1943Debug.Assert((dataGridViewRow.State & (DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed)) == 0); 1945Debug.Assert(this.rowStates.Count == this.SharedList.Count); 1953Debug.Assert(dataGridViewRow.State == SharedRowState(rowIndexInserted)); 1965Debug.Assert(includeFilter == DataGridViewElementStates.Displayed || 2000Debug.Assert(includeFilter == DataGridViewElementStates.Displayed || 2042Debug.Assert(e.Action != CollectionChangeAction.Remove); 2090Debug.Assert(this.DataGridView != null); 2148Debug.Assert(rowCount == 1); 2214Debug.Assert(this.DataGridView != null); 2297Debug.Assert(this.DataGridView.AllowUserToAddRowsInternal); 2328Debug.Assert(index >= 0 && index < this.Count); 2329Debug.Assert(this.DataGridView != null); 2330Debug.Assert(!this.DataGridView.NoDimensionChangeAllowed); 2341Debug.Assert(this.DataGridView != null); 2358Debug.Assert(dataGridViewRow != null); 2359Debug.Assert(dataGridViewRow.Index == -1); 2374Debug.Assert(index >= 0); 2375Debug.Assert(index < this.Count); 2398Debug.Assert(state == DataGridViewElementStates.Displayed || state == DataGridViewElementStates.Selected || state == DataGridViewElementStates.ReadOnly || state == DataGridViewElementStates.Resizable || state == DataGridViewElementStates.Frozen || state == DataGridViewElementStates.Visible); 2557Debug.Assert(rowHeightIncrement != 0); 2569Debug.Assert(rowHeightIncrement != 0); 2672Debug.Assert(rowComparer != null); 2673Debug.Assert(this.Count > 0); 2789Debug.Assert(customComparer != null); 2804Debug.Assert(this.dataGridView.AllowUserToAddRowsInternal); 2813Debug.Assert(dataGridViewRow != null); 2814Debug.Assert(this.sortedColumnIndex >= 0); 2879Debug.Assert(value1 is DataGridViewRow); 2880Debug.Assert(value2 is DataGridViewRow); 2881Debug.Assert(value1 != null); 2882Debug.Assert(value2 != null);
winforms\Managed\System\WinForms\DataGridViewRowErrorTextNeededEventArgs.cs (1)
20Debug.Assert(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewRowEventArgs.cs (1)
24Debug.Assert(dataGridViewRow.Index >= -1);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (17)
233Debug.Assert((!this.DataGridView.RightToLeftInternal && firstCell) || (this.DataGridView.RightToLeftInternal && lastCell)); 278Debug.Assert(csv); 445Debug.Assert(this.DataGridView != null); 453Debug.Assert(cellStyle != null); 457Debug.Assert(rowHeadersStyle != null); 460Debug.Assert(dataGridViewStyle != null); 592Debug.Assert(dataGridViewStyle.Alignment != DataGridViewContentAlignment.NotSet); 606Debug.Assert(dataGridViewStyle.WrapMode != DataGridViewTriState.NotSet); 767Debug.Assert(paint || computeContentBounds || computeErrorIconBounds); 768Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds); 769Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint); 770Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds); 771Debug.Assert(cellStyle != null); 820Debug.Assert(this.ButtonState == ButtonState.Pushed); 964Debug.Assert(valBounds.Width >= 0); 965Debug.Assert(valBounds.Height >= 0); 1398Debug.Assert(this.Owner.DataGridView.TopLeftHeaderCell.AccessibilityObject == this.Owner.DataGridView.AccessibilityObject.GetChild(0).GetChild(0));
winforms\Managed\System\WinForms\DataGridViewRowHeightInfoNeededEventArgs.cs (4)
80Debug.Assert(rowIndex >= -1); 81Debug.Assert(height > 0); 82Debug.Assert(minimumHeight > 0); 83Debug.Assert(height >= minimumHeight);
winforms\Managed\System\WinForms\DataGridViewRowHeightInfoPushedEventArgs.cs (1)
22Debug.Assert(rowIndex >= -1);
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (3)
66Debug.Assert(dataGridView != null); 265Debug.Assert(graphics != null); 266Debug.Assert(inheritedRowStyle != null);
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (3)
68Debug.Assert(dataGridView != null); 284Debug.Assert(graphics != null); 285Debug.Assert(inheritedRowStyle != null);
winforms\Managed\System\WinForms\DataGridViewRowsAddedEventArgs.cs (2)
23Debug.Assert(rowIndex >= 0); 24Debug.Assert(rowCount >= 1);
winforms\Managed\System\WinForms\DataGridViewSelectedCellCollection.cs (3)
164Debug.Assert(!Contains(dataGridViewCell)); 196Debug.Assert(dataGridViewCells != null); 199Debug.Assert(!Contains(dataGridViewCell));
winforms\Managed\System\WinForms\DataGridViewSortCompareEventArgs.cs (2)
27Debug.Assert(dataGridViewColumn != null); 28Debug.Assert(dataGridViewColumn.Index >= 0);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (12)
192Debug.Assert(cellStyle.WrapMode != DataGridViewTriState.NotSet); 193Debug.Assert(this.DataGridView != null); 532Debug.Assert(this.DataGridView != null && 535Debug.Assert(!this.ReadOnly); 602Debug.Assert(e.ColumnIndex == this.ColumnIndex); 679Debug.Assert(paint || computeContentBounds || computeErrorIconBounds); 680Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds); 681Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint); 682Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds); 683Debug.Assert(cellStyle != null); 793Debug.Assert(cellEdited || formattedString == null); 794Debug.Assert(paint || computeContentBounds);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (7)
262Debug.Assert(paint || computeContentBounds || computeErrorIconBounds); 263Debug.Assert(!paint || !computeContentBounds || !computeErrorIconBounds); 264Debug.Assert(!computeContentBounds || !computeErrorIconBounds || !paint); 265Debug.Assert(!computeErrorIconBounds || !paint || !computeContentBounds); 266Debug.Assert(cellStyle != null); 291Debug.Assert(this.ButtonState == ButtonState.Pushed); 372Debug.Assert(computeContentBounds);
winforms\Managed\System\WinForms\DataGridViewTopRowAccessibleObject.cs (1)
156Debug.Assert(index >= 0);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
517Debug.Assert(activePage != -1);
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1100Debug.Assert(timer != null);
winforms\Managed\System\WinForms\Form.cs (2)
6401Debug.Assert(cc != null); 7753Debug.Assert(lParam != IntPtr.Zero);
winforms\Managed\System\WinForms\KeysConverter.cs (2)
95Debug.Assert(displayOrder == null); 105Debug.Assert(keyNames == null);
winforms\Managed\System\WinForms\ListView.cs (1)
4700Debug.Assert(retval != 0);
winforms\Managed\System\WinForms\MenuItem.cs (3)
919Debug.Assert(uniqueID >= firstUniqueID); // ...check for ID range exhaustion (unlikely!) 1054Debug.Assert(((uint) (ulong) msaaMenuInfoPtr) < firstUniqueID); // ...check for incursion into menu item ID range (unlikely!) 1059Debug.Assert(msaaMenuInfoPtr != IntPtr.Zero);
winforms\Managed\System\WinForms\PictureBox.cs (1)
1426Debug.Assert(pictureBoxState[PICTUREBOXSTATE_inInitialization]);
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4191Debug.Assert(oldObject != null && newObject != null && oldObject.GetType() == newObject.GetType());
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
314 Debug.Assert(pe != null);
winforms\Managed\System\WinForms\PropertyStore.cs (5)
339Debug.Assert(index < length); 398Debug.Assert(length > 0); 438Debug.Assert(index < length); 515Debug.Assert(intEntries.Length - index - 1 > 0); 584Debug.Assert(objEntries.Length - index - 1 > 0);
winforms\Managed\System\WinForms\TableLayoutStyle.cs (1)
74Debug.Assert(size >= 0);
winforms\Managed\System\WinForms\TabPage.cs (1)
136Debug.Assert(pd != null);
winforms\Managed\System\WinForms\TrustManager.cs (20)
130Debug.Assert(matchingTrusts != null && matchingTrusts.Count > 0); 137Debug.Assert(matchingTrusts != null && matchingTrusts.Count > 0); 176Debug.Assert(!permissionElevationRequired); 307Debug.Assert(signedManifest != null); 308Debug.Assert(signedManifest.AuthenticodeSignerInfo != null); 342Debug.Assert(parsedData != null); 343Debug.Assert(ms != null); 424Debug.Assert(info != null); 442Debug.Assert(permSetDefaultZone != null); 443Debug.Assert(permSetRequested != null); 549Debug.Assert(info != null); 550Debug.Assert(matchingTrusts != null); 577Debug.Assert(permSetGranted != null); 578Debug.Assert(permSetRequested != null); 657Debug.Assert(info != null); 672Debug.Assert(info != null); 732Debug.Assert(hostContextInternal != null); 733Debug.Assert(zoneName != null); 734Debug.Assert(parsedData != null); 949Debug.Assert(matchingTrusts != null);
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (3)
126Debug.Assert((options & TrustManagerPromptOptions.InternetSource) != 0); 179Debug.Assert((options & TrustManagerPromptOptions.UntrustedSitesSource) != 0); 384Debug.Assert(warningLevel == TrustManagerWarningLevel.Red);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (6)
489Debug.Assert(this.m_certificate != null); 598Debug.Assert(m_certificate != null); 674Debug.Assert(warningLevel == TrustManagerWarningLevel.Red); 780Debug.Assert(m_certificate != null); 796Debug.Assert(this.m_defaultBrowserExePath != null); 797Debug.Assert(this.m_certificate != null);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
1679Debug.Assert(regionDataSize == pRgnDataHeader->cbSizeOfStruct + pRgnDataHeader->nCount * pRgnDataHeader->nRgnSize); 1680Debug.Assert(Marshal.SizeOf(typeof(NativeMethods.RECT)) == pRgnDataHeader->nRgnSize || pRgnDataHeader->nRgnSize == 0);
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
40Debug.Assert(context != null);
System.Workflow.Activities (104)
ConstrainedGroup.cs (13)
222Debug.Assert(currentActivity != null); 243Debug.Assert(cag != null); 326Debug.Assert(cag != null); 327Debug.Assert(context != null); 426Debug.Assert(cag != null); 427Debug.Assert(context != null); 453Debug.Assert(cag != null); 454Debug.Assert(childActivity != null); 455Debug.Assert(context != null); 456Debug.Assert(childActivity.ExecutionStatus == ActivityExecutionStatus.Initialized); 635Debug.Assert(context != null); 636Debug.Assert(childActivity != null); 637Debug.Assert(childActivity.ExecutionStatus == ActivityExecutionStatus.Closed);
Delay.cs (2)
287System.Diagnostics.Debug.Assert(this.SubscriptionID != Guid.Empty); 336System.Diagnostics.Debug.Assert(this.SubscriptionID != Guid.Empty);
Designers\ConditionalDesigner.cs (1)
89Debug.Assert(compositeDesignerTheme != null);
Designers\ListenDesigner.cs (1)
69Debug.Assert(compositeDesignerTheme != null);
Designers\SetStateDesigner.cs (3)
261Debug.Assert(activity != null); 304Debug.Assert(dropDownList != null); 305Debug.Assert(activity != null);
Designers\StateDesigner.cs (11)
514Debug.Assert((value == null) || (value != null && _activeDesigner == null)); 597Debug.Assert(this.IsRootStateDesigner); 954Debug.Assert(currentState != null); 1155Debug.Assert(targetDesignerLayoutConnectionPoint != null); 1162Debug.Assert(targetDesignerLayoutConnectionPoint == null); 1471Debug.Assert(!this.HasActiveDesigner && this.NeedsAutoLayout); 1493Debug.Assert(IsRootDesigner && InvokingDesigner == null); 1664Debug.Assert(this.IsRootStateDesigner); 1665Debug.Assert(this.ActiveDesigner == null); 1756Debug.Assert(eventHandler != null); 1780Debug.Assert(targetState != null);
Designers\StateDesigner.Layouts.cs (2)
32Debug.Assert(designerEdges == DesignerEdges.Left || designerEdges == DesignerEdges.Right); 42Debug.Assert(this.DesignerEdges == DesignerEdges.Left || this.DesignerEdges == DesignerEdges.Right);
Designers\StateMachineDesignerPaint.cs (3)
79Debug.Assert(points.Length >= 2); 208Debug.Assert(points.Length >= 2); 350Debug.Assert(start.X == end.X || start.Y == end.Y);
Designers\WhileDesigner.cs (2)
37Debug.Assert(compositeDesignerTheme != null); 73Debug.Assert(designerTheme != null);
InvokeWebService.cs (1)
117System.Diagnostics.Debug.Assert(proxy != null);
LocalService\CorrelationResolver.cs (1)
416Debug.Assert(aliasAttribute.Name != null);
Role\DirectoryLocalQuery.cs (1)
59System.Diagnostics.Debug.Assert(false);
Role\DirectoryRedirect.cs (1)
85System.Diagnostics.Debug.Assert(values.Count == 1);
Role\DirectoryRootQuery.cs (1)
59System.Diagnostics.Debug.Assert(false);
Rules\Expressions.cs (3)
1589System.Diagnostics.Debug.Assert(arrayType.IsArray); 2540System.Diagnostics.Debug.Assert(arrayType.IsArray); 3095System.Diagnostics.Debug.Assert(arrayType.IsArray);
Rules\Parser\Parser.cs (10)
697System.Diagnostics.Debug.Assert(namespaces.Length > 0); 947System.Diagnostics.Debug.Assert(parserContext.NextToken().TokenID == TokenID.EndOfInput); 1423System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LBracket); 1494System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Dot); 1529System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LParen); 1666System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LParen); 1912System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.LParen); 2228System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Dot); 2315System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Less); 2333System.Diagnostics.Debug.Assert(parserContext.CurrentToken.TokenID == TokenID.Less);
Rules\Parser\Symbol.cs (1)
102System.Diagnostics.Debug.Assert(typeSymbol != null);
Rules\RuleValidation.cs (2)
2740System.Diagnostics.Debug.Assert(arguments.Count == this.signature.Count); 2741System.Diagnostics.Debug.Assert(arguments.Count == other.signature.Count);
SetState.cs (3)
100Debug.Assert(enclosingState != null); // this should be caught by the SetStateContainment.Validate call above 151Debug.Assert(activity != null); 169Debug.Assert(activity != null);
State.cs (6)
197Debug.Assert(StateMachineHelpers.IsLeafState(state)); 278Debug.Assert(executionContext.Activity == this); 322Debug.Assert(!executionState.SchedulerBusy); 349Debug.Assert(!executionState.SchedulerBusy); 435Debug.Assert(!executionState.HasEnqueuedActions); 459Debug.Assert(!executionState.HasEnqueuedActions);
StateMachineAction.cs (5)
79Debug.Assert(context.Activity.QualifiedName.Equals(this.StateName)); 127Debug.Assert(childState.Enabled); 155Debug.Assert(eventDriven.Enabled); 183Debug.Assert(eventDriven.Enabled); 211Debug.Assert(eventDriven.Enabled);
StateMachineExecutionState.cs (3)
142Debug.Assert(!this._queueLocked); 260Debug.Assert(StateMachineHelpers.IsRootState(state)); 262Debug.Assert(executionState != null);
StateMachineHelpers.cs (13)
66Debug.Assert(activity != null); 67Debug.Assert(activity.Parent != activity); 86Debug.Assert(state != null); 87Debug.Assert(state.Parent != state); 102Debug.Assert(state != null); 113Debug.Assert(state != null); 130Debug.Assert(state != null); 172Debug.Assert(currentState == null || IsLeafState(currentState)); 204Debug.Assert(state != null); 205Debug.Assert(qualifiedName != null); 217Debug.Assert(compositeActivity != null); 243Debug.Assert(eventDriven.EnabledActivities.Count > 0); 245Debug.Assert(eventActivity != null);
StateMachineSubscription.cs (2)
143Debug.Assert(!executionState.HasEnqueuedActions); 235Debug.Assert(!executionState.HasEnqueuedActions);
StateMachineSubscriptionManager.cs (4)
167Debug.Assert(!this.Subscriptions.ContainsKey(queueName)); 173Debug.Assert(IsEventDrivenSubscribed(eventDriven)); 188Debug.Assert(subscription.QueueName != null); 223Debug.Assert(subscription.QueueName != null);
StateMachineWorkflowInstance.cs (2)
209Debug.Assert(queueInfo.SubscribedActivityNames.Count == 1); 234Debug.Assert(eventDriven != null);
Task.cs (5)
500Debug.Assert(this.ActivityState.Contains(e.ChildStateInfo)); 501Debug.Assert(e.ChildStateInfo.Status == ChildRunStatus.PendingExecute); 509System.Diagnostics.Debug.Assert(childStateInfo.MarkedForRemoval); 527System.Diagnostics.Debug.Assert(childStateInfo.Status != ChildRunStatus.Running); 612System.Diagnostics.Debug.Assert(this.ExecutionType == ExecutionType.Parallel);
WebServiceFault.cs (1)
156System.Diagnostics.Debug.Assert(responseMessage != null);
While.cs (1)
130System.Diagnostics.Debug.Assert(false);
System.Workflow.ComponentModel (76)
AuthoringOM\ActivityExecutionContext.cs (1)
241Debug.Assert(activity.ExecutionStatus == ActivityExecutionStatus.Executing);
AuthoringOM\DependencyProperty.cs (1)
365Debug.Assert(this.name != null && this.ownerType != null);
AuthoringOM\Design\ActivityDesigner.cs (1)
2117Debug.Assert(serviceProvider != null);
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
980Debug.Assert(item.UserData[DesignerUserDataKeys.Activity] is Activity);
AuthoringOM\Design\CommandSet.cs (1)
48Debug.Assert(serviceProvider != null);
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
924Debug.Assert(activity.Parent != null);
AuthoringOM\Design\Connector.cs (6)
1101Debug.Assert(validEditPoints); 1110Debug.Assert(false); 1205Debug.Assert(false); 1231Debug.Assert(false); 1243Debug.Assert(validEditPoints); 1288Debug.Assert(false);
AuthoringOM\Design\DesignerHelpers.cs (1)
1879Debug.Assert(segments.Length > 0);
AuthoringOM\Design\DesignerWidgets.cs (3)
267Debug.Assert(serviceProvider != null); 582Debug.Assert(serviceProvider != null); 2432Debug.Assert(parentDesigner != null);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (6)
811Debug.Assert(parentCatagoryTreeNode != null); 935Debug.Assert(host != null); 980Debug.Assert(host != null); 983Debug.Assert(rootDecl != null); 1062Debug.Assert(host != null); 1067Debug.Assert(dummyActivity != null);
AuthoringOM\Design\FreeFormDesigner.cs (1)
901Debug.Assert(false);
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
327Debug.Assert(false);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (8)
77Debug.Assert(this.draggedDesigner == null); 78Debug.Assert(this.dropTargetDesigner == null); 99Debug.Assert(this.dropTargetDesigner == null); 150Debug.Assert(this.dropTargetDesigner == null); 205Debug.Assert(this.dropTargetDesigner == null); 220Debug.Assert(this.dropTargetDesigner == null); 235Debug.Assert(this.dropTargetDesigner == null); 269Debug.Assert(this.dragImage == null);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
47Debug.Assert(this.dragStarted == false);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (3)
164Debug.Assert(locations.Length == DraggedActivities.Count); 165Debug.Assert(this.draggedDesignerImages.Count == DraggedActivities.Count); 239Debug.Assert(false);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (1)
231Debug.Assert(false);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
165Debug.Assert(this.currentState == ZoomState.In && CanContinueZooming && this.fastZoomingMessageFilter != null);
AuthoringOM\Design\SecondaryViewProvider.cs (3)
38Debug.Assert(designer.Activity != null); 114Debug.Assert(activityType != null); 182Debug.Assert(activityType != null);
AuthoringOM\Design\Themes.cs (7)
320Debug.Assert(path != null && path.Length > 0); 425Debug.Assert(standardThemeParams != null); 833Debug.Assert(item.ApplyTo != null && item.ApplyTo.Length > 0); 3065Debug.Assert(this.fontName != null && this.fontName.Length > 0); 3070Debug.Assert(supportedFonts.Contains(this.fontName)); 3088Debug.Assert(this.fontName != null && this.fontName.Length > 0); 3093Debug.Assert(supportedFonts.Contains(this.fontName));
AuthoringOM\Design\WorkflowLayouts.cs (10)
25Debug.Assert(serviceProvider != null); 32Debug.Assert(this.parentView != null); 135Debug.Assert(graphics != null); 139Debug.Assert(memoryBitmap != null); 190Debug.Assert(graphics != null); 194Debug.Assert(memoryBitmap != null); 515Debug.Assert(graphics != null); 520Debug.Assert(memoryBitmap != null); 585Debug.Assert(graphics != null); 587Debug.Assert(memoryBitmap != null);
AuthoringOM\Design\WorkflowView.cs (5)
151Debug.Assert(serviceProvider != null); 698Debug.Assert(value != null); 1558Debug.Assert(memoryBitmap != null); 1971Debug.Assert(filters.Count == 0); 1980Debug.Assert(this.rootDesigner != null);
AuthoringOM\ScheduleChanges.cs (1)
523Debug.Assert(serviceProvider != null);
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (3)
51Debug.Assert(false); 98Debug.Assert(false); 162Debug.Assert(false);
AuthoringOM\Serializer\ActivitySurrogate.cs (2)
47Debug.Assert(members[0].Name == "dependencyPropertyValues" && members[1].Name == "disposed"); 265Debug.Assert(members[0].Name == "dependencyPropertyValues" && members[1].Name == "disposed");
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
222System.Diagnostics.Debug.Assert(pushedActivity == activity);
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (1)
28System.Diagnostics.Debug.Assert(statements != null);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (4)
1239Debug.Assert(genericType != null); 1807Debug.Assert(false); 1927Debug.Assert(false); 1952Debug.Assert(false);
AuthoringOM\Serializer\XamlInterfaces.cs (1)
174Debug.Assert(false);
System.Workflow.Runtime (28)
AmbientEnvironment.cs (5)
46Debug.Assert(null != threadData); 70Debug.Assert(_rc >= 0); 79Debug.Assert(_rc > 0); 84Debug.Assert(false); 91Debug.Assert(_rc > 0);
PerformanceCounterManager.cs (5)
276System.Diagnostics.Debug.Assert(this.m_actionStatements != null); 430System.Diagnostics.Debug.Assert(!String.IsNullOrEmpty(name)); 431System.Diagnostics.Debug.Assert(!String.IsNullOrEmpty(description)); 432System.Diagnostics.Debug.Assert(mappings != null && mappings.Length != 0); 462System.Diagnostics.Debug.Assert(counters != null);
WorkflowExecutor.cs (6)
181Debug.Assert(invokeActivityID != null && invokeActivityID.Length > 0); 1716Debug.Assert(this.IsInstanceValid); 2066Debug.Assert(activity != null); 3676Debug.Assert(ScheduleWork.scheduleInfo != null); 3677Debug.Assert(value == true || ScheduleWork.scheduleInfo.scheduleWork == false); // never go from true to false 3690Debug.Assert(ScheduleWork.scheduleInfo != null);
WorkflowQueuingService.cs (5)
366Debug.Assert(contextActivity != null); 682Debug.Assert(rootWorkflowExecutor.CurrentAtomicActivity != null); 683Debug.Assert(pendingQueueStateSnapshot != null); 684Debug.Assert(persistedQueueStatesSnapshot != null); 687Debug.Assert(transactionalProperties != null);
WorkflowRuntime.cs (4)
693Debug.Assert(schedule != null); 785Debug.Assert(sched != null); 1409Debug.Assert(runtime != null); 1452Debug.Assert(runtime != null);
WorkflowStateRollbackService.cs (3)
89Debug.Assert(clonedRootActivity != null); 127Debug.Assert(this.completedContextActivities != null); 131Debug.Assert(this.workflowExecutor.IsInstanceValid);
System.Xml (1193)
System\Xml\Base64Decoder.cs (5)
111Debug.Assert( buffer != null ); 112Debug.Assert( count >= 0 ); 113Debug.Assert( index >= 0 ); 114Debug.Assert( buffer.Length - index >= count ); 115Debug.Assert( ( buffer as byte[] ) != null );
System\Xml\BinaryXml\SqlUtils.cs (10)
129Debug.Assert(rguiData.Length == 4); 152Debug.Assert(rgulU.Length == x_cNumeMax); 305Debug.Assert(dwlAccum < x_ulInt32Base); 371Debug.Assert(dwlAccum < dwlDivisor); 373Debug.Assert((dwlAccum / dwlDivisor) < x_ulInt32Base); 397Debug.Assert(dwlAccum < x_ulInt32Base); 420Debug.Assert(uiDigit < 10); 588Debug.Assert(val >= 0 && val < 100); 593Debug.Assert(val > -10000 && val < 10000); 603Debug.Assert(val >= 0 && val < 1000);
System\Xml\BinaryXml\XmlBinaryReader.cs (12)
351Debug.Assert(len >= 2 && (data[0] == 0xdf && data[1] == 0xff)); 804Debug.Assert(decl != null); 1780Debug.Assert((this.attributes[i].contentPos >= 0) && (this.attributes[i].contentPos <= (end))); 1787Debug.Assert(this.attrCount == 0); 1804Debug.Assert((this.pos + require) >= this.end); 1839Debug.Assert(0 != (b & 0x80)); 2042Debug.Assert(pos >= 0 && cch >= 0); 2058Debug.Assert((offset & 1) == 0); 2605Debug.Assert(this.mark < 0); 2720Debug.Assert(this.pos >= 3); 2724Debug.Assert(this.pos >= 1); 2729Debug.Assert(this.pos >= 2);
System\Xml\BinHexDecoder.cs (5)
107Debug.Assert( buffer != null ); 108Debug.Assert( count >= 0 ); 109Debug.Assert( index >= 0 ); 110Debug.Assert( buffer.Length - index >= count ); 111Debug.Assert( ( buffer as byte[] ) != null );
System\Xml\Cache\XPathDocumentBuilder.cs (17)
141Debug.Assert(prefix != null && localName != null && ns != null && localName.Length != 0 && baseUri != null); 196Debug.Assert(this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 263Debug.Assert(!prefix.Equals("xmlns")); 264Debug.Assert(this.idxParent == 0 || this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 265Debug.Assert(this.idxSibling == 0 || this.pageSibling[this.idxSibling].NodeType == XPathNodeType.Attribute); 280Debug.Assert(this.pageSibling[this.idxSibling].NodeType == XPathNodeType.Attribute); 433Debug.Assert(this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 443Debug.Assert(this.idxSibling == 0 || this.pageSibling[this.idxSibling].NodeType == XPathNodeType.Attribute); 444Debug.Assert(!prefix.Equals("xmlns") && !namespaceName.Equals(XmlReservedNs.NsXmlNs)); 445Debug.Assert(this.idxParent == 0 || this.idxNmsp != 0); 446Debug.Assert(this.idxParent == 0 || this.pageParent[this.idxParent].NodeType == XPathNodeType.Element); 566Debug.Assert(pageElem == null || pageElem[idxElem].NodeType == XPathNodeType.Element); 595Debug.Assert(xptyp != XPathNodeType.Namespace); 659Debug.Assert(xptyp != XPathNodeType.Root && xptyp != XPathNodeType.Namespace); 673Debug.Assert(this.idxParent + 1 == idxNew || idxNew == 1); 807Debug.Assert((int) XPathNodeType.Text < (int) XPathNodeType.SignificantWhitespace); 808Debug.Assert((int) XPathNodeType.SignificantWhitespace < (int) XPathNodeType.Whitespace);
System\Xml\Cache\XPathDocumentNavigator.cs (8)
40Debug.Assert(pageCurrent != null && idxCurrent != 0); 41Debug.Assert((pageParent == null) == (idxParent == 0)); 95Debug.Assert(this.pageCurrent[this.idxCurrent].NodeType == XPathNodeType.Text); 112Debug.Assert(page[idx].NodeType == XPathNodeType.Element || page[idx].IsText); 409Debug.Assert(this.pageParent != null); 446Debug.Assert(page[idx].NodeType == XPathNodeType.Element); 622Debug.Assert(page[idx].HasCollapsedText); 629Debug.Assert(page[idx].IsText);
System\Xml\Cache\XPathNode.cs (3)
326Debug.Assert(info != null && idxParent <= UInt16.MaxValue); 361Debug.Assert(NodeType == XPathNodeType.Element); 371Debug.Assert(NodeType == XPathNodeType.Element);
System\Xml\Cache\XPathNodeHelper.cs (9)
30Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element); 73Debug.Assert(pageNode[idxNode].NodeType == XPathNodeType.Attribute); 112Debug.Assert(idx != 0); 166Debug.Assert(idxNode <= UInt16.MaxValue); 167Debug.Assert(pageNode[0].PageInfo.PageNumber <= Int16.MaxValue); 184Debug.Assert(idx != 0); 282Debug.Assert(typ != XPathNodeType.Attribute && typ != XPathNodeType.Namespace); 301Debug.Assert(pageNode[idxNode].NodeType != XPathNodeType.Attribute); 333Debug.Assert(idxAnc != 0 && pageAnc != null);
System\Xml\Cache\XPathNodeInfoAtom.cs (4)
117Debug.Assert(localName != null && namespaceUri != null && prefix != null && doc != null); 262Debug.Assert(that != null); 263Debug.Assert((object) this.doc == (object) that.doc); 264Debug.Assert(this.pageInfo == null);
System\Xml\Core\CharEntityEncoderFallback.cs (2)
139Debug.Assert( charEntityIndex < charEntity.Length ); 151Debug.Assert(charEntityIndex <= charEntity.Length);
System\Xml\Core\HtmlEncodedRawTextWriter.cs (20)
108Debug.Assert( name != null && name.Length > 0 ); 149Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 154Debug.Assert( prefix.Length == 0 ); 188Debug.Assert( prefix.Length == 0 ); 209Debug.Assert( prefix.Length == 0 ); 326Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 329Debug.Assert( prefix.Length == 0 ); 383Debug.Assert( target != null && target.Length != 0 && text != null ); 403Debug.Assert( text != null ); 431Debug.Assert( buffer != null ); 432Debug.Assert( index >= 0 ); 433Debug.Assert( count >= 0 && index + count <= buffer.Length ); 452Debug.Assert( (int)ElementProperties.URI_PARENT == (int)AttributeProperties.URI ); 453Debug.Assert( (int)ElementProperties.BOOL_PARENT == (int)AttributeProperties.BOOLEAN ); 454Debug.Assert( (int)ElementProperties.NAME_PARENT == (int)AttributeProperties.NAME ); 570Debug.Assert( pSrc <= pSrcEnd ); 646Debug.Assert( pSrc <= pSrcEnd ); 801Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 808Debug.Assert( prefix.Length == 0 ); 856Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\HtmlUtf8RawTextWriter.cs (20)
108Debug.Assert( name != null && name.Length > 0 ); 149Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 154Debug.Assert( prefix.Length == 0 ); 188Debug.Assert( prefix.Length == 0 ); 209Debug.Assert( prefix.Length == 0 ); 326Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 329Debug.Assert( prefix.Length == 0 ); 383Debug.Assert( target != null && target.Length != 0 && text != null ); 403Debug.Assert( text != null ); 431Debug.Assert( buffer != null ); 432Debug.Assert( index >= 0 ); 433Debug.Assert( count >= 0 && index + count <= buffer.Length ); 452Debug.Assert( (int)ElementProperties.URI_PARENT == (int)AttributeProperties.URI ); 453Debug.Assert( (int)ElementProperties.BOOL_PARENT == (int)AttributeProperties.BOOLEAN ); 454Debug.Assert( (int)ElementProperties.NAME_PARENT == (int)AttributeProperties.NAME ); 570Debug.Assert( pSrc <= pSrcEnd ); 646Debug.Assert( pSrc <= pSrcEnd ); 801Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null ); 808Debug.Assert( prefix.Length == 0 ); 856Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\IncrementalReadDecoders.cs (15)
62Debug.Assert( chars != null ); 63Debug.Assert( len >= 0 ); 64Debug.Assert( startPos >= 0 ); 65Debug.Assert( chars.Length - startPos >= len ); 67Debug.Assert( len > 0 ); 80Debug.Assert( str != null ); 81Debug.Assert( len >= 0 ); 82Debug.Assert( startPos >= 0 ); 83Debug.Assert( str.Length - startPos >= len ); 85Debug.Assert( len > 0 ); 101Debug.Assert( buffer != null ); 102Debug.Assert( count >= 0 ); 103Debug.Assert( index >= 0 ); 104Debug.Assert( buffer.Length - index >= count ); 106Debug.Assert( ( buffer as char[] ) != null );
System\Xml\Core\QueryOutputWriter.cs (2)
123Debug.Assert(!this.outputDocType); 307Debug.Assert(!this.inCDataSection);
System\Xml\Core\QueryOutputWriterV1.cs (2)
116Debug.Assert(!this.outputDocType); 271Debug.Assert(!this.inCDataSection);
System\Xml\Core\ReadContentAsBinaryHelper.cs (11)
96Debug.Assert( false ); 100Debug.Assert( state == State.InReadContent ); 143Debug.Assert( false ); 147Debug.Assert( state == State.InReadContent ); 190Debug.Assert( false ); 194Debug.Assert( state == State.InReadElementContent ); 237Debug.Assert( false ); 241Debug.Assert( state == State.InReadElementContent ); 284Debug.Assert( reader.NodeType == XmlNodeType.Element ); 328Debug.Assert( decoder != null ); 347Debug.Assert( valueOffset == valueChunkLength );
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (11)
46Debug.Assert( false ); 50Debug.Assert( state == State.InReadContent ); 93Debug.Assert( false ); 97Debug.Assert( state == State.InReadContent ); 140Debug.Assert( false ); 144Debug.Assert( state == State.InReadElementContent ); 187Debug.Assert( false ); 191Debug.Assert( state == State.InReadElementContent ); 228Debug.Assert( reader.NodeType == XmlNodeType.Element ); 252Debug.Assert( decoder != null ); 271Debug.Assert( valueOffset == valueChunkLength );
System\Xml\Core\XmlAsyncCheckReader.cs (3)
32Debug.Assert(!(reader is IXmlSchemaInfo)); 38Debug.Assert(!(reader is IXmlSchemaInfo)); 43Debug.Assert(!(reader is IXmlSchemaInfo));
System\Xml\Core\XmlAutoDetectWriter.cs (6)
35Debug.Assert(writerSettings.OutputMethod == XmlOutputMethod.AutoDetect); 98Debug.Assert(this.wrapped != null); 270Debug.Assert(this.wrapped != null); 275Debug.Assert(this.wrapped != null); 280Debug.Assert(this.wrapped != null); 361Debug.Assert(this.wrapped == null);
System\Xml\Core\XmlCharCheckingReader.cs (3)
57Debug.Assert( checkCharacters || ignoreWhitespace || ignoreComments || ignorePis || (int)dtdProcessing != -1 ); 173Debug.Assert( false ); 575Debug.Assert( readerAsNSResolver != null );
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
41Debug.Assert( false );
System\Xml\Core\XmlCharCheckingWriter.cs (1)
66Debug.Assert( checkValues || replaceNewLines );
System\Xml\Core\XmlEncodedRawTextWriter.cs (45)
135Debug.Assert( writer != null && settings != null ); 155Debug.Assert( stream != null && settings != null ); 261Debug.Assert( name != null && name.Length > 0 ); 296Debug.Assert( localName != null && localName.Length > 0 ); 297Debug.Assert( prefix != null ); 325Debug.Assert( localName != null && localName.Length > 0 ); 326Debug.Assert( prefix != null ); 353Debug.Assert( localName != null && localName.Length > 0 ); 354Debug.Assert( prefix != null ); 371Debug.Assert( localName != null && localName.Length > 0 ); 372Debug.Assert( prefix != null ); 401Debug.Assert( prefix != null && namespaceName != null ); 415Debug.Assert( prefix != null ); 448Debug.Assert( text != null ); 454Debug.Assert( bufPos >= 4 ); 482Debug.Assert( text != null ); 500Debug.Assert( name != null && name.Length > 0 ); 501Debug.Assert( text != null ); 520Debug.Assert( name != null && name.Length > 0 ); 562Debug.Assert( ws != null ); 580Debug.Assert( text != null ); 612Debug.Assert( buffer != null ); 613Debug.Assert( index >= 0 ); 614Debug.Assert( count >= 0 && index + count <= buffer.Length ); 633Debug.Assert( buffer != null ); 634Debug.Assert( index >= 0 ); 635Debug.Assert( count >= 0 && index + count <= buffer.Length ); 649Debug.Assert( data != null ); 728Debug.Assert( stream != null || writer != null ); 744Debug.Assert( textContentMarks[0] == 1 ); 798Debug.Assert( bufPos == 1 ); 833Debug.Assert( pSrc <= pSrcEnd ); 930Debug.Assert( pSrc <= pSrcEnd ); 1010Debug.Assert( s != null ); 1036Debug.Assert( pSrc <= pSrcEnd ); 1081Debug.Assert( pSrc <= pSrcEnd ); 1176Debug.Assert( pSrc <= pSrcEnd ); 1297Debug.Assert( pSrc <= pSrcEnd ); 1381Debug.Assert( XmlCharType.IsSurrogate( *pSrc ) ); 1404Debug.Assert( !xmlCharType.IsWhiteSpace( (char)ch ) ); 1405Debug.Assert( !xmlCharType.IsAttributeValueChar( (char)ch ) ); 1431Debug.Assert( inTextContent != value ); 1432Debug.Assert( inTextContent || ((lastMarkPos & 1) == 0) ); 1441Debug.Assert( lastMarkPos + 1 == textContentMarks.Length ); 1679Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (36)
68Debug.Assert( name != null && name.Length > 0 ); 104Debug.Assert( localName != null && localName.Length > 0 ); 105Debug.Assert( prefix != null ); 127Debug.Assert(localName != null && localName.Length > 0); 128Debug.Assert(prefix != null); 158Debug.Assert( localName != null && localName.Length > 0 ); 159Debug.Assert( prefix != null ); 177Debug.Assert( localName != null && localName.Length > 0 ); 178Debug.Assert( prefix != null ); 214Debug.Assert( prefix != null && namespaceName != null ); 223Debug.Assert( prefix != null ); 266Debug.Assert( text != null ); 272Debug.Assert( bufPos >= 4 ); 301Debug.Assert( text != null ); 320Debug.Assert( name != null && name.Length > 0 ); 321Debug.Assert( text != null ); 341Debug.Assert( name != null && name.Length > 0 ); 385Debug.Assert( ws != null ); 401Debug.Assert( text != null ); 432Debug.Assert( buffer != null ); 433Debug.Assert( index >= 0 ); 434Debug.Assert( count >= 0 && index + count <= buffer.Length ); 452Debug.Assert( buffer != null ); 453Debug.Assert( index >= 0 ); 454Debug.Assert( count >= 0 && index + count <= buffer.Length ); 467Debug.Assert( data != null ); 500Debug.Assert( stream != null || writer != null ); 516Debug.Assert( textContentMarks[0] == 1 ); 570Debug.Assert( bufPos == 1 ); 608Debug.Assert( pSrc <= pSrcEnd ); 778Debug.Assert( pSrc <= pSrcEnd ); 982Debug.Assert( pSrc <= pSrcEnd ); 1071Debug.Assert( pSrc <= pSrcEnd ); 1244Debug.Assert( pSrc <= pSrcEnd ); 1404Debug.Assert( pSrc <= pSrcEnd ); 1538Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlEventCache.cs (2)
118Debug.Assert(idxPage + 1 == this.pages.Count); 272Debug.Assert(idxPage + 1 == this.pages.Count);
System\Xml\Core\XmlReader.cs (5)
919Debug.Assert(parentDepth == 0); 939Debug.Assert(NodeType == XmlNodeType.EndElement || NodeType == XmlNodeType.None || ReadState == ReadState.Error); 956Debug.Assert(parentDepth == 0); 977Debug.Assert(NodeType == XmlNodeType.EndElement); 1080Debug.Assert(xtw is XmlTextWriter);
System\Xml\Core\XmlReaderAsync.cs (1)
209Debug.Assert(xtw is XmlTextWriter);
System\Xml\Core\XmlSubtreeReader.cs (27)
347Debug.Assert(reader.NodeType == XmlNodeType.Element); 366Debug.Assert( curNode.type == XmlNodeType.Attribute ); 386Debug.Assert( reader.Depth >= initialDepth ); 394Debug.Assert( reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement ); 434Debug.Assert( false ); 447Debug.Assert( reader.Depth >= initialDepth ); 478Debug.Assert( reader.Depth >= initialDepth ); 488Debug.Assert( reader.NodeType == XmlNodeType.EndElement || 502Debug.Assert( reader.Depth >= initialDepth ); 536Debug.Assert( false ); 716Debug.Assert( AttributeCount > 0 ); 719Debug.Assert( false ); 741Debug.Assert( false ); 791Debug.Assert( false ); 834Debug.Assert( AttributeCount > 0 ); 837Debug.Assert( false ); 859Debug.Assert( false ); 908Debug.Assert( false ); 960Debug.Assert( false ); 1102Debug.Assert( state == State.ClearNsAttributes || state == State.Interactive || state == State.PopNamespaceScope ); 1125Debug.Assert( index >= 0 && index <= nsAttrCount ); 1154Debug.Assert( state == State.Interactive ); 1160Debug.Assert( state == State.ReadElementContentAsBase64 || state == State.ReadElementContentAsBinHex ); 1189Debug.Assert( state == State.ReadContentAsBase64 || state == State.ReadContentAsBinHex ); 1250Debug.Assert( tmpNode.localName == string.Empty && tmpNode.prefix == string.Empty && tmpNode.name == string.Empty && tmpNode.namespaceUri == string.Empty ); 1290Debug.Assert( false ); 1297Debug.Assert( state == State.Interactive ||
System\Xml\Core\XmlSubtreeReaderAsync.cs (19)
36Debug.Assert( reader.Depth >= initialDepth ); 44Debug.Assert( reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement ); 84Debug.Assert( false ); 99Debug.Assert( reader.Depth >= initialDepth ); 109Debug.Assert( reader.NodeType == XmlNodeType.EndElement || 123Debug.Assert( reader.Depth >= initialDepth ); 157Debug.Assert( false ); 240Debug.Assert( AttributeCount > 0 ); 243Debug.Assert( false ); 265Debug.Assert( false ); 315Debug.Assert( false ); 358Debug.Assert( AttributeCount > 0 ); 361Debug.Assert( false ); 383Debug.Assert( false ); 432Debug.Assert( false ); 478Debug.Assert( false ); 505Debug.Assert( state == State.Interactive ); 511Debug.Assert( state == State.ReadElementContentAsBase64 || state == State.ReadElementContentAsBinHex ); 540Debug.Assert( state == State.ReadContentAsBase64 || state == State.ReadContentAsBinHex );
System\Xml\Core\XmlTextEncoder.cs (2)
194Debug.Assert( ( ch < 0x20 && !xmlCharType.IsWhiteSpace( ch ) ) || ( ch > 0xFFFD ) ); 325Debug.Assert( ( ch < 0x20 && !xmlCharType.IsWhiteSpace( ch ) ) || ( ch > 0xFFFD ) );
System\Xml\Core\XmlTextReaderImpl.cs (167)
349Debug.Assert( nt != null ); 369Debug.Assert( index == 0 ); 412Debug.Assert( nameTableFromSettings == false ); 431Debug.Assert( index == 0 ); 485Debug.Assert( false ); 635Debug.Assert( baseUri == null ); 720Debug.Assert( baseUri == null ); 823Debug.Assert(xmlFragment != null); 846default: Debug.Assert(false); goto case XmlNodeType.None; 1170Debug.Assert( nextParsingFunction == ParsingFunction.DocumentContent ); 1174Debug.Assert( !ps.appendMode ); 1201Debug.Assert( parsingFunction == ParsingFunction.ElementContent || 1206Debug.Assert( curNode.type == XmlNodeType.Element ); 1274Debug.Assert( false ); 1297Debug.Assert( false ); 1329Debug.Assert( curNode.type == XmlNodeType.EndElement ); 1330Debug.Assert( parsingFunction != ParsingFunction.Eof ); 1434Debug.Assert( parsingMode == ParsingMode.Full ); 1450Debug.Assert( false ); 1472Debug.Assert( false ); 1487Debug.Assert( value is XmlTextReader ); 1502Debug.Assert( outerReader is XmlTextReaderImpl ); 2027Debug.Assert( stringBuilder.Length == 0 ); 2063Debug.Assert( outerReader is XmlTextReader ); 2097Debug.Assert( outerReader is XmlTextReader ); 2127Debug.Assert( outerReader is XmlTextReader ); 2235Debug.Assert( value >= 0 && value <= ps.charsUsed ); 2305Debug.Assert( parsingMode == ParsingMode.Full ); 2391Debug.Assert( parsingStatesStackTop == -1 ); 2392Debug.Assert( ( systemId != null && systemId.Length > 0 ) || ( publicId != null && publicId.Length > 0 ) ); 2405Debug.Assert( ps.appendMode ); 2418Debug.Assert( parsingStatesStackTop == -1 ); 2419Debug.Assert(internalDtd != null); 2553Debug.Assert( InAttributeValueIterator ); 2584Debug.Assert( baseUriStr != null ); 2590Debug.Assert( baseUri != null ); 2602Debug.Assert( ps.charPos == 0 && ps.charsUsed == 0 && ps.textReader == null ); 2603Debug.Assert( baseUriStr != null ); 2604Debug.Assert( baseUri == null || ( baseUri.ToString().Equals( baseUriStr ) ) ); 2683Debug.Assert( ps.charPos == 0 && ps.charsUsed == 0 && ps.stream == null ); 2684Debug.Assert( baseUriStr != null ); 2712Debug.Assert( ps.stream == null && ps.textReader == null ); 2713Debug.Assert( ps.charPos == 0 && ps.charsUsed == 0 ); 2714Debug.Assert( baseUriStr != null ); 2715Debug.Assert(str != null); 2766Debug.Assert( parsingFunction == ParsingFunction.SwitchToInteractiveXmlDecl ); 2770Debug.Assert( parsingFunction == ParsingFunction.SwitchToInteractiveXmlDecl ); 2771Debug.Assert( nextParsingFunction == ParsingFunction.DocumentContent ); 2793Debug.Assert( context != null && context.HasDtdInfo ); 2816Debug.Assert( url != null && url.Length > 0 ); 2817Debug.Assert( compressedStack != null ); 2822Debug.Assert(xmlResolver != null || !System.Xml.XmlReaderSettings.EnableLegacyXmlSettings()); 2853Debug.Assert( ps.bytes != null ); 2854Debug.Assert( ps.bytePos == 0 ); 2941Debug.Assert( ps.charPos == 0 ); 2969Debug.Assert( ps.stream != null ); 3021Debug.Assert( newEncoding.EncodingName != "UTF-8" ); 3036Debug.Assert( ps.stream != null && ps.decoder != null && ps.bytes != null ); 3186Debug.Assert ( ps.charsUsed < ps.chars.Length ); 3195Debug.Assert( ps.stream != null && ps.decoder != null && ps.bytes != null ); 3196Debug.Assert( maxCharsCount <= ps.chars.Length - ps.charsUsed - 1 ); 3217Debug.Assert( maxCharsCount >= charsCount ); 3295Debug.Assert( stringBuilder.Length == 0 || isTextDecl ); 3486Debug.Assert( !isTextDecl ); 3495Debug.Assert( false ); 3708Debug.Assert( pos == ps.charsUsed && !ps.isEof ); 3731Debug.Assert( index == 0 ); 4057Debug.Assert( curNode.type == XmlNodeType.Element ); 4221Debug.Assert( index > 0 ); 4226Debug.Assert( curNode == startTagNode ); 4250Debug.Assert( startTag.type == XmlNodeType.EntityReference ); 4261Debug.Assert( attrCount == 0 ); 4318Debug.Assert( curNode.type == XmlNodeType.Element ); 4325Debug.Assert( curNode.type == XmlNodeType.Element ); 4548Debug.Assert( curNode.type == XmlNodeType.Element ); 4661Debug.Assert( stringBuilder.Length == 0 ); 4857Debug.Assert( ps.isEof ); 4873Debug.Assert( false ); 4912Debug.Assert( attr.nextAttrValueChunk == null ); 4939Debug.Assert( stringBuilder.Length == 0 ); 4950Debug.Assert( endPos - startPos > 0 ); 4968Debug.Assert( stringBuilder.Length > 0 ); 4986Debug.Assert( endPos - startPos > 0 ); 5221Debug.Assert( ps.isEof ); 5262Debug.Assert( stringBuilder.Length == 0 ); 5263Debug.Assert( parsingFunction == ParsingFunction.PartialTextValue || 5276Debug.Assert( stringBuilder.Length > 0 ); 5322Debug.Assert( parsingFunction == ParsingFunction.PartialTextValue || parsingFunction == ParsingFunction.InReadValueChunk || 5333Debug.Assert( parsingFunction == ParsingFunction.InReadValueChunk ); 5337Debug.Assert( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent ); 5347Debug.Assert( parsingFunction == ParsingFunction.InReadContentAsBinary || parsingFunction == ParsingFunction.InReadElementContentAsBinary ); 5351Debug.Assert( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent ); 5374Debug.Assert( stringBuilder.Length == 0 ); 5408Debug.Assert( ps.chars[ps.charPos] == '&' ); 5417Debug.Assert( ps.chars[ps.charPos] == '&' ); 5429Debug.Assert( entityType == EntityType.CharacterDec || entityType == EntityType.CharacterHex ); 5574Debug.Assert( false ); 5613Debug.Assert( lastEntity != null ); 5619Debug.Assert( curNode.depth == index ); 5630Debug.Assert( curNode.type == XmlNodeType.EntityReference ); 5631Debug.Assert( Ref.Equal( lastEntity.Name, curNode.localName ) ); 5648Debug.Assert( stringBuilder.Length == 0 ); 5670Debug.Assert( ps.charPos < ps.charsUsed ); 5703Debug.Assert( stringBuilder.Length == 0 ); 5757Debug.Assert( !ps.eolNormalized ); 5880Debug.Assert( stringBuilder.Length == 0 ); 5935Debug.Assert( !ps.eolNormalized ); 6083Debug.Assert(dtdProcessing == DtdProcessing.Ignore); 6369Debug.Assert( ps.isEof ); 6455Debug.Assert( ps.isEof ); 6463Debug.Assert( ps.chars[startPos] == '&' ); 6489Debug.Assert( ps.chars[ps.charPos] == '&' ); 6507Debug.Assert( ps.chars[startPos] == '&' && ps.chars[startPos + 1] == '#' ); 6602Debug.Assert( pos > 0 ); 6632Debug.Assert( ps.chars[ps.charPos] == '&' ); 6650Debug.Assert( startPos < ps.charsUsed ); 6651Debug.Assert( ps.chars[startPos] == '&' ); 6652Debug.Assert( ps.chars[startPos + 1] != '#' ); 6741Debug.Assert( pos > 0 ); 6882Debug.Assert( nodeIndex < nodes.Length ); 6883Debug.Assert( nodes[nodes.Length - 1] == null ); 6894Debug.Assert( nodeIndex < nodes.Length ); 6900Debug.Assert( nodeIndex < nodes.Length ); 6961Debug.Assert( attr.type == XmlNodeType.Attribute ); 6990Debug.Assert( ps.isEof ); 7070Debug.Assert( curNode.xmlContextPushed ); 7154Debug.Assert( xmlResolver != null ); 7189Debug.Assert( entity.IsExternal ); 7201Debug.Assert( ps.appendMode ); 7226Debug.Assert( !entity.IsExternal ); 7285Debug.Assert( parsingStatesStackTop == -1 ); 7299Debug.Assert( parsingStatesStackTop >= 0 ); 7385Debug.Assert( XmlConvert.StrEqual( ps.chars, ps.charPos - 2, 2, "?>" ) ); 7392Debug.Assert( XmlConvert.StrEqual( ps.chars, ps.charPos - 3, 3, "-->" ) ); 7399Debug.Assert( XmlConvert.StrEqual( ps.chars, ps.charPos - 3, 3, "]]>" ) ); 7422Debug.Assert( false ); 7425Debug.Assert( incReadState == IncrementalReadState.Text || 7517Debug.Assert( ps.charPos - pos == 0 ); 7518Debug.Assert( ps.charPos - startPos == 0); 7553Debug.Assert( ps.charPos - pos == 0 ); 7554Debug.Assert( ps.charPos - startPos == 0 ); 7659Debug.Assert( fragmentType == XmlNodeType.Attribute ); 7673Debug.Assert( parsingFunction == ParsingFunction.InReadAttributeValue ); 7699Debug.Assert( stringBuilder.Length == 0 ); 7874Debug.Assert( ps.charPos < ps.charsUsed ); 7931Debug.Assert( dtdInfo == null && fragmentParserContext != null && fragmentParserContext.HasDtdInfo ); 7949Debug.Assert( parsingFunction != ParsingFunction.InReadContentAsBinary ); 7970Debug.Assert( parsingFunction != ParsingFunction.InReadElementContentAsBinary ); 7971Debug.Assert( curNode.type == XmlNodeType.Element ); 8038Debug.Assert( context != null ); 8057Debug.Assert( nt != null ); 8071Debug.Assert( nameTableFromSettings == false ); 8096Debug.Assert( dtdInfo == null ); 8230Debug.Assert(attr != null); 8255Debug.Assert( prefix != null ); 8273Debug.Assert(attr != null); 8301Debug.Assert( nodes[index].type == XmlNodeType.Element ); 8315Debug.Assert( nodes[index].type == XmlNodeType.Element ); 8344Debug.Assert( incReadDecoder != null ); 8438Debug.Assert( parsingFunction != ParsingFunction.InReadElementContentAsBinary ); 8489Debug.Assert(characters >= 0); 8525Debug.Assert(startPos >= 0); 8526Debug.Assert(endPos < chars.Length); 8527Debug.Assert(startPos <= endPos); 8538Debug.Assert(startPos >= 0); 8539Debug.Assert(endPos < str.Length); 8540Debug.Assert(startPos <= endPos);
System\Xml\Core\XmlTextReaderImplAsync.cs (74)
161Debug.Assert(false); 165Debug.Assert(!ps.appendMode); 185Debug.Assert(parsingFunction == ParsingFunction.ElementContent || 190Debug.Assert(curNode.type == XmlNodeType.Element); 253Debug.Assert(false); 301Debug.Assert( false ); 333Debug.Assert( curNode.type == XmlNodeType.EndElement ); 334Debug.Assert( parsingFunction != ParsingFunction.Eof ); 723Debug.Assert( parsingMode == ParsingMode.Full ); 788Debug.Assert( parsingStatesStackTop == -1 ); 789Debug.Assert( ( systemId != null && systemId.Length > 0 ) || ( publicId != null && publicId.Length > 0 ) ); 804Debug.Assert( ps.appendMode ); 817Debug.Assert( baseUri != null ); 828Debug.Assert( ps.charPos == 0 && ps.charsUsed == 0 && ps.textReader == null ); 829Debug.Assert( baseUriStr != null ); 830Debug.Assert( baseUri == null || ( baseUri.ToString().Equals( baseUriStr ) ) ); 906Debug.Assert( ps.charPos == 0 && ps.charsUsed == 0 && ps.stream == null ); 907Debug.Assert( baseUriStr != null ); 937Debug.Assert( context != null && context.HasDtdInfo ); 965Debug.Assert( ps.stream != null ); 1096Debug.Assert ( ps.charsUsed < ps.chars.Length ); 1127Debug.Assert( stringBuilder.Length == 0 || isTextDecl ); 1319Debug.Assert( !isTextDecl ); 1328Debug.Assert( false ); 1481Debug.Assert(pos == ps.charsUsed && !ps.isEof); 1580Debug.Assert(index == 0); 2080Debug.Assert(index > 0); 2085Debug.Assert(curNode == startTagNode); 2124Debug.Assert( startTag.type == XmlNodeType.EntityReference ); 2135Debug.Assert( attrCount == 0 ); 2193Debug.Assert( curNode.type == XmlNodeType.Element ); 2200Debug.Assert( curNode.type == XmlNodeType.Element ); 2443Debug.Assert( stringBuilder.Length == 0 ); 2644Debug.Assert( ps.isEof ); 2660Debug.Assert( false ); 2707Debug.Assert(stringBuilder.Length == 0); 2732Debug.Assert(endPos - startPos > 0); 2771Debug.Assert( stringBuilder.Length == 0 ); 2790Debug.Assert( endPos - startPos > 0 ); 2817Debug.Assert( stringBuilder.Length > 0 ); 2835Debug.Assert( endPos - startPos > 0 ); 3237Debug.Assert(ps.isEof); 3287Debug.Assert( stringBuilder.Length == 0 ); 3288Debug.Assert( parsingFunction == ParsingFunction.PartialTextValue || 3314Debug.Assert( stringBuilder.Length > 0 ); 3360Debug.Assert( parsingFunction == ParsingFunction.PartialTextValue || parsingFunction == ParsingFunction.InReadValueChunk || 3380Debug.Assert( parsingFunction == ParsingFunction.InReadValueChunk ); 3384Debug.Assert( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent ); 3397Debug.Assert( parsingFunction == ParsingFunction.InReadContentAsBinary || parsingFunction == ParsingFunction.InReadElementContentAsBinary ); 3401Debug.Assert( ( index > 0 ) ? nextParsingFunction == ParsingFunction.ElementContent : nextParsingFunction == ParsingFunction.DocumentContent ); 3424Debug.Assert( stringBuilder.Length == 0 ); 3458Debug.Assert( ps.chars[ps.charPos] == '&' ); 3469Debug.Assert( ps.chars[ps.charPos] == '&' ); 3486Debug.Assert( entityType == EntityType.CharacterDec || entityType == EntityType.CharacterHex ); 3639Debug.Assert( stringBuilder.Length == 0 ); 3661Debug.Assert( ps.charPos < ps.charsUsed ); 3708Debug.Assert( stringBuilder.Length == 0 ); 3774Debug.Assert( !ps.eolNormalized ); 3901Debug.Assert( stringBuilder.Length == 0 ); 3983Debug.Assert( !ps.eolNormalized ); 4135Debug.Assert(dtdProcessing == DtdProcessing.Ignore); 4426Debug.Assert( ps.isEof ); 4512Debug.Assert( ps.isEof ); 4537Debug.Assert( ps.chars[ps.charPos] == '&' ); 4567Debug.Assert( ps.chars[ps.charPos] == '&' ); 4798Debug.Assert( xmlResolver != null ); 4833Debug.Assert( entity.IsExternal ); 4846Debug.Assert( ps.appendMode ); 4886Debug.Assert( dtdInfo == null && fragmentParserContext != null && fragmentParserContext.HasDtdInfo ); 4903Debug.Assert( parsingFunction != ParsingFunction.InReadContentAsBinary ); 4924Debug.Assert( parsingFunction != ParsingFunction.InReadElementContentAsBinary ); 4925Debug.Assert( curNode.type == XmlNodeType.Element ); 4979Debug.Assert( incReadDecoder != null ); 5079Debug.Assert( parsingFunction != ParsingFunction.InReadElementContentAsBinary );
System\Xml\Core\XmlTextReaderImplHelpers.cs (17)
276Debug.Assert(internalDtd != null); 402Debug.Assert( type == XmlNodeType.Element ); 412Debug.Assert( type == XmlNodeType.Attribute ); 469Debug.Assert( value != null ); 492Debug.Assert( localName != null ); 493Debug.Assert( localName.Length > 0 ); 518Debug.Assert( valueStartPos != -1 ); 519Debug.Assert( chars != null ); 527Debug.Assert( valueStartPos != -1 ); 528Debug.Assert( chars != null ); 543Debug.Assert( valueStartPos != -1 ); 544Debug.Assert( chars != null ); 564Debug.Assert( valueStartPos != -1 ); 565Debug.Assert( chars != null ); 596Debug.Assert( nameWPrefix == null ); 641Debug.Assert(x == null || x is NodeData || x is IDtdDefaultAttributeInfo); 642Debug.Assert(y == null || y is NodeData || y is IDtdDefaultAttributeInfo);
System\Xml\Core\XmlTextWriter.cs (3)
832Debug.Assert( false ); 1268Debug.Assert(useNsHashtable); 1270Debug.Assert(nsHashtable.ContainsKey(nsStack[i].prefix));
System\Xml\Core\XmlUtf8RawTextWriter.cs (40)
122Debug.Assert( stream != null && settings != null ); 217Debug.Assert( name != null && name.Length > 0 ); 250Debug.Assert( localName != null && localName.Length > 0 ); 251Debug.Assert( prefix != null ); 277Debug.Assert( localName != null && localName.Length > 0 ); 278Debug.Assert( prefix != null ); 303Debug.Assert( localName != null && localName.Length > 0 ); 304Debug.Assert( prefix != null ); 319Debug.Assert( localName != null && localName.Length > 0 ); 320Debug.Assert( prefix != null ); 347Debug.Assert( prefix != null && namespaceName != null ); 361Debug.Assert( prefix != null ); 392Debug.Assert( text != null ); 396Debug.Assert( bufPos >= 4 ); 424Debug.Assert( text != null ); 440Debug.Assert( name != null && name.Length > 0 ); 441Debug.Assert( text != null ); 458Debug.Assert( name != null && name.Length > 0 ); 496Debug.Assert( ws != null ); 513Debug.Assert( text != null ); 544Debug.Assert( buffer != null ); 545Debug.Assert( index >= 0 ); 546Debug.Assert( count >= 0 && index + count <= buffer.Length ); 563Debug.Assert( buffer != null ); 564Debug.Assert( index >= 0 ); 565Debug.Assert( count >= 0 && index + count <= buffer.Length ); 577Debug.Assert( data != null ); 635Debug.Assert( stream != null); 693Debug.Assert( pSrc <= pSrcEnd ); 790Debug.Assert( pSrc <= pSrcEnd ); 870Debug.Assert( s != null ); 896Debug.Assert( pSrc <= pSrcEnd ); 941Debug.Assert( pSrc <= pSrcEnd ); 1036Debug.Assert( pSrc <= pSrcEnd ); 1157Debug.Assert( pSrc <= pSrcEnd ); 1247Debug.Assert( XmlCharType.IsSurrogate( *pSrc ) ); 1276Debug.Assert( !xmlCharType.IsWhiteSpace( (char)ch ) ); 1277Debug.Assert( !xmlCharType.IsAttributeValueChar( (char)ch ) ); 1310Debug.Assert( ch >= 0x80 && !XmlCharType.IsSurrogate( ch ) ); 1575Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (34)
66Debug.Assert( name != null && name.Length > 0 ); 100Debug.Assert( localName != null && localName.Length > 0 ); 101Debug.Assert( prefix != null ); 123Debug.Assert( localName != null && localName.Length > 0 ); 124Debug.Assert( prefix != null ); 151Debug.Assert( localName != null && localName.Length > 0 ); 152Debug.Assert( prefix != null ); 168Debug.Assert(localName != null && localName.Length > 0); 169Debug.Assert(prefix != null); 202Debug.Assert( prefix != null && namespaceName != null ); 211Debug.Assert( prefix != null ); 252Debug.Assert( text != null ); 256Debug.Assert( bufPos >= 4 ); 285Debug.Assert( text != null ); 302Debug.Assert( name != null && name.Length > 0 ); 303Debug.Assert( text != null ); 321Debug.Assert( name != null && name.Length > 0 ); 361Debug.Assert( ws != null ); 376Debug.Assert( text != null ); 406Debug.Assert( buffer != null ); 407Debug.Assert( index >= 0 ); 408Debug.Assert( count >= 0 && index + count <= buffer.Length ); 424Debug.Assert( buffer != null ); 425Debug.Assert( index >= 0 ); 426Debug.Assert( count >= 0 && index + count <= buffer.Length ); 437Debug.Assert( data != null ); 465Debug.Assert( stream != null); 526Debug.Assert( pSrc <= pSrcEnd ); 695Debug.Assert( pSrc <= pSrcEnd ); 899Debug.Assert( pSrc <= pSrcEnd ); 988Debug.Assert( pSrc <= pSrcEnd ); 1161Debug.Assert( pSrc <= pSrcEnd ); 1321Debug.Assert( pSrc <= pSrcEnd ); 1455Debug.Assert( localName != null && localName.Length != 0 && prefix != null && ns != null );
System\Xml\Core\XmlValidatingReaderImpl.cs (5)
493Debug.Assert( false ); 633Debug.Assert( value is XmlValidatingReader ); 845Debug.Assert( parserContext != null ); 846Debug.Assert( coreReaderImpl.DtdInfo == null ); 879Debug.Assert( coreReader.NodeType == XmlNodeType.EntityReference );
System\Xml\Core\XmlValidatingReaderImplAsync.cs (4)
62Debug.Assert( false ); 213Debug.Assert( parserContext != null ); 214Debug.Assert( coreReaderImpl.DtdInfo == null ); 229Debug.Assert( coreReader.NodeType == XmlNodeType.EntityReference );
System\Xml\Core\XmlWellFormedWriter.cs (14)
250Debug.Assert(writer != null); 251Debug.Assert(settings != null); 252Debug.Assert(MaxNamespacesWalkCount <= 3); 437Debug.Assert(prefix.Length == 0); 1118Debug.Assert(i >= 0); 1127Debug.Assert(i >= 0); 1385Debug.Assert(stateTable == StateTableAuto); 1419Debug.Assert(prefix == "xmlns"); 1572Debug.Assert(useNsHashtable); 1573Debug.Assert(indexFrom <= indexTo); 1575Debug.Assert(nsHashtable.ContainsKey(nsStack[i].prefix)); 1775Debug.Assert(ncname != null && ncname.Length > 0); 1861Debug.Assert(attrHashTable.Count == 0); 1896Debug.Assert(prev >= 0 && attrStack[prev].localName == localName);
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
189Debug.Assert(prefix.Length == 0);
System\Xml\Core\XmlWellFormedWriterHelpers.cs (3)
89Debug.Assert(kind == NamespaceKind.NeedToWrite); 431Debug.Assert(singleStringValue != null); 432Debug.Assert(lastItem == -1);
System\Xml\Core\XmlWellFormedWriterHelpersAsync.cs (1)
27Debug.Assert(kind == NamespaceKind.NeedToWrite);
System\Xml\Core\XmlWrappingReader.cs (1)
29Debug.Assert( baseReader != null );
System\Xml\Core\XmlWrappingWriter.cs (1)
61Debug.Assert(baseWriter != null);
System\Xml\Core\XmlWriter.cs (1)
493Debug.Assert(false);
System\Xml\Core\XmlWriterAsync.cs (1)
445Debug.Assert(false);
System\Xml\Core\XmlWriterSettings.cs (2)
330Debug.Assert(cdataSections != null); 498Debug.Assert(Encoding.UTF8.WebName == "utf-8");
System\Xml\Core\XsdCachingReader.cs (8)
418Debug.Assert(coreReader.NodeType == XmlNodeType.EndElement || (coreReader.NodeType == XmlNodeType.Element && coreReader.IsEmptyElement)); 423Debug.Assert(endElementNode.NodeType == XmlNodeType.EndElement); 430Debug.Assert(coreReader.NodeType == XmlNodeType.EndElement || (coreReader.NodeType == XmlNodeType.Element && coreReader.IsEmptyElement)); 485Debug.Assert(cacheState == CachingReaderState.Replay); 510Debug.Assert(cacheState == CachingReaderState.Replay); 560Debug.Assert(attIndex <= attributeEvents.Length); 580Debug.Assert(contentIndex <= contentEvents.Length); 602Debug.Assert(coreReader.NodeType == XmlNodeType.Element);
System\Xml\Core\XsdCachingReaderAsync.cs (1)
113Debug.Assert(cacheState == CachingReaderState.Replay);
System\Xml\Core\XsdValidatingReader.cs (17)
925Debug.Assert(attNode != null); 968Debug.Assert(attributePSVI != null); 1054Debug.Assert(moveTo); 1545Debug.Assert(attributePSVI != null); 1668Debug.Assert(atomicValue != null); 1744Debug.Assert(coreReaderNameTable.Get(localName) != null); 1745Debug.Assert(coreReaderNameTable.Get(ns) != null); 1779Debug.Assert(coreReaderNameTable.Get(attrLocalName) != null); 1780Debug.Assert(coreReaderNameTable.Get(ns) != null); 1796Debug.Assert(attIndex <= attributePSVINodes.Length); 1820Debug.Assert(inlineSchemaParser != null); 1921Debug.Assert(this.NodeType == XmlNodeType.Element); 2030Debug.Assert(coreReader.NodeType == XmlNodeType.EndElement); 2038Debug.Assert(false); //Should not happen as the caching reader does not cache elements in simple content 2083Debug.Assert(false); //Should not happen as the caching reader does not cache elements in simple content 2134Debug.Assert(xmlType != null && xmlType.Datatype != null); 2145Debug.Assert(NodeType != XmlNodeType.Attribute);
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
515Debug.Assert(atomicValue != null); 529Debug.Assert(inlineSchemaParser != null); 643Debug.Assert(this.NodeType == XmlNodeType.Element);
System\Xml\Dom\DocumentSchemaValidator.cs (16)
71Debug.Assert(schemas != null && schemas.Count > 0); 91Debug.Assert(nodeToValidate.SchemaInfo != null); 113Debug.Assert(schemaElement.ElementSchemaType == schemaInfo.SchemaType); 302Debug.Assert(elementNode != null); 315Debug.Assert(nameTable.Get(attr.NamespaceURI) != null); 316Debug.Assert(nameTable.Get(attr.LocalName) != null); 384Debug.Assert(schemaAttribute != null); 399Debug.Assert(attributeSchemaInfo != null); 410Debug.Assert(simpleValue != null); 441Debug.Assert(elementToValidate.ParentNode.NodeType != XmlNodeType.Document); //Handle if it is the documentElement seperately 550Debug.Assert(nodeSequenceToValidate[0] == elementToValidate.ParentNode); 604Debug.Assert(elementNode != null); 617Debug.Assert(nameTable.Get(attr.NamespaceURI) != null); 618Debug.Assert(nameTable.Get(attr.LocalName) != null); 675Debug.Assert(child == childToStopAt); 701Debug.Assert(ex != null);
System\Xml\Dom\DocumentXmlWriter.cs (3)
359Debug.Assert(elem != null); 363Debug.Assert(attr != null); 372Debug.Assert(attr != null);
System\Xml\Dom\DocumentXPathNavigator.cs (30)
435Debug.Assert(false); 442Debug.Assert(attributes != null); 458Debug.Assert(attributes != null && attributes.parent != null); 484Debug.Assert(namespaceParent != null); 529Debug.Assert(false); 536Debug.Assert(attributes != null); 537Debug.Assert(0 <= index && index < attributes.Count); 553Debug.Assert(attributes != null && attributes.parent != null); 602Debug.Assert(parent != null); 630Debug.Assert(parent != null); 653Debug.Assert(sibling != null); 1078Debug.Assert( node1 != null ); 1079Debug.Assert( node2 != null ); 1082Debug.Assert( OwnerNode(node1) == OwnerNode(node2) ); 1149Debug.Assert(node1 != node2); 1182Debug.Assert(node1 != node2); 1201Debug.Assert( this.NodeType != XPathNodeType.Attribute && this.NodeType != XPathNodeType.Namespace && this.NodeType != XPathNodeType.All ); 1876Debug.Assert( ((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute ); 1886Debug.Assert( node != null ); 1918Debug.Assert( ((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute ); 1919Debug.Assert( Ref.Equal(nav.NameTable.Get( nsAtom ), nsAtom) ); 1930Debug.Assert( node != null ); 1931Debug.Assert( node.NodeType == XmlNodeType.Element ); 1965Debug.Assert( ((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute ); 1966Debug.Assert( Ref.Equal(nav.NameTable.Get( localNameAtom ), localNameAtom) ); 1967Debug.Assert( Ref.Equal(nav.NameTable.Get( nsAtom ), nsAtom) ); 1968Debug.Assert( localNameAtom.Length > 0 ); // Use DocumentXPathNodeIterator_ElemChildren_NoLocalName class for special magic value of localNameAtom 1984Debug.Assert( node != null ); 1985Debug.Assert( node.NodeType == XmlNodeType.Element ); 1994Debug.Assert( localNameAtom.Length > 0 ); // Use DocumentXPathNodeIterator_ElemChildren_AndSelf_NoLocalName if localName == String.Empty
System\Xml\Dom\DomNameTable.cs (1)
28Debug.Assert( ( entries.Length & mask ) == 0 ); // entries.Length must be a power of two
System\Xml\Dom\XmlAttribute.cs (3)
21Debug.Assert(name!=null); 22Debug.Assert(doc!=null); 49Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlAttributeCollection.cs (10)
167Debug.Assert( offset != -1 ); // the if statement above guarantees that the ref node is in the collection 195Debug.Assert( offset != -1 ); // the if statement above guarantees that the ref node is in the collection 260Debug.Assert( retNode is XmlAttribute ); 274Debug.Assert(retNode is XmlAttribute); 332Debug.Assert( parentElem != null ); 334Debug.Assert( doc != null ); 346Debug.Assert( parentElem != null ); 348Debug.Assert( doc != null ); 360Debug.Assert( -1 == FindNodeOffset( node )); 363Debug.Assert( retNode is XmlAttribute );
System\Xml\Dom\XmlCDataSection.cs (1)
63Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlCharacterData.cs (1)
176Debug.Assert(XmlDocument.IsTextNode(node.NodeType) || (node.ParentNode != null && node.ParentNode.NodeType == XmlNodeType.EntityReference));
System\Xml\Dom\XmlComment.cs (1)
34Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlDeclaration.cs (1)
134Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlDocument.cs (12)
137Debug.Assert( (prefix == null) ? (n.Prefix.Length == 0) : (prefix == n.Prefix) ); 138Debug.Assert( n.LocalName == localName ); 139Debug.Assert( (namespaceURI == null) ? (n.NamespaceURI.Length == 0) : (n.NamespaceURI == namespaceURI) ); 145Debug.Assert(n == null || ((prefix == null) ? (n.Prefix.Length == 0) : (prefix == n.Prefix))); 146Debug.Assert(n == null || n.LocalName == localName); 147Debug.Assert(n == null || ((namespaceURI == null) ? (n.NamespaceURI.Length == 0) : (n.NamespaceURI == namespaceURI))); 153Debug.Assert( (prefix == null) ? (xmlName.Prefix.Length == 0) : (prefix == xmlName.Prefix) ); 154Debug.Assert( xmlName.LocalName == localName ); 155Debug.Assert( (namespaceURI == null) ? (xmlName.NamespaceURI.Length == 0) : (xmlName.NamespaceURI == namespaceURI) ); 802Debug.Assert( ((XmlAttribute)node).Specified ); 864Debug.Assert( toNode.NodeType != XmlNodeType.EntityReference ); 1482Debug.Assert( doc == this );
System\Xml\Dom\XmlDocumentFragment.cs (3)
102Debug.Assert( OwnerDocument != null ); 143Debug.Assert(newChild != null); //should be checked that newChild is not null before this function call 155Debug.Assert(newChild != null); //should be checked that newChild is not null before this function call
System\Xml\Dom\XmlDocumentType.cs (2)
32Debug.Assert( doc != null ); 58Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlElement.cs (5)
23Debug.Assert(name!=null); 48Debug.Assert( OwnerDocument != null ); 404Debug.Assert(n != null); 415Debug.Assert(n != null); 421Debug.Assert(n != null);
System\Xml\Dom\XmlElementList.cs (11)
31Debug.Assert ( parent != null ); 32Debug.Assert( parent.NodeType == XmlNodeType.Element || parent.NodeType == XmlNodeType.Document ); 34Debug.Assert( parent.Document != null ); 67Debug.Assert( parent.Document != null ); 69Debug.Assert( nt != null ); 77Debug.Assert( parent.Document != null ); 79Debug.Assert( nt != null ); 98Debug.Assert( curNode != null ); 122Debug.Assert( curNode != null ); 160Debug.Assert( n!= null ); 172Debug.Assert( n!= null );
System\Xml\Dom\XmlEntityReference.cs (1)
76Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlLoader.cs (18)
53Debug.Assert( this.reader != null ); 54Debug.Assert( parentDoc != null ); 132Debug.Assert( parent.NodeType == XmlNodeType.Element ); 151Debug.Assert( parent == null ); 203Debug.Assert( node != null ); 223Debug.Assert(reader.NodeType == XmlNodeType.Attribute); 256Debug.Assert( node != null ); 264Debug.Assert( reader.IsDefault ); 308Debug.Assert( node != null ); 315Debug.Assert( reader.NodeType == XmlNodeType.EntityReference ); 334Debug.Assert( reader.NodeType == XmlNodeType.XmlDeclaration ); 355Debug.Assert( false ); 369Debug.Assert( reader.NodeType == XmlNodeType.DocumentType ); 434Debug.Assert( parent.NodeType == XmlNodeType.Element ); 485Debug.Assert( node != null ); 658Debug.Assert( parentNode.NodeType != XmlNodeType.Document ); 660Debug.Assert( this.doc != null ); 822Debug.Assert( tr.EntityHandling == EntityHandling.ExpandCharEntities );
System\Xml\Dom\XmlName.cs (2)
74Debug.Assert( prefix != null ); 91Debug.Assert( Ref.Equal( name, ownerDoc.NameTable.Get( name ) ) );
System\Xml\Dom\XmlNode.cs (8)
39Debug.Assert( doc != null ); 103Debug.Assert(parentNode != null); 150Debug.Assert( parentNode != null ); 674Debug.Assert( firstNode.NodeType == XmlNodeType.Text 1185Debug.Assert(prevNode.IsText); 1186Debug.Assert(nextNode.IsText); 1192Debug.Assert(prevNode.IsText); 1193Debug.Assert(nextNode.IsText);
System\Xml\Dom\XmlNodeReader.cs (11)
104Debug.Assert( nt == XmlNodeType.XmlDeclaration || nt == XmlNodeType.DocumentType ); 121Debug.Assert( curNode.NodeType == XmlNodeType.XmlDeclaration || curNode.NodeType == XmlNodeType.DocumentType ); 125Debug.Assert( nAttrInd >= 0 && nAttrInd < AttributeCount ); 207Debug.Assert( curNode.NodeType == XmlNodeType.XmlDeclaration || curNode.NodeType == XmlNodeType.DocumentType ); 208Debug.Assert( nAttrInd >= 0 && nAttrInd < AttributeCount ); 224Debug.Assert( nt == XmlNodeType.XmlDeclaration || nt == XmlNodeType.DocumentType ); 225Debug.Assert( nAttrInd >= 0 && nAttrInd < AttributeCount ); 531Debug.Assert( IsOnDeclOrDocType ); 889Debug.Assert( curNode.NodeType == XmlNodeType.XmlDeclaration || curNode.NodeType == XmlNodeType.DocumentType ); 914Debug.Assert( curNode != null ); 1378Debug.Assert( curDepth == 0 );
System\Xml\Dom\XmlProcessingInstruction.cs (1)
80Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlSignificantWhiteSpace.cs (1)
65Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlText.cs (1)
66Debug.Assert( OwnerDocument != null );
System\Xml\Dom\XmlWhitespace.cs (1)
78Debug.Assert( OwnerDocument != null );
System\Xml\Resolvers\XmlPreloadedResolver.cs (2)
191Debug.Assert(Rss091_Dtd.Length == 1); 337Debug.Assert(uri != null);
System\Xml\Schema\BaseProcessor.cs (2)
26Debug.Assert(nameTable != null); 128Debug.Assert(item is XmlSchemaElement);
System\Xml\Schema\BaseValidator.cs (2)
49Debug.Assert(schemaCollection == null || schemaCollection.NameTable == reader.NameTable); 155Debug.Assert(names.Count > 0);
System\Xml\Schema\BitSet.cs (1)
68Debug.Assert(startFrom >= -1 && startFrom <= count);
System\Xml\Schema\Chameleonkey.cs (1)
61Debug.Assert((chameleonLocation.OriginalString.Length == 0 && originalSchema != null)
System\Xml\Schema\CompiledidEntityConstraint.cs (1)
57Debug.Assert(fields.Count > 0);
System\Xml\Schema\ConstraintStruct.cs (3)
190Debug.Assert (this.dstruct != null); 196Debug.Assert (this.dstruct != null); 343Debug.Assert(dim > 0);
System\Xml\Schema\ContentValidator.cs (15)
84Debug.Assert(particles.Count == last + 1); 117Debug.Assert(particles.Count == last + 1); 854Debug.Assert(parent is SequenceNode); 855Debug.Assert(this == parent.RightChild); 1126Debug.Assert(ContentType == XmlSchemaContentType.ElementOnly || ContentType == XmlSchemaContentType.Mixed); 1135Debug.Assert(!IsOpen); 1226Debug.Assert(lrNode != null); 1240Debug.Assert(lrNode1 != null); 1340Debug.Assert(state == (int)stateTable[statePosSet]); // just make sure that statePosSet is for correct state 1668Debug.Assert(minMaxNodesCount != 0); 1761Debug.Assert(minMaxNodesCount > 0); 1783Debug.Assert(lrNode != null); 1865Debug.Assert(runningPositions[i].curpos != null); 1900Debug.Assert(runningPositions[i].curpos != null); 1949Debug.Assert(elements.Count > 0);
System\Xml\Schema\DataTypeImplementation.cs (7)
163Debug.Assert(qname != null && dataType != null); 178Debug.Assert(derivedType != null && baseType != null); 331Debug.Assert(currentType != null); 877Debug.Assert(arr1 != null && arr2 != null); 885Debug.Assert(atomicValues2 != null); 940Debug.Assert(valuesToCheck != null); 1023Debug.Assert(array.GetType() == ListValueType);
System\Xml\Schema\DtdParser.cs (25)
247Debug.Assert(readerAdapter != null); 481Debug.Assert( ParsingInternalSubset ); 486Debug.Assert( externalEntitiesDepth == 0 ); 567Debug.Assert( curPos > 0 && chars[curPos-1] == ']' ); 595Debug.Assert( false ); 599Debug.Assert( scanningFunction == ScanningFunction.SubsetContent ); 1533Debug.Assert( idTokenType == Token.PUBLIC ); 1672Debug.Assert( false ); 2303Debug.Assert( chars[curPos] == '"' || chars[curPos] == '\'' ); 2500Debug.Assert( curPos - tokenStartPos == 0 ); 2975Debug.Assert( chars[curPos] == 'P' ); 2991Debug.Assert( chars[curPos] == 'S' ); 3010Debug.Assert( curPos - tokenStartPos > 0 ); 3027Debug.Assert( curPos - tokenStartPos > 0 ); 3045Debug.Assert( curPos == 0 || chars[curPos-1] == '"' || chars[curPos-1] == '\'' ); 3073Debug.Assert( internalSubsetValueSb != null ); 3087Debug.Assert( chars[curPos] == '&' || chars[curPos] == '%' ); 3095Debug.Assert( chars[curPos-1] == ';' ); 3151Debug.Assert( !ParsingInternalSubset || freeFloatingDtd ); 3152Debug.Assert( currentEntityId == 0 ); 3172Debug.Assert( chars[curPos-1] == ';' ); 3221Debug.Assert( validate ); 3226Debug.Assert( validate ); 3231Debug.Assert( validate ); 3335Debug.Assert( startPos < charsUsed );
System\Xml\Schema\DtdParserAsync.cs (13)
126Debug.Assert( ParsingInternalSubset ); 131Debug.Assert( externalEntitiesDepth == 0 ); 212Debug.Assert( curPos > 0 && chars[curPos-1] == ']' ); 240Debug.Assert( false ); 244Debug.Assert( scanningFunction == ScanningFunction.SubsetContent ); 1147Debug.Assert( idTokenType == Token.PUBLIC ); 1289Debug.Assert( false ); 1760Debug.Assert( chars[curPos] == '"' || chars[curPos] == '\'' ); 1957Debug.Assert( curPos - tokenStartPos == 0 ); 2408Debug.Assert( chars[curPos] == 'P' ); 2424Debug.Assert( chars[curPos] == 'S' ); 2453Debug.Assert( chars[curPos] == '&' || chars[curPos] == '%' ); 2461Debug.Assert( chars[curPos-1] == ';' );
System\Xml\Schema\DtdValidator.cs (2)
42Debug.Assert(reader != null); 129Debug.Assert(reader.NodeType == XmlNodeType.Element);
System\Xml\Schema\FacetChecker.cs (2)
378Debug.Assert(false); 1341Debug.Assert(values != null);
System\Xml\Schema\Inference\Infer.cs (6)
302Debug.Assert(compiledAttributes != null); //AttributeUses is never null 1016Debug.Assert(elem.ElementDecl == null); 1216Debug.Assert(xtr.NodeType == XmlNodeType.Attribute); 1256Debug.Assert(ct != null); 1267Debug.Assert(ct != null); //either the user-defined type itself is a complex type or we switched from a simple type to a complex type 1271Debug.Assert(sce != null);
System\Xml\Schema\NamespaceList.cs (7)
29Debug.Assert(targetNamespace != null); 60Debug.Assert(set != null); 96Debug.Assert(false); 132Debug.Assert(false); 148Debug.Assert(super.type == ListType.Set); 163Debug.Assert(o1 != o2); 251Debug.Assert(o1 != o2); //clause 1
System\Xml\Schema\Parser.cs (8)
89Debug.Assert(schemaType == SchemaType.XDR); 130Debug.Assert(false); 211Debug.Assert(parentNode != null); 287Debug.Assert(currentNode != null); 288Debug.Assert(parentNode != null); 295Debug.Assert( reader.NodeType == XmlNodeType.Element ); 364Debug.Assert(reader.NodeType == XmlNodeType.Attribute); 387Debug.Assert(reader.NodeType == XmlNodeType.EntityReference);
System\Xml\Schema\ParserAsync.cs (1)
49Debug.Assert(schemaType == SchemaType.XDR);
System\Xml\Schema\Preprocessor.cs (4)
274Debug.Assert(import != null); 616Debug.Assert(false); 719Debug.Assert(currentSchema != null); 846Debug.Assert((currentSchemaObject as XmlSchema) == null); //The current object should not be schema
System\Xml\Schema\SchemaCollectionCompiler.cs (8)
48Debug.Assert(!members.Contains(element)); 403Debug.Assert(group.CanonicalParticle != null); 812Debug.Assert(baseType.ElementDecl.ContentValidator != null); 1110Debug.Assert(false); 1474Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 1849Debug.Assert(xe.ElementSchemaType != null); 2078Debug.Assert(!p.IsEmpty); 2093Debug.Assert(false);
System\Xml\Schema\SchemaInfo.cs (1)
276Debug.Assert(false);
System\Xml\Schema\SchemaSetCompiler.cs (12)
98Debug.Assert(schemaForSchema != null); 388Debug.Assert(examplar != null); //Headelement presence is checked while building subst groups 467Debug.Assert(group.CanonicalParticle != null); 1286Debug.Assert(false); 1756Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 2195Debug.Assert(xe.ElementSchemaType != null); 2212Debug.Assert(decl != null); 2434Debug.Assert(!((XmlSchemaParticle)particles[i]).IsEmpty); 2449Debug.Assert(false); 2572Debug.Assert(baseFixedValue != null); 2576Debug.Assert(derivedFixedValue != null); 2588Debug.Assert(simpleFixedValue != null);
System\Xml\Schema\XdrBuilder.cs (1)
578Debug.Assert(_GroupDef != null);
System\Xml\Schema\XmlAtomicValue.cs (1)
137Debug.Assert(qname != null); //string representation is handled in a different overload
System\Xml\Schema\XmlSchema.cs (2)
253Debug.Assert(this.isPreprocessed); 624Debug.Assert(extList != null && schema != null);
System\Xml\Schema\XmlSchemaObject.cs (4)
86get { Debug.Assert(false); return null; } 87set { Debug.Assert(false); } 95get { Debug.Assert(false); return null; } 96set { Debug.Assert(false); }
System\Xml\Schema\XmlSchemaObjectTable.cs (8)
32Debug.Assert(oldValue != null); 34Debug.Assert(matchedIndex >= 0); 36Debug.Assert(entries[matchedIndex].qname == name); 49Debug.Assert(oldValue != null); 51Debug.Assert(entries[matchedIndex].qname == name); 66Debug.Assert(matchedIndex >= 0); 67Debug.Assert(entries[matchedIndex].qname == name); 84Debug.Assert(table.Count == entries.Count);
System\Xml\Schema\XmlSchemaSet.cs (2)
878Debug.Assert(ns != null); 887Debug.Assert(schema.BaseUri.Equals(schemaUri));
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
26Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly);
System\Xml\Schema\XmlSchemaValidator.cs (27)
309Debug.Assert(validatedNamespaces != null); 545Debug.Assert(currentState == ValidatorState.TopLevelAttribute); //Re-set state back to start on error with partial validation type 554Debug.Assert(currentElementDecl != null); 556Debug.Assert(ct != null); 570Debug.Assert(attributeDef != null); 586Debug.Assert(simpleValue != null); 710Debug.Assert(names.Count > 0); 817Debug.Assert(context.Validity != XmlSchemaValidity.Valid); 920Debug.Assert(attSchemaInfo != null); 1216Debug.Assert(currentElementDecl.Datatype != null); 1266Debug.Assert(simpleValue != null); 1277Debug.Assert(decl != null && decl.SchemaType != null); 1312Debug.Assert(validationStack.Length > 1); 1372Debug.Assert(partialValidationType is XmlSchemaAttribute); 1400Debug.Assert(elementDecl.DefaultValueTyped != null); 1527Debug.Assert(elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && elementDecl.DefaultValueTyped != null); 1537Debug.Assert(decl != null); 1548Debug.Assert(xmlResolver != null); 1625Debug.Assert(dtype != null); 1657Debug.Assert(dtype != null); 1762Debug.Assert(currentElementDecl != null); 1934Debug.Assert(datatype != null); 2107Debug.Assert(contentValidator is DfaContentValidator || contentValidator is NfaContentValidator || contentValidator is RangeContentValidator || contentValidator is AllElementsContentValidator); 2125Debug.Assert(names.Count > 0); 2164Debug.Assert(names.Count > 0); 2195Debug.Assert(builder.Length != 0); 2282Debug.Assert(nsList.Length > 0);
System\Xml\Schema\XmlValueConverter.cs (1)
3317Debug.Assert(schemaType.DerivedBy == XmlSchemaDerivationMethod.Union);
System\Xml\Schema\XsdBuilder.cs (5)
698Debug.Assert(this.currentEntry.InitFunc != null); 701Debug.Assert(xso != null); 1265Debug.Assert(false); 2173Debug.Assert(false); 2216Debug.Assert(false);
System\Xml\Schema\XsdDuration.cs (1)
109Debug.Assert(durationType == DurationType.Duration || durationType == DurationType.DayTimeDuration);
System\Xml\Schema\XsdValidator.cs (1)
409Debug.Assert(attnDef.SchemaType != null);
System\Xml\Serialization\CodeExporter.cs (1)
161Debug.Assert(comments != null);
System\Xml\Serialization\CodeGenerator.cs (28)
59System.Diagnostics.Debug.Assert(typeBuilder != null); 138System.Diagnostics.Debug.Assert(argList != null && argList.ContainsKey(name)); 143System.Diagnostics.Debug.Assert(currentScope != null && currentScope.ContainsKey(name)); 183System.Diagnostics.Debug.Assert(false); 222Debug.Assert(this.currentScope.parent != null); 230Debug.Assert(freeLocals != null); 249Debug.Assert(!currentScope.ContainsKey(name)); 265Debug.Assert(local.LocalType == type); 303Debug.Assert(forState != null); 610Debug.Assert(methodInfo != null); 618Debug.Assert(ctor != null); 623Debug.Assert(constructorInfo != null); 741System.Diagnostics.Debug.Assert(memberInfo.MemberType == MemberTypes.Property); 752System.Diagnostics.Debug.Assert(getMethod != null); 773System.Diagnostics.Debug.Assert(memberInfo.MemberType == MemberTypes.Property); 784System.Diagnostics.Debug.Assert(getMethod != null); 807System.Diagnostics.Debug.Assert(memberInfo.MemberType == MemberTypes.Property); 817System.Diagnostics.Debug.Assert(setMethod != null); 1215Debug.Assert(currentScope.ContainsKey(name)); 1225Debug.Assert(local.LocalType == type); 1234Debug.Assert(currentScope.ContainsKey(name)); 1236Debug.Assert(local.LocalType == type); 1439Debug.Assert(!opCode.Equals(OpCodes.Nop)); 1727Debug.Assert(ifState != null); 1958Debug.Assert(initElseIfStack == -1); 1967Debug.Assert(initIfStack == -1); 1984Debug.Assert(initIfStack == -1 && initElseIfStack == -1); 2002Debug.Assert(initIfStack == -1 && initElseIfStack == -1);
System\Xml\Serialization\SourceInfo.cs (4)
105Debug.Assert(get_Item != null); 169Debug.Assert(match.Groups["arg"].Value == Arg); 170Debug.Assert(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type)); 192System.Diagnostics.Debug.Assert(targetType == nullableType || targetType.IsAssignableFrom(nullableType.GetGenericArguments()[0]));
System\Xml\Serialization\Types.cs (2)
976Debug.Assert(propertyInfo != null); 977Debug.Assert(typeDesc != null);
System\Xml\Serialization\XmlSerializationILGen.cs (5)
46System.Diagnostics.Debug.Assert(access == "public"); 60get { System.Diagnostics.Debug.Assert(moduleBuilder != null); return moduleBuilder; } 61set { System.Diagnostics.Debug.Assert(moduleBuilder == null && value != null); moduleBuilder = value; } 99System.Diagnostics.Debug.Assert(methodBuilders.ContainsKey(methodName)); 567System.Diagnostics.Debug.Assert(memberInfos.ContainsKey(source.Substring(3)));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (20)
254Debug.Assert(idNameFields.ContainsKey(id)); 311Debug.Assert(node == "null" || node == "(object)p"); 699System.Diagnostics.Debug.Assert(source == "Reader.ReadElementString()" || source == "Reader.ReadString()" 831System.Diagnostics.Debug.Assert(source == "Reader.Value" || source == "Reader.ReadElementString()"); 939System.Diagnostics.Debug.Assert(source == "false"); 1080Debug.Assert(get_TableName != null); 1777System.Diagnostics.Debug.Assert(source == "Reader"); 2069System.Diagnostics.Debug.Assert(elseCall == "UnknownNode"); 2363Debug.Assert(anyText != null); 2665Debug.Assert(!soapRefs); 2735Debug.Assert(match.Groups["locA1"].Value == match.Groups["locA2"].Value); 2736Debug.Assert(match.Groups["locA1"].Value == match.Groups["locA3"].Value); 2737Debug.Assert(match.Groups["locI1"].Value == match.Groups["locI2"].Value); 2781System.Diagnostics.Debug.Assert(ilg.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)).IsArray); 2800Debug.Assert(elementType != null && variable is LocalBuilder); 2809Debug.Assert(memberInfos.ContainsKey(source.Substring(3))); 2834Debug.Assert(!localA.LocalType.IsGenericType || (localA.LocalType.GetGenericArguments().Length == 1 && localA.LocalType.GetGenericArguments()[0].IsAssignableFrom(elementType))); 2842Debug.Assert(Add != null); 2855System.Diagnostics.Debug.Assert(varType.IsArray); 2881Debug.Assert(memberInfos.ContainsKey(source.Substring(3)));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
1008System.Diagnostics.Debug.Assert(xmlnsSource.StartsWith("o.@", StringComparison.Ordinal)); 1327System.Diagnostics.Debug.Assert(parent == "o" || parent == "p"); 2121Debug.Assert(!local.LocalType.IsValueType); 2300Debug.Assert(type.IsValueType); 2377Debug.Assert(initValue.MemberInfo != null); 2378Debug.Assert(initValue.MemberInfo.Name == initValue.Arg.Substring(3)); 2418Debug.Assert(typeName == arrayTypeDesc.CSharpName || typeName == arrayTypeDesc.CSharpName + "[]"); 2428Debug.Assert(type != null); 2429Debug.Assert(ilg != null); 2436Debug.Assert(arrayType != null); 2437Debug.Assert(ilg != null);
System\Xml\ValidateNames.cs (7)
49Debug.Assert(s != null && offset <= s.Length); 86Debug.Assert(s != null && offset <= s.Length); 128Debug.Assert(s != null && offset <= s.Length); 184Debug.Assert(s != null && offset <= s.Length); 383Debug.Assert(offsetBadChar < s.Length); 409Debug.Assert(offsetBadChar < s.Length); 473Debug.Assert(prefix != null && localName != null && ns != null);
System\Xml\XmlCharType.cs (9)
429Debug.Assert( memStream.Length == CharPropertiesSize ); 478Debug.Assert( s_CharProperties != null ); 712Debug.Assert(str != null); 713Debug.Assert(startPos + len <= str.Length); 714Debug.Assert(startPos <= str.Length); 725Debug.Assert( chars != null ); 726Debug.Assert( startPos + len <= chars.Length ); 727Debug.Assert( startPos <= chars.Length ); 750Debug.Assert(start <= end);
System\Xml\XmlEncoding.cs (2)
351Debug.Assert( i == 1 ); 395Debug.Assert( i == 1 );
System\Xml\XmlException.cs (3)
244Debug.Assert(invCharIndex < data.Length); 245Debug.Assert(invCharIndex < length); 246Debug.Assert(length <= data.Length);
System\Xml\XmlNamespacemanager.cs (4)
116Debug.Assert( decl >= 2 ); 170Debug.Assert( hashTable == null ); 222Debug.Assert( i >= 2 ); 232Debug.Assert( prefix != null );
System\Xml\XmlQualifiedName.cs (3)
221Debug.Assert(name != null && ns != null); 228Debug.Assert(ns != null); 240Debug.Assert(name != null);
System\Xml\XPath\Internal\AttributeQuery.cs (1)
42Debug.Assert(! currentNode.NamespaceURI.Equals(XmlReservedNs.NsXmlNs));
System\Xml\XPath\Internal\Axis.cs (2)
42Debug.Assert(prefix != null); 43Debug.Assert(name != null);
System\Xml\XPath\Internal\BaseAxisQuery.cs (3)
37Debug.Assert(qyInput != null); 64Debug.Assert(context != null); 109Debug.Assert(this is AttributeQuery || this is ChildrenQuery);
System\Xml\XPath\Internal\BooleanExpr.cs (2)
22Debug.Assert(op == Operator.Op.AND || op == Operator.Op.OR); 23Debug.Assert(opnd1 != null && opnd2 != null);
System\Xml\XPath\Internal\CacheAxisQuery.cs (2)
39Debug.Assert(0 <= count && count <= outputBuffer.Count); 48Debug.Assert(0 <= count && count <= outputBuffer.Count);
System\Xml\XPath\Internal\CacheOutputQuery.cs (2)
48Debug.Assert(0 <= count && count <= outputBuffer.Count); 57Debug.Assert(0 <= count && count <= outputBuffer.Count);
System\Xml\XPath\Internal\CompiledXPathExpr.cs (1)
101Debug.Assert(prefix != null);
System\Xml\XPath\Internal\ForwardPositionQuery.cs (1)
17Debug.Assert(input != null);
System\Xml\XPath\Internal\LogicalExpr.cs (3)
22Debug.Assert( 85Debug.Assert(op == Operator.Op.EQ || op == Operator.Op.NE); 112Debug.Assert(
System\Xml\XPath\Internal\NamespaceQuery.cs (1)
52Debug.Assert(e.NodeType == XPathNodeType.Namespace);
System\Xml\XPath\Internal\NumericExpr.cs (3)
22Debug.Assert( 27Debug.Assert(opnd1 != null && opnd2 != null); 56Debug.Assert(op == Operator.Op.PLUS || op == Operator.Op.MINUS || op == Operator.Op.MOD || op == Operator.Op.DIV || op == Operator.Op.MUL);
System\Xml\XPath\Internal\Operator.cs (1)
51Debug.Assert(Op.EQ <= op && op <= Op.GE);
System\Xml\XPath\Internal\Query.cs (1)
140Debug.Assert(0 <= l && l < r);
System\Xml\XPath\Internal\SortQuery.cs (6)
75Debug.Assert(0 <= count && count <= results.Count); 84Debug.Assert(0 <= count && count <= results.Count); 148Debug.Assert(this.expressions.Length == this.comparers.Length); 149Debug.Assert(0 < this.expressions.Length); 150Debug.Assert(0 <= numSorts && numSorts <= this.expressions.Length); 162Debug.Assert(numSorts < this.expressions.Length);
System\Xml\XPath\Internal\StringFunctions.cs (1)
82Debug.Assert(GetXPathType(argVal) == XPathResultType.Number);
System\Xml\XPath\Internal\XPathArrayIterator.cs (2)
48Debug.Assert(index <= list.Count); 61Debug.Assert(index <= list.Count);
System\Xml\XPath\Internal\XPathMultyIterator.cs (1)
92Debug.Assert(firstNotEmpty <= item && item < arr.Length);
System\Xml\XPath\Internal\XPathParser.cs (4)
364Debug.Assert(nodeType != XPathNodeType.Root); 411Debug.Assert(IsPrimaryExpr(this.scanner)); 572Debug.Assert(this.scanner.CanBeFunction); 762Debug.Assert(scaner.Kind == XPathScanner.LexKind.Axe);
System\Xml\XPath\Internal\XPathScanner.cs (15)
43Debug.Assert(0 <= xpathExprIndex && xpathExprIndex <= xpathExpr.Length); 71Debug.Assert(this.kind == LexKind.Name || this.kind == LexKind.Axe); 72Debug.Assert(this.name != null); 79Debug.Assert(this.kind == LexKind.Name); 80Debug.Assert(this.prefix != null); 87Debug.Assert(this.kind == LexKind.String); 88Debug.Assert(this.stringValue != null); 95Debug.Assert(this.kind == LexKind.Number); 96Debug.Assert(this.numberValue != double.NaN); 105Debug.Assert(this.kind == LexKind.Name); 243Debug.Assert(this.CurerntChar == '.' || XmlCharType.IsDigit(this.CurerntChar)); 259Debug.Assert(XmlCharType.IsDigit(this.CurerntChar)); 261Debug.Assert(0 <= start && this.xpathExpr[start] == '.'); 280Debug.Assert(this.CurerntChar == endChar); 286Debug.Assert(xmlCharType.IsStartNCNameSingleChar(this.CurerntChar)
System\Xml\XPath\Internal\XPathSingletonIterator.cs (1)
20Debug.Assert(nav != null);
System\Xml\XPath\XPathDocument.cs (4)
195Debug.Assert(reader.LocalName == "xmlns"); 199Debug.Assert(reader.Prefix == "xmlns"); 357Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element && pageNmsp[idxNmsp].NodeType == XPathNodeType.Namespace); 370Debug.Assert(pageElem[idxElem].NodeType == XPathNodeType.Element);
System\Xml\XPath\XPathNavigator.cs (5)
962Debug.Assert( args != null ); 1805Debug.Assert(reader.LocalName == "xmlns"); 1809Debug.Assert(reader.Prefix == "xmlns"); 1861Debug.Assert(reader.LocalName == "xmlns"); 1865Debug.Assert(reader.Prefix == "xmlns");
System\Xml\XPath\XPathNavigatorReader.cs (2)
448Debug.Assert( value == null ); 554Debug.Assert( XPathNodeType.Namespace == this.nav.NodeType );
System\Xml\Xslt\XslTransform.cs (4)
258Debug.Assert(stylesheet != null); 264Debug.Assert(compiler.CompiledStylesheet != null); 265Debug.Assert(compiler.QueryStore != null); 266Debug.Assert(compiler.QueryStore != null);
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
726Debug.Assert((object)entries[entryIdx].Value == (object)newValue);
UIAutomationClient (9)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
56Debug.Assert( hwnd != NativeMethods.HWND.NULL );
MS\Internal\Automation\UiaCoreAPI.cs (1)
469Debug.Assert(offsets.Length == treeStructures.Length);
System\Windows\Automation\AutomationElement.cs (1)
816Debug.Assert(responses.Length == 1);
System\Windows\Automation\BasePattern.cs (1)
37Debug.Assert(el != null);
System\Windows\Automation\CacheRequest.cs (1)
559Debug.Assert( _request != null );
System\Windows\Automation\Text\TextRange.cs (2)
72Debug.Assert(!hTextRange.IsInvalid); 73Debug.Assert(pattern != null);
System\Windows\Automation\TextPattern.cs (2)
44Debug.Assert(el != null); 45Debug.Assert(!hPattern.IsInvalid);
UIAutomationClientsideProviders (38)
MS\Internal\AutomationProxies\Accessible.cs (7)
331Debug.Assert(parent != null); 342Debug.Assert(false); 358Debug.Assert(parent != null); 369Debug.Assert(false); 761Debug.Assert(_idChild == NativeMethods.CHILD_SELF); 822Debug.Assert(false); 1034Debug.Assert(_accessibleChildrenIndex < 0);
MS\Internal\AutomationProxies\CommonXSendMessage.cs (1)
103System.Diagnostics.Debug.Assert(remoteTextArea.ToInt32() == remoteTextArea.ToInt64());
MS\Internal\AutomationProxies\Misc.cs (2)
2004Debug.Assert(System.Environment.OSVersion.Version.Major < 6); 2075Debug.Assert(System.Environment.OSVersion.Version.Major >= 6);
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (2)
134Debug.Assert(refcount >= 0); 371Debug.Assert(eventId == NativeMethods.EVENT_OBJECT_REORDER);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
66Debug.Assert(hwnd != IntPtr.Zero); 238Debug.Assert(_hwnd == UnsafeNativeMethods.WindowFromPhysicalPoint((int)x, (int)y)); 354Debug.Assert(false); 1057Debug.Assert(!IsRoot); 1110Debug.Assert(_hwnd != IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsEditBox.cs (4)
580Debug.Assert(!IsMultiline); 587Debug.Assert(IsMultiline); 1025Debug.Assert(floor >= 0); 1036Debug.Assert(i >= floor);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
53Debug.Assert(provider != null);
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1973System.Diagnostics.Debug.Assert(el is ListViewItemCheckbox);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (4)
243Debug.Assert(_document != null); 283Debug.Assert(_document != null); 290Debug.Assert(range.Start == range.End); 326Debug.Assert(_document != null);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (11)
35Debug.Assert(range != null); 36Debug.Assert(pattern != null); 267Debug.Assert(text == null || text.Length == maxLength); 1143Debug.Assert(charMoved == 0 || charMoved == 1); 1146Debug.Assert(paraMoved == 0 || paraMoved == 1); 1172Debug.Assert(charMoved == 0 || charMoved == -1); 1175Debug.Assert(paraMoved == 0 || paraMoved == -1); 1201Debug.Assert(charMoved == 0 || charMoved == 1); 1204Debug.Assert(paraMoved == 0 || paraMoved == 1); 1230Debug.Assert(charMoved == 0 || charMoved == -1); 1233Debug.Assert(paraMoved == 0 || paraMoved == -1);
WindowsBase (328)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (2)
45Debug.Assert(property != null && dp != null); 266Debug.Assert(attrs != null);
Base\MS\Internal\ComponentModel\PropertyChangeTracker.cs (1)
21Debug.Assert(obj != null && property != null);
Base\MS\Internal\ContentType.cs (3)
282Debug.Assert(String.CompareOrdinal(_type, String.Empty) != 0 399Debug.Assert(!IsLinearWhiteSpaceChar(contentType[0]) && !IsLinearWhiteSpaceChar(contentType[contentType.Length - 1])); 494Debug.Assert(s != null);
Base\MS\Internal\FreezableDefaultValueFactory.cs (1)
54Debug.Assert(_defaultValuePrototype.IsFrozen);
Base\MS\Internal\InheritanceContextChangedEventManager.cs (1)
57Debug.Assert(listener is Expression);
Base\MS\Internal\Interop\ErrorCodes.cs (3)
428Debug.Assert(e != null); 433Debug.Assert(!(e is ArgumentNullException)); 468Debug.Assert(e != null);
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptedStream.cs (20)
305Debug.Assert(baseStream != null); 306Debug.Assert(cryptoProvider != null); 325Debug.Assert(BitConverter.IsLittleEndian); 422Debug.Assert(writeCacheStartOftheNextBlock > start); 446Debug.Assert(readCacheStartOftheNextBlock > start); 460Debug.Assert(cacheReadResult > 0); 471Debug.Assert(cache != null); 472Debug.Assert(start >=0); 499Debug.Assert(overlapBlockOffset == start); 559Debug.Assert(start >= 0); 560Debug.Assert(cache != null); 634Debug.Assert(readCryptoBlockCount >=1); // we must have at least 1 844Debug.Assert(streamPosition >= 0); 845Debug.Assert(buffer != null); 846Debug.Assert(count >= 0); 847Debug.Assert(checked(offset + count <= buffer.Length)); 874Debug.Assert(buffer != null); 875Debug.Assert(buffer.Length > 0); 876Debug.Assert(count >= 0); 877Debug.Assert(checked(offset + count <= buffer.Length));
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (3)
80Debug.Assert(transformEnvironment != null); 614Debug.Assert(this.IsReady); 821Debug.Assert(userDesired != null);
Base\MS\Internal\IO\Packaging\CompoundFile\VersionedStreamOwner.cs (1)
388Debug.Assert(_dataOffset == 0);
Base\MS\Internal\IO\Packaging\CompressStream.cs (3)
608Debug.Assert(dataLength >= 0); 707Debug.Assert(_baseStream.Position == 0); 753Debug.Assert(s.Position == 0);
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (1)
231Debug.Assert(newLength - _dir.GetStartOffset(lastPieceNumber) >= 0);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (2)
450Debug.Assert(!initializing || reader != null); 866Debug.Assert(entry.Value != null || _package.InStreamingCreation);
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (3)
50Debug.Assert(zipFileInfo != null); 51Debug.Assert(prefixName != null && prefixName != String.Empty); 52Debug.Assert(pieceNumber >= 0);
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (15)
190Debug.Assert(_currentStreamPosition >= 0); 208Debug.Assert(bytesToRead > 0); 270Debug.Assert(_currentStreamPosition >= 0); 502Debug.Assert(gap >= 0); 560Debug.Assert(prevMemStreamBlock.Stream.Length > 0); 567Debug.Assert(prevMemStreamBlock.Stream.Length > 0); 631Debug.Assert(memStreamBlock.Stream.Length > 0); 644Debug.Assert(!_isolatedStorageMode); 659Debug.Assert(_memoryStreamList.Count ==0); // it must be empty in isolated storage mode 681Debug.Assert(newMemStreamBlock.Stream.Length > 0); 742Debug.Assert(!_isolatedStorageMode); 761Debug.Assert(trackingPosition == _currentStreamLength); 777Debug.Assert(toSkip >= 0); 859Debug.Assert(offset >=0); 881Debug.Assert(value >= 0);
Base\MS\Internal\IO\Packaging\TrackingMemoryStream.cs (2)
35Debug.Assert(memoryStreamFactory != null); 42Debug.Assert(memoryStreamFactory != null);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (3)
175Debug.Assert(_manager.Package.PartExists(partEntry.Uri)); 947Debug.Assert(partEntry.IsRelationshipEntry); 1244Debug.Assert(references != null);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (5)
193Debug.Assert(reader != null); 245Debug.Assert(reader != null); 489Debug.Assert(manager != null); 490Debug.Assert(xDoc != null); 491Debug.Assert(hashAlgorithm != null);
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (2)
285Debug.Assert(reader.NodeType == XmlNodeType.EndElement); 306Debug.Assert(reader.NodeType == XmlNodeType.EndElement);
Base\MS\Internal\IO\Zip\Crc32.cs (4)
55Debug.Assert(stream != null); 75Debug.Assert((offset >=0) && (count >=0) && (offset+count <= buffer.Length)); 120Debug.Assert(bitOrdinal < 32); 128Debug.Assert(bitOrdinal < 32);
Base\MS\Internal\IO\Zip\ProgressiveCrcCalculatingStream.cs (2)
240Debug.Assert(underlyingStream != null); 241Debug.Assert(blockManager != null);
Base\MS\Internal\IO\Zip\ZipFileInfo.cs (1)
162Debug.Assert((fileBlock != null) && (zipArchive != null));
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (31)
263Debug.Assert(_openStreaming || _archiveStream.Length == 0); 266Debug.Assert(_endOfCentralDirectoryBlock == null); 279Debug.Assert(_endOfCentralDirectoryBlock == null); 320Debug.Assert(CentralDirectoryBlock.FileExists(zipFileName)); // it must be in the central directory 354Debug.Assert(moveBlockSize >=0); 471Debug.Assert(archiveStream != null); 565Debug.Assert(checked(buffer.Length-offset) >= sizeof(Int16)); 575Debug.Assert(checked(buffer.Length-offset) >= sizeof(Int32)); 585Debug.Assert(checked(buffer.Length-offset) >= sizeof(Int64)); 595Debug.Assert(checked(buffer.Length-offset) >= sizeof(UInt16)); 605Debug.Assert(checked(buffer.Length-offset) >= sizeof(UInt32)); 615Debug.Assert(checked(buffer.Length-offset) >= sizeof(UInt64)); 664Debug.Assert(size >=0); 665Debug.Assert(offset >=0); 666Debug.Assert(onDiskSize >=0); 667Debug.Assert(onDiskOffset >=0); 681Debug.Assert(onDiskSize >=0); 719Debug.Assert(blockSizeToCache >0); // there must be a non empty block at this point that needs to be cached 836Debug.Assert(_centralDirectoryBlock != null 1057Debug.Assert(_zip64EndOfCentralDirectoryBlock != null); 1060Debug.Assert(!IsCentralDirectoryBlockLoaded); 1065Debug.Assert(blockPosition >= 0); 1076Debug.Assert(_centralDirectoryBlock == null); 1090Debug.Assert ((_zip64EndOfCentralDirectoryBlock == null) && 1116Debug.Assert(_zip64EndOfCentralDirectoryBlock == null); 1131Debug.Assert(_zip64EndOfCentralDirectoryBlock == null); 1143Debug.Assert(_zip64EndOfCentralDirectoryLocatorBlock == null); 1157Debug.Assert(_zip64EndOfCentralDirectoryLocatorBlock == null); 1170Debug.Assert(!block.GetDirtyFlag(true)); // closingFlag==true used as a more conservative option 1214Debug.Assert(block.GetDirtyFlag(true) || // closingFlag==true used as a more conservative option 1223Debug.Assert(block.GetDirtyFlag(true) || // closingFlag==true used as a more conservative option
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryBlock.cs (3)
94Debug.Assert(_offset >=0); 195Debug.Assert(CentralDirectoryDictionary.Contains(localFileBlock.FileName)); 487Debug.Assert(! (_blockManager.Zip64EndOfCentralDirectoryBlock.Size==0)
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (4)
137Debug.Assert(_fileNameLength > 0); // we validate this for both parsing and API entry points 345Debug.Assert((compressedSize >= 0) && (uncompressedSize>=0) && (offset >=0)); 386Debug.Assert(DiskNumberStart == 0); 439Debug.Assert(String.CompareOrdinal(_stringFileName, fileBlock.FileName) == 0);
Base\MS\Internal\IO\Zip\ZipIOEndOfCentralDirectoryBlock.cs (7)
75Debug.Assert(_offset >=0); 300Debug.Assert(blockManager != null); 306Debug.Assert(archiveStream.CanSeek); 346Debug.Assert(buffer != null); 348Debug.Assert(buffer.Length >= _fixedMinimalRecordSize); // the end of central directory record must fit in there 350Debug.Assert(pos <= buffer.Length - _fixedMinimalRecordSize); // enough space to fit the record after pos 352Debug.Assert(bufferOffsetFromEndOfStream >= _fixedMinimalRecordSize); // there is no reason to start searching for the record
Base\MS\Internal\IO\Zip\ZipIOExtraField.cs (1)
173Debug.Assert(Math.Abs(size) <= 100);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldElement.cs (3)
121Debug.Assert(size >= _size); 132Debug.Assert(_size == _data.Length); 192Debug.Assert(data != null);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldPaddingElement.cs (2)
58Debug.Assert(size >= MinimumSize); 85Debug.Assert(sniffiedBytes.Length == _signatureSize);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldZip64Element.cs (9)
61Debug.Assert(reader != null); 131Debug.Assert(SizeField > 0); 225Debug.Assert((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.UncompressedSize) != 0); 230Debug.Assert(value >= 0); 242Debug.Assert((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.CompressedSize) != 0); 247Debug.Assert(value >= 0); 259Debug.Assert((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.OffsetOfLocalHeader) != 0); 264Debug.Assert(value >= 0); 276Debug.Assert((_zip64ExtraFieldUsage & ZipIOZip64ExtraFieldUsage.DiskNumber) != 0);
Base\MS\Internal\IO\Zip\ZipIOFileItemStream.cs (21)
94Debug.Assert(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution 142Debug.Assert(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution 179Debug.Assert(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution 182Debug.Assert(_currentStreamPosition >= 0); 214Debug.Assert(persistedTailSize > 0); 218Debug.Assert(diskBytesToRead > 0); 271Debug.Assert(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution 274Debug.Assert(_currentStreamPosition >= 0); 291Debug.Assert(!_blockManager.Streaming); 344Debug.Assert(blockManager != null); 345Debug.Assert(persistedOffset >=0); 346Debug.Assert(persistedSize >= 0); 347Debug.Assert(block != null); 405Debug.Assert(_offset >=0); 418Debug.Assert(_cachePrefixStream == null); // _cachePrefixStream must not be used in streaming cases at all 420Debug.Assert(_blockManager.Streaming); 447Debug.Assert(!_blockManager.Streaming); 468Debug.Assert(moveBlockSize >=0); 480Debug.Assert(_cachePrefixStream.Length > 0); // should be taken care of by the constructor 513Debug.Assert(newPersistedSize == _currentStreamLength); 515Debug.Assert(_cachePrefixStream == null); // we only expect this thing to be not null during Archive Save execution
Base\MS\Internal\IO\Zip\ZipIOLocalFileBlock.cs (6)
113Debug.Assert(_offset >=0); 362Debug.Assert(!blockManager.Streaming); 363Debug.Assert(blockManager.CentralDirectoryBlock.FileExists(fileName)); 393Debug.Assert(Enum.IsDefined(typeof(CompressionMethodEnum), compressionMethod)); 394Debug.Assert(Enum.IsDefined(typeof(DeflateOptionEnum), deflateOption)); 500Debug.Assert(_exposedPublicStreams != null);
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (5)
51Debug.Assert(Enum.IsDefined(typeof(CompressionMethodEnum), compressionMethod)); 52Debug.Assert(Enum.IsDefined(typeof(DeflateOptionEnum), deflateOption)); 74Debug.Assert(deflateOption != DeflateOptionEnum.None); //this should be ensured by the higher levels 303Debug.Assert(Enum.IsDefined(typeof(DeflateOptionEnum), value)); 304Debug.Assert(value != DeflateOptionEnum.None);
Base\MS\Internal\IO\Zip\ZipIOModeEnforcingStream.cs (1)
300Debug.Assert(baseStream != null);
Base\MS\Internal\IO\Zip\ZipIORawDataFileBlock.cs (9)
75Debug.Assert(_offset >=0); 94Debug.Assert(moveBlockSize >=0); 108Debug.Assert(_cachePrefixStream.Length > 0); // should be taken care of by the constructor 183Debug.Assert(block != null); 184Debug.Assert(block.Offset >=0); 185Debug.Assert(block.Size > 0); 196Debug.Assert(offset >=0); 211Debug.Assert(_cachePrefixStream == null); 214Debug.Assert(DiskImageContains(block));
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryBlock.cs (5)
70Debug.Assert(_offset >=0); 99Debug.Assert(_zip64ExtensibleDataSector != null); 100Debug.Assert(_zip64ExtensibleDataSector.Length == 261Debug.Assert(blockManager != null); 302Debug.Assert(_size >= _fixedMinimalRecordSize);
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs (4)
70Debug.Assert(_offset >=0); 161Debug.Assert(SniffTheBlockSignature(blockManager)); 177Debug.Assert(!SniffTheBlockSignature(blockManager)); 220Debug.Assert(blockManager != null);
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (25)
320Debug.Assert((_envHandle != null) && (!_envHandle.IsInvalid)); 615Debug.Assert((licenseStorageSessionHandle != null) && (!licenseStorageSessionHandle.IsInvalid)); 702Debug.Assert(serializedUseLicense != null); 703Debug.Assert(unboundRightsList != null); 704Debug.Assert(boundLicenseParams != null); 906Debug.Assert((authentication == AuthenticationType.Windows) || 980Debug.Assert((authentication == AuthenticationType.Windows) || 1237Debug.Assert(attributeSize == SystemTime.Size); // if isn't true it is an indication of a problem in the underlying libraries 1310Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1333Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1345Debug.Assert((querySubHandle != null) && (!querySubHandle.IsInvalid)); 1390Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1417Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1468Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1481Debug.Assert((workItemQueryHandle != null) && (!workItemQueryHandle.IsInvalid)); 1625Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1638Debug.Assert((workItemQueryHandle != null) && (!workItemQueryHandle.IsInvalid)); 1651Debug.Assert((rightGroupQueryHandle != null) && (!rightGroupQueryHandle.IsInvalid)); 1698Debug.Assert((rightQueryHandle != null) && (!rightQueryHandle.IsInvalid)); 1722Debug.Assert((conditionListHandle != null) && (!conditionListHandle.IsInvalid)); 1738Debug.Assert((rangeTimeQueryHandle != null) && (!rangeTimeQueryHandle.IsInvalid)); 1771Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1786Debug.Assert((workQueryHandle != null) && (!workQueryHandle.IsInvalid)); 1855Debug.Assert((queryRootHandle != null) && (!queryRootHandle.IsInvalid)); 1875Debug.Assert((distributionPointQueryHandle != null) && (!distributionPointQueryHandle.IsInvalid));
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (6)
106Debug.Assert(!boundLicenseHandle.IsClosed); // it must be either present or not 160Debug.Assert(rightValidityIntervalDays >= 0); // our internal code makes the guarantee that is is not negative 485Debug.Assert((rightHandle != null) && (!rightHandle.IsInvalid)); 518Debug.Assert((userHandle != null) && (!userHandle.IsInvalid)); 661Debug.Assert((userHandle != null) && (!userHandle.IsInvalid)); 814Debug.Assert((rightHandle != null) && (!rightHandle.IsInvalid));
Base\MS\Internal\Security\RightsManagement\RightNameExpirationInfoPair.cs (1)
33Debug.Assert(rightName != null);
Base\MS\Internal\Threading\ExceptionWrapper.cs (1)
54Debug.Assert(numArgs == 0 || // old API, no args
Base\MS\Internal\Utilities.cs (1)
77Debug.Assert(Marshal.IsComObject(t));
Base\MS\Internal\Verify.cs (1)
49Debug.Assert(!string.IsNullOrEmpty(name));
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (2)
341Debug.Assert(baseStream != null); 1468Debug.Assert(transformInstance.ExtraData.Length > 0);
Base\System\IO\Packaging\EncryptedPackage.cs (1)
1141Debug.Assert(!siPackage.InternalExists());
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (4)
742Debug.Assert(index < _signatures.Count); 818Debug.Assert(index < _signatures.Count); 1079Debug.Assert(signatureUri != null); 1080Debug.Assert(countOfSignaturesRemaining >= 0);
Base\System\IO\Packaging\PackagePart.cs (1)
368Debug.Assert(!IsStreamClosed(s));
Base\System\IO\Packaging\PackUriHelper.cs (5)
630Debug.Assert(partUriString != null && partUriString.Length == 0); 635Debug.Assert(partUriString != null && partUriString.Length > 0); 1191Debug.Assert(partUriString != null && partUriString.Length > 0); 1239Debug.Assert(segments.Length > 0 && segments[0] == String.Empty); 1242Debug.Assert(String.CompareOrdinal((Path.GetExtension(segments[segments.Length - 1])), _relationshipPartUpperCaseExtension) == 0);
Base\System\IO\Packaging\ZipPackage.cs (2)
479Debug.Assert(opcName != null && opcName.Length > 0); 630Debug.Assert(sortedPieceInfoList != null);
Base\System\Security\RightsManagement\CryptoProvider.cs (2)
480Debug.Assert(decryptorHandle != null); 512Debug.Assert(encryptorHandle != null);
Base\System\Security\RightsManagement\SecureEnvironment.cs (1)
362Debug.Assert(IsUserActivated(user));
Base\System\Windows\Data\DataSourceProvider.cs (1)
349Debug.Assert(_deferLevel > 0);
Base\System\Windows\DependencyObject.cs (2)
626Debug.Assert(dp != null); 2422Debug.Assert((!source.DependencyObject.IsSealed) ||
Base\System\Windows\EffectiveValueEntry.cs (19)
54Debug.Assert(value != DependencyProperty.UnsetValue); 61Debug.Assert(Object.Equals(modifiedValue.BaseValue, baseValue)); 62Debug.Assert(!(baseValue is DeferredReference)); 63Debug.Assert(IsDeferredReference == (value is DeferredReference)); 68Debug.Assert((value != DependencyProperty.UnsetValue) && 78Debug.Assert(!(modifiedValue.AnimatedValue is DeferredReference)); 79Debug.Assert(Object.Equals(modifiedValue.BaseValue, baseValue) || 81Debug.Assert(!(baseValue is DeferredReference) && 88Debug.Assert(value != DependencyProperty.UnsetValue && 116Debug.Assert(skipBaseValueChecks || 120Debug.Assert(!(baseValue is DeferredReference) && 252Debug.Assert(value is DeferredReference == IsDeferredReference); 336Debug.Assert(HasExpressionMarker); 356Debug.Assert(ModifiedValue != null); 417Debug.Assert(IsExpression == true); 488Debug.Assert(Value != DependencyProperty.UnsetValue); 493Debug.Assert(ModifiedValue != null && ModifiedValue.BaseValue != DependencyProperty.UnsetValue); 509Debug.Assert(Value != DependencyProperty.UnsetValue); 514Debug.Assert(ModifiedValue != null && ModifiedValue.BaseValue != DependencyProperty.UnsetValue);
Base\System\Windows\Freezable.cs (21)
937Debug.Assert(srcEntry.BaseValueSourceInternal != BaseValueSourceInternal.Default || srcEntry.HasModifiers); 946Debug.Assert(sourceValue != DependencyProperty.UnsetValue); 1074Debug.Assert(context != null); 1115Debug.Assert(!failed); 1136Debug.Assert(Freezable_UsingSingletonContext); 1137Debug.Assert(SingletonContext != null); 1156Debug.Assert(Freezable_UsingContextList); 1178Debug.Assert(context != null); 1206Debug.Assert(context != null); 1230Debug.Assert(context != null); 1253Debug.Assert(Freezable_UsingSingletonContext); 1286Debug.Assert(!Freezable_UsingSingletonContext && !Freezable_UsingContextList); 1287Debug.Assert(context != null); 1318Debug.Assert(context != null); 1434Debug.Assert(handler != null); 1459Debug.Assert(handler != null); 1498Debug.Assert(Freezable_UsingSingletonHandler); 1518Debug.Assert(Freezable_UsingHandlerList && HandlerList.Count == 0); 1538Debug.Assert(Freezable_UsingSingletonHandler); 1568Debug.Assert(!Freezable_UsingHandlerList && !Freezable_UsingSingletonHandler); 1569Debug.Assert(handler != null);
Base\System\Windows\Markup\XmlCompatibilityReader.cs (1)
350Debug.Assert(Scope.ShouldProcessContent(namespaceName, Reader.LocalName));
Base\System\Windows\Markup\XmlWrappingReader.cs (1)
49Debug.Assert( baseReader != null );
Base\System\Windows\Media\Matrix.cs (11)
952Debug.Assert(_m21 == 0); 953Debug.Assert(_m12 == 0); 954Debug.Assert(_offsetX == 0); 955Debug.Assert(_offsetY == 0); 958Debug.Assert(_m21 == 0); 959Debug.Assert(_m12 == 0); 960Debug.Assert(_m11 == 1); 961Debug.Assert(_m22 == 1); 964Debug.Assert(_m21 == 0); 965Debug.Assert(_m12 == 0); 968Debug.Assert(false);
Base\System\Windows\PropertyMetadata.cs (1)
193Debug.Assert(!(result is DispatcherObject) || ((DispatcherObject)result).Dispatcher == owner.Dispatcher);
Base\System\Windows\Rect.cs (1)
145Debug.Assert((!(_width < 0) && !(_height < 0)) || (this == Empty));
Base\System\Windows\Threading\Dispatcher.cs (4)
1468Debug.Assert(timeout.TotalMilliseconds >= 0 || timeout == TimeSpan.FromMilliseconds(-1)); 1469Debug.Assert(operation.Priority != DispatcherPriority.Send || !CheckAccess()); // should be handled by caller 1506Debug.Assert(operation.Status == DispatcherOperationStatus.Completed || 1522Debug.Assert(operation.Status == DispatcherOperationStatus.Aborted);
Base\System\Windows\Threading\DispatcherExceptionEventArgs.cs (1)
105Debug.Assert(exception != null);
Base\System\Windows\Threading\DispatcherExceptionFilterEventArgs.cs (1)
117Debug.Assert(exception != null);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
325Debug.Assert(bytesLeftToCopy == 0);
Shared\MS\Internal\MatrixUtil.cs (1)
279Debug.Assert(matrix._type != MatrixTypes.TRANSFORM_IS_IDENTITY);
Shared\MS\Internal\Permissions\InternalPermissions.cs (1)
68Debug.Assert(GetType().IsSerializable);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
467Debug.Assert(target != null);
Shared\MS\Internal\TokenizerHelper.cs (1)
344Debug.Assert(null != numberFormat);
Shared\MS\Utility\FrugalMap.cs (11)
128Debug.Assert(INVALIDKEY != key); 234Debug.Assert(INVALIDKEY != key); 392Debug.Assert(INVALIDKEY != key); 554Debug.Assert(INVALIDKEY != key); 874Debug.Assert(INVALIDKEY != key); 1134Debug.Assert(INVALIDKEY != key); 1349Debug.Assert(INVALIDKEY != key); 1413Debug.Assert(INVALIDKEY != key); 1569Debug.Assert(INVALIDKEY != key); 1838Debug.Assert(INVALIDKEY != key); 1894Debug.Assert(INVALIDKEY != key);
Shared\MS\Utility\TraceProvider.cs (4)
115Debug.Assert(IsEnabled(keywords, level)); 156Debug.Assert(IsEnabled(keywords, level)); 160Debug.Assert(argCount <= s_etwMaxNumberArguments); 182Debug.Assert(stringIndex < s_etwAPIMaxStringCount); // need to increase string count or emit fewer strings
Shared\MS\Win32\NativeMethodsOther.cs (1)
41Debug.Assert((0xFFFF0000 & errorCode) == 0);
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (1)
607Debug.Assert(handle != IntPtr.Zero);
WsatConfig (4)
CommandLine\OptionUsage.cs (2)
160Debug.Assert(string.IsNullOrEmpty(optionAbbr)); 185Debug.Assert(optionUses.Count > 1);
Configuration\WsatConfiguration.cs (2)
302Debug.Assert(IsClustered); 529System.Diagnostics.Debug.Assert(!(IsLocalMachine || IsClustered));
WsatUI (2)
Configuration\WsatConfiguration.cs (2)
302Debug.Assert(IsClustered); 529System.Diagnostics.Debug.Assert(!(IsLocalMachine || IsClustered));