C# Class QLNet.Time.DayCounter

This class provides methods for determining the length of a time period according to given market convention, both as a number of days and as a year fraction.
Exibir arquivo Open project: ammachado/QLNet Class Usage Examples

Public Methods

Method Description
DayCounter ( ) : System

The default constructor returns a day counter with a null implementation, which is therefore unusable except as a placeholder.

Equals ( DayCounter other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
ToString ( ) : string
dayCount ( Date d1, Date d2 ) : int
operator ( ) : bool
yearFraction ( Date d1, Date d2 ) : double
yearFraction ( Date d1, Date d2, Date refPeriodStart, Date refPeriodEnd ) : double

Protected Methods

Method Description
DayCounter ( DayCounter dayCounter ) : System

Method Details

DayCounter() public method

The default constructor returns a day counter with a null implementation, which is therefore unusable except as a placeholder.
public DayCounter ( ) : System
return System

DayCounter() protected method

protected DayCounter ( DayCounter dayCounter ) : System
dayCounter DayCounter
return System

Equals() public method

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

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

ToString() public method

public ToString ( ) : string
return string

dayCount() public method

public dayCount ( Date d1, Date d2 ) : int
d1 System.Date
d2 System.Date
return int

operator() public static method

public static operator ( ) : bool
return bool

yearFraction() public method

public yearFraction ( Date d1, Date d2 ) : double
d1 System.Date
d2 System.Date
return double

yearFraction() public method

public yearFraction ( Date d1, Date d2, Date refPeriodStart, Date refPeriodEnd ) : double
d1 System.Date
d2 System.Date
refPeriodStart System.Date
refPeriodEnd System.Date
return double