Dim intChunkId As Integer = &H4D546864 Dim strChunkId As String = "MThd" Dim easiestWay = GetString(intChunkId)
easiestWay теперь должно равняться strChunkId.
easiestWay
strChunkId
Dim bytes As Byte() = BitConverter.GetBytes(intChunkId) Dim strChunkId As String = Encoding.ASCII.GetString(bytes)
Пара баллов:
Encoding.Default