If I have an Effect
collection that's IEnumerable<Effect>,
how do I set their .Name property based on their location in the collection?
So in the end, I just want them to be renamed starting from 1 to n.
<inside the collection>
effectInstance1.Name = Effect 1;
effectInstance2.Name = Effect 2;
effectInstance3.Name = Effect 3;
...
Is this possible with Linq?