How is the default constructor of System.Drawing.Graphics removed?
Posted
by Albert Iordache
on Stack Overflow
See other posts from Stack Overflow
or by Albert Iordache
Published on 2010-05-21T14:19:09Z
Indexed on
2010/05/21
15:40 UTC
Read the original article
Hit count: 191
When I try to create an object of Graphics, why doesn't the following work?
System.Drawing.Graphics graphicsObj = new System.Drawing.Graphics();
(I am aware that I could create a private System.Windows.Forms.Panel Obj;
and then do CreateGraphics()
if I wanted it to work)
I tried to find a custom constructor for Graphics, but I couldn't find one. Where did Microsoft define it, or how did it block it?
© Stack Overflow or respective owner