Sign in to follow this  

Managed Wrappers and Inheritence

This topic is 4071 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 another managed wrapper question (promise I'll go away soon! :D). I have in my unmanaged classes Node and Light classes. Light inherits from Node. If I create a MLight wrapper class (managed light) it works fine, but there are some unmanaged functions in other classes where I need to be able to pass any type of node... these functions too need wrappers. If I create an MNode class then I can have my functions look good to take any type of node (MNode), but that means I have to inherit MLight from MNode. Doing so means MNode will create a node instance that is not necessary since creating MLight create the unmanaged Light class that already contains all the inherited node information. I guess my question then is, what is the best way to handle inheritence when writing wrappers? I hope my explanation above made some kind of sense. Thanks! Rael

Share this post


Link to post
Share on other sites

This topic is 4071 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.

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

Sign in to follow this