Questions tagged [reflector]
.NET Reflector® is a proprietary software utility for Microsoft .NET combining class browsing, static analysis and decompilation, originally written by Lutz Roeder. Red Gate acquired it in 2011 and have since added live debugging of assemblies without requiring original source!
239
questions
0
votes
0answers
25 views
the difference between Reflector.getParameterTypes().length and ~.getParameterCount
why does Mybatis use the former instead of the rest?
Arrays.stream(constructors)
.filter(constructor -> constructor.getParameterTypes().length == 0)
.findAny()
.ifPresent(...
0
votes
1answer
243 views
flutter / dart reflectable package : Not reflecting base/super class members
import 'package:reflection_test2/common/reflect/Reflector.dart';
@reflector
class Base
{
String s1;
}
@reflector
class Sub extends Base
{
String s2;
}
ClassMirror classMirror = reflector....
0
votes
1answer
324 views
How to use Reflector Class.cast() correctly?
I am currently developing a Minecraft plugin that should be able to manage mobs. In short, in any case, I want my plugin to be a maximum multi-version, so I use Reflector. but when I use Class.cast(...
1
vote
0answers
109 views
How to use Predicate<String>?
I was analyzing some .exe file to covert it into source code, I was not able to understand the lines which had <>9__0. What does it mean? Why we use Predicate<string>? Could anyone help or ...
0
votes
0answers
643 views
Private implementation details in .NET decompile [duplicate]
I decompile a software that programmed by .NET but some part of code change to private Implementation details instead of correct function name.
the code decompiled shown in below :
if (<...
0
votes
0answers
34 views
.NET Reflector freezes when exporting dll
I have this problem with .NET Reflector that when I try to export a dll file (even if I didn't modified it yet) it doesn't finish exporting it and it just freezes, I can't close the window, and if I ...
1
vote
1answer
416 views
C# vs PowerShell
I'm trying to re-write a C# script in PowerShell. I'm figuring it out piece by piece.
The PowerShell version is telling me 'Cannot find an overload for "Call" and the argument count: "2".'. So I know ...
1
vote
2answers
72 views
Visual Studio / Reflection / Serialization: Can I export values from a debug session to use them for unit testing?
I had to write many dozens of lines of code (see here: https://dotnetfiddle.net/RiVx2E) to generate a few lines of sample data.
In this specific case I could manually export the output variable (see ...
0
votes
1answer
108 views
After installing reflector and enabling DEVPATH, IIS, Net Tcp Port Sharing service stops working
I was debugging a C# application in VS2015 and needed to analyse a 3rd party DLL issue. I have a .NET Reflector license and attempted to generate PDBs. Reflector forced me to set DEVPATH to access the ...
0
votes
0answers
131 views
Build .NET app without optimization in debug mode
How can I build .NET assembly in debug mode without optimization?
dotnet build --configuration Debug
I built a simple .Net Core console app with the above command, but the compiler still optimized ...
0
votes
1answer
89 views
How can I investigate .NET DLL Dependency?
I get an exception related to a DLL which can't be loaded but... no project seems to reference that DLL.
How can I know who is calling it?
0
votes
2answers
94 views
Patch .NET app to run hidden (splash screen/main window) using Reflector/Reflexil
im trying to modify a program to run hidden, no splash screen and no window (it's a free app for canon cameras to receive images over wifi).
i use for live slideshow, but every time the camera ...
3
votes
1answer
328 views
Why does this .dll have weird letters in ILSpy?
I'm using ILSpy to look at a .dll. A Majority of the classes are in english, but some of the classes are in the weird letters that I can't explain. I'm wondering if there is an error with the .dll or ...
4
votes
0answers
83 views
Strange if condition generated by Reflector
Every now and then I'll write a program to remind myself of something and so here's one I was writing yesterday when something strange happened.
Original Source
using System;
using System.Threading;
...
1
vote
1answer
175 views
Why do C# methods have 2 separate flags: HasThis and IsStatic
I have been playing with Reflector and Reflexil, but when I created a static method, it didn't work. On some ispection, I found that methods have 2 different parameters/flags: IsStatic and HasThis.
...
0
votes
1answer
93 views
Adding write to log using Reflection
I'm trying to use Reflexil to log a string in an existing method in a dll I haven't got the source code to.
The problem is, I can add a method that uses System.IO because I'm trying to add it to a dll ...
1
vote
0answers
87 views
Encrypted names in decompiled C#
After I decompiled a C# DLL, I got obfuscated names. How do I make them friendlier?
internal class #=q_koQQBVg_L17jD21WqVoWTKogS6iAxIVV4z7fVJYFPbQHpq5RL4asPxgytMqVUV9{
private string #=...
0
votes
0answers
28 views
How to invoke UnitOfWork where and firstordefault by using reflector?
I tried to invoke UnitOfWork where and firstordefault by using reflector?
Normal command
Me.UnitOfWork.GetAll(Of RG.Model.Student).Where(Function(x) x.Id = 1).FirstOrDefault
But i tried to change ...
0
votes
1answer
314 views
Assign a string to CommandText in IL using Reflexil
I need to edit a query for an application developed some time ago. But I don't have the source code, only the compiled dll's. Following is the source decompiled by Telerik JustDecompile.
conCl.Conn();...
1
vote
0answers
134 views
.NET Reflector local variable values not available on breakpoints
I'm using the .NET Reflector VS extension v. 9.0.1.374 in VS 2015. I'm debugging a third party dll being used by my web app running in IIS Express. I can hit breakpoints and step through code but I ...
0
votes
0answers
51 views
Reflector does not show casting operation
I have enumeration code below
public enum PermissionType
{
X=1,
Y=2,
Z=3,
}
I assign it to viewbag in MVC project to use in view
int permissionResult=2;
ViewBag.ContractType = (...
0
votes
1answer
272 views
Cast non-pointer to pointer type in fixed expression
I'm a bit new to the unsafe side of C# so forgive me if I'm missing something obvious here.
I'm looking through some code using .NET Reflector to understand some implementation of the Oculus Rift ...
1
vote
0answers
58 views
Reflector code from byte array C#
I have received a byte array of an object form from server and can use it by the following code:
Form form = (Form)Activator.CreateInstance(Assembly.Load(Byte_Array_From_Server).GetType(...
5
votes
1answer
760 views
.NET reflector plugin for visual studio not working
I just downloaded .NET reflector plugin for VS (using 2015 RC) and it simply doesn't work. I'm not sure if I'm supposed to do anything but all the menu options are grayed out and the Microsoft.Owin ...
0
votes
1answer
571 views
View ascx.cs files from deployed website?
I've got a website that I published on IIS, but it seems like I've got the wrong version of source code in my dev environment.
I just need the code from 1 ascx.cs file.
Can I get to the contents of ...
1
vote
1answer
2k views
How to store FTP credentials securely in C# application?
I am developing a C# WPF application in which the user generates an image and then the app uploads it to a webhosting using FTP connection.
The credentials for the FTP connections are always the same ...
-1
votes
1answer
1k views
Is there any way to retrieve the compiler-generated code from the .NET assembly in a readable form?
For example, if some C# class in an assembly has a property property, compiler generates set_property and get_property methods, or if there is a lambda, compiler also generates helper class ...
0
votes
1answer
44 views
How to view what is inside string.IsNullOrEmpty, by example
I installed Reflector extension for VS from here
https://visualstudiogallery.msdn.microsoft.com/95789cdb-08f9-4dae-9b2f-fc45a452ad77/
(I have VS 2012, this version is not in supported list but ...
0
votes
2answers
8k views
Extract/Decompile source files from exe
There is a client specific solution that we cannot find the source code for, but we do have the .exe file.
Is it possible to use .Net Reflector to extract this into a buildable solution within Visual ...
0
votes
0answers
72 views
.Net different IL but same output. Why?
I have 2 dlls ('original' and 'new') and for one method the IL is very different inside these 2 dlls (not talking about the nop alone but lot of differences). But when I decompile these two dlls then ...
1
vote
1answer
674 views
Decompiling .NET program and chinese signs
After decompiling .NET program I see chinese signs as a variables etc? I use reflector, this is some kind of bug or source prevent ?
0
votes
1answer
610 views
error in .net reflector
i have reflected one program with .net reflector and open it in visual studio.
one item in each form is:
bool IControlByOptions.get_IsDisposed()
{
return this.IsDisposed;
}
when i build solution , ...
1
vote
2answers
835 views
Unable to see the decompiled code of System.Management.ManagementDateTimeConverter.ToDateTime(string) using ILSpy/Reflector?
I am trying to see the actual implementation detail of System.Management.ManagementDateTimeConverter.ToDateTime(string) using ILspy? It didn't show anything. Then I thought it's probably a bug in ...
0
votes
1answer
127 views
Decompilation Issues
i'm new here, so please be more patient :)
Task:
i've decompiled very old app to adopt it for mouse clicking and touch. i've used .NET Reflector 8 for decompilation process. After i've opened ...
0
votes
1answer
1k views
Tracing C# DLL function calls
[Legacy Application (Belongs to Vendor)] -> [DLL (Obfuscated)] -> [New Subsystem (replaced)]
I have been given a DLL, which is obfuscated (except the name of the function which are public).
I can't ...
0
votes
0answers
50 views
Online sqlserver and security against reflection
I am planning to use an online activation for my winform application.
I plan to us a MySQL database for it.
The thing I am worried about is if someone tries to Reflect the code(Ex: Redgate .Net ...
1
vote
1answer
3k views
Convert dll to csproj ou sln
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 (...
0
votes
0answers
1k views
.Net Reflector crash
I have problem with my .Net Reflector 8.3 application. When I double click it doesn't start and generates error.
.Net Reflector has just thrown an exception: Could not load file or assembly '{...
1
vote
2answers
666 views
Finding the source DLL name from Interop assembly via reflection
I have an Interop DLL RCW.Xyz.dll but I can't find the corresponding DLL. Because the name doesn't follow the default naming scheme Interop.Xyz.dll my guess is that the interop assembly was simply ...
1
vote
2answers
656 views
How does Reflector decompile code?
How do tools like the Red Gate Ant Profiler or the Reflector convert IL into C# or VB.NET code?
I recently noticed that the Red Gate Ant Profiler does not generate the same source code that was ...
1
vote
1answer
4k views
VB.net load dll
I have been attempting to load a DLL using Reflector
Imports System.Reflection
I have a simple DLL file written in c++ using /CLR (this is the entire file)
using namespace System;
namespace ...
0
votes
2answers
4k views
Can i decompile asp.net mvc 4 dll files
I am working on de compiling my old mvc4 source code which has only dll files in it, i would like to know if it is possible i have already used reflector and got some of the source files but it looks ...
3
votes
1answer
1k views
Biztalk Orchestration reverse engineer
My situation is:
Old developer left without the code so I can not add any enhancement or fix the bug.
Do we have any service/tool that I can reverse the Orchestration (+ Mapping) to original format (...
0
votes
1answer
77 views
Hex Value for request.Timeout in C#
I decompiled a DLL using reflector. The retrieved code put Hex values in all assigments for request.Timeout. Something like this:
request.Timeout = 0x401640;
It compiles fine, but I dont know if ...
0
votes
1answer
61 views
Rename a Class in .NET Project
I have a Static Class with the name "Common". This class is used so many places within the Project..
Now, For some reasons I have to Change the Class name "Common" to "NewCommon"..
How I can rename ...
9
votes
2answers
2k views
Test if a class type can be instantiated with Activator without instantiating it
Currently when I have a class type and need to know if the class can be created. I will call Activator.CreateInstance(type); and throw away the result.
This seems very inefficient and problematic.
...
1
vote
1answer
36 views
Documenting public interface of assemblies
The rules of software versioning recommend incrementing the MAJOR VERSION when there are breaking changes to the public API.
I have tried using Class View in Visual Studio and applications like ...
0
votes
1answer
593 views
Decompilation multiple Dlls
I have a directory with multiple .Net libraries (+/- 500 dlls).
I need decompile this libraries to obtain the C# sourcecode.
I use .Net Reflector software to decompile each library, but I should ...
14
votes
6answers
26k views
Modify Compiled .Net Exe
I have an application written in C# (without the source of course), that needs to be changed a little bit. For example, I need to stop a few lines of code that create an unnecessary menu. So I think I ...
0
votes
1answer
50 views
.NET Reflector MSIL
Looking at the AuthorizedChangeSet Method which reflector shows as
protected virtual bool AuthorizeChangeSet()
{
foreach (ChangeSetEntry entry in this.ChangeSet.ChangeSetEntries)
...