4
C#遍历类属性
我目前正在设置类对象的所有值Record。 这是我现在用来逐个属性填充记录的代码。 // Loop through each field in the result set for (int i = 0; i <= resultItems.Length; i++) { Record newRecord = new Record() { itemtype = resultItems[i - (fieldCount - 0)], itemdesc = resultItems[i - (fieldCount - 1)], prodcode = resultItems[i - (fieldCount - 2)], proddesc = …
118
c#
properties
loops