112 references to IsPositiveInfinity
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
2312
else if (double.
IsPositiveInfinity
(d))
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
808
if (Double.
IsPositiveInfinity
(value)) return "INF";
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
275
else if (double.
IsPositiveInfinity
(val))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
182
else if (double.
IsPositiveInfinity
(value))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
182
else if (double.
IsPositiveInfinity
(value))
Microsoft.Maui (1)
Primitives\Dimension.cs (1)
16
return !double.
IsPositiveInfinity
(value);
Microsoft.Maui.Controls (18)
Layout\FlexLayout.cs (2)
586
_root.Width = !double.
IsPositiveInfinity
((width)) ? (float)width : 0;
587
_root.Height = !double.
IsPositiveInfinity
((height)) ? (float)height : 0;
LegacyLayouts\FlexLayout.cs (6)
443
if (!double.
IsPositiveInfinity
(widthConstraint) && !double.
IsPositiveInfinity
(heightConstraint))
460
if (double.
IsPositiveInfinity
(widthConstraint))
466
if (double.
IsPositiveInfinity
(heightConstraint))
490
_root.Width = !double.
IsPositiveInfinity
((width)) ? (float)width : 0;
491
_root.Height = !double.
IsPositiveInfinity
((height)) ? (float)height : 0;
LegacyLayouts\GridCalc.cs (8)
198
double heightRequest = double.
IsPositiveInfinity
(height) ? double.PositiveInfinity : assignedHeight + GetUnassignedHeight(height, grid.RowSpacing);
230
double widthRequest = double.
IsPositiveInfinity
(width) ? double.PositiveInfinity : assignedWidth + GetUnassignedWidth(width, grid.ColumnSpacing);
543
double w = double.
IsPositiveInfinity
(width) ? double.PositiveInfinity : assignedWidth + GetUnassignedWidth(width, grid.ColumnSpacing);
569
double h = double.
IsPositiveInfinity
(height) ? double.PositiveInfinity : assignedHeight + unassignedHeight;
595
if (!double.
IsPositiveInfinity
(width) && double.
IsPositiveInfinity
(height))
626
if (!double.
IsPositiveInfinity
(height) && double.
IsPositiveInfinity
(width))
LegacyLayouts\RelativeLayout.cs (2)
208
double mockWidth = double.
IsPositiveInfinity
(widthConstraint) ? (Parent as VisualElement).Width : widthConstraint;
209
double mockHeight = double.
IsPositiveInfinity
(heightConstraint) ? (Parent as VisualElement).Height : heightConstraint;
Microsoft.ML.AutoML (1)
Experiment\Runners\CrossValSummaryRunner.cs (1)
204
if (double.
IsPositiveInfinity
(average))
Microsoft.ML.Core (1)
Utilities\BinFinder.cs (1)
253
if (Double.
IsPositiveInfinity
(b))
Microsoft.ML.CpuMath (2)
ProbabilityFunctions.cs (2)
24
return Double.
IsPositiveInfinity
(x) ? 0 : 2.0;
45
return Double.
IsPositiveInfinity
(x) ? 1.0 : -1.0;
Microsoft.ML.Data (2)
Transforms\NormalizeColumnDbl.cs (2)
1401
Contracts.Assert(min <= max || (TFloat.
IsPositiveInfinity
(min) && TFloat.IsNegativeInfinity(max)));
1426
Contracts.Assert(min <= max || (TFloat.
IsPositiveInfinity
(min) && TFloat.IsNegativeInfinity(max)));
Microsoft.ML.Transforms (1)
Expression\Tokens.cs (1)
173
if (double.
IsPositiveInfinity
(Value))
PresentationCore (10)
MS\Internal\TextFormatting\TextStore.cs (1)
2349
if (Double.
IsPositiveInfinity
(metrics.Width))
System\Windows\LayoutManager.cs (2)
465
if (double.
IsPositiveInfinity
(element.PreviousConstraint.Width))
468
if (double.
IsPositiveInfinity
(element.PreviousConstraint.Height))
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
164
if (maxLineWidth == 0 || double.
IsPositiveInfinity
(maxLineWidth))
System\Windows\UIElement.cs (6)
671
if (double.
IsPositiveInfinity
(desiredSize.Width) || double.
IsPositiveInfinity
(desiredSize.Height))
792
if (double.
IsPositiveInfinity
(finalRect.Width)
793
|| double.
IsPositiveInfinity
(finalRect.Height)
1392
return ( (!double.IsNaN(v.X) && !Double.
IsPositiveInfinity
(v.X) && !Double.IsNegativeInfinity(v.X))
1393
&& (!double.IsNaN(v.Y) && !Double.
IsPositiveInfinity
(v.Y) && !Double.IsNegativeInfinity(v.Y)));
PresentationFramework (51)
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
208
if (double.
IsPositiveInfinity
(pageSize.Width))
MS\Internal\PtsHost\TextParagraph.cs (1)
280
if (vrCur < TextDpi.ToTextDpi(double.
IsPositiveInfinity
(backgroundFormatInfo.ViewportHeight) ? 500 : backgroundFormatInfo.ViewportHeight))
System\Windows\Controls\DataGrid.cs (1)
205
return !(value < 0d || double.IsNaN(value) || Double.
IsPositiveInfinity
(value));
System\Windows\Controls\DataGridColumn.cs (2)
439
if (double.
IsPositiveInfinity
(transferValue) &&
454
return !(value < 0d || double.IsNaN(value) || Double.
IsPositiveInfinity
(value));
System\Windows\Controls\DefinitionBase.cs (1)
203
return (!double.IsNaN(v) && v >= 0.0d && !Double.
IsPositiveInfinity
(v));
System\Windows\Controls\Grid.cs (7)
430
bool sizeToContentU = double.
IsPositiveInfinity
(constraint.Width);
431
bool sizeToContentV = double.
IsPositiveInfinity
(constraint.Height);
1805
if (Double.
IsPositiveInfinity
(maxStar))
1867
if (!Double.
IsPositiveInfinity
(effectiveMaxSize))
2384
if (Double.
IsPositiveInfinity
(maxStar))
2442
if (!Double.
IsPositiveInfinity
(effectiveMaxSize))
3295
return (Double.
IsPositiveInfinity
(def.UserSize.Value)) ? 1.0 : 0.0;
System\Windows\Controls\GridSplitter.cs (1)
260
return delta > 0.0 && !Double.
IsPositiveInfinity
(delta);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
39
return (double.IsNaN(v)) || (DoubleUtil.GreaterThanOrClose(v, 0d) && !Double.
IsPositiveInfinity
(v));
System\Windows\Controls\Stack.cs (1)
983
else if (Double.
IsPositiveInfinity
(offset))
System\Windows\Controls\ViewBox.cs (2)
374
bool isConstrainedWidth = !Double.
IsPositiveInfinity
(availableSize.Width);
375
bool isConstrainedHeight = !Double.
IsPositiveInfinity
(availableSize.Height);
System\Windows\Controls\VirtualizingStackPanel.cs (9)
4663
if (Double.
IsPositiveInfinity
(factor))
9647
if (Double.
IsPositiveInfinity
(constraint.Height))
9674
if (Double.
IsPositiveInfinity
(constraint.Width))
9692
if (!Double.
IsPositiveInfinity
(constraint.Width))
9697
if (!Double.
IsPositiveInfinity
(constraint.Height))
10496
if (Double.
IsPositiveInfinity
(constraint.Height))
10523
if (Double.
IsPositiveInfinity
(constraint.Width))
10541
if (!Double.
IsPositiveInfinity
(constraint.Width))
10546
if (!Double.
IsPositiveInfinity
(constraint.Height))
System\Windows\Controls\WrapPanel.cs (1)
68
return (double.IsNaN(v)) || (v >= 0.0d && !Double.
IsPositiveInfinity
(v));
System\Windows\CornerRadius.cs (4)
213
if (Double.
IsPositiveInfinity
(_topLeft) || Double.
IsPositiveInfinity
(_topRight) || Double.
IsPositiveInfinity
(_bottomLeft) || Double.
IsPositiveInfinity
(_bottomRight))
System\Windows\Documents\FlowDocument.cs (1)
1548
if (!Double.
IsPositiveInfinity
(value) && (value < 0 || value > maxSize))
System\Windows\FrameworkElement.cs (6)
3440
return (double.IsNaN(v)) || (v >= 0.0d && !Double.
IsPositiveInfinity
(v));
3446
return (!double.IsNaN(v) && v >= 0.0d && !Double.
IsPositiveInfinity
(v));
4889
double maxWidthClip = (Double.
IsPositiveInfinity
(mm.maxWidth) ? inkSize.Width : mm.maxWidth);
4890
double maxHeightClip = (Double.
IsPositiveInfinity
(mm.maxHeight) ? inkSize.Height : mm.maxHeight);
5232
double maxWidthClip = (Double.
IsPositiveInfinity
(mm.maxWidth) ? inkSize.Width : mm.maxWidth);
5233
double maxHeightClip = (Double.
IsPositiveInfinity
(mm.maxHeight) ? inkSize.Height : mm.maxHeight);
System\Windows\Interop\ActiveXHost.cs (2)
195
if (Double.
IsPositiveInfinity
(swConstraint.Width))
200
if (Double.
IsPositiveInfinity
(swConstraint.Height))
System\Windows\Thickness.cs (4)
163
if(Double.
IsPositiveInfinity
(Left) || Double.
IsPositiveInfinity
(Right) || Double.
IsPositiveInfinity
(Top) || Double.
IsPositiveInfinity
(Bottom))
System\Windows\Window.cs (6)
2778
if (!Double.
IsPositiveInfinity
(maxSizeDeviceUnits.X) && (sizeDeviceUnits.Width > maxSizeDeviceUnits.X))
2784
if (!Double.
IsPositiveInfinity
(minSizeDeviceUnits.Y) && (sizeDeviceUnits.Height > maxSizeDeviceUnits.Y))
3477
if (!Double.
IsPositiveInfinity
(MaxWidth))
3499
if (!Double.
IsPositiveInfinity
(MaxHeight))
5677
if (!Double.
IsPositiveInfinity
(l) && !double.IsNaN(l) &&
5688
if (Double.
IsPositiveInfinity
(length) ||
PresentationFramework.Classic (4)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (4)
569
return (thickness.Left >= 0 && !double.
IsPositiveInfinity
(thickness.Left) &&
570
thickness.Right >= 0 && !double.
IsPositiveInfinity
(thickness.Right) &&
571
thickness.Top >= 0 && !double.
IsPositiveInfinity
(thickness.Top) &&
572
thickness.Bottom >= 0 && !double.
IsPositiveInfinity
(thickness.Bottom));
ReachFramework (2)
Serialization\Manager\ReachSerializationUtils.cs (2)
1173
Double.
IsPositiveInfinity
(documentSize.Width) ||
1174
Double.
IsPositiveInfinity
(documentSize.Height) ||
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
182
else if (double.
IsPositiveInfinity
(value))
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
1548
else if (double.
IsPositiveInfinity
(d))
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
993
else if (double.
IsPositiveInfinity
(d))
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
1713
Debug.Assert(
IsPositiveInfinity
(x));
1758
Debug.Assert(
IsPositiveInfinity
(x));
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
921
if ((a != 1) && ((newBase == 0) || double.
IsPositiveInfinity
(newBase)))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
608
public static bool IsPositiveInfinity(NFloat value) => NativeType.
IsPositiveInfinity
(value._value);
System.Private.Xml (3)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4291
else if (double.
IsPositiveInfinity
((double)value))
System\Xml\XmlConvert.cs (1)
677
if (double.
IsPositiveInfinity
(value)) return "INF";
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
71
if (0.5 <= dblVal && !double.
IsPositiveInfinity
(dblVal))
System.Runtime.Numerics (2)
System\Numerics\Complex.cs (2)
648
if (double.
IsPositiveInfinity
(value.m_real))
1058
return (value.m_imaginary == 0.0) && double.
IsPositiveInfinity
(value.m_real);
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (1)
159
else if (double.
IsPositiveInfinity
(value))
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1165
return (double.IsNaN(v)) || (v >= 0.0d && !Double.
IsPositiveInfinity
(v));