• XAML 2009完全支持泛型非默认构造方法工厂方法内建类型并且可以定义新的属性

    In XAML 2009 we see full support for generics, non-default constructors, factory methods, built-in types, and defining new properties.

    youdao

  • 因此类型参数t用作泛型超类时,T注释确切地告知我们可以调用哪些超级构造函数。

    Thus, when a type parameter t is used as the superclass of a generic class, the annotation on t tells us exactly what super-constructors we can call.

    youdao

  • 不幸的是,不能通配符类型参数调用构造函数,即使知道存在这样构造函数也不行。

    Unfortunately, you can't invoke a generic constructor with a wildcard type argument, even though you know such a constructor exists. However, you can do this.

    youdao

  • 因为运行不能区分ListList(运行时List),泛型类型参数标识类型变量构造成了问题。

    Because the runtime cannot tell a List from a List (at runtime, they're both just Lists), constructing variables whose type is identified by a generic type parameter is problematic.

    youdao

  • 类型定义可以封闭构造类型值。

    A generic type definition is not assignable from a closed constructed type.

    youdao

  • 类似类的定义,但是方法构造中所定义类型参数作用域只能在定义它们的方法和构造中。

    This is similar to declaring a generic type, but the type parameter's scope is limited to the method or constructor in which it's declared.

    youdao

  • 提供类型必须公开型类型可以访问参数构造函数

    The supplied type must expose a parameterless constructor that your generic type can access.

    youdao

  • 实现接口类型不必公开构造函数,并且构造函数访问级别限制,泛型类型中的代码可能无法访问构造函数。

    A type that implements interfaces does not necessarily expose a constructor, and depending on the access level of a constructor, the code within the generic type might not be able to access it.

    youdao

  • 实现接口类型不必公开构造函数,并且构造函数访问级别限制,泛型类型中的代码可能无法访问构造函数。

    A type that implements interfaces does not necessarily expose a constructor, and depending on the access level of a constructor, the code within the generic type might not be able to access it.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定