public static List <string> GetAllItem(ClueType clueType) { return(clueType.GetType() .GetProperties() .Select(field => (string)field.GetValue(clueType)) .ToList()); }
public Clue() { clueLists = new Dictionary <Enum, List <string> > { { CardType.Suspect, ClueType.GetAllItem(new Suspect()) }, { CardType.Place, ClueType.GetAllItem(new Place()) }, { CardType.Weapon, ClueType.GetAllItem(new Weapon()) } }; }