116 references to DebugAssert
dotnet-svcutil-lib (116)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
462DiagnosticUtility.DebugAssert(cmp == Cmp.GreaterThanOrEqualTo, "Unexpected cmp");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DiagnosticUtility.cs (1)
15DebugAssert(false, message);
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (5)
89DiagnosticUtility.DebugAssert(pch + 4 <= pchMax, ""); 160DiagnosticUtility.DebugAssert(pch + 4 <= pchMax, ""); 243DiagnosticUtility.DebugAssert(pch + 4 <= pchMax, ""); 378DiagnosticUtility.DebugAssert(pb - pbMax == 3, ""); 473DiagnosticUtility.DebugAssert(pb - pbMax == 3, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\PrefixHandle.cs (4)
36DiagnosticUtility.DebugAssert(type != PrefixHandleType.Buffer, ""); 120DiagnosticUtility.DebugAssert(type != PrefixHandleType.Buffer, ""); 126DiagnosticUtility.DebugAssert(index >= 0 && index < 26, ""); 132DiagnosticUtility.DebugAssert(type != PrefixHandleType.Buffer, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\StringHandle.cs (9)
104DiagnosticUtility.DebugAssert(_type == StringHandleType.UTF8, ""); 115DiagnosticUtility.DebugAssert(type == StringHandleType.ConstString, "Should be ConstString"); 127DiagnosticUtility.DebugAssert(type == StringHandleType.ConstString, "Should be ConstString"); 157DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8, ""); 193DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, ""); 204DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, ""); 215DiagnosticUtility.DebugAssert(type == StringHandleType.ConstString, ""); 226DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, ""); 239DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (21)
524DiagnosticUtility.DebugAssert(bytes != null, ""); 555DiagnosticUtility.DebugAssert(str[i] < 128, ""); 654DiagnosticUtility.DebugAssert(offset + count <= chars.Length, string.Format("offset '{0}' + count '{1}' MUST BE <= chars.Length '{2}'", offset, count, chars.Length)); 737DiagnosticUtility.DebugAssert(byteOffset + actualByteCount < bytes.Length, 809DiagnosticUtility.DebugAssert(_type == ValueHandleType.UTF8, ""); 817DiagnosticUtility.DebugAssert(_type == ValueHandleType.Unicode, ""); 823DiagnosticUtility.DebugAssert(_type == ValueHandleType.EscapedUTF8, ""); 845DiagnosticUtility.DebugAssert(_type == ValueHandleType.Char, ""); 851DiagnosticUtility.DebugAssert(_type == ValueHandleType.Int8, ""); 857DiagnosticUtility.DebugAssert(_type == ValueHandleType.Int16, ""); 863DiagnosticUtility.DebugAssert(_type == ValueHandleType.Int32, ""); 869DiagnosticUtility.DebugAssert(_type == ValueHandleType.Int64 || _type == ValueHandleType.TimeSpan || _type == ValueHandleType.DateTime, ""); 875DiagnosticUtility.DebugAssert(_type == ValueHandleType.UInt64, ""); 881DiagnosticUtility.DebugAssert(_type == ValueHandleType.Single, ""); 887DiagnosticUtility.DebugAssert(_type == ValueHandleType.Double, ""); 893DiagnosticUtility.DebugAssert(_type == ValueHandleType.Decimal, ""); 899DiagnosticUtility.DebugAssert(_type == ValueHandleType.UniqueId, ""); 905DiagnosticUtility.DebugAssert(_type == ValueHandleType.Guid, ""); 911DiagnosticUtility.DebugAssert(_type == ValueHandleType.Base64, ""); 917DiagnosticUtility.DebugAssert(_type == ValueHandleType.Dictionary, ""); 923DiagnosticUtility.DebugAssert(_type == ValueHandleType.QName, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (21)
684DiagnosticUtility.DebugAssert(qnameType == QNameType.Xmlns, ""); 772DiagnosticUtility.DebugAssert(qnameType == QNameType.Xmlns, ""); 913DiagnosticUtility.DebugAssert(qnameType == QNameType.Xmlns, ""); 1084DiagnosticUtility.DebugAssert(qnameType == QNameType.Xmlns, ""); 1126DiagnosticUtility.DebugAssert(qnameType == QNameType.Xmlns, ""); 1950public StringHandle LocalName { get { DiagnosticUtility.DebugAssert(_qnameType != QNameType.Xmlns, ""); return _localName; } } 1951public PrefixHandle Prefix { get { DiagnosticUtility.DebugAssert(_qnameType != QNameType.Xmlns, ""); return _prefix; } } 1956public ValueHandle Value { get { DiagnosticUtility.DebugAssert(_qnameType != QNameType.Xmlns, ""); return _value; } } 2052DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2065DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2078DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2091DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2104DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2117DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2129DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2142DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2156DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2170DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2185DiagnosticUtility.DebugAssert(_qnameType == QNameType.Xmlns, ""); 2525DiagnosticUtility.DebugAssert(qnameType == QNameType.Xmlns, ""); 2897DiagnosticUtility.DebugAssert(s != null, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (1)
401DiagnosticUtility.DebugAssert(_arrayState == ArrayState.Element, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (12)
36DiagnosticUtility.DebugAssert(XmlBinaryNodeType.MaxAttribute < XmlBinaryNodeType.MinElement && 69DiagnosticUtility.DebugAssert(nodeType >= XmlBinaryNodeType.MinText && nodeType <= XmlBinaryNodeType.MaxText && ((byte)nodeType & 1) == 0, "Invalid nodeType"); 85DiagnosticUtility.DebugAssert(nodeType == XmlBinaryNodeType.Chars8Text || nodeType == XmlBinaryNodeType.Bytes8Text || nodeType == XmlBinaryNodeType.UnicodeChars8Text, ""); 225DiagnosticUtility.DebugAssert(nodeType >= XmlBinaryNodeType.MinText && nodeType <= XmlBinaryNodeType.MaxText && ((byte)nodeType & 1) == 0, ""); 354DiagnosticUtility.DebugAssert(t.Dictionary == _dictionary, ""); 413DiagnosticUtility.DebugAssert(length < 128, ""); 682DiagnosticUtility.DebugAssert(charCount > 0, ""); 718DiagnosticUtility.DebugAssert(length <= byte.MaxValue, ""); 904DiagnosticUtility.DebugAssert(!_inList, ""); 915DiagnosticUtility.DebugAssert(_inList, ""); 1037DiagnosticUtility.DebugAssert(result, ""); 1108DiagnosticUtility.DebugAssert(result, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (22)
198DiagnosticUtility.DebugAssert(_offsetMax < _windowOffsetMax, ""); 218DiagnosticUtility.DebugAssert(_offset <= int.MaxValue - count, ""); 222DiagnosticUtility.DebugAssert(newOffsetMax <= _windowOffsetMax, ""); 244DiagnosticUtility.DebugAssert(_offset + count <= _offsetMax, ""); 250DiagnosticUtility.DebugAssert(_stream != null, ""); 291DiagnosticUtility.DebugAssert(value >= _offsetMin && value <= _offsetMax, ""); 298DiagnosticUtility.DebugAssert(count >= 0, ""); 405DiagnosticUtility.DebugAssert(sizeof(float) == 4, ""); 425DiagnosticUtility.DebugAssert(sizeof(double) == 8, ""); 781DiagnosticUtility.DebugAssert(buffer[offset + 0] == '&', ""); 782DiagnosticUtility.DebugAssert(buffer[offset + 1] == '#', ""); 783DiagnosticUtility.DebugAssert(buffer[offset + length - 1] == ';', ""); 800DiagnosticUtility.DebugAssert(buffer[offset + 0] == '&', ""); 801DiagnosticUtility.DebugAssert(buffer[offset + 1] == '#', ""); 802DiagnosticUtility.DebugAssert(buffer[offset + 2] == 'x', ""); 803DiagnosticUtility.DebugAssert(buffer[offset + length - 1] == ';', ""); 817DiagnosticUtility.DebugAssert(digit >= 0 && digit < 16, ""); 830DiagnosticUtility.DebugAssert(buffer[offset] == '&', ""); 831DiagnosticUtility.DebugAssert(buffer[offset + length - 1] == ';', ""); 1084DiagnosticUtility.DebugAssert(sizeof(float) == 4, ""); 1102DiagnosticUtility.DebugAssert(sizeof(double) == 8, ""); 1169DiagnosticUtility.DebugAssert(nodeType != XmlBinaryNodeType.StartListText, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (3)
1044DiagnosticUtility.DebugAssert(value >= 0 && value < 100, ""); 1061DiagnosticUtility.DebugAssert(value >= 0 && value < 10000, ""); 1069DiagnosticUtility.DebugAssert(value >= 0 && value < 10000000, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlStreamNodeWriter.cs (9)
90DiagnosticUtility.DebugAssert(count >= 0 && count <= bufferLength, ""); 102DiagnosticUtility.DebugAssert(offset + count <= bufferLength, ""); 114DiagnosticUtility.DebugAssert(count >= 0 && count <= bufferLength, ""); 126DiagnosticUtility.DebugAssert(offset + count <= bufferLength, ""); 137DiagnosticUtility.DebugAssert(_offset + count <= bufferLength, ""); 176DiagnosticUtility.DebugAssert(ch < 0x80, ""); 182DiagnosticUtility.DebugAssert(ch < 0x80, ""); 223DiagnosticUtility.DebugAssert(ch1 < 0x80 && ch2 < 0x80, ""); 229DiagnosticUtility.DebugAssert(ch1 < 0x80 && ch2 < 0x80, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (1)
1109DiagnosticUtility.DebugAssert(BufferReader.GetByte() == '&', "");
FrameworkFork\System.ServiceModel\System\IdentityModel\IdentityModelStringsVersion1.cs (1)
299DiagnosticUtility.DebugAssert(index >= 0 && index < this.Count, "The index is out of range. It should be greater than or equal to 0 and less than" + this.Count.ToString());
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (5)
81DiagnosticUtility.DebugAssert(offset >= 0, "Negative offset passed to CloneBuffer."); 82DiagnosticUtility.DebugAssert(len >= 0, "Negative len passed to CloneBuffer."); 83DiagnosticUtility.DebugAssert(buffer.Length - offset >= len, "Invalid parameters to CloneBuffer."); 97DiagnosticUtility.DebugAssert(dstOffset >= 0, "Negative dstOffset passed to MatchesBuffer."); 98DiagnosticUtility.DebugAssert(srcOffset >= 0, "Negative srcOffset passed to MatchesBuffer.");