I have a following issue with property which is of my custom type (some class with its own properties - I have its custom converter created, it could be serialized into workspace file like a charm).
When I have used this property in indicator, I'm not able to preserve this indicator for example when data provider is connected. Indicator goes away with an error this property couldn't be loaded and/or implementation has changed. Which is a bull****, of course.
I found somewhere in here, the indicator's "Clone()" implementation is one big mess where a new instance is created using parameterless contructor and after then all available properties are just copied. Which is something really, really bad.
However, I think this causes my issue and I don't know how to handle this correctly.
I have tried also to override a Clone() method to handle this property correctly but I wasn't succesful. Maybe because of the fact, I use in my indicator some (not public) calculation engine class which takes the indicator itself in its constructor parameter. This means, this object can't be created during indicator cloning process as its property is unavailable and it doesn't use parameterless contructor as it has none.
Could you please help me how can I solve this issue?
Comment