I currently wrote a custom event handler. My question deals with the
TriggerCustomEvent(CustomEvent customEvent, int barsIndex, object state)
Can you please clarify the nature of the state object. I have tried using an object array, and i have tried isung a strongly-typed list. In both cases the issue seemed to be that indexing was not supported. I have even tried using the ElementAt method with the list but not extension method of that type was provided. Clearly there are some severe restrictions on the nature of the object. Can you please suggest a way to pass more than a simple refernce type as the state? Thank you.
Comment