Extending System.Drawing.Rectangle...

Gyorgy Bozoki <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <000001c78171$6a2537a0$9cfcbb4c@homepc>
Hi all,

I have a question about extending structs: I'd like extend
System.Drawing.Rectangle such that it keeps all its existing functionality
and a set of new public members can be called. Since Rectangle is a
structure, it's sealed and cannot be derived from, so that route is
obviously out.

I could easily create a simple new class that would have all the
functionality of Rectangle and the extra functions that I want to add, but I
was wondering if doing this to Rectangle itself would even be technically
possible (for example during run time, if necessary.)

Thanks,
Gyorgy Bozoki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.