I have a LINQ query which creates an anonymous collection. One thing I’m returning is a number, which I’d like formatted as currency instead of 50.23888838222 etc. However if I try something like:
... select new { Amount = e.Item_Amount.ToString("C") }
I get told ‘No overload for .ToString takes 1 arguments.
However this code works fine elsewhere when changing an individual string.
I’ve had issues like this with Linq to Sql and understand why, but this is just an in memory collection. What’s the best way to achieve this end?
Thanks
Its
nullablefield (Maybe).