你也希望根据那些特性打开新的推断特性的选项,这允许编译器通过估计右值表达式去推测出局部变量的申明类型。
You'll also want to turn on the new Option infer feature. This allows the compiler to infer local variable type declarations by evaluating the right-hand side of the expression.
W3CXMLSchema真正出色的地方是在表达属性值和元素内容的类型约束上。
The place where W3C XML Schemas really shine is in expressing type constraints on attribute values and element contents.
如果没有XPath表达式的值是true,那么选择默认的类型定义(xs:string)。
If none of the XPath expressions evaluate to true, the default type definition (xs: string) is selected.
如果所有XPath表达式的值都不是true,那么将选择默认类型定义作为元素的type。
If none of the XPath expressions evaluate to true then the default type definition is selected as the type for the element.
它允许模式作者在元素声明中根据XPath表达式的值指定类型替换。
This allows the schema author to specify type substitutions on an element declaration which are selected based on the evaluation of XPath expressions.
如前所述,每个查询表达式都是泛型的,以表示表达式计算的值的类型。
As I mentioned earlier, every query expression is generically typed to denote the type of the value the expression evaluates to.
类型参数就是表达式要计算的值的类型。
The type argument is the type of the value the expression evaluates to.
此例中显示了两种类型的用户属性:静态字符串,以及从入站消息中取得其值的XPath表达式。
In this example, two types of user property are shown: a static string, and an XPath expression that takes its value from the inbound message.
使用基于olap或dmr的包时,如果报告包含比较不同数据类型的值的表达式,那么以dynamicQueryMode执行报告将生成以下错误消息。
When using OLAP or DMR-based packages, reports with expressions that compare values with different data types will produce the following error in Dynamic Query mode.
如果类型属性的值不是这三个值,前三个类型替换的XPath表达式将计算为false。
If the type attribute has none of these values, the XPath expressions for the first three type alternatives will evaluate to false.
该参数告诉 XPath引擎期望表达式返回什么类型的值。
This argument indicates to the XPath engine what type to expect as the expression's return value. The XPathConstants class defines several possible values
带有select表达式(返回多个值)的xsl:sort报告类型错误(XSLT 1.0只能按照文档顺序选择第一个值。)
Getting a type error where XSL: sort with a select expression obtains more than one value (XSLT 1.0 just selected the first value in document order.)
这些类型替换将依次执行计算,直到其中一个XPath表达式的值为true(如果值均不为true,则选择默认的类型定义)。
The type alternatives are evaluated in order until one of the XPath expressions evaluates to true (or, if none evaluate to true, the default type definition is chosen).
这些语句也规定程序员可以选择的变量与参数种类,以及当一个表达式使用过程或函数时代码将返回的值的类型。
These statements also define the kinds of variables and parameters the programmer can choose and the type of value that the code will return when an expression accesses the procedure or function.
串的转换先计算所包括的表达式表的值,然后按照其结果类型所特定的规则转换其结果对象为字符串。
A string conversion evaluates the contained expression list and converts the resulting object into a string according to rules specific to its type.
变量的值是一个对象,可以是任何表达式结果类型,也可以这里没有说明的附加类型。
The value of a variable is an object, which can be of any of the types that are possible for the value of an expression, and may also be of additional types not specified here.
一个右值表达式的动态类型,就是它的静态类型。
The dynamic type of an rvalue expression is its static type.
对于其他对象,以访问这些对象的表达式(章节5)的类型来决定如何解释它们所存放的值。
For other objects, the interpretation of the values found therein is determined by the type of the expressions (clause 5) used to access them.
一般而言,XML查询表达式的结果可由异构的元素序列、属性和所有混合类型的原始值构成。
In general, the result of an expression in an XML query may consist of a heterogeneous sequence of elements, attributes, and primitive values, all of mixed type.
求值的表达式的数据类型通常应与为相应形参定义的数据类型相匹配,并且在任何情况下,该表达式值都必须可转换为此形参类型。
The data type of the evaluated expression should typically match the data type defined for the corresponding parameter, and in any case it must be convertible to the parameter type.
属性值、项类型值和元数据值设置为扩展的表达式。
The property values, item type values, and metadata values are set to the expanded expressions.
由标识符和值组成的对,其中值可为任何类型,可以通过表达式来规定并可使用联结标识符来访问。
A pair comprising an identifier and a value, where the value may be of any type, may be specified by an expression, and is accessed through use of the binding identifier.
该方法首先时每种结构类型的产品建立标准模型,每个标准模型描述了相应类型的产品的典型信息;在这里,标准模型的各个属性值均以模糊集合的形式表达。
A standard model of each kind of structure of relay was built to describe its corresponding products typical information, whose attribute values were presented in terms of fuzzy sets.
查询表达式经常使用匿名类型,而这些类型只能使用对象初始值设定项进行初始化。
Query expressions make frequent use of anonymous types, which can only be initialized with an object initializer.
在未检查的上下文中,如果表达式产生的值在目标类型范围之外,并不会标记溢出。
In an unchecked context, if an expression produces a value that is outside the range of the destination type, the overflow is not flagged.
默认情况下,如果表达式仅包含常数值,且产生的值在目标类型范围之外,则它会导致编译器错误。
By default, an expression that contains only constant values causes a compiler error if the expression produces a value that is outside the range of the destination type.
如果值大于值类型的最大值,数值表达式可能导致溢出。
Numeric expressions may cause overflows if the value is larger than the maximum value of the value's type.
如果值大于值类型的最大值,数值表达式可能导致溢出。
Numeric expressions may cause overflows if the value is larger than the maximum value of the value's type.
应用推荐