Single Byte Hex - CSharp System

CSharp examples for System:Byte

Description

Single Byte Hex

Demo Code

/*****************************************************************
 * Copyright (C) 2005-2006 Newegg Corporation
 * All rights reserved.// w  ww.j a v a  2 s.c om
 * 
 * Author:   Jason Huang (jaosn.j.huang@newegg.com)
 * Create Date:  07/02/2008 15:12:41
 * Usage:
 *
 * RevisionHistory
 * Date         Author               Description
 * 
*****************************************************************/
using System.Text;

public class Main{
        private static string SingleByteHex(char c)
      {
         uint num = c;
         return num.ToString("x").PadLeft(2, '0');
      }
}

Related Tutorials