71 references to MinValue
BinaryFormatTests (2)
FormatTests\FormattedObject\ListTests.cs (1)
99new List<ushort>() { 1, 2, ushort.MinValue, ushort.MaxValue },
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
58{ (byte)PrimitiveType.UInt16, ushort.MinValue },
dotnet-svcutil-lib (3)
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)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
205new object[] {"ushort", "ushort.MinValue", ushort.MinValue, true },
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (2)
3607case SpecialType.System_UInt16: return (ushort.MinValue - 1D) < value && value < (ushort.MaxValue + 1D); 3637case SpecialType.System_UInt16: return (ushort.MinValue - 1M) < value && value < (ushort.MaxValue + 1M);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1385return ushort.MinValue <= value && value <= ushort.MaxValue;
Utilities\ValueSetFactory.UShortTC.cs (2)
18ushort INumericTC<ushort>.MinValue => ushort.MinValue; 57Debug.Assert(value != ushort.MinValue);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.cs (1)
319CheckLiteralToString(ushort.MinValue, @"0");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
143VerifySyntax<LiteralExpressionSyntax>(Generator.LiteralExpression(ushort.MinValue), "0");
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
111value >= UShort.MinValue AndAlso value <= UShort.MaxValue Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
111value >= UShort.MinValue AndAlso value <= UShort.MaxValue Then
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
ObjectSerializationTests.cs (5)
368TestRoundTripValue<Int64>(UInt16.MinValue); 394TestRoundTripValue<UInt64>(UInt16.MinValue); 585for (int i = ushort.MinValue; i <= ushort.MaxValue; i++) 618for (int i = ushort.MinValue; i <= ushort.MaxValue; i++) 625for (int i = ushort.MinValue; i <= ushort.MaxValue; i++)
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
5653var ret = ushort.MinValue; 5886var value = ushort.MinValue; 5909var value = ushort.MinValue;
Microsoft.ML.Core (1)
Data\DataKind.cs (1)
232return ushort.MinValue;
Microsoft.ML.Tests (4)
CollectionsDataViewTest.cs (1)
153fuShort = ushort.MinValue + 1,
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 },
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Operators.vb (1)
3319If result < UInt16.MinValue Then
PresentationFramework (4)
System\windows\Documents\SelectionWordBreaker.cs (2)
205UInt16 charType1 = UInt16.MinValue; 262UInt16 charType3 = UInt16.MinValue;
System\Windows\Documents\TextFindEngine.cs (2)
106UInt16 startCharType1 = UInt16.MinValue; 107UInt16 endCharType1 = UInt16.MinValue;
System.Data.Common (2)
System\Data\Common\UInt16Storage.cs (2)
12private const ushort DefaultValue = ushort.MinValue; 122ushort max = ushort.MinValue;
System.Private.CoreLib (22)
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
1417(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2119(value <= Zero) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1822(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1200ushort actualResult = (value <= 0) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1242(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1237(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1233(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1742(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1163ushort actualResult = (value <= 0) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1436(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (5)
510static ushort IMinMaxValue<ushort>.MinValue => MinValue; 802(actualValue <= MinValue) ? MinValue : (ushort)actualValue; 869(actualValue <= MinValue) ? MinValue : (ushort)actualValue;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
655if (value < ushort.MinValue || value > ushort.MaxValue)
System.Private.Windows.Core.Tests (3)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
72new List<ushort> { ushort.MinValue, ushort.MaxValue }, 92new ushort[] { ushort.MinValue, ushort.MaxValue },
System\Value\StoringUShort.cs (1)
12{ ushort.MinValue }
System.Private.Xml (2)
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.Runtime.Numerics (7)
System\Numerics\BigInteger.cs (3)
4803actualResult = IsNegative(value) ? ushort.MinValue : ushort.MaxValue; 4808(value._sign <= ushort.MinValue) ? ushort.MinValue : (ushort)value._sign;
System\Numerics\Complex.cs (4)
1914(value.m_real <= ushort.MinValue) ? ushort.MinValue : (ushort)value.m_real; 2050(value.m_real <= ushort.MinValue) ? ushort.MinValue : (ushort)value.m_real;
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
478/// is written in scientific notation) or, it represents a number less than <see cref="ushort.MinValue"/> or greater