4 <p>A struct is a data type that can contain fields, constants, and methods.</p>
5 <section id="declaration">
6 <h>Struct declarations</h>
7 <p>The simplest struct declaration looks like this:</p>
12 <p>You may optionally specify an accessibility modifier. Structs support <code>public</code> and <code>private</code> accessibility and default to private if you don't specify one. Public structs may be accessed from outside the library or application they are defined in.</p>
14 public struct StructName {
17 <p>You may optionally prefix the struct name with a namespace name. This places the struct in the specified namespace without the need for a separate namespace declaration.</p>
19 struct NamespaceName.StructName {
27 <section id="methods">
31 <section id="properties">