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.
Afficher le fichier Open project: ammachado/QLNet Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
DayCounter ( DayCounter dayCounter ) : System

Method Details

DayCounter() public méthode

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

DayCounter() protected méthode

protected DayCounter ( DayCounter dayCounter ) : System
dayCounter DayCounter
Résultat System

Equals() public méthode

public Equals ( DayCounter other ) : bool
other DayCounter
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

dayCount() public méthode

public dayCount ( Date d1, Date d2 ) : int
d1 System.Date
d2 System.Date
Résultat int

operator() public static méthode

public static operator ( ) : bool
Résultat bool

yearFraction() public méthode

public yearFraction ( Date d1, Date d2 ) : double
d1 System.Date
d2 System.Date
Résultat double

yearFraction() public méthode

public yearFraction ( Date d1, Date d2, Date refPeriodStart, Date refPeriodEnd ) : double
d1 System.Date
d2 System.Date
refPeriodStart System.Date
refPeriodEnd System.Date
Résultat double