public void RemoveComputedProperty(ComputedProperty property) { if (!computedProperties.Contains(property)) { throw new InvalidOperationException(); } computedProperties.Remove(property); property?.OnDetach(); }
public void AddComputedProperty(ComputedProperty property) { if (property.System != null) { throw new InvalidOperationException(); } property.OnAttach(this); computedProperties.Add(property); }