Skip to content

Instantly share code, notes, and snippets.

@soltys
Created May 11, 2012 17:35
Show Gist options
  • Save soltys/2661212 to your computer and use it in GitHub Desktop.
Save soltys/2661212 to your computer and use it in GitHub Desktop.
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