For Programmers: Free Programming Magazines  


Home > Archive > C# > February 2005 > Delegate over namespace borders









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Delegate over namespace borders
Thomas

2005-02-21, 8:57 am

Hello all together,

I have a problem with a delegate.
I need to create a callback over namespace borders.
The problem is that the one namespace don't know anything about the
delegate created in the other namespace.
How can I tell both namespaces that there is a delegate?
Hope anyone can help me.

Regards
Thomas
tsteinke@gmail.com

2005-02-21, 8:59 pm

Obviously they know about each other now if they are calling each
others delegates.

The name space isn't really a boundry just a tool for organization.
Just refer to the deletegate as a fully qualified name. If you don't
like that you could put the delegate in a thrid namespace and have both
of the other ones refer to it. That way neither of them know about each
other but both of them know about the delegate.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com