var el2 = str.XPathSelectElement("//version/build").Value;
el2 contains 074
the value stored in el2 is number, now i want to decrement that value by 1
after decrement it should be 073
Decrement value
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sunny SharmaRank #223 · 11.1K reputationPosted Jun 20, 2013, 1:52 AM EDT
el2--;
OR
el2-=1;
Mark it as answer if it helps.
Cheers!
VulpesRank #55 · 29.2K reputationPosted Jun 20, 2013, 1:57 AM EDT
el2 = (Convert.ToInt32(el2) - 1).ToString("D3");