Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Handmade Character Soft Toy Bluey Bingo
anil1961
Updated:
Aug 3, 2026
Colombo
Dahua POE Switch 8 Ports (DH-PFS3010-8ET-65)
hashaz2012
Updated:
Aug 3, 2026
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Jul 31, 2026
Dating Website & Online Chat Room
hotvideo
Updated:
Jul 30, 2026
DJI Mini 4 Pro Drone Combo Plus
Hawaka
Updated:
Jul 30, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Interview Questions වලට Support එකක් දෙමුද ?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="saja" data-source="post: 22492853" data-attributes="member: 14999"><p><strong>Category : C# </strong></p><p><strong><u>Target Group : Software Engineer , Software Developer </u></strong></p><p></p><p><span style="color: Blue"><strong>Value type vs Reference type ?</strong></span></p><p></p><p>• value type</p><p>Assigning one value type variable to another copies the contained value.</p><p>Value types are stored on stack.</p><p>They contain the actual values.</p><p>• reference type</p><p>stored on heap but contain the address on heap.</p><p></p><p></p><p><u><strong>Value Type</strong></u></p><ul> <li data-xf-list-type="ul">They are stored on stack</li> <li data-xf-list-type="ul">Contains actual value</li> <li data-xf-list-type="ul">Cannot contain null values. However this can be achieved by nullable types</li> <li data-xf-list-type="ul">Value type is popped on its own from stack when they go out of scope.</li> <li data-xf-list-type="ul">Memory is allocated at compile time</li> </ul><p></p><p><strong><u>Reference Type</u></strong></p><p></p><ul> <li data-xf-list-type="ul">They are stored on heap</li> <li data-xf-list-type="ul">Contains reference to a value</li> <li data-xf-list-type="ul">Can contain null values.</li> <li data-xf-list-type="ul">Required garbage collector to free memory.</li> <li data-xf-list-type="ul"> Memory is allocated at run time</li> </ul></blockquote><p></p>
[QUOTE="saja, post: 22492853, member: 14999"] [B]Category : C# [/B] [B][U]Target Group : Software Engineer , Software Developer [/U][/B] [COLOR="Blue"][B]Value type vs Reference type ?[/B][/COLOR] • value type Assigning one value type variable to another copies the contained value. Value types are stored on stack. They contain the actual values. • reference type stored on heap but contain the address on heap. [U][B]Value Type[/B][/U] [LIST] [*]They are stored on stack [*]Contains actual value [*]Cannot contain null values. However this can be achieved by nullable types [*]Value type is popped on its own from stack when they go out of scope. [*]Memory is allocated at compile time [/LIST] [B][U]Reference Type[/U][/B] [LIST] [*]They are stored on heap [*]Contains reference to a value [*]Can contain null values. [*]Required garbage collector to free memory. [*] Memory is allocated at run time [/LIST] [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom