NDepend.API Documentation
ToNullableDouble Method
NDepend.Helpers Namespace > ExtensionMethodsMisc Class : ToNullableDouble Method
The object
If obj is a numeric primitive type, returns its value converted as double. else returns null.
Syntax
[Extension()]
public static Nullable<double> ToNullableDouble( 
   object obj
)

Parameters

obj
The object
Requirements

Target Platforms: Windows 11, 10, 8, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

ExtensionMethodsMisc Class
ExtensionMethodsMisc Members