reflector

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

狂风中的少年 提交于 2019-12-03 05:45:46
问题 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)? 回答1: You can probably use the Reflexil add-in for Reflector to do that: Reflexil is an assembly editor and runs as a plug-in for Reflector. Using Mono.Cecil, Reflexil is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports 'on the fly' C# and VB.NET code injection. 回答2: It's

Strange decompiled code from event subscribe code in a generic class

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This simple class public class Test<T> { public static void A(Window wa, Window wb) { wa.Closed += (s, e) => wb.Close(); } } Gets compiled to this (I'm using Reflector to decompile) : public class Test<T> { [CompilerGenerated] private sealed class <>c__DisplayClass1 { public Window wb; public void <A>b__0(object s, EventArgs e) { this.wb.Close(); } } public static void A(Window wa, Window wb) { wa.Closed += delegate(object s, EventArgs e) { base.wb.Close(); }; } } What is the meaning of base ? Why is <>c__DisplayClass1 generated if it's

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

坚强是说给别人听的谎言 提交于 2019-12-02 19:04:40
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)? You can probably use the Reflexil add-in for Reflector to do that: Reflexil is an assembly editor and runs as a plug-in for Reflector. Using Mono.Cecil, Reflexil is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports 'on the fly' C# and VB.NET code injection. Govardhan It's possible with .Net reflector along with reflexil. First download reflexiil and then open .net relector and

Convert dll to csproj ou sln

流过昼夜 提交于 2019-12-02 07:37:46
问题 I work on a existing ASP.NET MVC project. The solution uses the FluentNHibernate component(v 1.0.0). Someone in the former team (solution was MVC2) that worked on it modified the component sources (in order to change a behavior). That modified and compiled dll was included in the MVC solution. Now, I converted the solution to the MVC 5, and updated the existing libraries via NuGet packages. Unfortunately, I can't do it the same with FluentNHibernate component, because if I update it, it

RedGate Reflector to recover source code from .net assembly

浪子不回头ぞ 提交于 2019-12-02 07:03:32
Quick question. Can I recover a lost .cs file using RedGate Reflector ? My assembly is a debug version Jason Evans If you open .NET assembly in Reflector, you should be able to switch which language Reflector uses to display the code e.g. IL , VB.NET , C# . There is a dropdown list on the UI menu bar with this selection of languages. As long as you have all the required external libraries and references, you should be able to copy the C# code form Reflector and try to rebuild it. To make it a little more simple to get the IL code back into a file you should check out this Reflector Add-in .

使用reflector反编译exe文件和dll文件

梦想与她 提交于 2019-12-02 02:25:52
使用reflector反编译exe文件和dll文件 使用reflector反编译exe文件和dll文件 使用reflector反编译exe文件和dll文件 由于数据库迁移,导致原来的单机软件需要更改一下数据库连接。直接使用reflector查看exe文件和dll文件。 其中有connstr连接字符串,但是在哪里给这个连接字符串赋值,一直找不到。 来源: CSDN 作者: fudanstar 链接: https://blog.csdn.net/star535X/article/details/83045533

.net程序反编译工具(ILSpy)

故事扮演 提交于 2019-12-01 15:03:07
ILSpy是SharpDevelop小组的反编译工具,ILSPY这个开源工具的目的就是代替reflector的,它可以反编译出比reflector更好的C#代码。 PC官方版 C#反编译工具ilspy3.2.0.3856 官方 最新版 .NET平台反编译工具(Dotnet IL Editor)V2.10 绿色 版 .NET反编译工具(dotPeek)V1.3 绿色 免费版 .net反编译工具(DisSharp)3.1.1 完美 破解 版 .net反编译工具(de4dot)2.0.3 最新版 C# DLL反编译软件V6.1.0.11 NET Reflector 2011 2月已经结束提供免费版本,催生了另一个开源的项目ILSpy。 ILSpy需要 .NET Framework 4.0 支持。 ILSpy与Reflector的比较: ILSpy的界面与Reflector相似,左边以树型控件显示程序集和它的类型,右边是对应的源代码。基础的反编译功能,与Reflector相比,丝毫不差,甚至有时候用Reflector无法反编译(因为加密)的程序集,用ILSpy可以反编译。 Decompiler 反编译器 基础的类型反编译功能都具备,现在只支持把源代码反编译为C#和IL语言,不支持VB。 当需要找的程序集是.NET框架时,可以直接从菜单File—Open from

decompiling an asp.net site

♀尐吖头ヾ 提交于 2019-12-01 10:20:44
问题 hallo all i have an asp.net site which i have no source code for it. anyway i would like to decompile the whole site and that way i can work on it agian. how can i decompile an entire website easily to c# and not do it file by file with feflactor? please help me with this, thank you! 回答1: You can use the File Disassembler plugin for Reflector. It'll let you dump out a whole assembly into code files all at once. There's another plugin: FileGenerator, that looks like it'll do the same thing,

What is the purpose of the public “value__” field that I can see in Reflector against my enum?

我怕爱的太早我们不能终老 提交于 2019-12-01 08:30:01
I am looking at an enum I created in Reflector and there is a public integer field called "value__". What is the purpose of this member? A link or reference to a document is fine for an answer. Googling is a pain because "value__" is returning hits for "value". I have been searching for nearly an hour and only found the links below. Most of these are the same article on different sites. They all show how to access the member via reflection but none of them explain what the member is for. http://powershell.com/cs/forums/p/462/599.aspx http://tfl09.blogspot.com/2008/12/enums-enum-values-and

Scope and how to narrow it using VB.Net

允我心安 提交于 2019-12-01 05:57:45
If I want to narrow scope of a variable in C#, I can introduce additional braces - i.e.: class Program { static void Main(string[] args) { myClass x = new myClass(); x.MyProperty = 1000; Console.WriteLine("x = " + x.MyProperty); { myClass y = new myClass(); y.MyProperty = 2000; Console.WriteLine("y = " + y.MyProperty); } myClass y2 = new myClass(); y2.MyProperty = 3000; Console.WriteLine("y2 = " + y2.MyProperty); } class myClass { public int MyProperty { get; set; } } } In the ide, I can no longer reference y outside of the scope introduced by the new braces. I would have thought that this