Xarzu Posted January 7, 2009 Posted January 7, 2009 I have a program written in C#. It consists of a small main executable and several added DLL's. In other words, it is a Solution with several added projects. Here is where it gets interesting. A co-worker has created a stand-alone executable that does somethnig that I can use in my program. The co-workers program produces an exe when compiled and it has its own main routine. His program has its own namespeace and has just one class. The plan is for me to create my own class in my code that inherits the co-workers class. How do I do this? Also, are there special considerations to be given since I am going to make my own class and DLL that uses his code that is written as if it was a single execuatable?
Nightshape Posted January 8, 2009 Posted January 8, 2009 Have you looked into using Reflection? I came up with Crate 3.0 technology. Crate 4.0 - we shall just have to wait and see.Down and out on the Solomani RimNow the Spinward Marches don't look so GRIM!
Diamond Posted January 18, 2009 Posted January 18, 2009 Uhm... just ask your co-worker to refactor his project in a sane way (or do it yourself): a core class library + a thin executable wrapper. This way you can actually reuse his code. That's the entire point of having a library.
Nightshape Posted January 19, 2009 Posted January 19, 2009 Uhm... just ask your co-worker to refactor his project in a sane way (or do it yourself): a core class library + a thin executable wrapper. This way you can actually reuse his code. That's the entire point of having a library. That was my initial thinking... Though I was thinking it may be possible in some manner... I came up with Crate 3.0 technology. Crate 4.0 - we shall just have to wait and see.Down and out on the Solomani RimNow the Spinward Marches don't look so GRIM!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now