예제 #1
0
 public void Dispose()
 {
     foreach (ObjectProperty property in _properties)
     {
         property.Dispose();
     }
     _depNodes.Dispose();
     _disposed = true;
 }
예제 #2
0
 public override void Dispose()
 {
     if (_child != null)
     {
         ObjectInstance.Tree.RemoveKey(_child.WrappedObject);
         _child.Dispose();
     }
     using (NotificationGate.BeginOutbound())
     {
         ObjectInstance.ClearValue(ClassProperty.DependencyProperty);
     }
     _depProperty.Dispose();
 }
예제 #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();
 }