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

Parameters

nbHours
The number of hours.
Requirements

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

See Also

Reference

ExtensionMethodsTimeSpan Class
ExtensionMethodsTimeSpan Members
Overload List