reflector

Load WPF application from the memory

旧城冷巷雨未停 提交于 2019-11-28 08:37:16
问题 So this is how you invoke Main() in non WPF applications: var entry = assembly.EntryPoint; if (assembly.EntryPoint.GetParameters().Length == 0) entry.Invoke(null, new object[0]); else entry.Invoke(null, new object[] { args }); but somehow it doesn't work at all for WPF applications, I've tried (MSDN's way): Assembly asm = Assembly.LoadFrom(file); Type myType = asm.GetType("WpfApplication1.App"); // Get the method to call. MethodInfo myMethod = myType.GetMethod("Main"); // Create an instance.

What is the ampersand character at the end of an object type?

血红的双手。 提交于 2019-11-28 07:30:38
问题 I had to de-compile some code and I don't know what this syntax is? Can y'all help, or point me to a write-up about what it is? I've Googled and searched this site and can't find anything. Just one line of code: Rectangle pageBounds; // ISSUE: explicit reference operation // ISSUE: variable of a reference type Rectangle& local = @pageBounds; What is the @ symbol at the end of the Rectangle object type, and the @ before the pageBounds variable? This is my last line of code that I need to fix

Is there a “free” alternative to .NET Reflector? [duplicate]

旧时模样 提交于 2019-11-28 03:26:08
Possible Duplicate: Something Better than .NET Reflector? Possible Duplicate: Open Source Alternatives to Reflector? I don't consider this to be a duplicate, as the contact of the other questions is about learning how reflector works, and this question is about coping when reflector stops being free Now that Red-Gate has said .NET Reflector will no longer be free , is there an alternative that save the pain of getting a purchase order approved? It seems that jetbrains may be bringing out a tool : Good news is that we’re preparing a standalone binary-as-a-source application, i.e. a decompiler +

Is there a way to prevent Reflector from being able to reflect my source code?

痞子三分冷 提交于 2019-11-27 18:39:31
问题 Is there a way (reliable and preferably not commercial) to prevent from Reflector to reflect my source code??? Thanks, Adi 回答1: No. Reflector looks at your assembly just like the .NET runtime would in order to generate native code to execute. The best you could hope for would be to obfuscate your code and make it (somewhat) harder for the reader to understand. Some pros and cons of performing the obfuscation can be found at Should you obfuscate a commercial .Net application? 回答2: There is no

Using Reflector To Create VisualStudio Project

社会主义新天地 提交于 2019-11-27 17:41:04
问题 I have a .exe app which I want to understand better - I can see it in reflector Is there any way to get reflector to create a VS project with the code so I can view it properly in Visual Studio? 回答1: Nothing special is needed, it is built into Reflector, albeit not very discoverable. Right-click the assembly in the left pane and choose Export. You'll get a chance to change the output directory. Click OK and Reflector starts decompiling the code, creating a source file for each individual

What do you use to protect your .NET code from reverse engineering? [closed]

人走茶凉 提交于 2019-11-27 14:23:43
For a while we were using a tool called CodeVeil. I'm just wondering if there are better alternatives out there. Edit: Before more people misunderstand the question, I'm aware that a determined cracker would probably be able to defeat any of these tools. I'm not too concerned about them though. These tools are just meant to stop the "casual cracker", and to stop people from stealing our company's IP. If they're good enough to get past a decent tool, they probably aren't interested in stealing our crappy code :-P I've had a lot of success with Xenocode Postbuild. The tool can obfuscate .NET

.net Reflector decompiled C# code won't compile

旧巷老猫 提交于 2019-11-27 08:28:18
问题 I tried to decompile a C# console application and compile it again in Visual C# 2010, but there are many errors in the code. Here is an example: public static Test mTest { [CompilerGenerated] get { return <mTest>k__BackingField; } [CompilerGenerated] set { <mTest>k__BackingField = value; } } I've set the .net framework version to 3.5 in .net Reflector. Is there any way to get code that is able to recompile from .net Reflector? 回答1: There is no straight way to overcome this limitation.

Is there a “free” alternative to .NET Reflector? [duplicate]

こ雲淡風輕ζ 提交于 2019-11-27 05:11:14
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Something Better than .NET Reflector? Possible Duplicate: Open Source Alternatives to Reflector? I don't consider this to be a duplicate, as the contact of the other questions is about learning how reflector works, and this question is about coping when reflector stops being free Now that Red-Gate has said .NET Reflector will no longer be free, is there an alternative that save the pain of getting a purchase

反编译Silverlight项目

流过昼夜 提交于 2019-11-27 01:54:47
在文章的开头,我想事先说明,本文并非诱导读者恶意反编译他人作品,盗取他人代码成果,只是为了学习Silverlight讨论而用。 在互联网上,每天都会有很多Silverlight项目发布,有的是开源,有的只是为了展示。在Silverlight学习的初期,多数都需要模仿学习,所以,发现一个Silverlight项目,能够查看其中的源代码是最好不过了。但是,Silverlight发布,只是发布资源包XAP,而所有资源都在这个XAP文件中,该如何查看其中的资源和代码呢?下面我将演示反编译的方法,演示中我将用Silverlight.Net首页Silverlight作为例子。 1. 首先打开Silverlight.Net,该页面中包含一个Silverlight导航动画; 2. 在浏览器中,点击右键,查看页面源代码; 3. 在html源代码中搜索"xap",很快就能定位出xap的位置。 我们看到 <param name =" Source " value =" clientBin/showcasenav/ShowcaseNav.xap " /> 该value就是xap在服务器端的位置。 4. 我们使用同样的域名,来获取当前的xap文件。打开新的浏览器,在地址栏输入: http://www.silverlight.net/clientBin/showcasenav/ShowcaseNav.xap

反编译工具(收藏)

你。 提交于 2019-11-27 01:05:49
C#反编译工具Reflector使用方法,(支持VB、Delphi等) 收藏 新一篇: DOS经典命令 | 旧一篇: 无法显示 XML 页--解决方法 Reflector下载地址: http://www.pediy.com/tools/Decompilers/net/Reflector/Reflector.zip Reflector.FileDisassembler.dll 输入.cs文件的工具下载地址 : http://www.denisbauer.com/Downloads/Reflector.FileDisassembler.zip 1.下载Reflector.FileDisassembler.zip,解压后得到一些文件,其中Reflector.FileDisassembler.dll是已经编译好的,其它是它源码; 2.打开Reflector,在view菜单下的Add-Ins,将Reflector.FileDisassembler.dll添加到里面; 3.open一个dll,exe,或mcl为后缀的文件,当然要支持.net的 4.选择要反编译的dll(会在列表中显示),选择Tools->File Disassembler,在右窗口会出现设置存放源码位置的路径,点击产生就可以了 转载于:https://www.cnblogs.com/tufeng/archive/2009/01