Jump to content
  • Advertisement
Sign in to follow this  
Nikster

[.net] Interfaces, dlls and statics.

This topic is 2631 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have some dlls and I have an interface between these and my main application, what I'm wanting to do is be-able to get a marker on these dlls so I can store the types in a dictionary for when I need to create/invoke them.

For example, before I moved over to dlls these were embedded classes and each had a static which returned a string like "Animal" or "Vehicle", so is there anyway to be-able to enforce by contract that a dll must contain a static method or member? Obviously you're unable to do this with interfaces but I'd like the option to be-able to query this information without the need to create an instance of the class before hand.

My main application has no knowledge of "Animal" or "Vehicle" but these tags are used in my main application to act as a delegate between varying dlls.

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!