What could cause “Destination array was not long enough” during List.Add in a single thread?
- 阅读更多 关于 What could cause “Destination array was not long enough” during List.Add in a single thread?
问题 I have a List of objects that I'm adding to in nested foreach loops. the operation is synchronous (or maybe I don't understand lambdas as well as I think I do) and single-threaded and the list isn't unreasonably big. I'm at a total loss for what could be causing this exception. public string PromotionSpecificationIdGuid { get; set; } public virtual List<ElementInstance> ElementInstances { get; set; } public void UpdateInstanceGraph(OfferingInstance parentData, OfferingInstance