Questions tagged [.net-reflector]

.NET Reflector is an assembly browser that can be used to explore, analyze, decompile, and debug the contents of any .NET assembly.

Resources:

81 questions
33
votes
3 answers

Viewing the IL code generated from a compiled expression

Is it possible to view the IL code generated when you call Compile() on an Expression tree? Consider this very simple example: class Program { public int Value { get; set; } static void Main(string[] args) { var param =…
user47589
26
votes
1 answer

Is there a way to "override" a method with reflection?

Without inherit but only with reflection is it possible to dynamically change the code of a method in C#? something like : nameSpaceA.Foo.method1 = aDelegate; I cannot change/edit The Foo Class. namespace nameSpaceA { class Foo { private…
Christophe Debove
  • 6,088
  • 20
  • 73
  • 124
24
votes
4 answers

Can I use .NET Reflector to modify & recompile the code quickly?

Is it possible to use .NET Reflector (or an other tool) to modify and recompile the code quickly (that is, without dumping the source and then use Visual Studio to recompile it)?
sthiers
  • 3,489
  • 5
  • 34
  • 47
14
votes
1 answer

Breakpoint put in decompiled assembly from .Net Reflector is never hit while debugging in Visual Studio

First, I created a testing assembly HelloWorld.dll which I want to debug and built it with release configuration. namespace HelloWorld { public class HelloClass { public string SayHello(string name) { return "Hi "…
Ladislav Margai
  • 1,932
  • 3
  • 17
  • 28
13
votes
4 answers

Why can't I pass a property or indexer as a ref parameter when .NET reflector shows that it's done in the .NET Framework?

Okay, I will cut and paste from .NET reflector to demonstrate what I'm trying to do: public override void UpdateUser(MembershipUser user) { //A bunch of irrelevant code... SecUtility.CheckParameter(ref user.UserName, true, true, true,…
BenAlabaster
  • 39,070
  • 21
  • 110
  • 151
12
votes
1 answer

Obfuscation of .NET exe/dll

Possible Duplicate: .NET obfuscation of a DLL: how can I protect my code? Hi all, I'm using .net framework 4.0 and making any program. When i finished it, i publish it and get my programs exe. But any 3rd party softwares decompiles my exe and…
ismailperim
  • 1,522
  • 2
  • 16
  • 24
12
votes
3 answers

Can VS.NET 2010/MSBUILD produce XmlSerializers for .NET 3.5 SP1?

I just upgraded a VS 2008 solution containing WinForms, general use libraries, and a web app to VS 2010, but all projects still target .NET 3.5 SP 1. I use this technique to generate XmlSerializers for my general use libraries. The WinForms app runs…
flipdoubt
  • 13,897
  • 15
  • 64
  • 96
8
votes
4 answers

How do I completely uninstall Red Gate's .NET Reflector?

When I installed .NET Reflector for the first time, it was as easy as unzipping it, dragging the folder to the appropriate place on my disk, and launching it. From within the UI, I was able to configure things like Windows Explorer and Visual Studio…
Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
8
votes
1 answer

Adding extensions in Visual Studio Express 2012 for Window8 Desktop

I realise that VS2012 Express Edition now supports NuGet packages. Any idea if the limitations on adding productivity tools like Resharper or Reflector in VS Express Editions 2012 has now been changed? I've drawn some reference from Restrictions on…
Ruch
  • 89
  • 1
  • 3
7
votes
4 answers

{GUID}.method$$**** in code file. Doesn't compile !

We have a .NET assembly from another project where in one of the generated files from Reflector has .. snippet for a method. Now VS 2010 c# compiler throws all sorts of compile errors $$ unexpected. close braces etc. In ILDASM i see this method…
Munish Goyal
  • 1,379
  • 4
  • 27
  • 49
7
votes
1 answer

Open Emitted assembly generated code appears empty in Reflector when it is not.

I'm generating a dynamic assembly using Reflection.Emit which includes a single class. I have a bug which is causing a BadImageException. To resolve this I need to see the compiled code, and therefore I'm saving the dynamic assembly to disk. I've…
TheCodeKing
  • 19,064
  • 3
  • 47
  • 70
7
votes
1 answer

Dotpeek recompile decompiled files

How i can recompile my edited codes Or replace it with original files and save it as exe in dotpeek ? I try to recompile edited files and save it but i cant If you found any way please share Thanks
Al00X
  • 71
  • 1
  • 1
  • 3
7
votes
2 answers

F12 (GoToDefinition) doesn't do Reflector Decompile

Issue Steps to replicate Install Visual Studio 2012 Install Resharper Install Reflector VS plug-in When I hit F12 I want the Resharper GoToDefintion (decompile) action. However, all I get is the standard VS GoToDefinition (metadata). Things I've…
abc123
  • 17,855
  • 7
  • 52
  • 82
5
votes
5 answers

.net disassembler tool like reflector

Possible Duplicate: Open Source Alternatives to Reflector? Hi, Does anyone know if there is a tool like reflector that can reflect .net code??? Since reflector is not free anymore, i want a replacement tool.
Gaby
  • 2,923
  • 4
  • 38
  • 52
5
votes
1 answer

Is the .NET Reflector unable to reflect over the null-coalescing operator correctly?

I wrote this piece of code: private Queue EnsureQueue() { return _queue ?? (_queue = new Queue(10)); } and the reflector gives me: private Queue EnsureQueue() { if (this._queue == null) { } return (this._queue =…
1
2 3 4 5 6