如果没有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.
我们将创建measurementmanager类,它带有一些静态方法,用于获取和返回可重用的Measurement实例。
We'll create the MeasurementManager class with some static methods for getting and returning reusable Measurement instances.
这种做法并不常见,因为需要开发人员创建仅用于访问非实例(静态)方法和字段的对象的实例。
This is unusual because it requires a developer to create an instance of an object just to access non-instance (static) methods and fields!
使用自定义的类。创建的所有设置一个类(一个更好的方法)。使用一个单一的静态类实例的访问设置。你可以序列化和反序列化的类。
Use custom class. Create a class with all settings (a better approach). Use a single static instance of the class to access settings. You can serialize and deserialize that class.
静态方法,在给定活动实例和上下文令牌的情况下返回上下文信息。
Static method that returns context information given an activity instance and context token.
实例计算表明,采用动态优化方法比采用静态优化方法,对降低万向节传动引起的传动系的振动和噪声将会有更好的效果。
Calculations of some examples show that the dynamic optimal design is better than the conventional one for reducing vibration and noise caused by universal joint propeller shafts.
和实例的方法相比,静态类的方法或多或少拥有更高的线程安全性。
Static class methods may support a different level of thread safety than those associated with an instance of that class.
高精度的海洋磁力测量对磁测仪器系统的测量精度提出了更高的要求,文中对海洋磁力测量仪器系统检验的内容和动静态检验方法进行了研究,并通过实例验证其可行性。
Testing methods of instrumental system in the Marine magnetic survey have been studied in this paper, and the feasibility of each method has been testified by the observed data.
高精度的海洋磁力测量对磁测仪器系统的测量精度提出了更高的要求,文中对海洋磁力测量仪器系统检验的内容和动静态检验方法进行了研究,并通过实例验证其可行性。
Testing methods of instrumental system in the Marine magnetic survey have been studied in this paper, and the feasibility of each method has been testified by the observed data.
应用推荐