440 references to MaxValue
aspire (2)
Utils\ReparsePoint.cs (2)
423if (reparseDataLength > ushort.MaxValue) 427$"maximum of {ushort.MaxValue} bytes. Use a shorter target path.");
Aspire.Dashboard.Tests (1)
Integration\ServerRetryHelper.cs (1)
117while (nextPortAttempt < ushort.MaxValue)
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
897return decimal.ToUInt16(ReadIntegralNumericValue(value, underlyingType, ushort.MinValue, ushort.MaxValue));
dotnet-svcutil-lib (9)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNode.cs (3)
363Debug.Assert(info != null && idxParent <= UInt16.MaxValue); 441Debug.Assert(pageSibling != null && idxSibling != 0 && idxSibling <= UInt16.MaxValue, "Bad argument"); 460Debug.Assert(pageSimilar != null && idxSimilar != 0 && idxSimilar <= UInt16.MaxValue, "Bad argument");
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNodeHelper.cs (1)
183Debug.Assert(idxNode <= UInt16.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3644private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(ushort.MinValue, ushort.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
935if (value < (int)UInt16.MinValue || value > (int)UInt16.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
518if (value < UInt16.MinValue || value > UInt16.MaxValue)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EventDescriptor.cs (2)
45if (id > ushort.MaxValue) 62if (task > ushort.MaxValue)
GenerateDocumentationAndConfigFiles (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
391else if (v >= 0 && v < ushort.MaxValue) 414else if (v >= 0 && v < ushort.MaxValue) 432else if (value <= (ushort.MaxValue >> 2)) 476else if (id <= ushort.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
53{ ushort.MaxValue, nameof(ushort.MaxValue) },
ILCompiler.Compiler (12)
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (7)
206Debug.Assert(memberCount <= ushort.MaxValue); 207Debug.Assert(arrayDescriptor.Size <= ushort.MaxValue); 243Debug.Assert(typeRecords.Length <= ushort.MaxValue); 328Debug.Assert(memberCount <= ushort.MaxValue); 359Debug.Assert(memberDescriptor.NumberOfArguments <= ushort.MaxValue); 415Debug.Assert(length <= ushort.MaxValue); 468else if (value <= ushort.MaxValue)
Compiler\TypePreinit.cs (1)
963ValueTypeValue.FromInt32((ushort)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, ushort.MinValue, ushort.MaxValue)));
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
269if (!elementSize.IsIndeterminate && elementSize.AsInt > ushort.MaxValue)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
285if (relocationList.Count <= ushort.MaxValue) 292sectionHeader.NumberOfRelocations = ushort.MaxValue; 792Debug.Assert(SectionIndex == uint.MaxValue || SectionIndex < ushort.MaxValue);
ILCompiler.ReadyToRun (4)
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
269if (!elementSize.IsIndeterminate && elementSize.AsInt > ushort.MaxValue)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
285if (relocationList.Count <= ushort.MaxValue) 292sectionHeader.NumberOfRelocations = ushort.MaxValue; 792Debug.Assert(SectionIndex == uint.MaxValue || SectionIndex < ushort.MaxValue);
ILLink.RoslynAnalyzer (12)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (4)
30if (major != ushort.MaxValue) 36if (minor != ushort.MaxValue) 42if (build != ushort.MaxValue) 48if (revision != ushort.MaxValue)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (8)
261Span<ushort> versionNumbers = [ushort.MaxValue, ushort.MaxValue, ushort.MaxValue, ushort.MaxValue]; 276if (versionNumbers[0] == ushort.MaxValue || 277versionNumbers[1] == ushort.MaxValue) 283versionNumbers[2] == ushort.MaxValue ? new Version(versionNumbers[0], versionNumbers[1]) : 284versionNumbers[3] == ushort.MaxValue ? new Version(versionNumbers[0], versionNumbers[1], versionNumbers[2]) :
Microsoft.AspNetCore.Components.Server (10)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (10)
137else if (count <= ushort.MaxValue) 177else if (count <= ushort.MaxValue) 364else if (value <= ushort.MaxValue) 475else if (value <= ushort.MaxValue) 807else if (length <= UInt16.MaxValue) 893else if (byteCount <= ushort.MaxValue) 1014else if (dataLength <= UInt16.MaxValue) 1225else if (characterLength <= ushort.MaxValue) 1269else if (byteCount <= ushort.MaxValue) 1306<= ushort.MaxValue => 3,
Microsoft.AspNetCore.Server.HttpSys (1)
TimeoutManager.cs (1)
184if (timeoutValue < 0 || timeoutValue > ushort.MaxValue)
Microsoft.AspNetCore.Session (2)
DistributedSession.cs (2)
24private const int KeyLengthLimit = ushort.MaxValue; 362if (num < 0 || ushort.MaxValue < num)
Microsoft.Build.Tasks.Core (1)
NativeMethods.cs (1)
53internal const UInt16 IMAGE_FILE_MACHINE_INVALID = UInt16.MaxValue; // Invalid value for the machine type.
Microsoft.CodeAnalysis (29)
CodeGen\EmitState.cs (2)
47Debug.Assert(value >= 0 && value <= ushort.MaxValue); 63Debug.Assert(value >= 0 && value <= ushort.MaxValue);
CodeGen\SequencePointList.cs (1)
186const int MaxColumn = ushort.MaxValue - 1;
EnumConstantHelper.cs (1)
63overflowKind = CheckOverflow(ushort.MaxValue, previous, offset);
MetadataReference\AssemblyIdentity.cs (4)
256&& value.Major <= ushort.MaxValue 257&& value.Minor <= ushort.MaxValue 258&& value.Build <= ushort.MaxValue 259&& value.Revision <= ushort.MaxValue;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
650if (partValue > ushort.MaxValue)
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
281BlobIndexSize = (blobHeapSize <= ushort.MaxValue) ? 2 : 4; 282GuidIndexSize = (guidHeapSize <= ushort.MaxValue) ? 2 : 4;
ReferenceManager\CommonReferenceManager.State.cs (5)
555Debug.Assert(versionPattern.Build == ushort.MaxValue || versionPattern.Revision == ushort.MaxValue); 590Debug.Assert(versionPattern is null || versionPattern.Build == ushort.MaxValue || versionPattern.Revision == ushort.MaxValue); 592if ((versionPattern is null || versionPattern.Build < ushort.MaxValue) && version.Build != candidateVersion.Build)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
85Debug.Assert(groupSizes.Count <= ushort.MaxValue); 102Debug.Assert(usingCount <= ushort.MaxValue);
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (1)
97/// If the string passed to AssemblyVersionAttribute contains * the version build and/or revision numbers are set to <see cref="ushort.MaxValue"/>.
VersionHelper.cs (10)
21return TryParse(s, allowWildcard: false, maxValue: ushort.MaxValue, allowPartialParse: true, version: out version); 32/// If <paramref name="s"/> contains * the version build and/or revision numbers are set to <see cref="ushort.MaxValue"/>. 37return TryParse(s, allowWildcard: allowWildcard, maxValue: ushort.MaxValue - 1, allowPartialParse: false, version: out version); 50/// If <paramref name="s"/> contains * and wildcard is allowed the version build and/or revision numbers are set to <see cref="ushort.MaxValue"/>. 55Debug.Assert(!allowWildcard || maxValue < ushort.MaxValue); 154values[i] = ushort.MaxValue; 184if (pattern == null || pattern.Revision != ushort.MaxValue) 200Debug.Assert(revision < ushort.MaxValue); 202if (pattern.Build == ushort.MaxValue) 205int build = Math.Min(ushort.MaxValue, (int)days.TotalDays);
Microsoft.CodeAnalysis.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
391else if (v >= 0 && v < ushort.MaxValue) 414else if (v >= 0 && v < ushort.MaxValue) 432else if (value <= (ushort.MaxValue >> 2)) 476else if (id <= ushort.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
53{ ushort.MaxValue, nameof(ushort.MaxValue) },
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
391else if (v >= 0 && v < ushort.MaxValue) 414else if (v >= 0 && v < ushort.MaxValue) 432else if (value <= (ushort.MaxValue >> 2)) 476else if (id <= ushort.MaxValue)
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
391else if (v >= 0 && v < ushort.MaxValue) 414else if (v >= 0 && v < ushort.MaxValue) 432else if (value <= (ushort.MaxValue >> 2)) 476else if (id <= ushort.MaxValue)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
53{ ushort.MaxValue, nameof(ushort.MaxValue) },
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Conversions.cs (2)
4304case SpecialType.System_UInt16: return (ushort.MinValue - 1D) < value && value < (ushort.MaxValue + 1D); 4334case SpecialType.System_UInt16: return (ushort.MinValue - 1M) < value && value < (ushort.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1400return ushort.MinValue <= value && value <= ushort.MaxValue;
Symbols\AssemblySymbol.cs (1)
100/// Assembly version pattern with wildcards represented by <see cref="ushort.MaxValue"/>,
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
436Debug.Assert((uint)implFlags <= ushort.MaxValue); 449Debug.Assert((uint)localflags <= ushort.MaxValue);
Symbols\Source\SourceAssemblySymbol.cs (2)
416return (object)attributeValue == null || (attributeValue.Build != ushort.MaxValue && attributeValue.Revision != ushort.MaxValue) ? null : attributeValue;
Utilities\ValueSetFactory.UShortTC.cs (2)
20ushort INumericTC<ushort>.MaxValue => ushort.MaxValue; 45Debug.Assert(value != ushort.MaxValue);
Microsoft.CodeAnalysis.CSharp.Features (1)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
97SpecialType.System_UInt16 => IsUnsignedBoundary(startValue, endValue, ushort.MaxValue),
Microsoft.CodeAnalysis.Features (2)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
85Debug.Assert(groupSizes.Count <= ushort.MaxValue); 102Debug.Assert(usingCount <= ushort.MaxValue);
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
305return UnmanagedHelper<ulong>.TryCreate(parameterSymbol, attributeData, ushort.MinValue, ushort.MaxValue, out parameter); 357return UnmanagedHelper<ulong>.Validate(parameterSymbol, attributeData, ushort.MinValue, ushort.MaxValue, helper, out diagnostics);
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
391else if (v >= 0 && v < ushort.MaxValue) 414else if (v >= 0 && v < ushort.MaxValue) 432else if (value <= (ushort.MaxValue >> 2)) 476else if (id <= ushort.MaxValue)
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceAssemblySymbol.vb (2)
776Return If(attributeValue Is Nothing OrElse (attributeValue.Build <> UShort.MaxValue AndAlso attributeValue.Revision <> UShort.MaxValue), Nothing, attributeValue)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
111value >= UShort.MinValue AndAlso value <= UShort.MaxValue Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
111value >= UShort.MinValue AndAlso value <= UShort.MaxValue Then
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
391else if (v >= 0 && v < ushort.MaxValue) 414else if (v >= 0 && v < ushort.MaxValue) 432else if (value <= (ushort.MaxValue >> 2)) 476else if (id <= ushort.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
53{ ushort.MaxValue, nameof(ushort.MaxValue) },
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
1547if (value <= ushort.MaxValue)
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
5717var ret = ushort.MaxValue; 5934var value = ushort.MaxValue; 5957var value = ushort.MaxValue;
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\Context\ARM\LookupValues.cs (1)
182public const ushort OFFSET_NONE = ushort.MaxValue;
Microsoft.Diagnostics.DataContractReader.Legacy (1)
SOSDacImpl.cs (1)
7103if (slot == ushort.MaxValue)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsResolver.cs (1)
849TransactionId = (ushort)RandomNumberGenerator.GetInt32(ushort.MaxValue + 1),
Microsoft.Gen.Logging.Generated.Tests (3)
parent\TestClasses\LogPropertiesExtensions.cs (1)
132public static int StaticNumberProperty { get; set; } = ushort.MaxValue; // Not supposed to be logged (static)
TagProviderTests.cs (2)
77var classToLog = new ClassToLog { MyIntProperty = ushort.MaxValue }; 100var classToLog = new ClassToLog { MyIntProperty = ushort.MaxValue };
Microsoft.ML.Core (2)
Data\DataKind.cs (2)
177return ushort.MaxValue; 204return ushort.MaxValue;
Microsoft.ML.Data (5)
Data\Conversion.cs (5)
849public void Convert(in U4 src, ref U2 dst) => dst = src <= U2.MaxValue ? (U2)src : (U2)0; 850public void Convert(in U8 src, ref U2 dst) => dst = src <= U2.MaxValue ? (U2)src : (U2)0; 851public void Convert(in UG src, ref U2 dst) => dst = src.High == 0 && src.Low <= U2.MaxValue ? (U2)src.Low : (U2)0; 1003if (!TryParse(in src, out res) || res > U2.MaxValue) 1500if (res > U2.MaxValue)
Microsoft.ML.DataView (1)
KeyDataViewType.cs (1)
96return ushort.MaxValue;
Microsoft.ML.FastTree (1)
Dataset\DenseIntArray.cs (1)
793Contracts.Assert(0 <= value && value <= ushort.MaxValue);
Microsoft.ML.Tests (9)
CollectionsDataViewTest.cs (4)
123fuShort = ushort.MaxValue - 1, 138fuShort = ushort.MaxValue, 387fuShort = new ushort[2] { 0, ushort.MaxValue } 439UShortProp = new ushort[2] { 0, ushort.MaxValue }
Transformers\ConvertTests.cs (3)
160AH = new ushort[]{ ushort.MinValue, ushort.MaxValue}, 228AH = new ushort[]{ ushort.MinValue, ushort.MaxValue}, 240ConvH = new float[] { ushort.MinValue, ushort.MaxValue },
Transformers\HashTests.cs (2)
235if (value <= ushort.MaxValue) 238HashTestCore((ushort)value, new KeyDataViewType(typeof(ushort), ushort.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
Microsoft.ML.Transforms (1)
Text\TokenizingByCharacters.cs (1)
98internal const int CharsCount = ushort.MaxValue;
Microsoft.NET.Sdk.Razor.Tasks (2)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerRequest.cs (2)
35if (Arguments.Count > ushort.MaxValue) 39$"Too many arguments: maximum of {ushort.MaxValue} arguments allowed.");
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Operators.vb (2)
2851If result > UInt16.MaxValue Then 3759If result > UInt16.MaxValue Then
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Utility\TrxFileHelper.cs (1)
160while (iteration != ushort.MaxValue);
Mono.Cecil (2)
Mono.Cecil.Metadata\TableHeap.cs (1)
79 get { return Length > ushort.MaxValue; }
Mono.Cecil\AssemblyWriter.cs (1)
189 get { return Length > ushort.MaxValue; }
NuGet.LibraryModel (1)
FrameworkDependencyFlags.cs (1)
12All = ushort.MaxValue,
PresentationBuildTasks (11)
MS\Internal\MarkupCompiler\VersionHelper.cs (10)
26return TryParse(s, allowWildcard: false, maxValue: ushort.MaxValue, allowPartialParse: true, version: out version, hasWildcard: out bool _); 37/// If <paramref name="s"/> contains * the version build and/or revision numbers are set to <see cref="ushort.MaxValue"/>. 43return TryParse(s, allowWildcard: allowWildcard, maxValue: ushort.MaxValue - 1, allowPartialParse: false, version: out version, hasWildcard: out hasWildcard); 56/// If <paramref name="s"/> contains * and wildcard is allowed the version build and/or revision numbers are set to <see cref="ushort.MaxValue"/>. 61Debug.Assert(!allowWildcard || maxValue < ushort.MaxValue); 153values[i] = ushort.MaxValue; 183if (pattern == null || pattern.Revision != ushort.MaxValue) 199Debug.Assert(revision < ushort.MaxValue); 201if (pattern.Build == ushort.MaxValue) 204int build = Math.Min(ushort.MaxValue, (int)days.TotalDays);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
148else if ( allPositive && max <= UInt16.MaxValue )
PresentationCore (8)
MS\Internal\Shaping\Context.cs (3)
77ushort lookupIndex = ushort.MaxValue; 78ushort sequenceIndex = ushort.MaxValue; 107if (lookupIndex == ushort.MaxValue)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (2)
302if (maxCacheSize > ushort.MaxValue) 305maxCacheSize = ushort.MaxValue;
System\Windows\Media\FamilyMapCollection.cs (1)
254if (_count + 1 >= ushort.MaxValue)
System\Windows\Media\GlyphTypeface.cs (2)
230if (glyphs.Count > ushort.MaxValue) 231throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, ushort.MaxValue), nameof(glyphs));
PresentationFramework (1)
System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
148else if ( allPositive && max <= UInt16.MaxValue )
ReachFramework (1)
PrintConfig\PrintCapabilitesWriter.cs (1)
621int maxDevModeSize = ((ushort.MaxValue) * 2 * 4 + 2) / 3;
Roslyn.Diagnostics.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (4)
391else if (v >= 0 && v < ushort.MaxValue) 414else if (v >= 0 && v < ushort.MaxValue) 432else if (value <= (ushort.MaxValue >> 2)) 476else if (id <= ushort.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
53{ ushort.MaxValue, nameof(ushort.MaxValue) },
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
111value >= UShort.MinValue AndAlso value <= UShort.MaxValue Then
rzc (2)
ServerProtocol\ServerRequest.cs (2)
35if (Arguments.Count > ushort.MaxValue) 39$"Too many arguments: maximum of {ushort.MaxValue} arguments allowed.");
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (2)
130UshortValue = ushort.MaxValue 172UshortValue = ushort.MaxValue
System.Data.Common (1)
System\Data\Common\UInt16Storage.cs (1)
105ushort min = ushort.MaxValue;
System.Diagnostics.EventLog (6)
System\Diagnostics\EventData.cs (1)
30if (value > ushort.MaxValue || value < 0)
System\Diagnostics\EventLogInternal.cs (2)
1302if (eventID < 0 || eventID > ushort.MaxValue) 1304throw new ArgumentException(SR.Format(SR.EventID, eventID.ToString(), 0, ushort.MaxValue));
System\Diagnostics\EventLogTraceListener.cs (2)
159if (id > ushort.MaxValue) 160id = ushort.MaxValue;
System\Diagnostics\EventSourceCreationData.cs (1)
40if (value > ushort.MaxValue || value < 0)
System.Drawing.Common (3)
System\Drawing\Icon.cs (3)
843/// <paramref name="size"/> is negative or larger than <see cref="ushort.MaxValue"/>. 852=> size is <= 0 or > ushort.MaxValue 869Debug.Assert(size is >= 0 and <= ushort.MaxValue);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
508if (length <= ushort.MaxValue)
System.Formats.Cbor (3)
System\Formats\Cbor\Reader\CborReader.Integer.cs (1)
195if (result <= ushort.MaxValue)
System\Formats\Cbor\Writer\CborWriter.Integer.cs (2)
98else if (value <= ushort.MaxValue) 131else if (value <= ushort.MaxValue)
System.IO.Compression (11)
System\IO\Compression\ZipArchive.cs (1)
209/// If the comment byte length is larger than <see cref="ushort.MaxValue"/>, it will be truncated when disposing the archive.
System\IO\Compression\ZipArchiveEntry.cs (8)
198if (_storedEntryNameBytes.Length > ushort.MaxValue) 292/// If the comment byte length is larger than <see cref="ushort.MaxValue"/>, it will be truncated when disposing the archive. 300_fileComment = ZipHelper.GetEncodedTruncatedBytesFromString(value, _archive.EntryNameAndCommentEncoding, ushort.MaxValue, out bool isUTF8); 746Debug.Assert(_storedEntryNameBytes.Length <= ushort.MaxValue); 747Debug.Assert(_fileComment.Length <= ushort.MaxValue); 817if (bigExtraFieldLength > ushort.MaxValue) 1583Debug.Assert(_storedEntryNameBytes.Length <= ushort.MaxValue); 1678if (bigExtraFieldLength > ushort.MaxValue)
System\IO\Compression\ZipBlocks.cs (2)
1068public const int ZipFileCommentMaxLength = ushort.MaxValue; 1082ushort numberOfEntriesTruncated = numberOfEntries > ushort.MaxValue ?
System.Linq (1)
System\Linq\Sequence.cs (1)
86if (typeof(T) == typeof(ushort) && (range = TryUseRange<uint>(start, endInclusive, step, ushort.MaxValue)) is not null) return range;
System.Linq.Expressions (4)
System\Dynamic\Utils\ExpressionUtils.cs (1)
311if (((IParameterProvider)lambda).ParameterCount >= ushort.MaxValue)
System\Linq\Expressions\Compiler\ILGen.cs (3)
39Debug.Assert(index < ushort.MaxValue); 47Debug.Assert(index < ushort.MaxValue); 55Debug.Assert(index < ushort.MaxValue);
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerTimeoutManager.Managed.cs (1)
88ArgumentOutOfRangeException.ThrowIfGreaterThan(timeoutValue, ushort.MaxValue, nameof(value));
System.Net.NameResolution (1)
System\Net\DnsResolverPal.Managed.cs (1)
400ushort queryId = (ushort)RandomNumberGenerator.GetInt32(ushort.MaxValue + 1);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
28ushort id = (ushort)Random.Shared.Next(ushort.MaxValue + 1);
System.Net.Quic (2)
System\Net\Quic\QuicConnectionOptions.cs (2)
156ValidateInRange(argumentName, MaxInboundBidirectionalStreams, ushort.MaxValue); 157ValidateInRange(argumentName, MaxInboundUnidirectionalStreams, ushort.MaxValue);
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
337if (protocolSize > ushort.MaxValue)
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (2)
2134if (lingerOption.LingerTime < 0 || lingerOption.LingerTime > (int)ushort.MaxValue) 2136throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper_Named, 0, (int)ushort.MaxValue, "optionValue.LingerTime"), nameof(optionValue));
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
735else if (payload.Length <= ushort.MaxValue)
System.Private.CoreLib (76)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (4)
30if (major != ushort.MaxValue) 36if (minor != ushort.MaxValue) 42if (build != ushort.MaxValue) 48if (revision != ushort.MaxValue)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (8)
261Span<ushort> versionNumbers = [ushort.MaxValue, ushort.MaxValue, ushort.MaxValue, ushort.MaxValue]; 276if (versionNumbers[0] == ushort.MaxValue || 277versionNumbers[1] == ushort.MaxValue) 283versionNumbers[2] == ushort.MaxValue ? new Version(versionNumbers[0], versionNumbers[1]) : 284versionNumbers[3] == ushort.MaxValue ? new Version(versionNumbers[0], versionNumbers[1], versionNumbers[2]) :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
1379Debug.Assert(value >= 0 && value <= ushort.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs (1)
133if ((uint)answer > ushort.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs (1)
136if (answer > ushort.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.X.cs (1)
157if (parsedValue > ushort.MaxValue / 0x10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (4)
922if (value > ushort.MaxValue) ThrowUInt16OverflowException(); 932if (value > ushort.MaxValue) ThrowUInt16OverflowException(); 2111if (fromBase != 10 && r <= ushort.MaxValue) 2137if ((uint)r > ushort.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (4)
61if (id > ushort.MaxValue) 63throw new ArgumentOutOfRangeException(nameof(id), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue)); 76if (task > ushort.MaxValue) 78throw new ArgumentOutOfRangeException(nameof(task), SR.Format(SR.ArgumentOutOfRange_NeedValidId, 1, ushort.MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (4)
110if (size > ushort.MaxValue) 112size = ushort.MaxValue - 1; 189if (length > ushort.MaxValue) 191length = ushort.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
121if (uint64Value > ushort.MaxValue) return null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
45public 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);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2168ushort actualResult = (value == PositiveInfinity) ? ushort.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1801ushort actualResult = (value >= ushort.MaxValue) ? ushort.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1247ushort actualResult = (value >= ushort.MaxValue) ? ushort.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1242ushort actualResult = (value >= ushort.MaxValue) ? ushort.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1266ushort actualResult = (value >= ushort.MaxValue) ? ushort.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1904ushort actualResult = ((float)value >= ushort.MaxValue) ? ushort.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (1)
668Debug.Assert(payloadLength <= ushort.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1668ushort actualResult = (value >= ushort.MaxValue) ? ushort.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
93return (T)(object)ushort.MaxValue; 446result = ushort.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (1)
178ToUpperMask256 = Vector256.ConditionalSelect(isAsciiLetter, Vector256.Create(unchecked((ushort)~0x20)), Vector256.Create(ushort.MaxValue));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (2)
1071if (matches != ushort.MaxValue) 1080if (matches == ushort.MaxValue)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (4)
1554const ushort asciiMask = ushort.MaxValue - 127; // 0xFF80 1576const ushort asciiMask = ushort.MaxValue - 127; // 0xFF80 1586const ushort asciiMask = ushort.MaxValue - 127; // 0xFF80 1595const ushort asciiMask = ushort.MaxValue - 127; // 0xFF80
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (5)
417Debug.Assert(_racingUnblocks != ushort.MaxValue); 493Debug.Assert(countsAfterUpdate.SignalCount != ushort.MaxValue); // overflow check 523Debug.Assert(countsAfterUpdate.WaiterCount != ushort.MaxValue); // underflow check 529Debug.Assert(countsAfterUpdate.WaiterCount != ushort.MaxValue); // overflow check 542Debug.Assert(countsAfterUpdate.CountOfWaitersSignaledToWake != ushort.MaxValue); // overflow check
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
27_data = (_data & ~((ulong)ushort.MaxValue << shift)) | ((ulong)(ushort)value << shift);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerTracking.cs (1)
72_data = (_data & ~((uint)ushort.MaxValue << shift)) | ((uint)(ushort)value << shift);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (15)
409static ushort IBinaryNumber<ushort>.AllBitsSet => MaxValue; 494static ushort IMinMaxValue<ushort>.MaxValue => MaxValue; 782result = (actualValue >= MaxValue) ? MaxValue : 789result = (actualValue >= MaxValue) ? MaxValue : (ushort)actualValue; 795result = (actualValue >= MaxValue) ? MaxValue : (ushort)actualValue; 801result = (actualValue >= MaxValue) ? MaxValue : (ushort)actualValue; 807result = (actualValue >= MaxValue) ? MaxValue : (ushort)actualValue; 849result = (actualValue >= MaxValue) ? MaxValue : 1218static ushort IBinaryIntegerParseAndFormatInfo<ushort>.MaxValueDiv10 => MaxValue / 10;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
735if (value < ushort.MinValue || value > ushort.MaxValue)
System.Private.Xml (8)
System\Xml\Cache\XPathNode.cs (3)
361Debug.Assert(info != null && idxParent <= ushort.MaxValue); 439Debug.Assert(pageSibling != null && idxSibling != 0 && idxSibling <= ushort.MaxValue, "Bad argument"); 458Debug.Assert(pageSimilar != null && idxSimilar != 0 && idxSimilar <= ushort.MaxValue, "Bad argument");
System\Xml\Cache\XPathNodeHelper.cs (1)
180Debug.Assert(idxNode <= ushort.MaxValue);
System\Xml\Schema\DataTypeImplementation.cs (1)
3570private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(ushort.MinValue, ushort.MaxValue);
System\Xml\Schema\XmlValueConverter.cs (1)
850if (value < (int)ushort.MinValue || value > (int)ushort.MaxValue)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
703if (paramPos <= ushort.MaxValue) 717if (paramPos <= ushort.MaxValue)
System.Reflection.Emit (4)
System\Reflection\Emit\ILGeneratorImpl.cs (4)
49internal int GetMaxStack() => Math.Min(ushort.MaxValue, _maxStackDepth + _depthAdjustment); 368if ((uint)arg <= ushort.MaxValue) // this will be true except on misuse of the opcode 382if ((uint)arg <= ushort.MaxValue) // this will be true except on misuse of the opcode 396if ((uint)arg <= ushort.MaxValue) // this will be true except on misuse of the opcode
System.Reflection.Metadata (49)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (4)
30if (major != ushort.MaxValue) 36if (minor != ushort.MaxValue) 42if (build != ushort.MaxValue) 48if (revision != ushort.MaxValue)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (8)
261Span<ushort> versionNumbers = [ushort.MaxValue, ushort.MaxValue, ushort.MaxValue, ushort.MaxValue]; 276if (versionNumbers[0] == ushort.MaxValue || 277versionNumbers[1] == ushort.MaxValue) 283versionNumbers[2] == ushort.MaxValue ? new Version(versionNumbers[0], versionNumbers[1]) : 284versionNumbers[3] == ushort.MaxValue ? new Version(versionNumbers[0], versionNumbers[1], versionNumbers[2]) :
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (8)
55if (unchecked((uint)genericArgumentCount) > ushort.MaxValue) 79if (unchecked((uint)genericParameterCount) > ushort.MaxValue) 704if (unchecked((uint)count) > ushort.MaxValue) 1103if (unchecked((uint)genericParameterCount) > ushort.MaxValue) 1129if (unchecked((uint)(genericArgumentCount - 1)) > ushort.MaxValue - 1) 1152if (unchecked((uint)parameterIndex) > ushort.MaxValue) 1168if (unchecked((uint)parameterIndex) > ushort.MaxValue) 1280if (unchecked((uint)(rank - 1)) > ushort.MaxValue - 1)
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (1)
61unchecked((uint)startOffset) <= ushort.MaxValue && unchecked((uint)length) <= byte.MaxValue;
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (12)
214/// <exception cref="ArgumentOutOfRangeException"><paramref name="slotIndex"/> is negative or greater than <see cref="ushort.MaxValue"/>.</exception> 230else if (unchecked((uint)slotIndex) <= ushort.MaxValue) 248/// <exception cref="ArgumentOutOfRangeException"><paramref name="slotIndex"/> is negative or greater than <see cref="ushort.MaxValue"/>.</exception> 264else if (unchecked((uint)slotIndex) <= ushort.MaxValue) 282/// <exception cref="ArgumentOutOfRangeException"><paramref name="slotIndex"/> is negative or greater than <see cref="ushort.MaxValue"/>.</exception> 290else if (unchecked((uint)slotIndex) <= ushort.MaxValue) 305/// <exception cref="ArgumentOutOfRangeException"><paramref name="argumentIndex"/> is negative or greater than <see cref="ushort.MaxValue"/>.</exception> 321else if (unchecked((uint)argumentIndex) <= ushort.MaxValue) 339/// <exception cref="ArgumentOutOfRangeException"><paramref name="argumentIndex"/> is negative or greater than <see cref="ushort.MaxValue"/>.</exception> 347else if (unchecked((uint)argumentIndex) <= ushort.MaxValue) 362/// <exception cref="ArgumentOutOfRangeException"><paramref name="argumentIndex"/> is negative or greater than <see cref="ushort.MaxValue"/>.</exception> 370else if (unchecked((uint)argumentIndex) <= ushort.MaxValue)
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (4)
79if (unchecked((uint)maxStack) > ushort.MaxValue) 132/// <exception cref="ArgumentOutOfRangeException"><paramref name="maxStack"/> is out of range [0, <see cref="ushort.MaxValue"/>].</exception> 155/// <exception cref="ArgumentOutOfRangeException"><paramref name="maxStack"/> is out of range [0, <see cref="ushort.MaxValue"/>].</exception> 167if (unchecked((uint)maxStack) > ushort.MaxValue)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (7)
365if (unchecked((uint)generation) > ushort.MaxValue) 798/// <exception cref="ArgumentOutOfRangeException"><paramref name="sequenceNumber"/> is greater than <see cref="ushort.MaxValue"/>.</exception> 801if (unchecked((uint)sequenceNumber) > ushort.MaxValue) 828/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is greater than <see cref="ushort.MaxValue"/>.</exception> 835if (unchecked((uint)index) > ushort.MaxValue) 1295/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is greater than <see cref="ushort.MaxValue"/>.</exception> 1298if (unchecked((uint)index) > ushort.MaxValue)
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (3)
151BlobReferenceIsSmall = isCompressed && heapSizes[(int)HeapIndex.Blob] <= ushort.MaxValue; 152StringReferenceIsSmall = isCompressed && heapSizes[(int)HeapIndex.String] <= ushort.MaxValue; 153GuidReferenceIsSmall = isCompressed && heapSizes[(int)HeapIndex.Guid] <= ushort.MaxValue;
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (2)
140if (column > ushort.MaxValue) 173if (result < 0 || result >= ushort.MaxValue)
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\General\Helpers.cs (4)
153((v.Revision == ushort.MaxValue) ? 0b0001 : 0) | 154((v.Build == ushort.MaxValue) ? 0b0010 : 0) | 155((v.Minor == ushort.MaxValue) ? 0b0100 : 0) | 156((v.Major == ushort.MaxValue) ? 0b1000 : 0);
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
4914actualResult = IsNegative(value) ? ushort.MinValue : ushort.MaxValue; 4918actualResult = (value._sign >= ushort.MaxValue) ? ushort.MaxValue :
System.Security.AccessControl (9)
System\Security\AccessControl\ACE.cs (4)
87else if (Length > ushort.MaxValue) 559public static readonly int MaxOpaqueLength = ushort.MaxValue - HeaderLength; 1173return ushort.MaxValue - HeaderLength - AccessMaskLength - SecurityIdentifier.MaxBinaryLength; 1624return ushort.MaxValue - HeaderLength - AccessMaskLength - ObjectFlagsLength - 2 * GuidLength - SecurityIdentifier.MaxBinaryLength;
System\Security\AccessControl\ACL.cs (5)
72public static readonly int MaxBinaryLength = ushort.MaxValue; 674result = 2 * ushort.MaxValue + ace._indexInAcl; 699result = ushort.MaxValue + ace._indexInAcl; 722result = 2 * ushort.MaxValue + ace._indexInAcl; 740result = ushort.MaxValue + ace._indexInAcl;
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHelpers.cs (2)
60else if (value <= ushort.MaxValue) 96else if (value <= ushort.MaxValue)
System.Security.Principal.Windows (3)
System\Security\Principal\NTAccount.cs (1)
234if (Names[currentName].Buffer.Length * 2 + 2 > ushort.MaxValue)
System\Security\Principal\WindowsIdentity.cs (2)
155if (upnBytes.Length > ushort.MaxValue) 159Array.Resize(ref upnBytes, upnBytes.Length & ushort.MaxValue);
System.ServiceModel.Primitives (2)
Internals\System\Runtime\Diagnostics\EventDescriptor.cs (2)
46if (id > ushort.MaxValue) 63if (task > ushort.MaxValue)
System.Speech (5)
Internal\SrgsCompiler\BackEnd.cs (1)
85if (semanticInterpretationGlobals > ushort.MaxValue)
Internal\Synthesis\AudioFormatConverter.cs (4)
200byte[] table = new byte[(ushort.MaxValue + 1) >> 2]; 202for (int i = 0; i < ushort.MaxValue; i += 4) 310byte[] table = new byte[(ushort.MaxValue + 1) >> 2]; 312for (int i = 0; i < ushort.MaxValue; i += 4)
System.Text.Encoding.CodePages (1)
System\Text\EncodingTable.cs (1)
140if ((uint)codePage > ushort.MaxValue)
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoder.cs (1)
598Debug.Assert(unicodeScalar < ushort.MaxValue);
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
479/// than <see cref="ushort.MaxValue"/>.
System.Threading (1)
System\Threading\ReaderWriterLock.cs (1)
29private const ushort MaxAcquireCount = ushort.MaxValue;
System.Windows.Forms (27)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
10776if (weightSum > ushort.MaxValue) 10778throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 10849Debug.Assert(weightSum <= ushort.MaxValue); 10908if (weightSum > ushort.MaxValue) 10910throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 10914Debug.Assert(weightSum <= ushort.MaxValue); 13526if (weightSum > ushort.MaxValue) 13528throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
341ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (3)
771ArgumentOutOfRangeException.ThrowIfGreaterThan(min, ushort.MaxValue); 774ArgumentOutOfRangeException.ThrowIfGreaterThan(max, ushort.MaxValue); 789ArgumentOutOfRangeException.ThrowIfGreaterThan(pos, ushort.MaxValue);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogProgressBar.cs (6)
119/// The value is less than 0 or greater than <see cref="ushort.MaxValue" />. 134ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue); 165/// The value is less than 0 or greater than <see cref="ushort.MaxValue" />. 180ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue); 211/// The value is less than 0 or greater than <see cref="ushort.MaxValue" />. 226ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ushort.MaxValue);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogStandardIcon.cs (9)
19Information = ushort.MaxValue - 2, // TD_INFORMATION_ICON 24Warning = ushort.MaxValue, // TD_WARNING_ICON 29Error = ushort.MaxValue - 1, // TD_ERROR_ICON 34Shield = ushort.MaxValue - 3, // TD_SHIELD_ICON 40ShieldBlueBar = ushort.MaxValue - 4, 46ShieldGrayBar = ushort.MaxValue - 8, 52ShieldWarningYellowBar = ushort.MaxValue - 5, 58ShieldErrorRedBar = ushort.MaxValue - 6, 64ShieldSuccessGreenBar = ushort.MaxValue - 7,