PATCHED Red Gate .NET Reflector 8.2.0.7 !FULL!
very next, we can take a closer look at the decompiler. .net reflectorwe need to study the il code, and it's a real pain to do this manually - especially when you have a lot of it. when we look at the file in a text editor, its view will be more intelligible. in order to get our own view of the il code, we need to convert it to a view that will be compatible with our code. the il code can be represented by a sequence of enclosure - it is in fact a sequence of labels. it's also possible to see the type of the variable represented by the size of the bar and the color (green, red or yellow) used to indicate the kind of variable - our examples here use x86. we will see later that it's also possible to use the data view to examine the contents of the variable. for now, its important to remember that we need to convert the il code to a form that our code can understand. first we get a tree view, which is the tree representation of the il code:
PATCHED Red Gate .NET Reflector 8.2.0.7
we have a variable of type int named size which is the large integer of 32 bytes. we can use the red arrow to change the view of the variables of this il code to its data view, and get the view of the variables in the assembly:
the variable explorer is a handy place to take a closer look at an il code view. .net reflectoras you can see, the variable is represented by an int and it is not protected. the warning in the top right corner of the il code view means that the variable is not accessible - that the code in the next snippet of il code is not accessible. to make it accessible, you first need to declare the variable protected. then you need to put a get followed by a set to assign your value:
https://www.boslogwh.com/group/mysite-200-group/discussion/15f740d3-cdad-428a-8091-509b08869f62