public void AttachBehavior(IQueueBehavior <T> behavior) { if (behavior != null) { _behaviors.Add(behavior); } behavior?.Attach(this); }
public void AttachBehavior(IQueueBehavior <T> behavior) { if (behavior == null) { return; } _behaviors.Add(behavior); behavior.Attach(this); }