6 Months Free & No Setup Fees ASP.NET Hosting!
Home | Submit an interview question | Filter by category | Filter by job function | Filter by company
 
Member Information
UserId/Email
Password
 
Forgot Password
Technology Category
.NET (1836)
Languages (142)
Database (347)
Operating System (65)
Reporting (6)
Third-Party Tools (2)
Testing (184)
OOP (85)
Web Development (44)
Design Patterns (90)
General (17)
Networking (98)
Hardware (63)
Brain Exercise (4)
Others (45)
 Our Network
.NET Heaven
C# Corner
DbTalks
Interview Corner
Longhorn Corner
Mindcracker
VB.NET Heaven
Home » .NET » .NET
What are Value types and Reference types ?
Posted by Prabhu Raja Dec 27, 2011
Viewed : 4550 times
Major Category : .NET
Minor Category : ASP.NET
Total Replies : 2
 EDITORIAL ANSWER  
No Reply Yet
 ANSWERS BY USERS  
prabhu singh
Jan 28, 2012

reference type is hold memory ,and value type is store actual data in memory
any things else
 
Prabhu Raja
Dec 27, 2011
Value types directly contain their data which are either allocated on the stack or allocated in-line in a structure.

Reference types store a reference to the value's memory address, and are allocated on the heap. Reference types can be self-describing types, pointer types, or interface types.

Variables that are value types each have their own copy of the data, and therefore operations on one variable do not affect other variables. Variables that are reference types can refer to the same object; therefore, operations on one variable can affect the same object referred to by another variable. All types derive from the System.Object base type.
    
1
 
Discover the top 5 tips for understanding .NET Interop
 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Advertise with us
Current Version: 4.2011.13.2
 © 1999 - 2012  Mindcracker LLC. All Rights Reserved