Exemplo n.º 1
0
 public static List <string> GetAllItem(ClueType clueType)
 {
     return(clueType.GetType()
            .GetProperties()
            .Select(field => (string)field.GetValue(clueType))
            .ToList());
 }
Exemplo n.º 2
0
 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()) }
     };
 }