Imagine, there is a class object, like a Customer Class object, and it has many properties…
And I have an array which has its data in a sequence.
I want to call a property in order the data has been given to the loop;
PS: the code below just a presentation and I don’t bet it is totally correct.
regards. bk
e.g;
foreach(FormValueData item in formValues){
kkRow."AccountNumber" = item.AccountNumber
}
If you want to loop through the properties on an object you can do this using reflection. Below is an extension method i wrote for copying the properties of an instance of one class to another instance aof the same class, it might not be exactly what you want to do but you should be able to modify it for your purposes