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

            _isFiltered = (aSource as FanFedCollection)._isFiltered;
            _fanFedFilter = (aSource as FanFedCollection)._fanFedFilter;
            _fanFedList.Clear();
            foreach (FanFed vFanFedSource in (aSource as FanFedCollection)._fanFedList)
            {
                FanFed vFanFedTarget = new FanFed();
                vFanFedTarget.AssignFromSource(vFanFedSource);
                _fanFedList.Add(vFanFedTarget);
            }
        }
Example #2
0
        /// <summary>
        ///    Assigns all <c>aSource</c> object's values to this instance of <see cref="FanFedCollection"/>.
        /// </summary>
        /// <param name="aSource">A source object.</param>
        public override void AssignFromSource(object aSource)
        {
            if (!(aSource is FanFedCollection))
            {
                throw new ArgumentException("Invalid assignment source", "FanFedCollection");
            }

            _isFiltered   = (aSource as FanFedCollection)._isFiltered;
            _fanFedFilter = (aSource as FanFedCollection)._fanFedFilter;
            _fanFedList.Clear();
            foreach (FanFed vFanFedSource in (aSource as FanFedCollection)._fanFedList)
            {
                FanFed vFanFedTarget = new FanFed();
                vFanFedTarget.AssignFromSource(vFanFedSource);
                _fanFedList.Add(vFanFedTarget);
            }
        }