Esempio n. 1
0
            private bool TryGetTarget(out WrappedModelBase<TInterface> target)
            {
                target = Target as WrappedModelBase<TInterface>;
                if (IsAlive) return true;

                target = null;
                return false;
            }
Esempio n. 2
0
            public WeakSubscription(WrappedModelBase<TInterface> wrapper)
                : base(wrapper)
            {
                if (wrapper == null) throw new ArgumentNullException(nameof(wrapper));

                _ModelInstance = wrapper.ModelInstance;
                _PropertyChangedEventHandler = ModelInstance_PropertyChanged;
            }