I am very new to .NET, used to working in PHP. I need to iterate via foreach through a dictionary of objects. My setup is an MVC4 app.
foreach
The Model looks l
It depends on what you are after in the Dictionary
Models.TestModels obj = new Models.TestModels(); foreach (var keyValuPair in obj.sp) { // KeyValuePair } foreach (var key in obj.sp.Keys) { // Int } foreach (var value in obj.sp.Values) { // dynamic }