sum 2 strings
string s="1234566633434"
string s2="8934343433"
need to sum it without casting
only in string
How to do it
thanks
Sum two strings without casting
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Nov 22, 2012, 4:33 AM EST
There's no casting in this, but there are conversions to and from numeric types:
string s3 = (long.Parse(s) + long.Parse(s2)).ToString();
However, it's possible to do it without using the conversion methods built into the .NET framework: