private void ClearOrders() { if (this.orders.Count > 0) { foreach (var current in this.orders) this.ordersByInstrumentId[current.InstrumentId].Remove(current); this.orders.Clear(); } }