258 references to MaxValue
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3699private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(byte.MinValue, byte.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
911if (value < (int)Byte.MinValue || value > (int)Byte.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
441if (value < byte.MinValue || value > byte.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (2)
699if (charCount <= byte.MaxValue / maxBytesPerChar) 718DiagnosticUtility.DebugAssert(length <= byte.MaxValue, "");
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
386else if (v >= 0 && v < byte.MaxValue) 409else if (v >= 0 && v < byte.MaxValue) 428if (value <= (byte.MaxValue >> 2)) 471if (id <= byte.MaxValue)
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
50ArgumentOutOfRangeException.ThrowIfGreaterThan((int)ty, byte.MaxValue);
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
50ArgumentOutOfRangeException.ThrowIfGreaterThan((int)ty, byte.MaxValue);
Microsoft.AspNetCore.Components.Server (8)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (8)
265else if (value <= byte.MaxValue) 357else if (value <= byte.MaxValue) 468else if (value <= byte.MaxValue) 797if (length <= byte.MaxValue) 886else if (byteCount <= byte.MaxValue && !this.OldSpec) 1006if (dataLength <= byte.MaxValue) 1221else if (characterLength <= byte.MaxValue && !this.OldSpec) 1258else if (byteCount <= byte.MaxValue && !this.OldSpec)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpMethod.cs (1)
76None = byte.MaxValue,
Microsoft.CodeAnalysis (7)
Emit\EditAndContinueMethodDebugInformation.cs (1)
344if (relativeOrdinal > byte.MaxValue)
EnumConstantHelper.cs (1)
43overflowKind = CheckOverflow(byte.MaxValue, previous, offset);
MetadataReader\PEModule.cs (2)
980if (packingSize > byte.MaxValue) 2517Debug.Assert(signatureIndex >= 0 && signatureIndex <= byte.MaxValue);
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
42/// <exception cref="InvalidOperationException">More than <see cref="byte.MaxValue"/> records added.</exception> 50Debug.Assert(_recordCount <= byte.MaxValue);
Syntax\GreenNode.cs (1)
165Debug.Assert(value <= byte.MaxValue);
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
386else if (v >= 0 && v < byte.MaxValue) 409else if (v >= 0 && v < byte.MaxValue) 428if (value <= (byte.MaxValue >> 2)) 471if (id <= byte.MaxValue)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
386else if (v >= 0 && v < byte.MaxValue) 409else if (v >= 0 && v < byte.MaxValue) 428if (value <= (byte.MaxValue >> 2)) 471if (id <= byte.MaxValue)
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
386else if (v >= 0 && v < byte.MaxValue) 409else if (v >= 0 && v < byte.MaxValue) 428if (value <= (byte.MaxValue >> 2)) 471if (id <= byte.MaxValue)
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Conversions.cs (2)
4310case SpecialType.System_Byte: return (byte.MinValue - 1D) < value && value < (byte.MaxValue + 1D); 4340case SpecialType.System_Byte: return (byte.MinValue - 1M) < value && value < (byte.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1387return byte.MinValue <= value && value <= byte.MaxValue;
BoundTree\BoundNode.cs (1)
78kind == (BoundKind)byte.MaxValue || // used in SpillSequenceSpiller
Lowering\SpillSequenceSpiller.cs (1)
19private const BoundKind SpillSequenceBuilderKind = (BoundKind)byte.MaxValue;
Utilities\ValueSetFactory.ByteTC.cs (3)
20byte INumericTC<byte>.MaxValue => byte.MaxValue; 45Debug.Assert(value != byte.MaxValue); 63return (byte)random.Next(byte.MinValue, byte.MaxValue + 1);
Microsoft.CodeAnalysis.CSharp.Features (1)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
96SpecialType.System_Byte => IsUnsignedBoundary(startValue, endValue, byte.MaxValue),
Microsoft.CodeAnalysis.Features (2)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
42/// <exception cref="InvalidOperationException">More than <see cref="byte.MaxValue"/> records added.</exception> 50Debug.Assert(_recordCount <= byte.MaxValue);
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\Syntax\GreenNode.cs (1)
73if (count == byte.MaxValue)
Language\Syntax\InternalSyntax\SyntaxList.cs (2)
309if (n < byte.MaxValue) 315SlotCount = byte.MaxValue;
Language\TypeNameObject.cs (1)
62Debug.Assert(knownTypeNames.Count < byte.MaxValue, "Too many known type names to fit in a byte index.");
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
386else if (v >= 0 && v < byte.MaxValue) 409else if (v >= 0 && v < byte.MaxValue) 428if (value <= (byte.MaxValue >> 2)) 471if (id <= byte.MaxValue)
Microsoft.CodeAnalysis.VisualBasic (2)
Semantics\OverloadResolution.vb (2)
2079Dim theOnlyInferenceLevel As TypeArgumentInference.InferenceLevel = CType(Byte.MaxValue, TypeArgumentInference.InferenceLevel) 2088If theOnlyInferenceLevel = Byte.MaxValue Then
Microsoft.CodeAnalysis.Workspaces (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
386else if (v >= 0 && v < byte.MaxValue) 409else if (v >= 0 && v < byte.MaxValue) 428if (value <= (byte.MaxValue >> 2)) 471if (id <= byte.MaxValue)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
1543if (value <= byte.MaxValue)
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
360var ret = byte.MaxValue; 577var value = byte.MaxValue; 600var value = byte.MaxValue;
Microsoft.Gen.Logging.Generated.Tests (1)
LogPropertiesTests.cs (1)
219TransitiveDerivedProp = byte.MaxValue
Microsoft.Maui.Resizetizer (4)
GenerateSplashStoryboard.cs (4)
109 float r = color.Red / (float)byte.MaxValue; 110 float g = color.Green / (float)byte.MaxValue; 111 float b = color.Blue / (float)byte.MaxValue; 112 float a = color.Alpha / (float)byte.MaxValue;
Microsoft.ML.Core (2)
Data\DataKind.cs (2)
173return byte.MaxValue; 200return byte.MaxValue;
Microsoft.ML.Data (6)
Data\Conversion.cs (6)
840public void Convert(in U2 src, ref U1 dst) => dst = src <= U1.MaxValue ? (U1)src : (U1)0; 841public void Convert(in U4 src, ref U1 dst) => dst = src <= U1.MaxValue ? (U1)src : (U1)0; 842public void Convert(in U8 src, ref U1 dst) => dst = src <= U1.MaxValue ? (U1)src : (U1)0; 843public void Convert(in UG src, ref U1 dst) => dst = src.High == 0 && src.Low <= U1.MaxValue ? (U1)src.Low : (U1)0; 988if (!TryParse(in src, out res) || res > U1.MaxValue) 1490if (res > U1.MaxValue)
Microsoft.ML.DataView (1)
KeyDataViewType.cs (1)
98return byte.MaxValue;
Microsoft.ML.FastTree (14)
Dataset\DenseIntArray.cs (1)
444Contracts.Assert(0 <= value && value <= byte.MaxValue);
Dataset\IntArray.cs (1)
311if (++runnow > byte.MaxValue)
Dataset\RepeatIntArray.cs (1)
39if (val != lastVal || delta == byte.MaxValue)
Dataset\SparseIntArray.cs (7)
59if (val != 0 || delta == byte.MaxValue) 136while (index - currentIndex > byte.MaxValue) 138tempDeltaList.Add(byte.MaxValue); 140currentIndex += byte.MaxValue; 147while (length - currentIndex > byte.MaxValue) 149tempDeltaList.Add(byte.MaxValue); 151currentIndex += byte.MaxValue;
FastTree.cs (4)
1997while (kvp.Key - last > Byte.MaxValue) 1999delta.Add(Byte.MaxValue); 2001last += Byte.MaxValue; 2003ch.Assert(kvp.Key - last <= Byte.MaxValue);
Microsoft.ML.Tests (7)
CollectionsDataViewTest.cs (2)
117fByte = byte.MaxValue - 1, 132fByte = byte.MaxValue,
Transformers\ConvertTests.cs (3)
157AE = new byte[]{ byte.MinValue, byte.MaxValue}, 225AE = new byte[]{ byte.MinValue, byte.MaxValue}, 237ConvE = new float[] { byte.MinValue, byte.MaxValue },
Transformers\HashTests.cs (2)
230if (value <= byte.MaxValue) 233HashTestCore((byte)value, new KeyDataViewType(typeof(byte), byte.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
Microsoft.ML.Transforms (1)
Expression\IlGeneratorExtensions.cs (1)
231if (arg <= byte.MaxValue)
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (3)
1744If result >= Byte.MinValue AndAlso result <= Byte.MaxValue Then 2058If result >= Byte.MinValue AndAlso result <= Byte.MaxValue Then 2360If result >= Byte.MinValue AndAlso result <= Byte.MaxValue Then
Microsoft\VisualBasic\CompilerServices\Operators.vb (2)
2818If result > Byte.MaxValue Then 3722If result > Byte.MaxValue Then
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
386else if (v >= 0 && v < byte.MaxValue) 409else if (v >= 0 && v < byte.MaxValue) 428if (value <= (byte.MaxValue >> 2)) 471if (id <= byte.MaxValue)
System.Data.Common (7)
System\Data\Common\ByteStorage.cs (1)
102byte min = byte.MaxValue;
System\Data\SQLTypes\SQLByte.cs (6)
198if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 210if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 222if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 234if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 246if (x.Value > byte.MaxValue || x.Value < byte.MinValue) 526public static readonly SqlByte MaxValue = new SqlByte(byte.MaxValue);
System.Drawing.Primitives (6)
System\Drawing\Color.cs (6)
436throw new ArgumentException(SR.Format(SR.InvalidEx2BoundArgument, n, v, byte.MinValue, byte.MaxValue)); 438if (unchecked((uint)value) > byte.MaxValue) 473public static Color FromArgb(int red, int green, int blue) => FromArgb(byte.MaxValue, red, green, blue); 526return (max + min) / (byte.MaxValue * 2f); 565if (div > byte.MaxValue) 566div = byte.MaxValue * 2 - max - min;
System.Formats.Asn1 (2)
System\Formats\Asn1\Asn1Tag.cs (1)
338Debug.Assert(segment <= byte.MaxValue);
System\Formats\Asn1\AsnWriter.cs (1)
506if (length <= byte.MaxValue)
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.Integer.cs (1)
183if (result <= byte.MaxValue)
System\Formats\Cbor\Writer\CborWriter.Integer.cs (2)
92else if (value <= byte.MaxValue) 127else if (value <= byte.MaxValue)
System.Linq (1)
System\Linq\Sequence.cs (1)
84if (typeof(T) == typeof(byte) && (range = TryUseRange<ushort>(start, endInclusive, step, byte.MaxValue)) is not null) return range;
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
172if (number > byte.MaxValue)
System.Net.Quic (3)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
172if (number > byte.MaxValue)
System\Net\Quic\QuicStream.cs (2)
135/// <see cref="byte.MinValue"/> represents the lowest priority and <see cref="byte.MaxValue"/> represents the highest priority. 154/// <see cref="byte.MinValue"/> represents the lowest priority and <see cref="byte.MaxValue"/> represents the highest.
System.Net.Security (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
255if (protocol.Protocol.Length == 0 || protocol.Protocol.Length > byte.MaxValue)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
172if (number > byte.MaxValue)
System.Private.CoreLib (80)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.CoreCLR.cs (3)
447byte maxAsyncCallstackFrames = (byte)Math.Min(byte.MaxValue, (buffer.Length - index) / MaxAsyncMethodFrameSize); 501return state.Continuation == null || state.Count == byte.MaxValue; 527byte.MaxValue * MaxAsyncMethodFrameSize,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\StandardFormat.cs (1)
18public const byte NoPrecision = byte.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs (1)
51if ((uint)answer > byte.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs (1)
55if (answer > byte.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.X.cs (1)
75if (parsedValue > byte.MaxValue / 0x10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (19)
410static byte IBinaryNumber<byte>.AllBitsSet => MaxValue; 495static byte IMinMaxValue<byte>.MaxValue => MaxValue; 771result = (actualValue >= MaxValue) ? MaxValue : (byte)actualValue; 777result = (actualValue >= MaxValue) ? MaxValue : 784result = (actualValue >= MaxValue) ? MaxValue : (byte)actualValue; 790result = (actualValue >= MaxValue) ? MaxValue : (byte)actualValue; 796result = (actualValue >= MaxValue) ? MaxValue : (byte)actualValue; 802result = (actualValue >= MaxValue) ? MaxValue : (byte)actualValue; 808result = (actualValue >= MaxValue) ? MaxValue : (byte)actualValue; 844result = (actualValue >= MaxValue) ? MaxValue : 1210static byte IBinaryIntegerParseAndFormatInfo<byte>.MaxValueDiv10 => MaxValue / 10;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (7)
676if (value > byte.MaxValue) ThrowByteOverflowException(); 689if ((uint)value > byte.MaxValue) ThrowByteOverflowException(); 696if (value > byte.MaxValue) ThrowByteOverflowException(); 705if (value > byte.MaxValue) ThrowByteOverflowException(); 714if (value > byte.MaxValue) ThrowByteOverflowException(); 2063if ((uint)r > byte.MaxValue) 2086if (fromBase != 10 && r <= byte.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
1416byte actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
113if (uint64Value > byte.MaxValue) return null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (10)
44public static Guid AllBitsSet => new Guid(uint.MaxValue, ushort.MaxValue, ushort.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue); 796if (!TryParseHex(guidString.Slice(numStart, numLen), out uint byteVal, ref overflow) || overflow || byteVal > byte.MaxValue) 804byteVal > byte.MaxValue ? ParseFailure.Overflow_Byte :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
2095var actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1789byte actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (2)
1175byte actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1240byte actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1235byte actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1249byte actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1882byte actualResult = ((float)value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
210byte topMask = topBits == 0 ? byte.MaxValue : (byte)((1 << topBits) - 1); 352byte topMask = topBits == 0 ? byte.MaxValue : (byte)((1 << topBits) - 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1586byte actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
57return (T)(object)byte.MaxValue; 340result = byte.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\AsciiCharSearchValues.cs (1)
25Debug.Assert(!values.ContainsAnyInRange((char)byte.MaxValue, char.MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (1)
116if (typeof(T) == typeof(char) && maxInclusive >= byte.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (3)
57Debug.Assert(value[0] <= byte.MaxValue && value[ch2Offset] <= byte.MaxValue && value[ch3Offset] <= byte.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (1)
463(AdvSimd.Arm64.IsSupported && c <= byte.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1435var actualResult = (value >= byte.MaxValue) ? byte.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (3)
648if (value.Value <= byte.MaxValue) 665if (value.Value <= byte.MaxValue) 747&& replacementFallback.DefaultString[0] <= byte.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (3)
141if (*pBuffer <= byte.MaxValue) 521if (*pBuffer <= byte.MaxValue) 689if (utf16Data32BitsHigh <= byte.MaxValue)
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
52if (value < byte.MinValue || value > byte.MaxValue)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
655if (value < byte.MinValue || value > byte.MaxValue)
System\Xml\XmlBinaryWriter.cs (2)
647if (charCount <= byte.MaxValue / maxBytesPerChar) 666Debug.Assert(length <= byte.MaxValue);
System.Private.Uri (1)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
172if (number > byte.MaxValue)
System.Private.Xml (3)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
3500if (value > byte.MaxValue || !XmlCharType.IsWhiteSpace((char)value))
System\Xml\Schema\DataTypeImplementation.cs (1)
3623private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(byte.MinValue, byte.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
826if (value < (int)byte.MinValue || value > (int)byte.MaxValue)
System.Reflection.Emit (3)
System\Reflection\Emit\ILGeneratorImpl.cs (3)
362if ((uint)arg <= byte.MaxValue) 376if ((uint)arg <= byte.MaxValue) 390if ((uint)arg <= byte.MaxValue)
System.Reflection.Metadata (10)
System\Reflection\Metadata\BlobReader.cs (2)
547if (value > byte.MaxValue) 570if (value > byte.MaxValue)
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (2)
29internal const int MaxSmallExceptionRegions = (byte.MaxValue - TableHeaderSize) / SmallRegionSize; 61unchecked((uint)startOffset) <= ushort.MaxValue && unchecked((uint)length) <= byte.MaxValue;
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (6)
225if (unchecked((uint)slotIndex) <= byte.MaxValue) 259if (unchecked((uint)slotIndex) <= byte.MaxValue) 285if (unchecked((uint)slotIndex) <= byte.MaxValue) 316if (unchecked((uint)argumentIndex) <= byte.MaxValue) 342if (unchecked((uint)argumentIndex) <= byte.MaxValue) 365if (unchecked((uint)argumentIndex) <= byte.MaxValue)
System.Runtime.Caching (1)
System\Runtime\Caching\CacheExpires.cs (1)
775Debug.Assert(NUMBUCKETS < byte.MaxValue);
System.Runtime.Numerics (7)
System\Numerics\BigInteger.cs (3)
4579actualResult = IsNegative(value) ? byte.MinValue : byte.MaxValue; 4583actualResult = (value._sign >= byte.MaxValue) ? byte.MaxValue :
System\Numerics\Complex.cs (4)
1856byte actualResult = (value.m_real >= byte.MaxValue) ? byte.MaxValue : 1998byte actualResult = (value.m_real >= byte.MaxValue) ? byte.MaxValue :
System.Security.Cryptography (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs (3)
40Rc2Version = keySize > byte.MaxValue ? 48Rc2Version > byte.MaxValue ? 56Rc2Version > byte.MaxValue ?
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHelpers.cs (2)
55else if (value <= byte.MaxValue) 92else if (value <= byte.MaxValue)
System.Security.Cryptography.Pkcs (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs (3)
40Rc2Version = keySize > byte.MaxValue ? 48Rc2Version > byte.MaxValue ? 56Rc2Version > byte.MaxValue ?
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
308/// than <see cref="byte.MaxValue"/>.
System.Windows.Forms.Primitives (1)
System\Windows\Forms\SystemDrawingExtensions.cs (1)
41internal static bool HasTransparency(this Color color) => color.A != byte.MaxValue;
System.Xaml (1)
System\Xaml\Schema\TypeReflector.cs (1)
18private const XamlCollectionKind XamlCollectionKindInvalid = (XamlCollectionKind)byte.MaxValue;