18.2 Struct members

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)