Jump to content
Sign in to follow this  
Xarzu

Extending a C# program

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?

Share this post


Link to post
Share on other sites

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


 

Share this post


Link to post
Share on other sites

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.


This statement is false.

Share this post


Link to post
Share on other sites
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!


 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...