原创 C# 中IntPtr 與 string,數組互轉

一、IntPtr 與 string互轉 string str = "aa"; IntPtr init = Marshal.StringToHGlobalAnsi(str); string ss= Marshal.PtrToStringAns