updated ReadOnlyCollection on Board.cs
continuous-integration/drone/push Build is passing Details

test_old_branch
Jules LASCRET 12 months ago
parent f248a2719e
commit 214a4faad7

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
@ -9,12 +10,11 @@ namespace QwirkleClassLibrary
{
public class Board
{
private List<Cell> cells;
public IReadOnlyCollection<Cell> ReadCells { get; private set; }
public ReadOnlyCollection<Cell> ReadCells => cells.AsReadOnly();
private readonly List<Cell> cells = new();
public Board()
{
cells = new List<Cell>();
for (int i = 0; i < 12; i++)
{

Loading…
Cancel
Save