Format byte with X4

image_pdfimage_print
   
  
using System;

public class MainClass{
    public static void Main(){
        byte[] byteValues = { 12, 163, 255 };
        foreach (byte byteValue in byteValues)
           Console.WriteLine(byteValue.ToString("X4"));
    }

}

   
    
     


This entry was posted in Data Types. Bookmark the permalink.