这使您在声明变量时无需显式声明类型。
This enables you to declare variables without explicitly stating a type.
声明还具有声明类型。
最后,您需要声明类型映射来引用您定制的(反)序列化器。
Lastly, you need to declare the type mappings to reference your custom (DE) serializer.
完成条目显示字段名、字段类型和字段的声明类型。
Completion entries show the field name, field type, and the field's declaring type.
回退到声明类型——如果xsi:type未知则使用声明类型。
Fallback To declared type - use declared type if xsi: type is unknown.
如果可能在声明类型的外部引用类型,则不要使用嵌套类型。
Do not use nested types if the type is likely to be referenced outside of the declaring type.
在寻找命名规范与声明类型不匹配之处时,我发现了程序中的许多bug。
I've found many bugs in programs simply by looking for places where the naming conventions did not match the declared type.
声明类型和权限的组合提供了用于针对该值指定的功能的机制。
The combination of claim type and right provides the mechanism for capabilities being specified with respect to the value.
在标识模型基础结构上面构建的各种系统可以根据需要定义声明类型和权限。
The various systems building on top of the Identity Model infrastructure can define claim types and rights as required.
另一种避免这样的麻烦的方式是永远为方法返回值声明类型,特别是为公用api定义方法的时候。
Another way to prevent these problems is to always declare return types for methods, especially when defining methods for a public API.
尽管将各种不同的声明类型和权限定义为标识模型的一部分,但仍可以对系统进行扩展。
Although various claim types and rights are defined as part of Identity Model, the system is extensible.
还有一些事情,如重载方法,依然有很多未决的问题,尽管对一些小子集的调用,声明类型能处理绑定。
There are still unresolved issues for such things as overloaded methods, although for some small subset of calls the argument types can resolve the binding.
由于嵌套类型被视为是声明类型的成员,因此嵌套类型可以访问声明类型中的所有其他成员。
Because a nested type is treated as a member of the declaring type, the nested type has access to all other members in the declaring type.
Tiger让我们通过将类型参数作为方法声明的前缀,从而在单独的方法级别上声明类型参数。
Tiger allows us to declare type parameters at the level of individual methods by prefixing them to method declarations. For example, we could do so for our factory method make as follows.
如果编辑器或者验证过程发现引用的主体不是已声明的类型(或者已声明类型的专门化),处理程序就会报告错误。
When an editor or validating process follows the reference, and the referenced topic doesn't have the declared type (or a specialization from the declared type), the processor reports an error.
隐式类型系统一个较大的优点是,不需要为函数的参数声明类型,因为编译器会从传入的值推断出参数的类型。
One big advantage of type-inferred systems is that you don't need to declare the types of arguments to a function because the compiler infers them from the parameters you pass in.
Scala也允许在类中声明类型,正如我们在《第2章-打更少的字,做更多的事》中的“抽象类型和参数化类型”章节中所见。
Scala also allows types to be declared in classes, as we saw in the section called "Abstract types And Parameterized types" in Chapter 2, type Less, Do More.
这种方法适合声明类型系统并自从RPC时代就存在,而且我们发现它在现代静态类型语言中非常普遍,即‘接口(interface)’结构。
The approach is appropriate for declared type systems and has existed since RPCs, and we find it commonly in modern statically typed languages, namely the ‘interface’ construct.
这就是说,开发人员可以自由地声明这些类型的变量和参数。
What this means is that developers are free to declare variables and parameters of these types.
注意:请注意这个脚本的类型声明。
如果类型声明失败,那么我们也会失败。
如果元素声明具有类型替换,那么将按照在模式中指定的顺序进行计算。
If an element declaration has type alternatives, they are evaluated in the order that they were specified in the schema.
值得仔细查看一下文档类型声明的内容。
The document type declaration contents are worth looking at in detail.
注意,在这个方法上,以及任何其他方法上,不需要声明返回类型。
Notice that on this method, as well as all of the others, you do not need to declare a return type.
变量可以声明为xml类型。
还可以将它们声明为XML类型。
在声明数据类型为XML时,不指定长度。
注释是可以添加到代码中的修饰符,可以用于包声明、类型声明、构造函数、方法、字段、参数和变量。
Annotations are modifiers you can add to your code and apply to package declarations, type declarations, constructors, methods, fields, parameters, and variables.
在客户端和服务器之间传递的参数和结果类型可以包括在组件的存储模型中声明的类型。
The parameter and result types that pass between client and server can include types declared in the component's storage model.
然后遍历元素声明的代替链或类型层次结构,以决定元素声明是否满足代替或类型衍生要求。
They then traverse a substitution chain of element declarations or a type hierarchy to determine whether the element declaration satisfies the substitution or type derivation requirements.
应用推荐