i have struct like this :
public struct GoldAverages
{
public decimal Sell_GoldOunce;
public decimal Buy_GoldOunce;
public decimal Sell_SilverOunce;
public decimal Buy_SilverOunce;
public int Sell_Mazene;
public int Buy_Mazene;
public int Sell_Gram_18;
public int Buy_Gram_18;
public int Sell_Gram_24;
public int Buy_Gram_24;
}
How can i read my struct items one by one (by name of item and value) and put them into Lable.text
like this
GoldAverages Gold = new GoldAverages();
foreach (var item in Gold)
{
LblSummery.Text += item.name + " : " + item.value + "|";
}