MindFusion.Wpf Pack Programmer's Guide
IExpressionEvaluatorContext.ToTimeSpan Method
See Also
 





Attempts to convert the specified value to a TimeSpan.

Namespace: MindFusion.Spreadsheet.Wpf.Expressions
Assembly: MindFusion.Spreadsheet.Wpf

 Syntax

C#  Copy Code

Nullable<TimeSpan> ToTimeSpan (
    Object value
)

Visual Basic  Copy Code

Function ToTimeSpan( _
    value As Object _
) As Nullable(Of TimeSpan)

 Parameters

value

The value to convert.

 Return Value

A TimeSpan value corresponding to the specified value, or null (Nothing in Visual Basic), if value cannot be represented as TimeSpan.

 Remarks

This method is usually used when trying to interpret a parameter passed to a custom function.

 See Also

IExpressionEvaluatorContext Members
IExpressionEvaluatorContext Interface
MindFusion.Spreadsheet.Wpf.Expressions Namespace