Dim NewBytes2 As New List(Of String)(ArrayBytes.GetRange(0, 10).Where(Function(x) If CStr(x).lenght = 1 Then x = "00" & CStr(x) ElseIf CStr(x).lenght = 2 Then x = "0" & CStr(x) end if)
Dim arrayBytes As Byte() = New Byte() {0, 5, 200, 95, 6, 11, 100, 8, 120, 0, 0} Dim withZeros As String() = arrayBytes.[Select](Function(b) b.ToString("000")).ToArray()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)