C# Class Simple.Patterns.WorkingDays

Inheritance: IWorkingDaysProvider
ファイルを表示 Open project: juanplopes/simple Class Usage Examples

Protected Properties

Property Type Description
provider IWorkingDaysProvider

Public Methods

Method Description
Get ( IWorkingDaysProvider key ) : WorkingDays
GetBackwards ( int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime
GetDays ( int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime
GetInAdvance ( int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime
GetNetWorkingDays ( System.DateTime date1, System.DateTime date2 ) : int
IsWorkingDay ( System.DateTime date ) : bool
WorkingDays ( IWorkingDaysProvider provider ) : System

Protected Methods

Method Description
BinarySearch ( bool direction, int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime

Private Methods

Method Description
WorkingDays ( ) : System

Method Details

BinarySearch() protected method

protected BinarySearch ( bool direction, int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime
direction bool
businessDays int
reference System.DateTime
considerCurrent bool
return System.DateTime

Get() public static method

public static Get ( IWorkingDaysProvider key ) : WorkingDays
key IWorkingDaysProvider
return WorkingDays

GetBackwards() public method

public GetBackwards ( int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime
businessDays int
reference System.DateTime
considerCurrent bool
return System.DateTime

GetDays() public method

public GetDays ( int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime
businessDays int
reference System.DateTime
considerCurrent bool
return System.DateTime

GetInAdvance() public method

public GetInAdvance ( int businessDays, System.DateTime reference, bool considerCurrent ) : System.DateTime
businessDays int
reference System.DateTime
considerCurrent bool
return System.DateTime

GetNetWorkingDays() public method

public GetNetWorkingDays ( System.DateTime date1, System.DateTime date2 ) : int
date1 System.DateTime
date2 System.DateTime
return int

IsWorkingDay() public method

public IsWorkingDay ( System.DateTime date ) : bool
date System.DateTime
return bool

WorkingDays() public method

public WorkingDays ( IWorkingDaysProvider provider ) : System
provider IWorkingDaysProvider
return System

Property Details

provider protected_oe property

protected IWorkingDaysProvider provider
return IWorkingDaysProvider