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