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