OpenRA/OpenRA — pull request #5766 by RoosterDragon (2014-06-27 22:41:19+00:00)
Title: Make sprite frames read-only lists.

Changes ISpriteSource.Frames to be of type IReadOnlyList.

- Updated implementations to return a ReadOnlyList around an array (to reduce wasted memory from exposing lists or lazy enumerators around lists).
- Protect non-public ISpriteFrame classes by making them inner classes to prevent casting.
- Added an AsReadOnly extension method for lists.