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 |
Explain the types of Scaffoldings.
Explain Sections is ASP.Net MVC?
what is Assemble
What is the difference between using system.net and system.net.sockets?
If we write return statement in finally block will it works fine or throws any error?
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
Where are the value-type variables allocated in the computer RAM ?
what is namespace?
What is the .net framework?
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?
what is csdl?
What are the methods in Thread class?