C# Класс Hourglass.Timing.TimerStart

Specifies a set of values used to start a timer.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

FromString() публичный статический Метод

Returns a TimerStart for a string.
public static FromString ( string str ) : TimerStart
str string A string.
Результат TimerStart

FromTimerStartInfo() публичный статический Метод

Returns a TimerStart for a TimerStartInfo.
public static FromTimerStartInfo ( Hourglass.Serialization.TimerStartInfo timerStartInfo ) : TimerStart
timerStartInfo Hourglass.Serialization.TimerStartInfo A .
Результат TimerStart

GetEndTime() публичный Метод

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.
Результат System.DateTime

ToString() публичный Метод

Returns a string that represents the current object.
public ToString ( ) : string
Результат string

ToTimerStartInfo() публичный Метод

Returns the representation of the TimerStart used for XML serialization.
public ToTimerStartInfo ( ) : Hourglass.Serialization.TimerStartInfo
Результат Hourglass.Serialization.TimerStartInfo

TryGetEndTime() публичный Метод

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.
Результат bool