protected void UpdateProperty(string key, IViewHandler viewHandler, TVirtualView virtualView) { if (this.TryGetValue(key, out var action)) { action?.Invoke(viewHandler, virtualView); } else { _chained?.UpdateProperty(key, viewHandler, virtualView); } }
public void UpdateProperty(IViewHandler viewHandler, TVirtualView virtualView, string property) { if (virtualView == null) { return; } if (TryGetValue(property, out var updater)) { updater.Invoke(viewHandler, virtualView); } _chained?.UpdateProperty(viewHandler, virtualView, property); }