0
0
llucycodes42
The ImmutableObject class has a private readonly string _name field. A public Name property is defined which takes a function that will be called when the object is set. This function will set the _name field to the object's current name.
Shortcut: immutable
public class ImmutableObject
{
private readonly string _name;
public Name =>
public ( name)
{
= ;
}
}