The following code works.
List<Card> Cards = new List<Card>()
{
new Card("SA"),
new Card("HA"),
new Card("CA"),
new Card("DA"),
new Card("SK"),
new Card("S2"),
new Card("D2")
};
I would like to reduce the clutter so I'm looking for some thing like this
List<Card> Cards = new List<Card>()
{
new Card()
{
"SA", "HA", "CA", "DA", "SK", "S2", "D2"
}
};
I swear. I saw it somewhere but I just can't define it properly to google the answer.