static private void AddSafe(ref List <SignalBase> signals, SignalBase item) { if (signals == null) { signals = new List <SignalBase>(); } signals.Add(item); }
protected void AddParent(SignalBase parent) { AddSafe(ref _parents, parent); AddSafe(ref parent._children, this); }