static void Main(string[] args) { var creatures = new Creature[100]; foreach (Creature c in creatures) { c.X++; } var creatures2 = new Creatures(100); foreach (Creatures.CreatureProxy c in creatures2) { c.X++; } }
public CreatureProxy(Creatures creatures, int index) { _creatures = creatures; _index = index; }