If a client can call a method or access a field, test it.
如果客户机能够调用方法或访问字段,那么就测试它。
These fall into three categories: method call transformations, field access transformations, and a new object transformation.
转换类型可分为三类:方法调用转换、字段访问转换和新对象转换。
Back in Part 2, I showed how reflection is many times slower than direct code for both field access and method calls.
在第2部分,我展示了无论是对于字段访问还是方法调用,反射都比直接代码慢很多倍。
应用推荐