/// <summary> /// Checks whether this is a holiday specific to a federal state. /// </summary> /// <param name="stateId">The federal state id to check.</param> /// <returns>Return true, if this is a holiday of this federal state, else false.</returns> public bool IsPublicHoliday(GermanFederalStates.Id stateId) { return(PublicHolidayStateIds.Exists(s => s == stateId)); }
public GermanFederalState(GermanFederalStates.Id state, string abbreviation, string name) { _state = state; _abbreviation = abbreviation; _name = name; }