Example #1
0
        public void Intercept()
        {
            var oldValue = Invocation.GetCurrentValue();

            Invocation.Proceed();
            var newValue = Invocation.GetArgumentValue(0);

            if (AreEqual(oldValue, newValue))
            {
                return;
            }

            NotifiedObject.Notify(Invocation);
        }
 public void Intercept()
 {
     Invocation.Proceed();
     NotifiedObject.Notify(Invocation);
 }