Skip to content

Commit b50dbe9

Browse files
RexJaeschkejskeet
authored andcommitted
Create PointStruct.cs
1 parent 04bd041 commit b50dbe9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
struct Point
2+
{
3+
int x, y;
4+
5+
public Point(int x, int y)
6+
{
7+
this.x = x;
8+
this.y = y;
9+
}
10+
11+
public int X
12+
{
13+
get { return x; }
14+
set { x = value; }
15+
}
16+
17+
public int Y {
18+
get { return y; }
19+
set { y = value; }
20+
}
21+
}

0 commit comments

Comments
 (0)