Why won't DynamicProxy's interceptor get called for *each* virtual method call?

前端 未结 2 1332
孤街浪徒
孤街浪徒 2021-02-05 17:05

An example explains it best :

public interface IA { 
  void foo();
  void bar();
}

public class A : IA {
  public virtual void foo(){
    Console.Write(\"foo\")         


        
2条回答
提交回复
热议问题