Separating implementation and interface: HOW?

L

Luc Kumps

Dave Sexton said:
static void Main(string[] args)
{
IB b = A.BFactory.Create(null);
IC c = A.CFactory.Create(null);

Yes, this is the solution we ended up implementing: creating (in Main) the
interface references for all the factories that will ever be needed by one
of the projects. Initially, I was looking for a way to create "b" from
Project B and "c" from project C automatically at startup of the program: I
was trying to make each implementation resposible for creating a reference
to its factory...
But if that isn't possible in C#, then the above work-around will do just
fine!

Thanks for your assistance!

Luc K
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top