Click here to Skip to main content
13,151,514 members (47,794 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 23-Jan-13 2:27am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
litu kumar 23-Jan-13 9:01am
You are right BobJanova. Let me try as per your advice .
Marcus Kramer 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170924.2 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100