Improvements
Aashiq2691 opened this issue · 2 comments
Aashiq2691 commented
Currently there are no options to pass the string array as argument and get it formatted like below.
string[] args = ['Hello', 'World']
string sayHello = String.Format("{0}, {1}!", args)
Output : Hello, World!
Current output: Hello, World, undefined!
Is this feature will be availble any time soon.
aequi42 commented
What happens if you invoke String.Format("{0},{1}!", ...args)
(three dots before args
)?
Aashiq2691 commented
Hi aequi42,
yes it works now by invoking the way you mentioned above.
Thanks a lot!