예제 #1
0
    public static Card GetCardById(string id)
    {
        Card card = AllCards.ToList().FirstOrDefault(c => c.name == id);

        if (card == null)
        {
            throw new Exception("Card " + id + " does not contains in all cards!");
        }
        return(card);
    }