示例#1
0
 private void Unsubscribe()
 {
     if (AssociatedObject == null)
     {
         return;
     }
     if (anyEventHandler != null)
     {
         anyEventHandler.EventRaise -= AnyEventHandler_EventRaise;
         anyEventHandler.Dispose();
         anyEventHandler = null;
     }
 }