单词 | static class | ||||||||||||
释义 | static class
更多释义 收起释义 例句释义: 静态类,静态类别,静态类中 1. To access a static class member, use the name of the class instead of a variable name to specify the location of the member. 若要访问静态类成员,应使用类名而不是变量名来指定该成员的位置。 msdn2.microsoft.com 2. Static class methods may support a different level of thread safety than those associated with an instance of that class. 和实例的方法相比,静态类的方法或多或少拥有更高的线程安全性。 book.51cto.com 3. A static class is basically the same as a non-static class, but there is one difference: a static class cannot be instantiated. 静态类与非静态类基本相同,但存在一个区别:静态类不能实例化。 technet.microsoft.com 4. Creating a static class is therefore much the same as creating a class that contains only static members and a private constructor. 因此创建静态类与创建仅包含静态成员和私有构造函数的类大致一样。 msdn2.microsoft.com 5. Obviously , the base class you constrain cannot be a sealed class or a static class , and the compiler enforces that . 显然,您约束的基类不能是密封类或静态类,并且由编译器实施这一限制。 www.bing.com 6. Static class methods and properties are accessible without the need for an instantiation of the class. 现在,无需实例化类便可访问静态类方法和属性。 www.ibm.com 7. If you want to maintain a single instance of a variable for all instances of a class, you will use static-class member variables to do it. 如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。 www.ibm.com 8. Use a static class to contain methods that are not associated with a particular object. 使用静态类来包含不与特定对象关联的方法。 msdn2.microsoft.com 9. The members of a static class are accessed directly without an instance of the class. 可对静态类的成员直接进行访问,无需类的实例。 msdn2.microsoft.com 10. Using a static class for the method that handles the callback ensures that the method will still exist when the item is removed from cache. 为了确保从缓存中删除项时处理回调的方法仍然存在,请使用该方法的静态类。 msdn2.microsoft.com 1. ServicePointManager is a static class used to create, maintain, and delete instances of the ServicePoint class. ServicePointManager是一个静态类,用于创建、保持和删除ServicePoint类的实例。 msdn2.microsoft.com 2. The Dns class is a static class that retrieves information about a specific host from the Internet Domain Name System (DNS). Dns类是一个静态类,它从Internet域名系统(DNS)检索关于特定主机的信息。 msdn2.microsoft.com 3. Use a static class as a unit of organization for methods not associated with particular objects. 使用静态类作为不与特定对象关联的方法的组织单元。 msdn2.microsoft.com 4. If the nested class is a static class, a box showing a preview of the refactoring displays right away. 如果这个嵌套类是一个静态类,那么就会立即出现一个框,显示这个重构的预览。 www.ibm.com 5. Because there is no instance variable, you access the members of a static class by using the class name itself. 由于没有执行个体变数,您要使用类别名称本身存取静态类别的成员。 msdn.microsoft.com 6. You use a static class that has methods that run before and after the XmlObject changes, as shown in Listing 3. 我们使用一个静态类,其中包含在XmlObject更改之前和之后运行的方法,见清单3。 www.ibm.com 7. You do not need to declare an instance of a static class in order to access its members. 不需要声明静态类的实例来访问其成员。 msdn2.microsoft.com 8. Initialize Static Class Members with Static Constructors. 使用静态构造器初始化静态类成员。 dict.bioon.com 9. The advantage of using a static class is that the compiler can check to make sure that no instance members are accidentally added. 使用静态类的优点在于,编译器能够执行检查以确保不致偶然地添加实例成员。 msdn2.microsoft.com 10. It is not possible to create instances of a static class using the new keyword. 不能使用new关键字创建静态类的实例。 msdn2.microsoft.com 1. Note also that it's an error to derive a static class from any class other than object. 还要注意,从任何非对象类派生静态类都是错误的。 www.cnblogs.com 2. In this way, a single static class declares the entire extended authorization policy of an EAz application. 通过这种方法,单个静态类可以声明EAz应用程序的完整扩展授权策略。 www.ibm.com 3. A non-static class can contain static methods, fields, properties, or events. 非静态类可以包含静态的方法、字段、属性或事件。 technet.microsoft.com 4. In addition, the method must be declared within a static class. 此外,必须在静态类中声明该方法。 msdn.microsoft.com 5. For more information, see Static Classes and Static Class Members. 有关更多信息,请参见静态类和静态类成员。 msdn2.microsoft.com 6. However, the drawback to a static class is that all static methods need to be thread safe. 但是,静态类的缺点是需要保证所有静态方法都是线程安全的。 msdn2.microsoft.com 7. It is more typical to declare a non-static class with some static members, than to declare an entire class as static. 更常见的做法是声明具有一些静态成员的非静态类,而不是将整个类声明为静态类。 technet.microsoft.com 8. This static class helps to make mocking a lot easier in ASP. NET MVC applications. 不过该静态类有助于开发者更加方便地在ASP.NETMVC应用程序中创建模拟对象。 www.infoq.com 9. In our example, the identifier is stored in a static class variable so that it can be accessed from outside if necessary. 在我们的范例之中,标识符存储在静态的类变量之中,这样如有需要就可以从外边访问它了。 www.ibm.com 10. You're actually building the static class model, even though you're drawing dynamic model (sequence) diagrams at the same time. 虽然画动态(时序)图实际上也是在创建静态类模型。 www.cnblogs.com 1. This adapter is used to cache the output and return value of a function. It can cache a function or a method of a static class or object. 这个适配器用来缓存输出和函数返回,它能缓存静态类和对象的函数和方法。 blog.sina.com.cn 2. You cannot declare a variable of type Static1 because it is marked as a static class. 您不能声明Static1类型的变量,因为它被标记为静态类。 blog.sina.com.cn 3. Callback functions can not only be simple functions but also object methods including static class methods. Callback函数不仅可以是一个简单的函数,它还可以是一个对象的方法,包括静态类的方法。 pt.php.net 4. Therefore, instead of creating unnecessary instances of this class, you can declare it as a static class, like this 因此,您可以将它声明为静态类,而不是创建此类的不必要实例,如下所示 msdn2.microsoft.com 5. Is a static class used to create, maintain, and delete instances of the 是一个静态类,用于创建、保持和删除 msdn2.microsoft.com 6. 'Static class': cannot declare indexers in a static class “staticclass”:不能在静态类中声明索引器 msdn2.microsoft.com 7. An error for the illegal reference to T inside static class D 在静态类D中非法引用T的错误 www.ibm.com 8. Perhaps the most straightforward way to localize Java code is to create a public, static class that makes use of the 也许本地化Java代码最简单的方法是创建一个公共静态类,该类使用 www-128.ibm.com 9. Static class members are declared using the 在成员的返回类型之前使用 www.ichacha.net |
||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。