예제 #1
0
        /// <summary>
        /// This is used to propagate the version to all properties in the object that need it
        /// </summary>
        public override void PropagateVersion()
        {
            if (startDate != null)
            {
                startDate.Version = this.Version;
            }

            if (offsetFrom != null)
            {
                offsetFrom.Version = this.Version;
            }

            if (offsetTo != null)
            {
                offsetTo.Version = this.Version;
            }

            if (comment != null)
            {
                comment.Version = this.Version;
            }

            if (rRules != null)
            {
                rRules.PropagateVersion(this.Version);
            }

            if (rDates != null)
            {
                rDates.PropagateVersion(this.Version);
            }

            if (tzNames != null)
            {
                tzNames.PropagateVersion(this.Version);
            }

            if (customProps != null)
            {
                customProps.PropagateVersion(this.Version);
            }
        }