52 references to IsNegativeInfinity
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
2308
else if (double.
IsNegativeInfinity
(d))
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
807
if (Double.
IsNegativeInfinity
(value)) return "-INF";
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
799
return ToInfinity(double.
IsNegativeInfinity
(value), buffer, offset);
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
273
if (double.
IsNegativeInfinity
(val))
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1180
var isParam1DefaultValueNegativeZero = double.
IsNegativeInfinity
(1.0 / (double)parameter1.ExplicitDefaultValue);
1181
var isParam2DefaultValueNegativeZero = double.
IsNegativeInfinity
(1.0 / (double)parameter2.ExplicitDefaultValue);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
188
else if (double.
IsNegativeInfinity
(value))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
188
else if (double.
IsNegativeInfinity
(value))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
287
ElseIf (Double.
IsNegativeInfinity
(value)) Then
312
ElseIf (Double.
IsNegativeInfinity
(value)) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
287
ElseIf (Double.
IsNegativeInfinity
(value)) Then
312
ElseIf (Double.
IsNegativeInfinity
(value)) Then
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1180
var isParam1DefaultValueNegativeZero = double.
IsNegativeInfinity
(1.0 / (double)parameter1.ExplicitDefaultValue);
1181
var isParam2DefaultValueNegativeZero = double.
IsNegativeInfinity
(1.0 / (double)parameter2.ExplicitDefaultValue);
Microsoft.ML.AutoML (1)
Experiment\Runners\CrossValSummaryRunner.cs (1)
208
if (double.
IsNegativeInfinity
(average))
Microsoft.ML.Core (1)
Utilities\BinFinder.cs (1)
247
if (Double.
IsNegativeInfinity
(a))
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.FastTree (5)
SumupPerformanceCommand.cs (2)
116
if (double.
IsNegativeInfinity
(denom))
190
if (double.
IsNegativeInfinity
(denom))
Training\TreeLearners\FastForestLeastSquaresTreeLearner.cs (1)
60
if (infos[i].Gain > max && Rand.NextDouble() < SplitFraction || Double.
IsNegativeInfinity
(max))
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (1)
240
if (Double.IsNaN(rootSplitInfo.Gain) || Double.
IsNegativeInfinity
(rootSplitInfo.Gain))
Utils\LinqExtensions.cs (1)
264
else if (double.
IsNegativeInfinity
(max))
PresentationCore (2)
System\Windows\UIElement.cs (2)
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 (12)
System\Windows\Controls\DataGridColumnCollection.cs (1)
897
!double.IsNaN(availableStarSpace) && !Double.
IsNegativeInfinity
(availableStarSpace),
System\Windows\Controls\Stack.cs (1)
979
if (Double.
IsNegativeInfinity
(offset))
System\Windows\CornerRadius.cs (4)
221
if (Double.
IsNegativeInfinity
(_topLeft) || Double.
IsNegativeInfinity
(_topRight) || Double.
IsNegativeInfinity
(_bottomLeft) || Double.
IsNegativeInfinity
(_bottomRight))
System\Windows\Documents\FlowDocument.cs (1)
1536
if (!Double.
IsNegativeInfinity
(value) && (value < 0 || value > maxSize))
System\Windows\Thickness.cs (4)
171
if(Double.
IsNegativeInfinity
(Left) || Double.
IsNegativeInfinity
(Right) || Double.
IsNegativeInfinity
(Top) || Double.
IsNegativeInfinity
(Bottom))
System\Windows\Window.cs (1)
5695
Double.
IsNegativeInfinity
(length))
ReachFramework (2)
Serialization\Manager\ReachSerializationUtils.cs (2)
1178
Double.
IsNegativeInfinity
(documentSize.Width) ||
1179
Double.
IsNegativeInfinity
(documentSize.Height)
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
1544
else if (double.
IsNegativeInfinity
(d))
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
989
else if (double.
IsNegativeInfinity
(d))
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
1714
Debug.Assert(
IsNegativeInfinity
(x));
1759
Debug.Assert(
IsNegativeInfinity
(x));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
596
public static bool IsNegativeInfinity(NFloat value) => NativeType.
IsNegativeInfinity
(value._value);
System.Private.DataContractSerialization (1)
System\Xml\XmlConverter.cs (1)
759
return ToInfinity(double.
IsNegativeInfinity
(value), buffer, offset);
System.Private.Xml (2)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4295
else if (double.
IsNegativeInfinity
((double)value))
System\Xml\XmlConvert.cs (1)
676
if (double.
IsNegativeInfinity
(value)) return "-INF";
System.Runtime.Numerics (2)
System\Numerics\Complex.cs (2)
652
if (double.
IsNegativeInfinity
(value.m_real))
1027
return (value.m_imaginary == 0.0) && double.
IsNegativeInfinity
(value.m_real);
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (1)
163
else if (double.
IsNegativeInfinity
(value))
xunit.assert (2)
EqualityAsserts.cs (2)
395
if (double.IsNaN(tolerance) || double.
IsNegativeInfinity
(tolerance) || tolerance < 0.0)
876
if (double.IsNaN(tolerance) || double.
IsNegativeInfinity
(tolerance) || tolerance < 0.0)