Hi
I have created class file and when i build the solution, i can find the dll.
I need to extract the class file from the dll.
Can any one help me in this issue.
thanks.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted May 15, 2013, 8:19 AM
If it is public, then you can create an object of that class just as if it had been defined in the client application itself. You may need to add a ' using' directive to your code to facilitate this if the class is defined within a namespace in the dll.
Of course, you need to add a reference to the dll to the client application before you can access anything at all!
However, if by 'extract' you mean you want to extract the MSIL or original source code of the class from the dll, then you need to use a dis-assembler such as Redgate Reflector.
Even then you won't be able to extract the precise source code. All comments and local variable names will be lost - the latter will be replaced with numbered storage locations.
Also if the dll has been obfuscated, you won't be able to recover the source code at all except with the use of special 'hacker' software.