Click here to Skip to main content
15,904,935 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

we are using an Assembly\dll of a Licensed - software.
We need to invoke a method which is defined under a Abstract class of this Assembly.

For trial basis, i able access one of its class & it's member as are defined as STATIC.

But our required method is defined under Abstract classes .
If any way i can able to know the name of the class derived from this Abstract class, then i can create the object & can access the data member of Abstract class.

I want to avoid any wrapper class ,which we'll make them derived from this Abstract class. Through this wrapper class object i may able to access the required data member's of Abstract class.

If you have any suggestion , then kindly guide me.
Thanks in advance :)
Posted
Comments
Richard MacCutchan 23-Jan-13 8:29am    
Get a copy of the documentation from the people who produced the DLL.
litu kumar 23-Jan-13 8:56am    
Thanks Richard , this is the best way. But we don't think ,they'll give their code related document in detail.

In their Software's HELP file also they gave very brief description on this.
Still if you get any new idea, then please share. Thanks :)
Richard MacCutchan 23-Jan-13 9:40am    
If you have paid for a licence then you should be entitled to all the documentation - unless you are trying to do something illegal.

1 solution

You can find all the classes in an assembly by reflection, and find out what the inheritance tree under this class is.

However, this is the wrong way to do it. You should use the documentation or examples that came with the library. Otherwise there is a high chance that you will end up implementing something which isn't what the library was designed to do, or how it was designed to do it.

If there's no documentation, then, well, you shouldn't be buying third party libraries from such a slipshod operation in the first place. That's not a professional library and the low standards will probably also apply to efficiency and functionality, which will end up impacting your own product's reputation down the line.
 
Share this answer
 
Comments
litu kumar 23-Jan-13 9:01am    
You are right BobJanova. Let me try as per your advice .
fjdiewornncalwe 23-Jan-13 9:37am    
+5. Good Advice. I would not have been quite so polite by pointing out that what they are trying to do is probably breaking a license agreement if they have a valid license in the first place.
kaushik4study 23-Jan-13 15:16pm    
+ for advice. and +5 for solution.
H.Brydon 25-Jan-13 23:13pm    
You didn't describe the reflection process but +5 anyhow. :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900