Re: Do local references destruct on method exit?
- From: "Zytan" <zytanlithium@xxxxxxxxx>
- Date: 27 Feb 2007 12:59:50 -0800
No. The byte array doesn't disappear. The variable "bytesArray"
disappears, but the value of that variable was just a reference. The
byte array itself is on the heap, and isn't local at all.
Hi Jon, yes, exactly. It was your page on parameter passing that
makes it so clear (and also with the addendum with pictures) that
shows why this is the case, but I just had to be sure. I just
finished testing it to be positive.
Thanks
Zytan
.
- References:
- Do local references destruct on method exit?
- From: Zytan
- Re: Do local references destruct on method exit?
- From: Jon Skeet [C# MVP]
- Do local references destruct on method exit?
- Prev by Date: Re: Incremental increase in setup size
- Next by Date: Re: Does C# have static local variables like C++?
- Previous by thread: Re: Do local references destruct on method exit?
- Next by thread: Re: Incremental increase in setup size
- Index(es):
Relevant Pages
|