This seems like a really dumb problem, but I just haven't managed to get around it. Here is the code:
private string[] ConvertToCurrency(string[] costs)
{
int count = costs.Length;
for (int i = 0; i < count - 1; i++)
{
costs[i] = String.Format("{0:C}", costs[i]);
}
return costs;
}
and I expect that the output should be the numbers I'm storing in my string array will be formatted to currency, but they're completely unchanged when they come out the other end.
I have no idea why this is happening, and have tried some other methods to format it but nothing.