struct
A small value type you define yourself.
A struct is a user-defined value type; readonly structs guarantee immutability.
Loading interactive…
Examples
struct Point { public int X; public int Y; }: assigning onePointto another copies both numbers.
See also