This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Models | |
{ | |
public class Alignment | |
{ | |
public static readonly Alignment Good = new Alignment("Good"); | |
public static readonly Alignment Neutral = new Alignment("Neutral"); | |
public static readonly Alignment Evil = new Alignment("Evil"); | |
private readonly string _value; | |
private Alignment(string value) | |
{ | |
_value = value; | |
} | |
public override string ToString() | |
{ | |
return _value; | |
} | |
} | |
} | |
namespace Models | |
{ | |
public interface IPerson | |
{ | |
string Name { get; set; } | |
Alignment Alignment { get; } | |
string Gloat(); | |
} | |
} |