Example #1
0
        /// <summary>
        /// Creates a copy of the date.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public CalendarDate Copy()
        {
            CalendarDate cd = new CalendarDate();

            cd.ID         = fID;
            cd.Year       = fYear;
            cd.CalendarID = fCalendarID;
            cd.MonthID    = fMonthID;
            cd.DayIndex   = fDayIndex;

            return(cd);
        }
Example #2
0
        public CalendarDate Copy()
        {
            CalendarDate calendarDate = new CalendarDate()
            {
                ID         = this.fID,
                Year       = this.fYear,
                CalendarID = this.fCalendarID,
                MonthID    = this.fMonthID,
                DayIndex   = this.fDayIndex
            };

            return(calendarDate);
        }