Well, I probably just have an epic setback here, but my mind wants to say that this should work.
Suppose DataProtect.DecryptData takes an encrypted string as input and a decrypted string as output. Suppose that deserializeXML makes the corresponding object and returns it from a recently decrypted string.
So. Why is this not working?
class ArrivedDetails {
Gives an error
Cannot assign to '<this>' because it read only
In particular, how can I make this work? I essentially want to decrypt the serialized version of the XML object and then deserialize it inside the constructor.
I am open to βyou cannotβ (with an explanation), because I can put it in another place and just assign values, but my mind says something like this should be possible.
object c # serialization
dotalchemy
source share