public List<CardData> MyAddFunction()
{
var cardDataList = new List<CardData>();
cardDataList.Add(new CardData() { cardType = boxLine1, cardColor = randColor });
return cardDataList;
}
static void Main(string[] args){
this.cardDataList = MyAddFunction();
Console.WriteLine(this.cardDataList.FirstOrDefault().CardType);
}