LinkedList<int> a = new LinkedList<int>();
a.AddLast(1);
foreach(int i in a){
}
A window pops up at compilation because of the foreach statement. But then even the foreach is removed, NinjaTrader cannot compile the strategy. Only a restart can solve this problem.
Here's what I don't understand:
1) foreach works well in .NET on LinkedList, why not in NinjaTrader?
2) why I have to restart NinjaTrader because of a bug or mis-use of keywords in my program? (If Visual Studio .NET does this, I'd short MSFT!)


Comment