You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dice_App/Sources/MaSoluction/Model/Die.cs

33 lines
683 B

namespace Model
{
public abstract class Die
{
private String name ;
/// <summary>
/// Proprieté
/// </summary>
public string Name
{
get
{
return name;
}
set
{
if (string.IsNullOrWhiteSpace(value))
{
throw new ArgumentException("Enter a name", nameof(value));
}
name = value;
}
}
public Die(String name)
{
Name = name;
}
public abstract object RandomFace();
}
}