Skip to content

Commit 717edcd

Browse files
committed
Replaced required keyword with ctor parameter
1 parent 0c3f6d6 commit 717edcd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • src/Codebreaker.ViewModels/Models

src/Codebreaker.ViewModels/Models/Game.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ public partial class Game(
66
string playerName,
77
DateTime startTime,
88
int numberCodes,
9-
int maxMoves) : ObservableObject
9+
int maxMoves,
10+
IDictionary<string, string[]> fieldValues) : ObservableObject
1011
{
1112
/// <summary>
1213
/// Gets the unique identifier of the game.
@@ -70,7 +71,7 @@ public partial class Game(
7071
/// <summary>
7172
/// A list of possible field values the user has to chose from
7273
/// </summary>
73-
public required IDictionary<string, string[]> FieldValues { get; init; }
74+
public IDictionary<string, string[]> FieldValues { get; init; } = fieldValues;
7475

7576
/// <summary>
7677
/// A list of moves the player made

0 commit comments

Comments
 (0)