133 references to MaxValue
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\Guard.cs (1)
161public static void ThrowIfOutOfRange(double value, [CallerArgumentExpression("value")] string? paramName = null, double min = double.MinValue, double max = double.MaxValue, string? minName = null, string? maxName = null, string? message = null)
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\Guard.cs (1)
192public static void ThrowIfOutOfRange(double value, [CallerArgumentExpression(nameof(value))] string? paramName = null, double min = double.MinValue, double max = double.MaxValue, string? minName = null, string? maxName = null, string? message = null)
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (2)
112similarityWeight = double.MaxValue; 129similarityWeight = double.MaxValue;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
91{ double.MaxValue, nameof(double.MaxValue) },
ILAssembler (1)
GrammarVisitor.cs (1)
2747result = neg ? double.MaxValue : double.MinValue;
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (2)
112similarityWeight = double.MaxValue; 129similarityWeight = double.MaxValue;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
91{ double.MaxValue, nameof(double.MaxValue) },
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (2)
112similarityWeight = double.MaxValue; 129similarityWeight = double.MaxValue;
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (2)
112similarityWeight = double.MaxValue; 129similarityWeight = double.MaxValue;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
91{ double.MaxValue, nameof(double.MaxValue) },
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.DoubleTC.cs (1)
46if (value == double.MaxValue)
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (2)
321return UnmanagedHelper<double>.TryCreate(parameterSymbol, attributeData, double.MinValue, double.MaxValue, out parameter); 373return UnmanagedHelper<double>.Validate(parameterSymbol, attributeData, double.MinValue, double.MaxValue, helper, out diagnostics);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (2)
112similarityWeight = double.MaxValue; 129similarityWeight = double.MaxValue;
Microsoft.CodeAnalysis.Workspaces (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (2)
112similarityWeight = double.MaxValue; 129similarityWeight = double.MaxValue;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
91{ double.MaxValue, nameof(double.MaxValue) },
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
1821var ret = double.MaxValue; 2038var value = double.MaxValue; 2061var value = double.MaxValue;
Microsoft.ML.AutoML (4)
AutoMLExperiment\AutoMLExperiment.cs (3)
36private double _bestLoss = double.MaxValue; 106public AutoMLExperiment SetMaximumMemoryUsageInMegaByte(double value = double.MaxValue) 311Loss = double.MaxValue,
Tuner\CostFrugalTuner.cs (1)
38_bestLoss = double.MaxValue;
Microsoft.ML.AutoML.Tests (2)
TunerTests.cs (2)
309double bestLoss = double.MaxValue; 356double bestMetric = double.MaxValue;
Microsoft.ML.Core (8)
Utilities\BinFinder.cs (8)
255if (a == Double.MaxValue) 257b = Double.MaxValue; 601EnergyType bestWorst = EnergyType.MaxValue; 611Contracts.Assert(bestWorst < EnergyType.MaxValue); 632eBest = EnergyType.MaxValue; 665Contracts.Assert(bestWorst < EnergyType.MaxValue); 679eBest = EnergyType.MaxValue; 691Contracts.Assert(eBest < EnergyType.MaxValue);
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
1516Double olderr = Double.MaxValue / 2;
Microsoft.ML.FastTree (2)
RandomForestRegression.cs (1)
524: base(trainData, options, double.MaxValue) // No notion of maximum step size.
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
256curLambda = Double.MaxValue; // first lambda is infinity
Microsoft.ML.LightGbm (1)
WrappedLightGbmTraining.cs (1)
33double bestScore = double.MaxValue;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
31Double.MaxValue, Double.Epsilon, Double.NegativeInfinity, Double.PositiveInfinity };
Microsoft.ML.Tests (6)
CollectionsDataViewTest.cs (2)
118fDouble = double.MaxValue - 1, 133fDouble = double.MaxValue,
Transformers\ConvertTests.cs (4)
164AN = new double[]{ double.MinValue, double.MaxValue,} 232AN = new double[]{ double.MinValue, double.MaxValue,}, 252var allInputTypesData = new[] { new { A = (sbyte)sbyte.MinValue, B = (byte)byte.MinValue, C = double.MaxValue, D = float.MinValue, E = "already a string", F = false } }; 264var expectedValuesData = new[] { new { A = (sbyte)sbyte.MinValue, B = (byte)byte.MinValue, C = double.MaxValue, D = float.MinValue, E = "already a string", F = false,
Microsoft.ML.TimeSeries (6)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
662Double minErr = Double.MaxValue; 755Double minErr = Double.MaxValue;
IidChangePointDetector.cs (1)
124InternalTransform.AlertThreshold = Double.MaxValue;
RootCauseAnalyzer.cs (1)
313entropy = Double.MaxValue;
SrCnnEntireAnomalyDetector.cs (1)
496_minimumOriginValue = Double.MaxValue;
SsaChangePointDetector.cs (1)
134InternalTransform.AlertThreshold = Double.MaxValue;
Microsoft.ML.Transforms (7)
MissingValueReplacingUtils.cs (7)
430Contracts.Assert(double.MinValue <= _cur && _cur <= double.MaxValue); 449Contracts.Assert(double.MinValue <= _cur && _cur <= double.MaxValue); 454Contracts.Assert(double.MinValue <= _cur && _cur <= double.MaxValue); 468Contracts.Assert(double.MinValue <= stat && stat <= double.MaxValue); 474Contracts.Assert(double.MinValue <= _cur && _cur <= double.MaxValue); 488Contracts.Assert(double.MinValue <= stat && stat <= double.MaxValue); 877double bound = ReturnMax ? double.MinValue : double.MaxValue;
PresentationCore (18)
MS\Internal\Ink\StrokeFIndices.cs (1)
33internal static double AfterLast { get { return double.MaxValue; } }
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (2)
1023double closestDistance = Double.MaxValue; 1093if (closestDistance != Double.MaxValue)
MS\Internal\Media3D\LineUtil.cs (2)
331if (tau < Double.MaxValue && tau > -Double.MaxValue)
System\Windows\Media\Animation\ClockController.cs (1)
277if (value < 0 || value > double.MaxValue || double.IsNaN(value))
System\Windows\Media\Animation\Timeline.cs (1)
599if (newValue <= 0 || newValue > double.MaxValue || double.IsNaN(newValue))
System\Windows\Media\CompositionTarget.cs (2)
550Double.MaxValue, 551Double.MaxValue);
System\Windows\Media\FormattedText.cs (3)
1722accBlackBoxLeft = accBlackBoxTop = double.MaxValue; 1731double lineStartOfLongestLine = Double.MaxValue; 1980private double _maxTextHeight = double.MaxValue;
System\Windows\Media\textformatting\TextCharacters.cs (1)
220double.MaxValue, // widthMax
System\Windows\Media\Typeface.cs (1)
398bool ignoreWidths = widthMax == double.MaxValue;
System\Windows\Media3D\Quaternion.cs (3)
144if (!(msin <= Double.MaxValue)) 237if (norm2 > Double.MaxValue) 416if (!(norm2 <= Double.MaxValue))
System\Windows\UIElement.cs (1)
1090DoubleUtil.AreClose(newValue, Double.MaxValue))
PresentationFramework (21)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
298Point endPoint = new Point(Double.MaxValue, Double.MaxValue);
MS\Internal\Documents\DocumentGrid.cs (1)
2222double minAspectDiff = Double.MaxValue; //The current optimal aspect ratio match
MS\Internal\Documents\MultiPageTextView.cs (1)
1110double proximity = double.MaxValue;
MS\Internal\Documents\TextDocumentView.cs (1)
2057double closestDistance = Double.MaxValue;
System\Windows\Controls\Grid.cs (2)
1815double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2394double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0));
System\windows\Documents\CaretElement.cs (2)
166double.IsInfinity(availableSize.Width) ? double.MaxValue/2 : availableSize.Width, 167double.IsInfinity(availableSize.Height) ? double.MaxValue/2 : availableSize.Height);
System\Windows\Documents\FixedPageStructure.cs (3)
151double minVerDistance = double.MaxValue; 152double minHorDistance = double.MaxValue; 153double minManhattan = double.MaxValue;
System\Windows\Documents\FixedSOMTable.cs (4)
201double nextCol = double.MaxValue; 226if (nextCol != double.MaxValue) 248if (nextCol == double.MaxValue) 258if (nextCol == double.MaxValue)
System\Windows\Documents\FixedTextView.cs (4)
68if (point.Y == Double.MaxValue && point.X == Double.MaxValue) 815double closestDistance = Double.MaxValue; 896double closestDistance = Double.MaxValue;
System\Windows\Documents\TextRangeEdit.cs (1)
2344new DoublePropertyRange(null, 0, double.MaxValue),
ReachFramework (6)
AlphaFlattener\BrushProxy.cs (2)
3708double min = Double.MaxValue; 4213double mint = Double.MaxValue;
AlphaFlattener\SegmentTree.cs (2)
220AddPoint(p, count + 1, Double.MaxValue, Double.MaxValue);
Serialization\VisualSerializer.cs (2)
363double val = double.MaxValue; 375offset = double.MaxValue;
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (2)
112similarityWeight = double.MaxValue; 129similarityWeight = double.MaxValue;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
91{ double.MaxValue, nameof(double.MaxValue) },
System.Data.Common (2)
System\Data\Common\DoubleStorage.cs (1)
102double min = double.MaxValue;
System\Data\SQLTypes\SQLDouble.cs (1)
442public static readonly SqlDouble MaxValue = new SqlDouble(double.MaxValue);
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\Base2ExponentialHistogramAggregator.cs (2)
109_minMeasurement = double.MaxValue; 159_minMeasurement = double.MaxValue;
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
931static double IMinMaxValue<double>.MaxValue => MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
307return (bits == double.PositiveInfinityBits) ? double.MaxValue : x;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
63get => new NFloat(NativeType.MaxValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ProcessorIdCache.cs (2)
72double minID = double.MaxValue; 73double minTLS = double.MaxValue;
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
845/// <see cref="double.MaxValue"/> (or smaller than <see cref="double.MinValue"/>), 879/// <see cref="double.MaxValue"/> (or smaller than <see cref="double.MinValue"/>).
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
640/// than <see cref="double.MaxValue"/>.
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
131ribbonTabHeader.Measure(new Size(Double.MaxValue, childConstraint.Height)); 480return Double.MaxValue;
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2119double minHypotenuse = double.MaxValue; 2120double minTan = double.MaxValue; 2121double tanOfHypotenuseWinner = double.MaxValue;