Timeline for How much memory does a C# reference consume?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 26, 2013 at 14:35 | vote | accept | Louie Almeda | ||
Oct 26, 2013 at 12:09 | comment | added | Guffa | Downvoter: Why the downvote? If you don't explain what it is that you think is wrong, it can't improve the answer. | |
Oct 26, 2013 at 12:05 | comment | added | Guffa | @Ashigore: There is actually no overhead at all in a reference, it's just a pointer. Any overhead is associated with the object, like type information and garbage collection references. | |
Oct 26, 2013 at 12:03 | comment | added | Ashigore | I was going to answer this but I stopped when I started to wonder that there surely must be some additional overhead memory involved in the creation and maintenance of a reference beyond the pointer itself. | |
Oct 26, 2013 at 12:02 | history | answered | Guffa | CC BY-SA 3.0 |