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 |
How many .NET languages can a single .NET DLL contain
How to ensure the credentials for WebService using Windows authentication
What are the new features 3.5 framework against with the tool?
Is dapper better than entity framework?
What symbol would you use to denote, the start of a code block in razor views?
Who defines the CAS code groups
Which is the root namespace for fundamental types in .net framework?
what is an assembly?
If foreground completes its processing will it wait for background threads?
What are non action methods in mvc?
What is the .net framework and how does it work?
can i change web.config settings from iis?
1 Answers HCL, ReadySoft, Wipro,