Skip to content

Commit 59ffbee

Browse files
committed
Added constructors for shorter instantiation of the Field class
1 parent 1515541 commit 59ffbee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • src/Codebreaker.ViewModels/Models

src/Codebreaker.ViewModels/Models/Field.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
/// </summary>
66
public partial class Field : ObservableObject
77
{
8+
public Field()
9+
{
10+
}
11+
12+
public Field(string? color, string? shape)
13+
{
14+
Color = color;
15+
Shape = shape;
16+
}
17+
818
/// <summary>
919
/// The selected color for this field.
1020
/// </summary>

0 commit comments

Comments
 (0)