The selected user-defined conversion is then used to convert the initializer expression into the object being initialized.
然后用选取的用户定义转换,转换初始化器表达式为正在初始化的对象。
Member '|1' cannot be initialized in an object initializer expression because it is not a field or property.
无法在对象初始值设定项表达式中初始化成员"|1",因为它不是一个字段或属性。
The compile - time type of the initializer expression cannot be the null type.
在编译时刻构造者表达式的类型不能为null类型。
if the initializer is a prvalue expression whose type is the same class as T (ignoring cv-qualification), the initializer expression itself, rather than a temporary materialized from it, is used to initialize the destination object: see copy elision
若初始化器为纯右值 表达式,而其类型与 T 为相同的类(忽略 cv 限定 ) , 则用初始化器表达式自身,而非从它实质化的临时量,初始化目标对象:参阅复制消除
Multiple initializations of '|1'. Fields and properties can be initialized only once in an object initializer expression.
多次初始化"|1"。在对象初始值设定项表达式中,只能对字段和属性进行一次初始化。
'%$pS': member of non-class type requires single initializer expression
"%$pS": 非类类型的成员要求单一的初始值设定项表达式
If copy-initialization of an object of class type requires that a user-defined conversion function is called to convert the initializer expression of type cv S to the type cv T of the object being initialized, the following functions are candidate functions: all converting constructors of T the non-explicit conversion functions from S and its base classes (unless hidden) to T or class derived from T or a reference to such.
if the initializer is a prvalue expression whose cv-unqualified type is the same class as T, the initializer expression itself, rather that a temporary materialized from it, is used to initialize the destination object: see copy elision
object 是一个左值表达式,它的类型是T T 的基地,是同样或更小的品种合格的,然后引用绑定的左值或基类的子对象的对象标识的对象. 原文:
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.