C# Class Hourglass.Timing.TimerStart

Specifies a set of values used to start a timer.
Afficher le fichier Open project: Dziemborowicz/Hourglass Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Returns a TimerStart for a string.
public static FromString ( string str ) : TimerStart
str string A string.
Résultat TimerStart

FromTimerStartInfo() public static méthode

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

GetEndTime() public méthode

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.
Résultat System.DateTime

ToString() public méthode

Returns a string that represents the current object.
public ToString ( ) : string
Résultat string

ToTimerStartInfo() public méthode

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

TryGetEndTime() public méthode

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.
Résultat bool