25 references to MaxValue
mscorlib (4)
system\convert.cs (4)
518
if (value < 0 || value > Char.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
525
if (value > Char.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
531
if (value < 0 || value > Char.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
538
if (value > Char.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Char"));
System.Data (8)
fx\src\data\System\Data\Common\CharStorage.cs (1)
31
Char min = Char.
MaxValue
;
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (4)
58
Debug.Assert(_peekedChar == -1 || ((_peekedChar >= char.MinValue) && (_peekedChar <= char.
MaxValue
)), string.Format("Bad peeked character: {0}", _peekedChar));
92
Debug.Assert(readChar == -1 || ((readChar >= char.MinValue) && (readChar <= char.
MaxValue
)), string.Format("Bad read character: {0}", readChar));
114
Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.
MaxValue
), string.Format("Bad peeked character: {0}", _peekedChar));
159
Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.
MaxValue
), string.Format("Bad peeked character: {0}", _peekedChar));
fx\src\data\System\Data\SqlClient\SqlSequentialTextReaderSmi.cs (3)
39
Debug.Assert(_peekedChar == -1 || ((_peekedChar >= char.MinValue) && (_peekedChar <= char.
MaxValue
)), string.Format("Bad peeked character: {0}", _peekedChar));
70
Debug.Assert(readChar == -1 || ((readChar >= char.MinValue) && (readChar <= char.
MaxValue
)), string.Format("Bad read character: {0}", readChar));
86
Debug.Assert((_peekedChar >= char.MinValue) && (_peekedChar <= char.
MaxValue
), string.Format("Bad peeked character: {0}", _peekedChar));
System.Data.Services (2)
System\Data\Services\Serializers\JsonReader.cs (2)
146
Debug.Assert(result <= char.
MaxValue
, "result <= char.MaxValue");
163
Debug.Assert(result <= char.
MaxValue
, "result <= char.MaxValue");
System.Runtime.Serialization (7)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
370
if (value < char.MinValue || value > char.
MaxValue
)
System\Xml\ValueHandle.cs (2)
146
if (ch > char.
MaxValue
)
879
if (ch > char.
MaxValue
)
System\Xml\XmlBinaryWriter.cs (1)
755
if (ch > char.
MaxValue
)
System\Xml\XmlBufferReader.cs (1)
668
if (ch > char.
MaxValue
)
System\Xml\XmlC14NWriter.cs (1)
500
if (ch <= char.
MaxValue
)
System\Xml\XmlStreamNodeWriter.cs (1)
516
else if (ch <= char.
MaxValue
)
System.ServiceModel (1)
System\ServiceModel\Dispatcher\XPathLexer.cs (1)
167
charProperties = new byte[char.
MaxValue
];
System.Web (1)
Security\AntiXss\UnicodeCharacterEncoder.cs (1)
258
if (currentCodePoint > Char.
MaxValue
) {
System.Xml (2)
System\Xml\Core\XmlTextReaderImpl.cs (1)
6571
if ( val <= char.
MaxValue
) {
System\Xml\XmlCharType.cs (1)
98
private const uint CharPropertiesSize = (uint)char.
MaxValue
+ 1;