LANGUAGE
struct
Defines a value type; assignment copies field values, not the entire object graph.
Formal Syntax & Structure
csharp syntaxcsharp
struct Point { public int X; }Working Example
Example Snippetcsharp
struct Point { public int X; }Defines a value type; assignment copies field values, not the entire object graph.
struct Point { public int X; }struct Point { public int X; }