3 ms·
I feel like I should point out that the stack is an implementation detail [1] Though in this context it's relevant to point out pretty much any implementation
by ajanuary 13y ago
I feel like I should point out that the stack is an implementation detail [1]
Though in this context it's relevant to point out pretty much any implementation will stack allocate them, it's not accurate to say C# has stack allocated objects.
[1] http://blogs.msdn.com/b/ericlippert/archive/2009/04/27/the-stack-is-an-implementation-detail.aspx http://blogs.msdn.com/b/ericlippert/archive/2009/04/27/the-s...
- Pxtl 13y agoRegardless, C# has a linguistic feature that provides objects with stack-like performance and copy-by-value semantics familiar to C developers.