Hi,
I have a class which stores data collected by the asp.net webserver. It contains several properties like:
private string _actionName;
public string ActionName
{
get
{
if (_actionName == null)
_actionName = Request.Params["action_name"] != null
? Server.UrlDecode(Request.Params["action_name"])
: "";
return _actionName;
}
}
This class is serialized to a file. Basically the data collected by webserver is written to files. Later these files are read and deserialized and the properties data needs to be imported to database offline.
My question is whether the above code will serialize the properties correctly extracting data from query string and later when the data is deserialized the properties are correctly populated and returned?
I am using binary serialization.
Thanks in advance.