[C#]문자열을 16진수로 변환 예제 byte[] bytes = System.Text.Encoding.Default.GetBytes("Hello World!"); string result = ""; foreach (byte b in bytes) { result += string.Format("{0:X} ", b); } MessageBox.Show(result); C# 2016.03.22