CSharp examples for System:Byte
Two Byte Hex
/***************************************************************** * Copyright (C) 2005-2006 Newegg Corporation * All rights reserved.//from ww w . j a va 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 TwoByteHex(char c) { uint num = c; return num.ToString("x").PadLeft(4, '0'); } }