Wanzyee Studio
TimeSpanField

Wrapper of System.TimeSpan for serialization, the precision is seconds. More...

Public Member Functions

 TimeSpanField (in TimeSpan value)
 Initialize with the specified System.TimeSpan. More...
 
override string ToString ()
 Return the time span text. More...
 

Static Public Member Functions

static implicit operator TimeSpanField (TimeSpan value)
 Convert the specified System.TimeSpan to TimeSpanField. More...
 
static implicit operator TimeSpan (TimeSpanField value)
 Convert the specified TimeSpanField to System.TimeSpan. More...
 

Public Attributes

long tick
 The number of ticks. More...
 

Detailed Description

Wrapper of System.TimeSpan for serialization, the precision is seconds.

Constructor & Destructor Documentation

TimeSpanField ( in TimeSpan  value)

Initialize with the specified System.TimeSpan.

Parameters
valueThe time span.

Member Function Documentation

override string ToString ( )

Return the time span text.

Returns
A string represents this.
static implicit operator TimeSpanField ( TimeSpan  value)
static

Convert the specified System.TimeSpan to TimeSpanField.

Parameters
valueThe time span.
Returns
Time.
static implicit operator TimeSpan ( TimeSpanField  value)
static

Convert the specified TimeSpanField to System.TimeSpan.

Parameters
valueThe span field.
Returns
Time.

Member Data Documentation

long tick

The number of ticks.