fix code smelt
continuous-integration/drone/push Build is passing Details

test_old_branch
Jules LASCRET 11 months ago
parent 69f9b3d404
commit 652dd53046

@ -1,26 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QwirkleClassLibrary
{
public struct Score
{
private int PlayerScore { get; set; }
public string PlayerTag { get; }
public Score(Player? p)
{
if (p == null)
{
throw new NullReferenceException();
}
else
{ PlayerScore = 0;
PlayerTag = p.NameTag;
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QwirkleClassLibrary
{
public struct Score
{
private int PlayerScore { get; set; }
public string PlayerTag { get; }
public Score(Player? p)
{
if (p == null)
{
throw new NullReferenceException("player");
}
else
{ PlayerScore = 0;
PlayerTag = p.NameTag;
}
}
}
}

Loading…
Cancel
Save