如果没有beforefieldinit,运行库就必须在某个精确时间运行类型构造函数,即,恰好在第一次访问该类型的静态或实例字段和方法之前。
Without beforefieldinit, the runtime must run the type constructor at a precise time-just before the first access to static or instance fields and methods of the type.
这里包装器方法只是保存当前时间,然后调用改名后的原方法,并在返回调用原方法的结果之前打印时间报告。
Here the wrapper method just saves the current time, then calls the renamed original method and prints a time report before returning the result of the call to the original method.
甚至在得到这些问题的答案之前,他们就发明了一种运用不断变换的月相来告知时间的方法。
Even before they learned the answers to these questions, they developed a way to use the changing faces of the moon to tell time.
应用推荐