-
Windows 7 [C#] Marshalling, Pointers, Structs & Classes Full Example
class ShapeClass { public unsafe Shape* Polygon; } struct Shape { public unsafe Shape(char* name, int numsides) { Sides = numsides; Name = name; } public unsafe char* Name; public int Sides; } private unsafe void MainMethod() { char[] name =...- AceInfinity
- Thread
- class fixed statement garbage collection intptr marshal marshalling memory management null termination pointer programming sample code shape structs structuretoptr unsafe code
- Replies: 1
- Forum: Programming and Scripting