Thursday, November 16, 2017

A struct is going to be mutable not immutable in C#.

This has a way around that. Basically you take in all parameters as settings at the constructor and then make the getsetters only expose getting. Simple types you don't make yourself like int and DateTime are immutable value types even if the structs you roll yourself are not.

No comments:

Post a Comment