class DataBase
{
public string Name { get; set; }
public double Price { get; set; }
public double Quantity { get; set; }
}
public static void GetProdInfo(List<DataBase> dataInfo)
{
foreach(var info in dataInfo)
{
Console.WriteLine(info);
}
}
why i am not getting the data from DataBase like name price quant etc, i'm getting MenuDatabaseUpdated.DataBase something like that, help me please, how do i print the components of DataBase? <3 i've tried to write Object instead of var but the answer is the same :(