Card myCardObject = new();Console.WriteLine(myCardObject.Deck[2]);
internal class Card{ public string[] Deck { get; private set; } = PopulateDeck(); private static string[] PopulateDeck() { int deckCounter = 0; string[] Values = { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A" }; string[] Suits = { " of Hearts", " of Diamonds", " of Clubs", " of Spades" }; string[] returnArray = new string[52]; for (int i = 0; i < Values.Length; i++) { for (int j = 0; j < Suits.Length; j++) { returnArray[deckCounter] = Values[i] + Suits[j]; deckCounter++; } } return returnArray; }}