Introduction
Readonly properties help you protect data from being changed by mistake. They make sure some values stay the same after you set them.
When you want to keep some data safe from accidental changes in your program.
When you design objects that should not change after creation, like user IDs or configuration settings.
When you share data between parts of your program and want to avoid bugs from unexpected updates.