예제 #1
0
        private void Dispose(bool dispose)
        {
            if (disposed)
            {
                return;
            }

            try
            {
                if (dispose)
                {
                    UnhookNotification();
                    tracker = null;
                    target  = default(TModel);
                }
            }
            finally
            {
                disposed = true;
            }
        }
예제 #2
0
 /// <summary>
 /// Инициализирует новый экземпляр класса <see cref="T:System.Object"/>.
 /// </summary>
 public DependencySubscription(DependencyTracker <TModel> tracker)
 {
     this.tracker = tracker;
 }