Ambiguity error? Please help me understand…

Hi all, I have already made it through this and this, but still seem stuck. Why can't I enum my value inside of it's own class? I believe I am messing up on the getters and setters. Is that correct?

namespace Game { class Race { public Race Race { get; set; } public enum Race { Human, Elf, Orc } bool IsHuman(Race r) { switch(r) { case Race.Human: return true; default: return false; } } } } 

by blackcamo via /r/csharp

Leave a Reply