Created
May 11, 2012 17:35
-
-
Save soltys/2661212 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PlatformsRow | |
{ | |
public PlatformsRow(bool[] platformSettings) | |
{ | |
if (platformSettings.Length != ROW_LENGTH) | |
{ | |
throw new ArgumentException(); | |
} | |
this.platformSettings = platformSettings; | |
} | |
private const int ROW_LENGTH = 5; | |
private readonly bool[] platformSettings = new bool[ROW_LENGTH]; | |
public bool this[int i] | |
{ | |
get { return platformSettings[i]; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment