单词 | generic class | ||||||||||
释义 | generic class
更多释义 收起释义 例句释义: 泛型类,泛型类别,类属类 1. Generic class is a pure dictionary that offers different performance characteristics , and which has no non generic counterpart . 泛型类是提供不同性能特点的纯字典,它没有对应的非泛型类。 www.bing.com 2. This hash map associates the field descriptor string for a generic class without any parameter types to the GenericTemplate for that class. 这个哈希映射把没有参数类型的泛型类的字段描述符字符串与这个类的GenericTemplate关联起来。 www.ibm.com 3. For example, it is not possible to call arithmetic operators in a C# generic class, although it is possible to call user defined operators. 例如,您无法在C#泛型类别中呼叫算术运算子,不过可以呼叫使用者定义的运算子。 207.46.16.252 4. Then, inside the generic class definition, the only constructors that could be called are those declared in the bound. 因而,在泛型类定义内部,唯一可调用的构造函数是那些在界限中声明的构造函数。 www.ibm.com 5. The following example shows a skeleton definition of a generic class with a constraint list on the type parameter. 下面的示例演示带有类型参数约束列表的泛型类的主干定义。 msdn2.microsoft.com 6. A Declare statement appears as part of a generic class or structure, or a class or structure declared within a generic class or structure. Declare语句显示为泛型类或结构的一部分,或显示为在泛型类或结构中声明的类或结构的一部分。 msdn2.microsoft.com 7. The problem here is that since the XPathHandler is a generic class, it does not know about the actual application handler. 现在的问题是,由于XPathHandler是一个一般类,所以它不知道实际的应用处理程序。 www.ibm.com 8. When you create an instance of a generic class, you specify the actual types to substitute for the type parameters. 在创建泛型类的实例时,会指定实际类型来替换类型参数。 msdn2.microsoft.com 9. Throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor. 只要泛型类的运行时实例化没有包括所需的构造函数,就抛出异常。 www.ibm.com 10. An instance of the ReadOnlyCollection generic class is always read-only. ReadOnlyCollection泛型类的实例总是只读的。 msdn2.microsoft.com 1. Conversions are no longer necessary because each specialized generic class natively contains the value type. 由于每个专用泛型类本身就包含值类型,因此不再需要转换。 msdn2.microsoft.com 2. Shows how to constrain type parameters to enable access to methods and properties of the types used to instantiate the generic class . 演示如何约束类型参数,以启用对用于实例化泛型类的类型的方法和属性的访问。 www.bing.com 3. TypeName is a pointer, passed by reference, or is a generic class with a Void as its type parameter. typeName是一个通过引用传递的指针,或者是一个将Void作为其类型参数的泛型类。 msdn2.microsoft.com 4. Cause: This most likely occurs because the object you tried to add is an instance of a generic class. 原因:这很可能是因为您试图添加的对象是泛型类的实例。 msdn2.microsoft.com 5. Delegates defined within a generic class can use the generic class type parameters in the same way that class methods do. 在泛型类内部定义的委托使用泛型类类型参数的方式可以与类方法所使用的方式相同。 msdn2.microsoft.com 6. The following code example contains source code for a generic class named Sample that has a type parameter named T. 下面的代码示例包含Sample泛型类的源代码,该泛型类有一个T类型参数。 msdn2.microsoft.com 7. The following code example contains source code for a generic class named Sample that has a type parameter T. 下面的代码示例包含名为Sample的泛型类的源代码,该类有一个类型参数T。 msdn2.microsoft.com 8. Generic class allows sequential access either from the head to the tail or from the tail to the head. 泛型类允许从开头到末尾或从末尾到开头按顺序访问。 msdn2.microsoft.com 9. Derive from a specific class or interface, or a specific generic class instead, or include the unknown type as a member. 请从一个特定的类或接口派生,或者从一个特定的泛型类派生,或者包含一个未知的类型作为成员。 msdn2.microsoft.com 10. Each application of this generic class would extend a distinct parent class. 这个泛型类的每个应用都会继承一个不同的父类。 www.ibm.com 1. Constraint and implement that interface in any class that will be used to construct the generic class. 约束,并在将用于构造泛型类的任何类中实现该接口。 msdn2.microsoft.com 2. The following example shows a skeleton definition of a generic class. 下面的示例演示泛型类的主干定义。 msdn2.microsoft.com 3. We recommend that you maximize type safety by defining a generic class. 我们建议您通过定义泛型类最大程度地增强类型的安全性。 msdn2.microsoft.com 4. Generic class provides a base class for deriving your own generic collection types. 泛型类为派生您自己的泛型集合类型提供了基类。 msdn2.microsoft.com 5. The following code illustrates a simple generic class definition. 下面的代码阐释一个简单的泛型类定义。 msdn2.microsoft.com 6. Naked type constraints can also be used in generic class definitions. 裸类型约束还可以在泛型类定义中使用。 msdn2.microsoft.com 7. Constraint specifies that any type argument in a generic class declaration must have a public parameterless constructor. 约束指定泛型类声明中的任何类型参数都必须有公共的无参数构造函数。 msdn2.microsoft.com 8. We recommend that you define a generic class when you want to ensure type safety. 我们建议在需要确保类型安全时定义泛型类。 msdn2.microsoft.com 9. A procedure is not generic simply by virtue of being defined inside a generic class or a generic structure . 一个过程之所以成为泛型过程,并不是简单地由于在泛型类或泛型结构中进行定义。 www.bing.com 10. A class defined in this way is called a generic class. 通过这种方式定义的类称为泛型类。 msdn2.microsoft.com 1. In both JSR-14 and Tiger, static fields in a generic class are shared across all instantiations of the class. 在JSR-14和Tiger中,在泛型类的所有实例中共享该类中的静态字段。 www.ibm.com 2. This guarantee is obtained by applying one or more constraints to your generic class definition. 这种保证是通过对泛型类定义应用一个或多个约束获得的。 msdn2.microsoft.com 3. Sometimes we want to restrict the potential type instantiations of a generic class. 有时我们想限制可能出现的泛型类的类型实例化。 www.ibm.com 4. The SortedDictionary generic class provides faster lookup than the Dictionary generic class. SortedDictionary泛型类提供比Dictionary泛型类更快的查找。 msdn2.microsoft.com 5. You implement the generic class only once, but you can declare and use it with any type. 您只实现一次泛型类,但可以使用任何类型来声明和使用它。 msdn2.microsoft.com 6. The Delphi Data Structure Generic Class Library. 范型数据结构类库 dev.cq118.com 7. When you compile a generic class, MSIL contains placeholders for each parameterized type. 当你编译泛型类时,MSIL为每个参数化的类型包含了占位符。 dictsearch.appspot.com 8. Suppose you want to instantiate a new generic object inside a generic class. 假设您要在一般类的内部实例化一个新的一般对象。 msdn2.microsoft.com 9. To represent our customer, we'll use the generic class Person. 为了表示我们的客户,我们要使用通用类Person。 www.ibm.com 10. The Stack class and the Stack generic class offer LIFO access. Stack类和Stack泛型类提供LIFO访问。 msdn2.microsoft.com 1. You ll also see how you can use ReportDocument as your generic class for either type of report. 您还将看到如何才能使用ReportDocument作为这两类报表的通用类。 msdn2.microsoft.com 2. For example, if you know that your generic class is intended for use only with reference types, then apply the class constraint. 例如,如果您知道您的泛型类仅用于引用类型,则应用类约束。 msdn2.microsoft.com 3. If yes, consider using the Queue class or the Queue generic class if you need first-in-first-out (FIFO) behavior. 如果需要,那么在需要先进先出(FIFO)行为时请考虑使用Queue类或Queue泛型类。 msdn2.microsoft.com 4. Generic class provides a way to store objects that contain their own keys. 泛型类提供了存储包含自己键的对象的方法。 msdn2.microsoft.com 5. Derive the generic class from the IDisposableclass. C. 类派生这个泛型类。 eroad.alai.net 6. Consider using the Stack class or the Stack generic class if you need last-in-first-out (LIFO) behavior. 在需要后进先出(LIFO)行为时请考虑使用Stack类或Stack泛型类。 msdn2.microsoft.com 7. Generic class is a true linked list. 泛型类是一个真正的链接列表。 msdn2.microsoft.com 8. You are creating a generic class, and you need to dispose of the generic objects. How can you do this? 你需要释放你建立的一个泛型类的对象。你要如何做? eroad.alai.net 9. Place an upper limit on the number of instantiations of a generic class that a program can make. 对程序可以产生的泛型类的实例化数目设置上限。 www.ibm.com 10. We could put an upper limit on the number of instantiations of a generic class that a program can make. 我们对程序可以产生的泛型类的实例化数目设置上限。 www.ibm.com 1. By creating a generic class, you can create a collection that is type-safe at compile-time. 通过创建泛型类,您可以创建一个在编译时类型安全的集合。 msdn2.microsoft.com 2. Describes how to create a generic class. 描述如何创建泛型类。 msdn2.microsoft.com 3. It uses the class name Date, which is a fairly generic class name and could very well exist in other places in our code. 它使用类名Date,这是一个非常通用的类名,并且可以很好地切入到代码中的其他位置。 www.ibm.com 4. For example, a generic class JSplitPane may create an instance of Scrollable. 例如,泛型类JSplitPane可以创建Scrollable的实例。 www.ibm.com 5. For example, in a generic class List, do you really want to prevent the construction of a List? 例如,在泛型类List中,您真的想要防止List的构造吗? www.ibm.com 6. Apply this constraint to a type parameter when your generic class creates new instances of the type, as shown in the following example 当泛型类创建类型的新实例时,将此约束应用于类型参数,如下面的示例所示 msdn2.microsoft.com 7. Generic class provides a corresponding instance method overload, 泛型类提供了相应的实例方法重载, msdn2.microsoft.com 8. Within a generic class, non-generic methods can access the class-level type parameters, as follows 在泛型类中,非泛型方法可以访问类级别类型参数,如下所示 msdn2.microsoft.com 9. For an example of a simple generic class, see 有关简单泛型类的示例,请参见 msdn2.microsoft.com 10. Generic class are first-in-first-out collection classes that implement the 泛型类都是先进先出集合类,它们实现 msdn2.microsoft.com 1. Polymorphic recursion occurs when a generic class instantiates itself in its own body. For example, consider the following devious example 当泛型类在其自己的主体中实例化其本身时,发生多态递归。 www.ibm.com 2. Create a generic class for outputting VXML form elements 创建输出VXML表单元素的通用类 www.ibm.com 3. Example of a Generic Class 泛型类的示例 msdn2.microsoft.com 4. In the following example, a generic class is defined and provided with simple 在下面的示例中,定义了一个泛型类,并为其提供了简单的 msdn2.microsoft.com 5. The constraint enables the generic class to use the 约束使得泛型类能够使用 msdn2.microsoft.com 6. Generic class in that they implement the 泛型类,因为它们也实现 msdn2.microsoft.com 7. Method belongs to the generic class 方法属于泛型类 msdn2.microsoft.com 8. Generic class provide first-in-first-out lists, while the 泛型类提供先进先出列表,而 msdn2.microsoft.com 9. For example, you can declare a generic class, 例如,可以声明一个泛型类, msdn2.microsoft.com |
||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。