I am developing quit complex project. It consists of 2 parts
1. Golem (Folder on left) - which is Golem : Strategy object
2. GolemApp (folder on left).
In Golem I want to call o.OnStateChange -> which represents OnStateChange in classic strategy. In right panel you can see, how this method looks like. You can mention variable _s, which is Golem Strategy. and the issue is, when I try to call
_s.AddDataSeries(ins.FullName, periodType, serie.barsPeriod.value);
It crashes because of protection of AddDataSeries method. Is there a way to call this method the way i show on the right panel?
The only solution is for me now is to keep the foreach cycle inside OnStateChange of Golem Strategy, but this suxx... GolemApp will be compiled to dll and user should not access it. In golem strategy he should call only:
protected override void OnStateChange() { o.OnStateChange(this); }
Can anyone guide me?

Comment