41 references to MaxValue
mscorlib (16)
system\byte.cs (2)
125
if (i < MinValue || i >
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
144
if (i < MinValue || i >
MaxValue
) {
system\convert.cs (9)
725
if (value > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
738
if (value < Byte.MinValue || value > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
745
if (value > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
751
if (value < Byte.MinValue || value > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
758
if (value > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
764
if (value < Byte.MinValue || value > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
771
if (value > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
1983
if (r < Byte.MinValue || r > Byte.
MaxValue
)
1999
if (fromBase != 10 && r <= Byte.
MaxValue
)
system\decimal.cs (1)
830
if (temp < Byte.MinValue || temp > Byte.
MaxValue
) throw new OverflowException(Environment.GetResourceString("Overflow_Byte"));
system\random.cs (1)
210
buffer[i]=(byte)(InternalSample()%(Byte.
MaxValue
+1));
system\reflection\emit\ilgenerator.cs (1)
939
if (tempVal > Byte.
MaxValue
)
system\sbyte.cs (2)
156
if ((i < 0) || i > Byte.
MaxValue
) {
186
if ((i < 0) || i > Byte.
MaxValue
) {
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (2)
225
byte maxCount = (byte.
MaxValue
< maxName) ? byte.
MaxValue
: (byte)maxName;
System.Core (3)
Microsoft\Scripting\Compiler\ILGen.cs (3)
68
if (index <= Byte.
MaxValue
) {
80
if (index <= Byte.
MaxValue
) {
90
if (index <= Byte.
MaxValue
) {
System.Data (7)
fx\src\data\System\Data\Common\ByteStorage.cs (1)
97
Byte min = Byte.
MaxValue
;
fx\src\data\System\Data\SQLTypes\SQLByte.cs (6)
258
if (x.Value > (short)Byte.
MaxValue
|| x.Value < (short)Byte.MinValue)
272
if (x.Value > (int)Byte.
MaxValue
|| x.Value < (int)Byte.MinValue)
286
if (x.Value > (long)Byte.
MaxValue
|| x.Value < (long)Byte.MinValue)
300
if (x.Value > (float)Byte.
MaxValue
|| x.Value < (float)Byte.MinValue)
314
if (x.Value > (double)Byte.
MaxValue
|| x.Value < (double)Byte.MinValue)
615
public static readonly SqlByte MaxValue = new SqlByte(Byte.
MaxValue
);
System.Data.Entity (4)
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
716
ValidateIntegralDefaultValue(scalar, byte.MinValue, byte.
MaxValue
);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (2)
35
internal const byte MaximumDecimalPrecision = Byte.
MaxValue
;
36
internal const byte MaximumDateTimePrecision = Byte.
MaxValue
;
System\Data\Metadata\Helper.cs (1)
517
{ PrimitiveTypeKind.Byte, new long[] { Byte.MinValue, Byte.
MaxValue
} },
System.Runtime.Serialization (4)
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
53
if (value < byte.MinValue || value > byte.
MaxValue
)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
597
if (value < byte.MinValue || value > byte.
MaxValue
)
System\Xml\XmlBinaryWriter.cs (2)
694
if (charCount <= byte.
MaxValue
/ maxBytesPerChar)
713
Fx.Assert(length <= byte.
MaxValue
, "");
System.Web (3)
UI\ObjectStateFormatter.cs (3)
121
private const int StringTableSize = Byte.
MaxValue
;
730
_stringList = new string[Byte.
MaxValue
];
744
_stringList = new string[Byte.
MaxValue
];
System.Xml (2)
System\Xml\Schema\DataTypeImplementation.cs (1)
3369
static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(byte.MinValue, byte.
MaxValue
);
System\Xml\Schema\XmlValueConverter.cs (1)
831
if (value < (int) Byte.MinValue || value > (int) Byte.
MaxValue
)