对于那些只使用1到2个正则表达式的小型的应用程序,这意味着没有必要每次都创建一个Regex对象。
For those little utility applications that only use one or two expressions, this means explicitly creating a RegEx object is probably not necessary.
XPathExpression对象通过将XPath表达式的String表示传递给XPath的编译方法来创建。
XPathExpression objects are created by passing a String representation of the XPath expression into the compile method on XPath.
创建工厂之后,还需要从工厂转移到能够真正计算表达式并与XPath环境交互的对象。
Once you've created your factory, you need to move from it to an object that can actually evaluate expressions and interact with the XPath environment.
异常对象通过复制被抛出表达式的结果创建,该结果必须是可以复制的类型。
The exception object is created by copying the result of the thrown expression; that result must be of a type that can be copied.
如果使用对象表达式来最小化程序中创建的类型数目,您可以减少代码行数,并防止出现不必要的类型增殖。
If you use object expressions to minimize the number of types created in a program, you can reduce the number of lines of code and prevent the unnecessary proliferation of types.
若要避免创建新的命名类型所需的额外代码和开销,可以使用对象表达式。
You use object expressions when you want to avoid the extra code and overhead that is required to create a new, named type.
这个对象由throw创建,并被初始化为被抛出的表达式的副本。
This object is created by a throw, and is initialized as a copy of the expression that is thrown.
表示一个表达式,该表达式创建新对象并初始化该对象的一个属性。
Represents an expression that creates a new object and initializes a property of the object.
表示一个表达式,该表达式创建新对象并初始化该对象的一个属性。
Represents an expression that creates a new object and initializes a property of the object.
应用推荐