What is the best way to print out a Dictionary, I created Currency class, it is as below
class Currency{
public string currency_code { get; set; }
public float unit { get; set; }
public string currency_name { get; set; }
public string currency_isim { get; set; }
public float forex_buying { get; set; }
public float forex_selling { get; set; }
public float banknote_buying { get; set; }
public float banknote_selling { get; set; }
}
Is there a way to automaticaly print the object ?
I want to print it out like if possible
Dictionary<string, Currency> dict = new Dictionary<string, Currency>();
.....
.....
add data to dict properly
.....
.....
dict.print();
I want it return a proper string which includes all the data of the object. how can I do that?