System.Drawing.Point value type - Csharp.Net

Q.  Which of the following are value types?
- Published on 31 Aug 15

a. String
b. System .Value
c. System.Drawing
d. System.Drawing.Point

ANSWER: System.Drawing.Point
There are two types are available in C#. Value Type and Reference Type. Value type are allocated on stack and reference types are allocated on managed heap. Predefined datatypes, structures, enums are value types. Class, Sting, Object etc are reference types. In the above example Point is struct so it is value type.

Post your comment / Share knowledge

Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)