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/Model/Dice/Faces/Face.cs

32 lines
527 B

using System;
namespace Model.Dice.Faces
{
public abstract class Face
{
public string StringValue { get; protected set; }
}
public abstract class Face<T> : Face, IEquatable<Face<T>>
{
public T Value { get; protected set; }
protected Face(T value)
{
Value = value;
StringValue = value.ToString();
}
public bool Equals(DiceGroup other)
{
return StringValue == other.Name;
}
}
}