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 |
Is .NET a runtime service or a development platform?
How route table has been created in ASP.NET ASP.Net MVC?
What is the difference between ViewData, ViewBag and TempData?
What is the difference between adding routes, to a webforms application and to an mvc application?
How to use multiple submit buttons in asp.net mvc?
What is poco proxy? : Entity framework
Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?
What is meant by tempdata in mvc?
Can I set the unlimited length for "maxjsonlength" property in config?
What are Non Action methods in ASP.Net MVC?
Explain Bundle.Config in ASP.Net MVC4?
Which is the default http method for an action method?