We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,916 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Decompile .exe into C# Visual Studio 2008

Hi guys/girls,

I have an exe that has been written in C# using visual studio

Is there a was I can de-compile it back into the C# code - It seems to be some what protected

exe files I've created myself using Visual Studio and C# I can see the code when I "Disassemble" using Reflector

However all i seem to get is things like this when I de-compile the exe I want to:

There is a lot of [DebuggerNonUserCode] within it and I'm not sure what that is

// Fields
    private  ;
    private  ;
    private DataRelation ;
    private SchemaSerializationMode ;

    // Methods
    public  ();
    public  ();
    [DebuggerNonUserCode]
    private bool ();
    public DataRelationCollection ();
    public DataTableCollection ();
    [DebuggerNonUserCode]
    internal void ();
    [DebuggerNonUserCode]
    internal void (bool );

When I "Disassemble" my exe I get real code like this:

private void cmdFind_Click(object sender, EventArgs e)
{
    this.lblMatch.Visible = false;
    this.lblNoMore.Visible = false;
    try
    {
        if (this.txtSearch.Text == "")
        {
            this.lblMatch.Visible = true;
        }
        else
        {

you get the point


I'm not trying to pirate anything or anything like that because I know something like that will go through someones head haha

All I'm trying to do is get a look at the code so I can see how it works before I start working


Any help would be appreciated

Thanks

2
Contributors
1
Reply
24 Minutes
Discussion Span
2 Years Ago
Last Updated
2
Views
D.Twomey
Newbie Poster
4 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

It looks like they ran it through an obfuscator so you can't easily decompile it to get the source code. You can still get the source code, but you'll have to read what was decompiled, figure out what it is doing and substitute your own variable names/procedure names into the code. Not fun, easy or fast :)

Momerath
Senior Poster
3,728 posts since Aug 2010
Reputation Points: 1,322
Solved Threads: 624
Skill Endorsements: 13

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0578 seconds using 2.64MB