Beispiel #1
0
 public void Dispose()
 {
     foreach (ObjectProperty property in _properties)
     {
         property.Dispose();
     }
     _depNodes.Dispose();
     _disposed = true;
 }
 public override void Dispose()
 {
     if (_child != null)
     {
         ObjectInstance.Tree.RemoveKey(_child.WrappedObject);
         _child.Dispose();
     }
     using (NotificationGate.BeginOutbound())
     {
         ObjectInstance.ClearValue(ClassProperty.DependencyProperty);
     }
     _depProperty.Dispose();
 }
Beispiel #3
0
 public override void Dispose()
 {
     foreach (IObjectInstance child in _children)
     {
         ObjectInstance.Tree.RemoveKey(child.WrappedObject);
         child.Dispose();
     }
     using (NotificationGate.BeginOutbound())
     {
         ObjectInstance.ClearValue(ClassProperty.DependencyProperty);
     }
     _depCollection.Dispose();
 }