Instance initializer (s) gets executed ONLY IF the objects are constructed.
实例初始化语句块只有在它建立后才会被执行。
The first set of enclosing braces delineates the construction of an anonymous inner class, and the second set delineates the instance initializer for the anonymous inner class.
第一组闭合括弧划定一个匿名内部类的构造,第二组划定匿名内部类的实例初始化语句块。
You should utilize the initializer syntax for both static and instance variables.
你应该在静态变量和实例变量上面利用初始化语法。
As with instance initialization, you can use the initializer syntax as an alternative to the static constructor.
和实例初始化一样,可以使用初始化器语法作为静态构造函数的变体。
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.
用于声明匿名类型实例的格式类似于在使用对象初始值设定项声明命名类型实例时使用的格式。
You can create an implicitly-typed array in which the type of the array instance is inferred from the elements specified in the array initializer.
您可以建立隐含型别的阵列,在其中阵列执行个体的型别是由阵列初始设定式中指定的项目推断。
It is not possible for an object or collection initializer to refer to the object instance being initialized.
对于某个对象或集合的构造者而言,引用该对象实例进行初始化是不可能的。
When you use an object initializer to create an instance of a named type, the default constructor for the class is called, followed by initialization of designated members in the order you specify.
当您使用物件初始设定式来建立具名型别的执行个体时,会呼叫类别的预设建构函式,接著按照您指定的顺序初始化指定的成员。
When you use an object initializer to create an instance of a named type, the default constructor for the class is called, followed by initialization of designated members in the order you specify.
当您使用物件初始设定式来建立具名型别的执行个体时,会呼叫类别的预设建构函式,接著按照您指定的顺序初始化指定的成员。
应用推荐