Altaxo user manual and class reference
Altaxo user manual and class reference
Altaxo class reference
Altaxo Namespaces
Altaxo
TimeSpanExtensions Class
TimeSpanExtensions Methods
SafeAddition Method
SafeAddition(TimeSpan, Double) Method
SafeAddition(TimeSpan, TimeSpan) Method
Time
Span
Extensions
Safe
Addition(Time
Span, Time
Span) Method
Adds two time spans while clamping the result to the valid
TimeSpan
range.
Namespace:
Altaxo
Assembly:
AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
Copy
public
static
TimeSpan
SafeAddition
(
this
TimeSpan
x
,
TimeSpan
y
)
Parameters
x
TimeSpan
The first time span.
y
TimeSpan
The second time span.
Return Value
TimeSpan
The clamped sum.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TimeSpan
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
TimeSpanExtensions Class
SafeAddition Overload
Altaxo Namespace
Altaxo can be downloaded from
SourceForge
. Source code available on
Github
.
(C) Dr. Dirk Lellinger and all contributors to the source code 2002 -
Send comments on this topic to
dlellinger@users.sourceforge.net