Ok, I\'m probably just having an epic fail here, but my mind wants to say this should work.
Assume DataProtect.DecryptData takes an encrypted string as input and a d
No, this is not possible using a constructor, you can't reassign this
.
Use a static method instead:
public static ArrivedDetails CreateFromString(string encrypted)
{
return DataProtect.deserializeXML(DataProtect.DecryptData(encrypted));
}
Call it:
ArrivedDetails details = ArrivedDetails.CreateFromString(encrypted);