internal void CopyFrom (TContent alias) { if (alias.NotNull ()) { Cleanup (); Registration.CopyFrom (alias.Registration); foreach (var id in alias.IdCollection) { IdCollection.Add (id); } foreach (var gadgetTest in alias.TestCollection) { TestCollection.Add (gadgetTest.Clone ()); } } }
public void CopyFrom (TContent alias) { if (alias.NotNull ()) { Cleanup (); foreach (var id in alias.IdCollection) { IdCollection.Add (id); } foreach (var gadgetTest in alias.TestCollection) { TestCollection.Add (gadgetTest.Clone ()); } foreach (var gadgetTarget in alias.TargetCollection) { TargetCollection.Add (gadgetTarget.Clone ()); } } }