나는 사전vb.net에서 Dictionary를 어떻게 반복 할 수 있습니까?
Dim ImageCollection As New Dictionary(Of ConvensionImages, Integer)
을 만들고 난
For Each dr As DataRow In dt.Rows
Dim obj As New ConvensionImages
obj.ImageID = dr("ID")
obj.Name = dr("Name")
obj.Description = dr("Description")
obj.CategoryID = dr("CategoryID")
obj.CategoryName = dr("CategoryName")
obj.CategoryDescription = dr("CatDescription")
obj.EventID = dr("EventID")
obj.Image = dr("img")
obj.DownloadImage = dr("DownLoadImg")
ImageCollection.Add(obj, key)
key = key + 1
지금 내가이
루프에서 KeyValuePair의 정의를'(Of Integer, ConvensionImages) '로 변경해야합니다. – Heslacher
@Heslacher 당신의 권리입니다, 감사합니다. –