コード例 #1
0
        public void MakeDirty(BeforeMethodInvocation call)
        {
            IDirtyTracked target = call.Target as IDirtyTracked;
            string        method = call.Method.Name;

            method = method.Replace("set_", "");
            target.SetPropertyDirtyStatus(method, true);
        }
コード例 #2
0
 public void MyBeforeIntercepto(BeforeMethodInvocation call)
 {
     Console.WriteLine("before");
 }
コード例 #3
0
 public void BeforeCall(BeforeMethodInvocation call)
 {
     Console.WriteLine("before");
 }
コード例 #4
0
        public void ClearDirty(BeforeMethodInvocation call)
        {
            IDirtyTracked target = call.Target as IDirtyTracked;

            target.ClearDirty();
        }