Lecture overview -- Keyboard shortcut: 'u'  Previous page: Examples of mutable structs in C# -- Keyboard shortcut: 'p'  Next page: Boxing and Unboxing -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Reference types, Value types, and Patterns - slide 14 : 29

Examples of immutable structs in C#
An example of immutable points in C# and functional programming style
The struct Point - immutable.
Application the struct Point - immutable.
Output from the application.

There is a misfit between mutable datatypes and use of value semantics

It is recommended to use structs in C# together with a functional programming style

Go to exercise
Are playing cards and dice immutable?