Пример #1
0
 public override string ToString()
 {
     if (m_suspect != Suspect.None)
     {
         return(EnumConversion.Convert(m_suspect));
     }
     if (m_weapon != Weapon.None)
     {
         return(EnumConversion.Convert(m_weapon));
     }
     if (m_room != Room.None)
     {
         return(EnumConversion.Convert(m_room));
     }
     throw new Exception("Card doesn't have any valid values");
 }
Пример #2
0
 public override string ToString()
 {
     return(EnumConversion.Convert(Suspect)
            + " " + EnumConversion.Convert(Weapon)
            + " " + EnumConversion.Convert(Room));
 }