C# 클래스 NFluent.Helpers.Duration

Represents a duration as an unit and a quantity.
파일 보기 프로젝트 열기: tpierrain/NFluent 1 사용 예제들

공개 메소드들

메소드 설명
ConvertTo ( TimeUnit newTmeUnit ) : Duration

Gets a new instance for the same duration expressed in another TimeUnit

ConvertToMilliseconds ( double duration, TimeUnit durationTimeUnit ) : int

Converts a given duration to a number of milliseconds.

Duration ( System.TimeSpan timeSpan, TimeUnit unit ) : System

Initializes a new instance of the Duration struct.

Duration ( double rawDuration, TimeUnit timeUnit ) : System

Initializes a new instance of the Duration struct.

Equals ( Duration other ) : bool

Checks if the duration is equal to another one.

Equals ( object obj ) : bool

Checks if the duration is equal to another object.

GetHashCode ( ) : int

Gets the hash value of this instance.

ToString ( ) : string

Returns a System.String that represents this instance.

operator ( ) : bool

Checks if duration a is less than duration b.

메소드 상세

ConvertTo() 공개 메소드

Gets a new instance for the same duration expressed in another TimeUnit
public ConvertTo ( TimeUnit newTmeUnit ) : Duration
newTmeUnit TimeUnit The target time unit.
리턴 Duration

ConvertToMilliseconds() 공개 정적인 메소드

Converts a given duration to a number of milliseconds.
public static ConvertToMilliseconds ( double duration, TimeUnit durationTimeUnit ) : int
duration double The duration value.
durationTimeUnit TimeUnit The time unit of the duration.
리턴 int

Duration() 공개 메소드

Initializes a new instance of the Duration struct.
public Duration ( System.TimeSpan timeSpan, TimeUnit unit ) : System
timeSpan System.TimeSpan The time span.
unit TimeUnit The time unit.
리턴 System

Duration() 공개 메소드

Initializes a new instance of the Duration struct.
public Duration ( double rawDuration, TimeUnit timeUnit ) : System
rawDuration double /// Duration of the raw. ///
timeUnit TimeUnit /// The time unit. ///
리턴 System

Equals() 공개 메소드

Checks if the duration is equal to another one.
public Equals ( Duration other ) : bool
other Duration The duration to compare to.
리턴 bool

Equals() 공개 메소드

Checks if the duration is equal to another object.
public Equals ( object obj ) : bool
obj object The duration to compare to.
리턴 bool

GetHashCode() 공개 메소드

Gets the hash value of this instance.
public GetHashCode ( ) : int
리턴 int

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

Checks if duration a is less than duration b.
public static operator ( ) : bool
리턴 bool