I have some variables and there results which are going into database.
For example
float[] qty1;
Quote quote = new Quote();
quote.qty1 = qty1[0];
quote.qty2 = qty1[1];
quote.qty3 = qty1[2];
quote.qty4 = qty1[3];
I try to make this process more dynamic
for (int i = 0; i <= 3; i++)
{
quote.qtyi = qty1[i];
}
please help me how i can use quote.qtyi and value of i, so it will read quote.qty1, quote.qty2, quote.qty3, quote.qty4