Object initializers, which ease construction and initialization of objects.
对象初始化器,简化了对象的构造和初始化。
Object initializers, which ease construction and initialization of objects.
简化了对象的构造和初始化。
Object initializers, which ease construction and initialization of objects.
对象构造者,使得构造和初始化对象更容易。
The toolbox is intended to contain all the evolutionary tools, from the object initializers to the evaluation operator.
工具箱是来包含所有进化工具的,从对象的初始化到评价操作算子。
While the above examples are interesting, you probably don't want to keep using object initializers to define individual persons.
虽然上面这个例子非常有趣,但是您可能不希望一直使用对象初始化来定义个别某些人。
You can use object initializers to initialize type objects in a declarative manner without explicitly invoking a constructor for the type.
以声明方式初始化类型的对象,而无需显式调用该类型的构造函数,您可以使用对象初始值设定项。
The compiler processes object initializers by first accessing the default instance constructor, and then by processing the member initializations.
编译器进程的第一个访问默认实例的构造函数,然后通过处理成员初始化对象初始值设定项。
By combining object initializers and type inference, we can create simple data-storage objects without needing to define the corresponding class or struct. Listing 5-24 shows an example.
通过结合对象初始化器和类型接口,我们可以生成一个简单的数据存储对象,而不需要定义相应的类或结构。清单5 - 24演示了一个例子。
Instance initializers are executed only if an object is constructed.
只有当对象创建后,实例的初始化才开始执行。
Implicitly-typed arrays are usually used in query expressions together with anonymous types and object and collection initializers.
隐含型别阵列通常是在查询运算式中与匿名型别及物件和集合初始设定式一起使用。
Gets the element initializers for initializing a collection member of a newly created object.
获取用于初始化新创建对象的集合成员的元素初始值设定项。
Gets the element initializers for initializing a collection member of a newly created object.
获取用于初始化新创建对象的集合成员的元素初始值设定项。
应用推荐