Forums
Tags
structuretoptr
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
Dec 12, 2012
classes
code example
fixed statement
garbage collection
intptr
marshal
marshalling
memory management
null termination
pointers
programming
shape
structs
structuretoptr
unsafe code
Replies: 1
Forum:
Programming and Scripting
Forums
Tags