/// <summary> /// Assigns all <c>aSource</c> object's values to this instance of <see cref="FedCollection"/>. /// </summary> /// <param name="aSource">A source object.</param> public override void AssignFromSource(object aSource) { if (!(aSource is FedCollection)) { throw new ArgumentException("Invalid assignment source", "FedCollection"); } _isFiltered = (aSource as FedCollection)._isFiltered; _fedFilter = (aSource as FedCollection)._fedFilter; _fedList.Clear(); foreach (Fed vFedSource in (aSource as FedCollection)._fedList) { Fed vFedTarget = new Fed(); vFedTarget.AssignFromSource(vFedSource); _fedList.Add(vFedTarget); } }