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 |
What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?
What is Area in ASP.Net MVC?
Is any files are generated,when we are adding the web reference to the web service?
which are the key concepts of entity data model?
What is code first? : Entity framework
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
Possible ways to prevent xss attacks on mvc application?
What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?
I want ask from plz smaple example code for Biztalkk server
how can you tell ef to have a different table or column name than that defined for the class?
How can I stop my code being reverse-engineered from IL
What are the components required to create a route in mvc?