NDepend.API Documentation
ToHours(Nullable<SByte>) Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class > ToHours Method : ToHours(Nullable<SByte>) Method
The number of hours.
Gets a System.TimeSpan value, with total number of hours equals to nullableNbHours.
Syntax
[Extension()]
public static TimeSpan ToHours( 
   Nullable<sbyte> nullableNbHours
)

Parameters

nullableNbHours
The number of hours.
Remarks
if nullableNbHours is null, System.TimeSpan.System.TimeSpan.Zero is returned.
Requirements

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

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members
Overload List