C# 클래스 HandCoded.Finance.DelegatedWeekend

The DelegatedWeekend class provides a implementation of the abstract Weekend class that allows the use of delegates.
상속: Weekend
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

공개 메소드들

메소드 설명
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.

메소드 상세

DelegatedWeekend() 공개 메소드

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.
리턴 System

IsWeekend() 공개 메소드

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