Dotnet-api-docs: Double.IsFinite(Double) Method not in System namespace in recent .Net framework

Created on 5 Apr 2019  路  5Comments  路  Source: dotnet/dotnet-api-docs

dotnet-api-docs/xml/System/Double.xml
https://docs.microsoft.com/en-us/dotnet/api/system.double.isfinite?view=netstandard-2.1

The method Double.IsFinite(Double) is not showing up in the System namespace. Verify this in Visual Studio and other places. Was it removed from the most recent .Net framework version?

by-design

Most helpful comment

The implementation can be found here: https://source.dot.net/#System.Private.CoreLib/shared/System/Double.cs,02ee32eb42d32941

It is fairly trivial and MIT licensed if having your own internal helper is suitable.

All 5 comments

What framework version are you targeting?

double.IsFinite(double) is only available in .NET Core 2.1+ and will also be available in .NET Standard 2.1+.

This is not supported in the .NET Framework @kathleenwest. The applicable versions are listed in the bottom: https://docs.microsoft.com/en-us/dotnet/api/system.double.isfinite?view=netstandard-2.1#applies-to

So I'm closing this as by design but please let me know if I missed anything.

I really wish this was supported in the .Net Framework as I needed to utilize the method.

The implementation can be found here: https://source.dot.net/#System.Private.CoreLib/shared/System/Double.cs,02ee32eb42d32941

It is fairly trivial and MIT licensed if having your own internal helper is suitable.

Thanks for the code link @tannergooding

Was this page helpful?
0 / 5 - 0 ratings