C#: How to remove items from the collection of a IDictionary<E, ICollection<T>> with LINQ?
- by Rosarch
Here is what I am trying to do:
private readonly IDictionary<float, ICollection<IGameObjectController>> layers;
foreach (ICollection<IGameObjectController> layerSet in layers.Values)
{
foreach (IGameObjectController controller in layerSet)
{
if…