sum 2 strings
string s="1234566633434"
string s2="8934343433"
need to sum it without casting
only in string
How to do it
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Nov 22, 2012, 9:33 AM
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: