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