Convert.ToInt32 (SByte) converts 8-bit signed integer to 32-bit signed integer.
Module Example
Public Sub Main()
Dim numbers() As SByte = { SByte.MinValue, -1, 0, 10, SByte.MaxValue }
Dim result As Integer
For Each number As SByte In numbers
result = Convert.ToInt32(number)
Console.WriteLine( result)
Next
End Sub
End Module
Related examples in the same category