NDepend.API Documentation
ToMilliseconds(Decimal) Method
NDepend.Helpers Namespace > ExtensionMethodsTimeSpan Class > ToMilliseconds Method : ToMilliseconds(Decimal) Method
The number of milli-seconds.
Gets a System.TimeSpan value, with total floating number of milli-seconds equals to floating value nbMillisecondsDecimal.
Syntax
[Extension()]
public static TimeSpan ToMilliseconds( 
   decimal nbMillisecondsDecimal
)

Parameters

nbMillisecondsDecimal
The number of milli-seconds.
Exceptions
ExceptionDescription
This exception is thrown if the expected time span is greater than System.TimeSpan.System.TimeSpan.MaxValue or lower than System.TimeSpan.System.TimeSpan.MinValue.
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