I have a property defined as public bool? Enable{get; init}
in a record
. After the record
is created, I broke into VS debugger and tried editing its value. It gives the following error when doing so:
CS8852: Init-only property or indexer can only be assigned in object initializer...
Isnt the debugger supposed to edit in memory ? Why is this not the case.