반응형 Method1 [C# 언어] Object/Struct to Byte array, Byte array to Object/Struct 형변환 안녕하세요, 오늘은 byte array to object / structure 형변환과 byte array to object / structure 형변환에 대해 포스팅 해보도록 하겠습니다. 형변환 소스코드 using System.Runtime.InteropServices; public class Converter { /// /// Convert object to byte array /// /// Object to convert /// Converted byte array from the given object public static byte[] ObjectToByte(object obj) { int size = Marshal.SizeOf(obj); byte[] arr = new byte[size]; I.. 2023. 9. 17. 이전 1 다음 반응형