As described above, the for and foreach blocks of code below are
functionally equivalent.
[C#]
Metadata metadata = new Metadata(Server.MapPath("rez/iptc2.jpg"));
foreach (var iptc in metadata.Iptc)
Response.Write(iptc.Text + "<br>");
for (int i = 0; i < metadata.Iptc.Count; i++)
Response.Write(metadata.Iptc[i].Text + "<br>");