80 references to MaxValue
dotnet-svcutil-lib (8)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
7410
if (val <= char.
MaxValue
)
FrameworkFork\Microsoft.Xml\Xml\XmlCharType.cs (1)
94
private const uint CharPropertiesSize = (uint)char.
MaxValue
+ 1;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
242
if (value < char.MinValue || value > char.
MaxValue
)
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (2)
146
if (ch > char.
MaxValue
)
829
if (ch > char.
MaxValue
)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (1)
760
if (ch > char.
MaxValue
)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (1)
653
if (ch > char.
MaxValue
)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlStreamNodeWriter.cs (1)
284
else if (ch <= char.
MaxValue
)
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Conversions.cs (2)
4303
case SpecialType.System_Char: return (char.MinValue - 1D) < value && value < (char.
MaxValue
+ 1D);
4333
case SpecialType.System_Char: return (char.MinValue - 1M) < value && value < (char.
MaxValue
+ 1M);
Parser\SlidingTextWindow.cs (1)
45
public const char InvalidCharacter = char.
MaxValue
;
Utilities\ValueSetFactory.CharTC.cs (3)
20
char INumericTC<char>.MaxValue => char.
MaxValue
;
45
Debug.Assert(value != char.
MaxValue
);
66
return (char)random.Next((int)char.MinValue, 1 + (int)char.
MaxValue
);
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
301
return UnmanagedHelper<char>.TryCreate(parameterSymbol, attributeData, char.MinValue, char.
MaxValue
, out parameter);
353
return UnmanagedHelper<char>.Validate(parameterSymbol, attributeData, char.MinValue, char.
MaxValue
, helper, out diagnostics);
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
847
var ret = char.
MaxValue
;
1064
var value = char.
MaxValue
;
1087
var value = char.
MaxValue
;
System.Data.Common (1)
System\Data\Common\CharStorage.cs (1)
29
char min = char.
MaxValue
;
System.Linq (1)
System\Linq\Sequence.cs (1)
87
if (typeof(T) == typeof(char) && (range = TryUseRange<uint>(start, endInclusive, step, char.
MaxValue
)) is not null) return range;
System.Private.CoreLib (34)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (14)
1451
static char IMinMaxValue<char>.MaxValue =>
MaxValue
;
1647
result = (actualValue >=
MaxValue
) ?
MaxValue
:
1660
result = (actualValue >=
MaxValue
) ?
MaxValue
: (char)actualValue;
1666
result = (actualValue >=
MaxValue
) ?
MaxValue
: (char)actualValue;
1672
result = (actualValue >=
MaxValue
) ?
MaxValue
: (char)actualValue;
1678
result = (actualValue >=
MaxValue
) ?
MaxValue
: (char)actualValue;
1710
result = (actualValue >=
MaxValue
) ?
MaxValue
:
2094
static char IBinaryIntegerParseAndFormatInfo<char>.MaxValueDiv10 => (char)(
MaxValue
/ 10);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (2)
468
if (value > char.
MaxValue
) ThrowCharOverflowException();
477
if (value > char.
MaxValue
) ThrowCharOverflowException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2153
char actualResult = (value == PositiveInfinity) ? char.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1787
char actualResult = (value >= char.
MaxValue
) ? char.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1234
char actualResult = (value >= char.
MaxValue
) ? char.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1229
char actualResult = (value >= char.
MaxValue
) ? char.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1253
char actualResult = (value >= char.
MaxValue
) ? char.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1889
char actualResult = ((float)value >= char.
MaxValue
) ? char.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1593
char actualResult = (value >= char.
MaxValue
) ? char.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\AsciiCharSearchValues.cs (1)
25
Debug.Assert(!values.ContainsAnyInRange((char)byte.MaxValue, char.
MaxValue
));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\BitmapCharSearchValues.cs (1)
17
Debug.Assert(maxInclusive <= char.
MaxValue
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (2)
20
private const int MaxModulus = char.
MaxValue
+ 1;
131
Debug.Assert(maxInclusive <= char.
MaxValue
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
56
for (int i = 0; i <= char.
MaxValue
; i++)
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
359
if (value < char.MinValue || value > char.
MaxValue
)
System\Xml\ValueHandle.cs (2)
133
return ch <= char.
MaxValue
&& XmlConverter.IsWhitespace((char)ch);
865
if (ch > char.
MaxValue
)
System\Xml\XmlBinaryWriter.cs (1)
708
if (ch > char.
MaxValue
)
System\Xml\XmlBufferReader.cs (1)
578
if (ch > char.
MaxValue
)
System\Xml\XmlCanonicalWriter.cs (1)
472
if (ch <= char.
MaxValue
)
System\Xml\XmlStreamNodeWriter.cs (1)
249
else if (ch <= char.
MaxValue
)
System.Private.Xml (1)
System\Xml\Core\XmlTextReaderImpl.cs (1)
7295
if (val <= char.
MaxValue
)
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
4788
actualResult = IsNegative(value) ? char.MinValue : char.
MaxValue
;
4792
actualResult = (value._sign >= char.
MaxValue
) ? char.
MaxValue
:
System.Text.Encodings.Web (3)
System\Text\Encodings\Web\TextEncoderSettings.cs (2)
204
for (int i = 0; i <= char.
MaxValue
; i++)
230
if ((uint)allowedCodePoint <= char.
MaxValue
)
System\Text\Unicode\UnicodeHelpers.cs (1)
89
return ((scalar & ~((int)char.
MaxValue
)) != 0);
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\RegexCharClass.cs (2)
208
for (int i = 0; i <= char.
MaxValue
; i++)
982
Debug.Assert((uint)comparison <= char.
MaxValue
);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (3)
892
char.
MaxValue
+ 1 - length :
972
if (node.Ch < char.
MaxValue
)
975
cc.AddRange((char)(node.Ch + 1), char.
MaxValue
);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
49
for (int i = 0; i <= char.
MaxValue
; i++)
System.Text.RegularExpressions.Generator (5)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
208
for (int i = 0; i <= char.
MaxValue
; i++)
982
Debug.Assert((uint)comparison <= char.
MaxValue
);
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (3)
892
char.
MaxValue
+ 1 - length :
972
if (node.Ch < char.
MaxValue
)
975
cc.AddRange((char)(node.Ch + 1), char.
MaxValue
);