Any method or attribute you reference will use the original copy you generate.
任何对方法或属性的引用都会使用所生成的原始副本。
This interceptor method can use the same signature as the original method, including returning the same value. Listing 3 shows what a source code version of this approach would look like.
这个拦截器(interceptor)方法可以使用与原来方法同样的签名,包括返回同样的值。
Unlike C#, you don’t have to use a virtual keyword on the original concrete method.
不过和C# 不一样的是,你不需要一个virtual (虚拟)关键字在原来的具体方法上。
应用推荐