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