Hi Programmer,Welcome to Ozanecare. This article i am
going to write the program to merge two integers using
c#.net programming. we can combine two integers many ways but this article i am going to show you three ways to concatenate two integers .
1.By using ToString method . the ToString method used to
convert any integer into string and after using plus(+)
operator that concat. see below image.
2.By using Format method. string class has format method.the
used of format method to insert the value of an object,expression into another string.the placeholder 0 insert a variable and 1 insert b and after using Convert. ToInt32 method to convert string into integer. see below image.
3.By using Concat method. the Concat method is used to
concatenate different instances of the string.see below image.