diff --git a/Sources/MaSoluction/Model/Die.cs b/Sources/MaSoluction/Model/Die.cs index 57feaea..b385d66 100644 --- a/Sources/MaSoluction/Model/Die.cs +++ b/Sources/MaSoluction/Model/Die.cs @@ -1,4 +1,6 @@ -namespace Model +using System.Diagnostics.CodeAnalysis; + +namespace Model { public abstract class Die { @@ -13,14 +15,14 @@ return name; } - set - { + protected set //pour que je puissse l'utilser sur la classe file + { if (string.IsNullOrWhiteSpace(value)) { throw new ArgumentException("Enter a name", nameof(value)); } name = value; - } + } } public Die(String name) { @@ -28,6 +30,6 @@ } public abstract int RandomFace(); - + } } \ No newline at end of file