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 is the difference between model and entity?
Tell me the best web-sites for Learning the ASP DOT NET.
More on CLR ?
What is serialization in .NET? What are the ways to control serialization?
Can Static Constructor be Overloaded?Justify it?
how to disable the lazy loading framework?
What is entityset? : Entity framework
Can we have more than 1 partial classes in the same file?
What is serialization ?
Explain .net Framework?
what is msl?
Is the lack of deterministic destruction in .NET a problem