在类声明中声明新的类初始值设定项。
Declares a new class initializer inside a class declaration.
匿名类型必须用对象初始值设定项加以声明。
Anonymous types must be declared with an object initializer.
数组初始值设定项也可以在调用函数中内联使用。
Array initializers may also be used inline for calling functions.
第二个声明会产生错误,因为它没有初始值设定项。
The second declaration yields an error because it does not have an initializer.
此错误指示您尝试在泛型类型中修改初始值设定项。
This error indicates that you tried to modify an initializer in a generic type.
可以配置缓存对象的刷新间隔,清单1中的示例将该值设定为了60秒。
The refresh interval for the cached object can be configured, and is set to 60 seconds in the example shown in Listing 1.
如果您需要有所区别,可以将一个不常用的值设定为预设值。
If you need to make this distinction, you can set an unlikely value as the default.
获取用于初始化新创建对象的集合成员的元素初始值设定项。
Gets the element initializers for initializing a collection member of a newly created object.
数值初始值设定项现在可支持类型引用,这样大大减少了代码量。
Array initializers now support type inference, significantly reducing the amount of code that needs to be typed.
如果异常是从静态字段初始值设定项引发的,也存在同样的规则。
The same rules hold true if the exception is thrown from a static field initializer.
注意,我们已经指定了我们只需要那些‘id’值设定为‘101’的行。
Note that we've specified that we only want the row that has the value of the 'id' field set to '101'.
在四视野X线影像增强器里也可能将U 1电压值设定为零左右。
It is also possible to set U1 voltage to a value near zero, for quadruple-field XRII.
此程序还演示了静态字段初始值设定项如何在显式类型构造函数中的代码之前执行。
This program also demonstrates how static field initializers execute before the code inside an explicit type constructor.
在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。
When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.
编译器使用变量的初始值设定项,在编译时确定变量的类型,以生成早期绑定代码。
The compiler USES a variable's initializer to determine the variable's type at compile time to produce early-bound code.
多层前馈人工神经网络在装备故障诊断中的应用含设备运行状态特征值设定和故障判定。
The application of multi-layer feed-forward artificial neural network in fault equipment diagnosis includes feature value setting of equipment operation condition and fault judgment.
正如您在前面看到的那样,静态字段初始值设定项的代码在隐式类型构造函数的内部执行。
As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.
在标准c中,这种作法的效果是禁止将线程本地变量的地址用作对象或指针的初始值设定项。
In standard c, the effect of this is to forbid the use of the address of a thread local variable as an initializer for an object or pointer.
对于要放置到设计图面的具有默认初始值设定项的对象而言,通过工厂显式创建项才是必要的。
Explicit item creation through the factory is important for objects to be placed on the design surface that have default initializers.
用于声明匿名类型实例的格式类似于在使用对象初始值设定项声明命名类型实例时使用的格式。
The format you use to declare an instance of an anonymous type resembles the format you use when you declare an instance of a named type by using an object initializer.
要使用动态字典,请创建会话对象并将其传递到二进制xml读取器或编写器的构造函数或初始值设定项。
To use them, you create a session object and pass it to the constructor or initializer for a binary XML reader or writer.
通常来说,该元素值设定的宽度比我们需要的宽度要宽很多,所以还需使用级联样式表来设置该元素值的宽度。
Normally, this would render much wider than you need it, so you'll then use Cascading Style Sheets to set the width of its value.
第二种情况是,类型具有一个用于静态字段的初始值设定项,在这种情况下,编译器会在后台添加类型构造函数。
The second scenario is when a type has a initializer for a static field, in which case the compiler adds a type constructor behind the scenes.
通过使用关键字With和From,有人可能会假定VB能克服这方面的限制,把两个初始值设定写在同一条语句中。
By using the keywords "With" and "From", one might assume that VB could overcome this limitation and combine the two in a single statement.
例如,如果将AUTO_MAINT的值设定为OFF,则其他所有自动维护参数的有效值均被视为OFF,无论它们的值是否被设定为ON。
For example, if you set AUTO_MAINT to a value of OFF, all other automatic maintenance parameters are considered to have an effective value of OFF, regardless of whether or not they are set to on.
伴随。NET 4.0和VisualStudio10的发布,VisualBasic 10添加了集合与数组初始值设定项的支持。
Visual Basic 10, to be released with.net 4.0 and Visual Studio 10, is adding support for collection and array initializers.
这个显示屏的系统设定值是256色。
此方法可以帮助您为特定的环境和工作负载设定最佳值。
This approach helps you set the optimal values for your specific environment and workload.
这些事件处理器可以执行任何数量的任务,包括对某项服务的调用,对一个类中某个值的设定,对一个类中某个方法的调用,或者分发另一个事件。
These handlers can perform any number of tasks, including calling a service, setting a value on a class, calling a method on a class, or dispatching another event.
“FromMessage”的实现简单地创建了一个TradeRequest对象,利用消息中获取的值来设定它的属性。
The "FromMessage" implementation simply creates a TradeRequest object and sets its properties using values obtained from the message.
应用推荐