は私が辞書vb.netで辞書をどのように反復することができますか?
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あなたの権利はありがとう –