/// <summary> /// 静态代理实现AOP /// </summary> static void RunCatProxy() { ICat icat = new Cat1(); var catProxy = new CatProxy(icat); catProxy.Eat(); Console.WriteLine(); }
/// <summary> /// 没有AOP, /// </summary> static void RunCat() { ICat icat = new Cat1(); icat.Eat(); }