/// <summary>
        ///    Assigns all <c>aSource</c> object's values to this instance of <see cref="FanSessionActivityCollection"/>.
        /// </summary>
        /// <param name="aSource">A source object.</param>
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is FanSessionActivityCollection))
            {
                throw new ArgumentException("Invalid assignment source", "FanSessionActivityCollection");
            }

            _isFiltered = (aSource as FanSessionActivityCollection)._isFiltered;
            _fanSessionActivityFilter = (aSource as FanSessionActivityCollection)._fanSessionActivityFilter;
            _fanSessionActivityList.Clear();
            foreach (FanSessionActivity vFanSessionActivitySource in (aSource as FanSessionActivityCollection)._fanSessionActivityList)
            {
                FanSessionActivity vFanSessionActivityTarget = new FanSessionActivity();
                vFanSessionActivityTarget.AssignFromSource(vFanSessionActivitySource);
                _fanSessionActivityList.Add(vFanSessionActivityTarget);
            }
        }
Пример #2
0
        /// <summary>
        ///    Assigns all <c>aSource</c> object's values to this instance of <see cref="FanSessionActivityCollection"/>.
        /// </summary>
        /// <param name="aSource">A source object.</param>
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is FanSessionActivityCollection))
            {
                throw new ArgumentException("Invalid assignment source", "FanSessionActivityCollection");
            }

            _isFiltered = (aSource as FanSessionActivityCollection)._isFiltered;
            _fanSessionActivityFilter = (aSource as FanSessionActivityCollection)._fanSessionActivityFilter;
            _fanSessionActivityList.Clear();
            foreach (FanSessionActivity vFanSessionActivitySource in (aSource as FanSessionActivityCollection)._fanSessionActivityList)
            {
                FanSessionActivity vFanSessionActivityTarget = new FanSessionActivity();
                vFanSessionActivityTarget.AssignFromSource(vFanSessionActivitySource);
                _fanSessionActivityList.Add(vFanSessionActivityTarget);
            }
        }