i need to convert Decimal array to string array . How to convert decimal[] to string[] ? Can i use
Array.ConvertAll()
method to do this task?
|
Of course you can use
Let's code it;
Output will be;
Here is a |
||||
|
Try this
Hope this helps |
||||
|
Yes, you can use
Slightly less efficiently, but more idiomatically and flexibly, you can use LINQ:
Or if you don't actually need an array, and are happy for it to perform the string conversion every time you iterate over it:
The flexibility here is that The slight loss in efficiency when calling |
|||||||||
|