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

If we write return statement in finally block will it works fine or throws any error?

7 Answers   Kanbay,


What is the CLS

1 Answers  


What are Resource Files ? How are they used in .NET

1 Answers  


Is http stateful or stateless?

0 Answers  


How to bind table colum with gridview column?

0 Answers  






What is entity sql? : Entity framework

0 Answers  


What is the 'page life cycle' of an ASP.NET MVC?

0 Answers   NA,


what is complex type?

0 Answers   Microsoft,


How we can invoke child actions in ASP.Net MVC?

0 Answers  


Explain .net Framework?

1 Answers  


What is the difference b/w constant & read only variable?

4 Answers   IMI Soft Engineering,


What is the .net framework 3.0 (formerly winfx)?

0 Answers  


Categories