I am trying to iterate through a list of objects and only change the ones that match a particular type. My current code looks like this. (Platform is an extension of Entity, and entities is a list of type Entity)
foreach (Platform p in entities.OfType<Platform>) { p.doStuff() }
I am getting the error "foreach cannot opperate on a 'method group'" Thanks for anyone's help. :)