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
public class TestModels { public Dictionary sp = new Dictionary(); public TestModels() { sp.Add(0, new {name="Test One", age=5}); sp.Add(1, new {name="Test Two", age=7}); } }