using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication15
{
class Program
{
static void Main(string[] args)
{
byte[] value = { 0x02, 0xAB, 0xC1, 0xCD, 0x12, 0xDE };
string str1 = BitConverter.ToString(value);
Console.WriteLine(str1);
str1 = BitConverter.ToString(value).Replace("-", "");
Console.WriteLine(str1);
Console.ReadLine();
}
}
}