C Sharp: Difference between revisions
No edit summary |
No edit summary |
||
Line 69: | Line 69: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Memory Management== | |||
C# has value types and reference types. Reference types are heap allocated similar to Java. Value types are allocated either on the stack or within objects on the heap, the same as primitives in Java or structs in C/C++. | |||
Reference types are created with classes. Value types are created with structs. | |||
==Platform Invoke== | ==Platform Invoke== |