/// <summary> /// 해당 분기의 마지막 월 /// </summary> /// <param name="quarter">해당 분기</param> /// <returns>해당 분기의 마지막 월</returns> public static int GetEndMonthOfQuarter(this Quarters quarter) { return(3 * quarter.GetHashCode()); }
/// <summary> /// 해당 분기의 시작월 /// </summary> /// <param name="quarter">해당 분기</param> /// <returns>해당분기의 시작월</returns> public static int GetStartMonthOfQuarter(this Quarters quarter) { return(3 * (quarter.GetHashCode() - 1) + 1); }