您要查找的是不是:
- You could use a static class to hold those methods. 您应该使用静态类来包含那些方法。
- Initialize Static Class Members with Static Constructors. 使用静态构造器初始化静态类成员。
- However, the drawback to a static class is that all static methods need to be thread safe. 但是,静态类的缺点是需要保证所有静态方法都是线程安全的。
- The Dns class is a static class that retrieves information about a specific host from the Internet Domain Name System (DNS). Dns类是一个静态类,它从Internet域名系统(DNS)检索关于特定主机的信息。
- Do not treat static classes as a miscellaneous bucket. 不要认为静态类可无所不包。
- Also, a static class can make your implementation simpler and faster because you do not have to create an object in order to call its methods. 此外,静态类能够使您的实现更简单、迅速,因为您不必创建对象就能调用其方法。
- Static class methods can also be passed without instantiating an object of that class by passing the class name instead of an object as the element with index 0. 对于没有实例化为对象的静态类,要传递其方法,将数组0下标指明的对象名换成该类的名称即可。
- Static classes can be used when there is no data or behavior in the class that depends on object identity. 当类中没有依赖对象标识的数据或行为时,就可以使用静态类。
- Static classes are a safe and convenient way of declaring a class containing static methods that cannot be instantiated. 若要声明那些包含不能实例化的静态方法的类,静态类就是一种安全而便利的方式。
- They were going to create a classless society, and they have created the strictest society with static classes. 他们想创造一个没有阶级的社会,却创造出了有最僵化严格的阶级社会。
- Do declare static classes as sealed and abstract, and add a private instance constructor, if your programming language does not have built-in support for static classes. 如果编程语言没有对静态类的内置支持,则应将静态类声明为密封的和抽象的,并添加一个私有实例构造函数。
- Static classes cannot contain a constructor, although it is still possible to declare a static constructor to assign initial values or set up some static state. 静态类不能包含构造函数,但仍可声明静态构造函数以分配初始值或设置某个静态状态。
- Kindly send us two samples of each class quote for. 报价时,请对每一个等级的各寄两个样品。
- I do not get any static on my set. 我的电视机没有静电干扰。
- The average age of the boys in this class is fifteen. 本班男生的平均年龄是十五岁。
- Henry is nowhere when it comes to the race for class president. 亨利在竞选级长中被远远抛在后面。
- She got cold feet when asked to recite in class. 当她被叫起来在班上背诵时害怕了。
- She was kept in for an hour for talking in class. 她因上课说话被罚留校一小时。
- The students in our class number thirty. 我班总共有三十名学生。
- I was out and away the handsomest man in the class. 我是当时全班最帅的男子汉。