Jump to content

Extending a C# program


Xarzu

Recommended Posts

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?

Link to comment
Share on other sites

  • 2 weeks later...
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 Rim
Now the Spinward Marches don't look so GRIM!


 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...