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