SyntaxFix
Write A Post
Hire A Developer
Questions
The result of summing two Int16 variables is an Int32:
Int16
Int32
Int16 i1 = 1; Int16 i2 = 2; var result = i1 + i2; Console.WriteLine(result.GetType().Name);
It outputs Int32.