Метод | Описание | |
---|---|---|
Generate ( |
Applies the algorithm defined by the CalendarRule to calculate the date that a holiday falls in the given year using the given Calendar to avoid other non-business dates.
|
|
IsApplicable ( int year ) : bool |
Determines if the CalendarRule is applicable to the given year.
|
Метод | Описание | |
---|---|---|
CalendarRule ( string name, int from, int until ) : System |
Constructs a CalendarRule with a given name and applicable year range.
|
protected CalendarRule ( string name, int from, int until ) : System | ||
name | string | The name of the holiday. |
from | int | The first year in which the holiday occurs. |
until | int | The last year in which the holiday occurs. |
Результат | System |
public abstract Generate ( |
||
calendar | The |
|
year | int | The year to generate the holiday for. |
Результат | Date |
public IsApplicable ( int year ) : bool | ||
year | int | The year to be tested. |
Результат | bool |