The members of a struct consist of the members introduced by its
struct-member-declarations and the
members inherited from the type System.ValueType.
struct-member-declarations:
struct-member-declaration
struct-member-declarations struct-member-declaration
struct-member-declaration:
constant-declaration
field-declaration
method-declaration
property-declaration
event-declaration
indexer-declaration
operator-declaration
constructor-declaration
static-constructor-declaration
type-declaration
Except for the differences noted in §18.3, the descriptions of class
members provided in §17.2 through
§17.11 apply to struct members as well.
struct-member-declarations and the
members inherited from the type System.ValueType.
struct-member-declarations:
struct-member-declaration
struct-member-declarations struct-member-declaration
struct-member-declaration:
constant-declaration
field-declaration
method-declaration
property-declaration
event-declaration
indexer-declaration
operator-declaration
constructor-declaration
static-constructor-declaration
type-declaration
Except for the differences noted in §18.3, the descriptions of class
members provided in §17.2 through
§17.11 apply to struct members as well.
本文详细解析了结构体成员的构成,包括直接声明的成员和从System.ValueType类型继承的成员。探讨了各种成员声明如字段、方法、属性等,并强调了它们与类成员之间的相似之处。
2320

被折叠的 条评论
为什么被折叠?



