Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Example

if the string st= "1234";
i want to add more element at the end like

5678 at the end and the string is st="12345678"

then who can i get this string???
Posted
Comments
[no name] 15-Sep-14 6:34am    
st += "5678";
Rajesh Anuhya 15-Sep-14 6:36am    
Question not clear. --RA

1 solution

Hi,

have a look at the string.Concat Method.

Which you can then use like:
C#
string st="1234";
st=string.Concat(st, "5678");
 
Share this answer
 
v2
Comments
hypermellow 15-Sep-14 6:43am    
.... care to explain the 1*??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900