Too Long; Didn't Read
In object-oriented and functional programming, an object cannot be modified after it is created. Immutable objects are also useful because they are inherently thread-safe. The question of whether or not DTOs should be immutable is a frequent question. Let’s dive in and see how immutability could be implemented with C#. We can move farther and use some syntactic sugar and use auto-properties to minimize the code. We create a simple object that represents a person and define a couple of properties.