What are the value types in C# programming?

 Posted by Goud.Kv on 9/3/2014 | Category: C# Interview questions | Views: 1660 | Points: 40
Answer:

Value types are mostly built in types such as numeric, char, bool etc. which are derived from System.ValueType (derived from System.Object).
Value types have very special behavior in the CLR.

Example for custom value types are structs and enum types.

C# memory does not allocate any separate block of memory to the value types such as heap.


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response