Hah! (We’re back ;-) ) It’s as easy as that:

 

PS > [string] :: Format( "Hello {0} {1} :-)""Daniel""Walzenbach") 
Hello Daniel Walzenbach :-)

 

Needless to say that other formatting – like Currency formatting – works as well

 

PS > [string] :: Format( "{0:C}"1234567890
$1,234,567,890.00

 

Check out Formatting Types on the .NET Framework Developer's Guide or SteveX Compiled - String Formatting in C#(nice cheat sheet) for more examples.

Cheers!

   Daniel

相关文章:

  • 2021-09-28
  • 2021-12-23
  • 2021-11-29
  • 2021-12-11
  • 2021-12-02
  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2021-12-25
  • 2022-12-23
  • 2021-06-16
  • 2021-06-10
  • 2021-06-25
相关资源
相似解决方案