ECMA-334 C# Language Specification18.1: Struct declarations |
A struct-declaration
is a type-declaration
(16.5) that declares a new struct:
attributes
opt struct-modifiers
optstruct identifier
struct-interfaces
opt struct-body
;
optA struct-declaration
consists of an optional set of attributes (24), followed by an optional set of struct-modifier
s (18.1.1), followed by the keyword struct and an identifier that names the struct, followed by an optional struct-interfaces
specification (18.1.2), followed by a struct-body
(18.1.3), optionally followed by a semicolon.
In This Section: