Any user-defined struct type that contains fields of unmanaged types only.
仅包含非托管类型的字段的任何用户定义的结构类型。
The default, zero-initializing constructor of a struct type may only be used if all the fields of the struct type admit default initialization
结构类型的默认零初始化构造函数只能在结构类型的所有字段都承认默认初始化时使用
Specify table name, or if struct pointer is passed into the name is extract from struct type name by IMapper conversion policy
传入表名称或者结构体指针,如果传入的是结构体指针,则按照IMapper的规则提取出表名
The type of a field using the 'DefaultValue' attribute must admit default initialization, i.e. have 'null' as a proper value or be a struct type whose fields all admit default can use 'DefaultValue(false)' to disable this check
This type is not a record type. Values of class and struct types must be created using calls to object constructors.
此类型不是记录类型。必须使用对对象构造函数的调用来创建类和结构类型的值。
Records, union, abbreviations and struct types cannot have the 'AllowNullLiteral' attribute
记录、联合、缩写词和结构类型不能具有"AllowNullLiteral"特性
Two POD-struct types are layout-compatible if they have the same number of nonstatic data members, and corresponding nonstatic data members (in order) have layout-compatible types.
If you need to print values of type T as well as pointers to T, the receiver for String must be of value type; this example used a pointer because that's more efficient and idiomatic for struct types.
(如果你需要像指向 T 的指针那样打印类型 T 的值, String 的接收者就必须是值类型的;上 面的例子中接收者是一个指针, 因为这对结构来说更高效而通用。
Now in our Go application let's create the struct types matching the types of the ERC-20 event log signature
现在在我们的Go应用程序中,让我们创建与ERC-20事件日志签名类型相匹配的结构类型:
Struct types cannot contain abstract members
结构类型不能包含抽象成员
Struct types are always sealed
总是密封结构类型
expected a class, struct, or union type
应为类、结构或联合类型
Struct are Value type and are stored on stack, while Class are Reference type and are stored on heap.
下面这张图演示了调用栈和本地变量存放在线程栈上,对象存放在堆上。
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.