Link to home
Start Free TrialLog in
Avatar of allelopath
allelopath

asked on

String questieon

Using this example:
http://www.programmersheaven.com/2/Les_CSharp_4_p3

How would I do this?

string string1 = ("{0} of {1} years age got {2}% marks", st1.name, st1.age, st1.percentage);
MessageBox.Show(string1);

ie, first assign the value to the string, then display it.
The first line isn't correct.
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

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