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