Sign in to follow this  
Raeldor

Managed Wrappers and Inheritence

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

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