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