I just saw an SO question about the System.Collections.ConcurrentBag<T>
class, and I've seen the ViewBag
property of the Controller
in ASP.NET MVC. In my experience, I've learned that it's easier to use people's code if you understand what exactly they were getting at in writing it. I think its pretty intuitive as to what a List<T>
or a Dictionary<TKey,TValue>
or a ReadOnlyCollection<T>
are meant to represent. A Bag
on the other hand is not so intuitive.
So, my question is: What is this Bag
metaphor meant to represent, specifically with respect to the .NET framework?