Article View: borland.public.csharpbuilder.language.csharp
Article #207Re: About "int" value storage.
From: Marc Rohloff TeamB
Date: Mon, 19 Jun 2006 23:07
Date: Mon, 19 Jun 2006 23:07
16 lines
1763 bytes
1763 bytes
On Mon, 19 Jun 2006 18:39:22 +0400, Kolja wrote: > I have one stupid question which do not gove me a rest. > Given that "int" value datatype is represented by "struct" in unboxed > condition and "class ValueType" when in boxed condition. > Let us write in our progam: "int i = 5;" . Now plz tell me WHERE in both > struct or class representation store the value "5" of "int i" itself? I > tried to disassemble the "int i" through Reflection and found some field > "m_value" in it. I wonder if is it? It isn't really a struct when its unboxed, it is just the way the runtime sometimes represents it. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<15m76f8teid2h$.dlg@dlg.marcrohloff.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<1150727965.330076@angel.elektra.ru>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,fe3051f5b35308d7 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: About "int" value storage. Newsgroups: borland.public.csharpbuilder.language.csharp User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <1150727965.330076@angel.elektra.ru> Date: Mon, 19 Jun 2006 19:07:05 -0400 Message-ID: <15m76f8teid2h$.dlg@dlg.marcrohloff.com> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR X-Antivirus: avast! (VPS 0625-1, 06/19/2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 65.31.1.121 X-Trace: newsgroups.borland.com 1150758423 65.31.1.121 (19 Jun 2006 16:07:03 -0700) Lines: 16 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail