Decodes a range of bytes from a byte array into a string.
Imports System
Imports System.Text
Class ASCIIEncodingExample
Public Shared Sub Main()
Dim bytes() As Byte = { 110, 99, 111, 100, 105, 110, 103,32, 69, 120, 97, 109, 112, 108, 101}
Dim ascii As New ASCIIEncoding()
Dim decoded As String = ascii.GetString(bytes)
Console.WriteLine(decoded)
End Sub
End Class
Related examples in the same category