C#
C#

help

Root Question Message

Gladiator
Gladiator12/12/2022
❔ Generally, how do you implement a readonly struct?

Hi. Generally, how do you implement a readonly struct? I mean define readonly fields or getter?
What is the difference? What about defensive copy?
Suppose that struct type contains primitive value types like int, float and also other struct types
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy