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, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsMisc Class
ExtensionMethodsMisc Members