المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Converting to Hex



C# Programming
03-02-2010, 01:41 PM
Hi

I have string say "Deepak"
how do i convert this into a byte array of 44,65,65,70,61,6b. I converted the ascii to
hex-string "44656570616b" using String.Format("{0:x2}", (uint)System.Convert.ToUInt32(tmp.ToString()));
thanks