A struct-declaration may optionally include a sequence of struct modifiers:
struct-modifiers:
struct-modifier
struct-modifiers struct-modifier
struct-modifier:
new
public
protected
internal
private
It is a compile-time error for the same modifier to appear multiple times in a struct declaration.
The modifiers of a struct declaration have the same meaning as those of a class declaration (§10.1).
The partial modifier indicates that this struct-declaration is a partial type declaration. Multiple partial struct declarations with the same name within an enclosing namespace or type declaration combine to form one struct declaration, following the rules specified in §10.2.
A struct declaration may include a struct-interfaces specification, in which case the struct is said to directly implement the given interface types.
struct-interfaces:
: interface-type-list
Interface implementations are discussed further in §13.4.
Do'stlaringiz bilan baham: |