[Mono-osx] Re: MonoMac.dll depends on System.Drawing.dll?

Lee V. Andrus landrus2 at by-rite.net
Wed Sep 8 11:22:50 EDT 2010


Using directives can also be used to create aliases for specific types  
without exposing the whole namespace.  Like this:

  using PointF = System.Drawing.PointF;

I'm sure it's a pain to put so much at the top of every file because  
C# doesn't have #include or typedef.  But this can reduce the solution  
to boilerplate.  You may even be able to incorporate it into your  
standard header.


On Wed, Sep 1, 2010 at 2:48 PM, Inspired Mars <inspiredmars at  
gmail.com> wrote:
> Yes, however, we're using the same namespaces also - hence the  
> earlier point about porting the Drawing portion of our Windows app.  
> It would be pretty painful to have to rename our wrappers for  
> System.Drawing.
>
> On Wed, Sep 1, 2010 at 1:24 PM, Stifu <stifu at free.fr> wrote:
>
> > "This is problematic because we're drawing via our own classes  
> that are
> > identically named"
> >
> > You may already know, but to work around this issue, you could  
> just use
> > namespace aliases.



More information about the Mono-osx mailing list