C# Class Hourglass.Timing.TimerStart

Specifies a set of values used to start a timer.
Exibir arquivo Open project: Dziemborowicz/Hourglass Class Usage Examples

Public Methods

Method Description
FromString ( string str ) : TimerStart

Returns a TimerStart for a string.

FromTimerStartInfo ( Hourglass.Serialization.TimerStartInfo timerStartInfo ) : TimerStart

Returns a TimerStart for a TimerStartInfo.

GetEndTime ( System.DateTime startTime ) : System.DateTime

Returns the end time for a timer started with this TimerStart at a specified time.

ToString ( ) : string

Returns a string that represents the current object.

ToTimerStartInfo ( ) : Hourglass.Serialization.TimerStartInfo

Returns the representation of the TimerStart used for XML serialization.

TryGetEndTime ( System.DateTime startTime, System.DateTime &endTime ) : bool

Returns the end time for a timer started with this TimerStart at a specified time.

Private Methods

Method Description
TimerStart ( Hourglass.Serialization.TimerStartInfo timerStartInfo ) : System

Initializes a new instance of the TimerStart class.

TimerStart ( Hourglass.Parsing.TimerStartToken timerStartToken ) : System

Initializes a new instance of the TimerStart class.

Method Details

FromString() public static method

Returns a TimerStart for a string.
public static FromString ( string str ) : TimerStart
str string A string.
return TimerStart

FromTimerStartInfo() public static method

Returns a TimerStart for a TimerStartInfo.
public static FromTimerStartInfo ( Hourglass.Serialization.TimerStartInfo timerStartInfo ) : TimerStart
timerStartInfo Hourglass.Serialization.TimerStartInfo A .
return TimerStart

GetEndTime() public method

Returns the end time for a timer started with this TimerStart at a specified time.
public GetEndTime ( System.DateTime startTime ) : System.DateTime
startTime System.DateTime The time the timer is started.
return System.DateTime

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

ToTimerStartInfo() public method

Returns the representation of the TimerStart used for XML serialization.
public ToTimerStartInfo ( ) : Hourglass.Serialization.TimerStartInfo
return Hourglass.Serialization.TimerStartInfo

TryGetEndTime() public method

Returns the end time for a timer started with this TimerStart at a specified time.
public TryGetEndTime ( System.DateTime startTime, System.DateTime &endTime ) : bool
startTime System.DateTime The time the timer is started.
endTime System.DateTime The end time for a timer started with this at the specified /// time if the end time could be computed, or otherwise.
return bool