What is Value type and reference type in .Net



What is Value type and reference type in .Net..

Answer / kirti

Value Type : A variable of a value type always contains a value of that type. The assignment to a variable of a value type creates a copy of the assigned value, while the assignment to a variable of a reference type creates a copy of the reference but not of the referenced object.

The value types consist of two main categories:

* Stuct Type

* Enumeration Type

Reference Type :Variables of reference types, referred to as objects, store references to the actual data. This section introduces the following keywords used to declare reference types:

* Class

* Interface

* Delegate

This section also introduces the following built-in reference types:

* object

* string

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is the difference between model and entity?

0 Answers  


Tell me the best web-sites for Learning the ASP DOT NET.

3 Answers  


More on CLR ?

2 Answers   MMTS,


What is serialization in .NET? What are the ways to control serialization?

2 Answers  


Can Static Constructor be Overloaded?Justify it?

11 Answers   Infosys,






how to disable the lazy loading framework?

0 Answers   Microsoft,


What is entityset? : Entity framework

0 Answers  


Can we have more than 1 partial classes in the same file?

3 Answers   Encora,


What is serialization ?

7 Answers   IBM, Karrox, MMTS,


Explain .net Framework?

1 Answers  


what is msl?

0 Answers   Microsoft,


Is the lack of deterministic destruction in .NET a problem

1 Answers  


Categories