Implementing IXmlSerializable in readonly structs

added by DotNetKicks
3/5/2018 1:51:45 PM

2 Kicks, 265 Views

Background There are three things you need to know to start with: Operations on read-only variables which are value types copy the variable value first. I've written about this before on this blog. C# 7.2 addresses this by introducing the readonly modifier for structs. See the language proposal for more details.