Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created November 2, 2011 20:58
Show Gist options
  • Select an option

  • Save einarwh/1334890 to your computer and use it in GitHub Desktop.

Select an option

Save einarwh/1334890 to your computer and use it in GitHub Desktop.
A Pix-It Pixel.
public class Pixel
{
private readonly int _x;
private readonly int _y;
public Pixel(int x, int y)
{
_x = x;
_y = y;
}
public int X
{
get { return _x; }
}
public int Y
{
get { return _y; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment