[C#] Struct 마샬링 및 사용법
·
Programming/C#
using System.Runtime.InteropServices; namespace Test { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct TestSet { [MarshalAs(UnmanagedType.I4)] public int EntType; [MarshalAs(UnmanagedType.I4)] public int EntityID_1; [MarshalAs(UnmanagedType.R8)] public double EntityID_2; [MarshalAs(UnmanagedType.I4)] public int EntityID_3; [MarshalAs(UnmanagedType.R8)] public doubl..