59 references to MinValue
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
897return decimal.ToUInt16(ReadIntegralNumericValue(value, underlyingType, ushort.MinValue, ushort.MaxValue));
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)
ILCompiler.Compiler (1)
Compiler\TypePreinit.cs (1)
963ValueTypeValue.FromInt32((ushort)(int)Math.Clamp(double.IsNaN(val) ? 0 : val, ushort.MinValue, ushort.MaxValue)));
Microsoft.CodeAnalysis.CSharp (5)
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;
Utilities\ValueSetFactory.UShortTC.cs (2)
18ushort INumericTC<ushort>.MinValue => ushort.MinValue; 57Debug.Assert(value != ushort.MinValue);
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.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.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;
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EnumMemberGenerator.vb (1)
111value >= UShort.MinValue AndAlso value <= UShort.MaxValue Then
System.Data.Common (2)
System\Data\Common\UInt16Storage.cs (2)
12private const ushort DefaultValue = ushort.MinValue; 122ushort max = ushort.MinValue;
System.Diagnostics.EventLog (2)
System\Diagnostics\EventLogTraceListener.cs (2)
164if (id < ushort.MinValue) 165id = ushort.MinValue;
System.Private.CoreLib (20)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2169(value <= Zero) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1802(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1197ushort actualResult = (value <= 0) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
1248(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
1243(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
1267(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1905(value <= Zero) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
1669(value <= ushort.MinValue) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
1936result = ushort.MinValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1176ushort actualResult = (value <= 0) ? ushort.MinValue : (ushort)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (5)
491static ushort IMinMaxValue<ushort>.MinValue => MinValue; 783(actualValue <= MinValue) ? MinValue : (ushort)actualValue; 850(actualValue <= MinValue) ? MinValue : (ushort)actualValue;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
735if (value < ushort.MinValue || value > ushort.MaxValue)
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 (3)
System\Numerics\BigInteger.cs (3)
4914actualResult = IsNegative(value) ? ushort.MinValue : ushort.MaxValue; 4919(value._sign <= ushort.MinValue) ? ushort.MinValue : (ushort)value._sign;
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