Interview Questions

What class does Icon derive from? Isn’t it just a Bitmap with a wrapper name around it?

.NET Interview Questions and Answers


(Continued from previous question...)

63. What class does Icon derive from? Isn’t it just a Bitmap with a wrapper name around it?

No, Icon lives in System.Drawing namespace. It’s not a Bitmap by default, and is treated separately by .NET. However, you can use ToBitmap method to get a valid Bitmap object from a valid Icon object.

(Continued on next question...)

Other Interview Questions