Created
November 2, 2011 20:58
-
-
Save einarwh/1334890 to your computer and use it in GitHub Desktop.
A Pix-It Pixel.
This file contains hidden or 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
| 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