Value types and reference types, DOT NET Programming

What are Value types and Reference types

The Value types directly contain their data which are either allocated on the stack or allocated in-

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

Variables which are value type have their own data copy, & thus operations on one variable do not affect other variables. Variables that are reference type can refer to the same object; therefore, operations on one variable can affect the same object referred to by another variable. All types are derived from the System. Object base type.

Posted Date: 9/21/2012 6:52:29 AM | Location : United States







Related Discussions:- Value types and reference types, Assignment Help, Ask Question on Value types and reference types, Get Answer, Expert's Help, Value types and reference types Discussions

Write discussion on Value types and reference types
Your posts are moderated
Related Questions

The SQL cache dependencies is a new characteristic in ASP.NET 2.0 which can automatically invalidate a cached data object (like a Dataset) when the related data is modified in the

What are the precautions so that StateServer Mode work properly? Following are some points to remember so that StateServer Mode works properly:- a) StateServer mode session

What are Value types and Reference types The Value types directly contain their data which are either allocated on the stack or allocated in-  Line in a  structure. The Refe

What is SQl injection? This is a Form of attack on the  database-driven Web site in which the attacker executes the unauthorized SQL commands by taking merits of insecure code

i am working on an project and my client needs it in 2 days.project is ready but don''t know how to make setup project including local sql database(.mdf) included in setup..

This is a whole time contractual role working for a sports advisory service. We are data insights consultancy specializing in sports. We consult to a number of sporting organizatio

Finding Average of Array Elements - C# Program I need assignment help for Finding Average of Array Elements in C#. Can anybody send me there ideas?

Problem: (a) Define the term ViewState as used in the ASP.NET framework. (b) What is a StateBag class? Give a simple example to support your answer. (c) (i) Distingui

What is the role of the JIT compiler in .NET Framework? The JIT compiler is an significant element of CLR, which loads MSIL on target machines for execution. The MSIL is stored