摘要:
在C#中有一些类型在托管与非托管代码之间可以直接使用,不需要进行任何转换,这些类型就称之为 blittable types 类型如下: System.Byte System.SByte System.Int16 System.UInt16 System.Int32 System.UInt32 Sys 阅读全文
摘要:
C#在调用WInAPI函数时,可能会看到如下的声明 1 [StructLayout(LayoutKind.Sequential)] 2 public struct RECT 3 { 4 public int Left; 5 public int Top; 6 public int Right; 7 阅读全文