Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Using a decompiler I figured out that they don't display the values of an array like "int[] myInts = {1,2,3,4};"

Are they just difficult to reverse engineer (and for that reason a good base for protection)?

Posted (edited)

What I mean is the following:

 

The next code (C#):

public void func()
{
int[] arrayOfInt = {1,2,3,4, 10};
int sample = arrayOfInt[3] * arrayOfInt[4] ;
// sample should be 40 now
}

 

is in the decompiler visible as:

public void func()
{
int[] arrayOfInt;
int sample = arrayOfInt[3] * arrayOfInt[4] ;
}

 

So the values that are, in the code, stored in the array aren't made readable in the decompiler... Is that always the case!?

Edited by dick_nl

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...