deserialization of a List<string> does not work
I have the property shown below in one of my custom activites.
When serializing a workflow into an XML file, then I see the List<string> as a comma separated list of strings in the XML file.
However, when I deserialize the workflow, the List<string> is not restored. Can anyone please explain, how custom properties can be restored on deserialization?
For example, do I need a special constructor pattern in my activity class to support deserialization of my custom properties?
--
publicstaticDependencyProperty PredicatesProperty =
System.Workflow.ComponentModel.DependencyProperty.Register(
"Predicates",typeof(List<string>),typeof(PanedActivity));
publicList<string> Predicates
{
get
{
return ((List<string>)(base.GetValue(PanedActivity.PredicatesProperty)));
}
set
{
base.SetValue(PanedActivity.PredicatesProperty,value);
}
}

