Link to home
Start Free TrialLog in
Avatar of Endelm
Endelm

asked on

C# string {0}, value

Hi,

I totally forgot how to make readable strings. See example:

How was it done again??

Thank you!!!!


string str;
string strWorld = "world";

str = "Hello {0}", strWorld; // This doesn't work, how is it done again? !!!

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of p_davis
p_davis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Endelm
Endelm

ASKER

ofcourse!!

thanks! :)