I have a strategy and I would like to persist Properties of that strategy so that the Properties remain the same after a Disable - Enable of the very same strategy.
As soon as I define a property as [Browsable(false)] this mechanism doesn't work any more.
I would consider this a bug, and the correct way to disable persistence would be the [XmlIgnore] attribute and not the [Browsable(false)] attribute.
The idea behind non - visible persistent properties is that one might persist hidden to the user state variables of the strategy in consecutive uses of the same strategy.
Please enlight me further or just fix it,
thank you
Andreas Langhoff
P.S. It looks like overriding Clone() one can fix the above behaviour, but shouldn't it work right from the beginning?
NOT working:, will work removing [Browsable(false)
[Browsable(false)]
public List<string> ExecTokens
{
get;
set;
}
Comment