public virtual void Register(T peripheral, NumberRegistrationPoint <int> registrationPoint) { if (ChildCollection.ContainsKey(registrationPoint.Address)) { throw new RegistrationException("The specified registration point is already in use."); } ChildCollection.Add(registrationPoint.Address, peripheral); }
public override void Register(T peripheral, NumberRegistrationPoint <int> registrationPoint) { base.Register(peripheral, registrationPoint); machine.RegisterAsAChildOf(this, peripheral, registrationPoint); }