Mega Code Archive

 
Categories / VB.Net / Data Types
 

SByte ToString converts to string representation using the specified format

Imports System.Globalization Module Example    Public Sub Main()       Dim values() As SByte = { -124, 0, 118 }       Dim specifiers() As String = { "G", "C", "D3", "E2", "e3", "F", _                                      "N", "P", "X", "00.0", "#.0"}       For Each value As SByte In values          For Each specifier As String In specifiers             Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier))          Next          Console.WriteLine()       Next    End Sub End Module