jeudi 17 avril 2014

Can we create variables at run time


Vote count:

0




In c# why is it not allowing to create variable names dynamically? I am trying something like this:



for (int i = 0; i < ceoList.Count; i++)
{
List<VP> "vp" + i = new List<VP>();
}


I want to generate variable names at run time. Like "vp" + i here.



asked 49 secs ago






Aucun commentaire:

Enregistrer un commentaire