Can we create dynamic variable in C#?
I know my below code is threw error and very poor coding. But this code have small logic like create dynamic variable
No. That is not possible. You should use an array instead:
name[i] = i;
In this case, your name+i is name[i].
name+i
name[i]