Thanks a lot Clayton. I should have thought of it! I have been trying to use item.ToString + β;β without success. But yours works perfectly! Also, thanks for the reminder about array. My variable is in IEnumberable but I guess it means in array too - works well.
Based on my scenario, I need to use if statement to filter out some items - so I have to use a for-loop I think. And I am using variable = String.Join(β,β, variable, item). but , shows as the first character. Thanks!!
But I did assign the variable called variable. It worked fine without the if statement. I am also trying to use the if statement to only add unique values to the string. I tried to do
That error always occurs when you have not assigned anything to the variable.
Another solution you could try is assigning "" to the default value of the variable. This way it has a value stored in it so it wonβt be seen as nothing.