Пример #1
0
        public void RegisterNotifyingObject(NotifyingObject obj)
        {
            Contract.Requires <ArgumentNullException>(obj != null);

            RegisterNotifyingObject((INotifyPropertyChanging)obj);
            RegisterNotifyingObject((INotifyPropertyChanged)obj);
        }
Пример #2
0
        public void RegisterNotifyingObject(NotifyingObject obj)
        {
            if (obj == null)
            {
                throw new ArgumentNullException(nameof(obj), "Contract assertion not met: obj != null");
            }

            RegisterNotifyingObject((INotifyPropertyChanging)obj);
            RegisterNotifyingObject((INotifyPropertyChanged)obj);
        }