C# Class HandCoded.Finance.DelegatedWeekend

The DelegatedWeekend class provides a implementation of the abstract Weekend class that allows the use of delegates.
Inheritance: Weekend
Afficher le fichier Open project: formicary/fpml-toolkit-csharp

Méthodes publiques

Méthode Description
DelegatedWeekend ( string name, WeekendDelegate function ) : System

Constructs a DelegatedWeekend instance that will use the indicated WeekendDelegate to test dates.

IsWeekend ( Date date ) : bool

Determines if the given Date falls on a weekend.

Method Details

DelegatedWeekend() public méthode

Constructs a DelegatedWeekend instance that will use the indicated WeekendDelegate to test dates.
public DelegatedWeekend ( string name, WeekendDelegate function ) : System
name string The name used to reference this instance.
function WeekendDelegate A for the test function.
Résultat System

IsWeekend() public méthode

Determines if the given Date falls on a weekend.
public IsWeekend ( Date date ) : bool
date Date The to check.
Résultat bool