Skip to content

Commit 04bd041

Browse files
RexJaeschkejskeet
authored andcommitted
Create RectangleStruct.cs
1 parent 47d63dd commit 04bd041

File tree

1 file changed

+22
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)