Format Byte - CSharp System

CSharp examples for System:Byte

Description

Format Byte

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//w  w w  .ja  v a 2 s .co  m

public class Main{
    public static string FormatByte(byte b)
      {
         var sb1 = new StringBuilder();
         sb1.Append(System.String.Format("{0:X2} ", b));
         
         return sb1.ToString();
      }
}

Related Tutorials