C# Class QLNet.Period

Mostrar archivo Open project: ammachado/QLNet Class Usage Examples

Public Methods

Method Description
Equals ( Period other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Normalize ( ) : void
Period ( Frequency f ) : System
Period ( int n, TimeUnit u ) : System
Period ( string period ) : System

Create from a string like "1M", "2Y"...

ToShortString ( ) : string
ToString ( ) : string
operator ( ) : Period
operator ( ) : bool

Private Methods

Method Description
GetMaxDays ( ) : int

Converts Period to days.

GetMinDays ( ) : int

Converts Period to days.

frequency ( ) : Frequency
length ( ) : int
units ( ) : TimeUnit

Method Details

Equals() public method

public Equals ( Period other ) : bool
other Period
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Normalize() public method

public Normalize ( ) : void
return void

Period() public method

public Period ( Frequency f ) : System
f Frequency
return System

Period() public method

public Period ( int n, TimeUnit u ) : System
n int
u TimeUnit
return System

Period() public method

Create from a string like "1M", "2Y"...
public Period ( string period ) : System
period string
return System

ToShortString() public method

public ToShortString ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : Period
return Period

operator() public static method

public static operator ( ) : bool
return bool