I have a small question.
I have a string array and on the basis of a parameter I need to store the values of the array into a string.
string[] x={"A","B","C","D","F","G"};
for(int i=0;i<number;i++)
{
string y=y+","+x[i];
}
If number=3, then my string should have (A,B,C,D)
The above implementation throws an error that y cannot be used.
What should be the right kind of implementation to achieve the above functionality?
Any help will be greatly appreciated.
Regards
Anurag