C# Class HandCoded.Finance.DelegatedWeekend

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

Public Methods

Method 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 method

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.
return System

IsWeekend() public method

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