logoalt Hacker News

contextfree11/08/20241 replyview on HN

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


Replies

skrebbel11/08/2024

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