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

How many .NET languages can a single .NET DLL contain

1 Answers  


How to ensure the credentials for WebService using Windows authentication

1 Answers   Proteans,


What are the new features 3.5 framework against with the tool?

0 Answers  


Is dapper better than entity framework?

0 Answers  


What symbol would you use to denote, the start of a code block in razor views?

0 Answers  






Who defines the CAS code groups

1 Answers  


Which is the root namespace for fundamental types in .net framework?

0 Answers  


what is an assembly?

11 Answers  


If foreground completes its processing will it wait for background threads?

1 Answers   Kanbay,


What are non action methods in mvc?

0 Answers  


What is the .net framework and how does it work?

0 Answers  


can i change web.config settings from iis?

1 Answers   HCL, ReadySoft, Wipro,


Categories