logoalt Hacker News

contextfree • 11/08/2024 • 1 reply • view on HN

More precisely in C# a readonly field of a type can only be assigned to within that type's constructor.


Replies

skrebbel • 11/08/2024

Which means you can't have a partially instantiated object except while the constructor is running.