RedGate Reflector Alternative that produces Oxygene (Pascal) code?

Hi everyone,
I’ve been using Reflector to disassemble some assemblies into Oxygene/Pascal and it works great. However, after upgrading to a newer version of Reflector, Oxygene (and Delphi) have been marked as “deprecated” and looks like they will not be updating it in the future. I’ve looked at ILSpy, but it only odes C# and VB (afaict).

Is there a “Reflector-like” tool out there that produces Oxygene/Pascal code that is currently supported? Or, is there any possibility of RemObjects contributing to the ILSpy open-source tool to produce Oxygene code? Or am I a dummy and shouldn’t need/want a Reflector-like tool? :slight_smile:

Thanks,
Lee

Hello,

do I understand correctly that you are using reflector to translate existing C# code into Oxygene? If so you can use Oxidizer menu (it translates C#, Delphi and Java if you have Cooper license) into Oxygene. You can just copy C# code and paste it into your project via Oxidizer => Paste C# as Oxygene.

Best regards.

Reflector works with assemblies, so the language could have been C#, F#, or any other .Net language. So the translation would not be from “existing C# code”. FWIW.

And the OP could do a “Paste C# as Oxgene” from within VS.

@viktoriad - No, I’m reading the assemblies directly as @mtiede suggested. That way I can actually see how the code works and translated in to a language that is actually readable (oxygene). :slight_smile: I am having to work with an old version of Oxygene (Prism 2010) so I don’t have (I think) the ability to paste C# code as Oxygene in VS (2008). I have the command line version of Oxidizer but I don’t see any option to perform the paste in VS as you and @mtiede describe. It’s probably something available in a later version.

The Paste is a menu item when you are current in a .pas file and have something in the clipboard (C#) and right click in the editor window.

I have a moderately old version of Prism. What one do you have?

Here is what I have:

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel

Installed Version: Professional

Microsoft Office Developer Tools 01018-532-2002102-70042
Microsoft Office Developer Tools

Microsoft Visual Basic 2010 01018-532-2002102-70042
Microsoft Visual Basic 2010

Microsoft Visual C# 2010 01018-532-2002102-70042
Microsoft Visual C# 2010

Microsoft Visual C++ 2010 01018-532-2002102-70042
Microsoft Visual C++ 2010

Microsoft Visual F# 2010 01018-532-2002102-70042
Microsoft Visual F# 2010

Microsoft Visual Studio 2010 Team Explorer 01018-532-2002102-70042
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010 01018-532-2002102-70042
Microsoft Visual Web Developer 2010

AnkhSVN - Subversion Support for Visual Studio 2.4.11610.27
AnkhSVN - Subversion Support for Visual Studio 2.4.11610.27

  • Ankh.Package 2.4.11610.27
  • Subversion 1.7.6 via SharpSvn 1.7006.2206.13750

SharpSvn is linked to: Apr 1.4.6, Apr-util 1.4.2, Cyrus Sasl 2.1.23, Neon 0.29.6, OpenSSL 1.0.1c 10 May 2012, serf 1.1.0, SQLite 3.7.12.1, Subversion 1.7.6-SharpSvn-1.7.6, ZLib 1.2.7
SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 1.7006.2206.13750

Crystal Reports Templates for Microsoft Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010

Embarcadero Delphi Prism 4.0.27.843
Embarcadero Delphi Prism
Powered by the RemObjects Oxygene Compiler
Copyright © 2008-2010 Embarcadero Technologies, Inc. All rights reserved.
All Embarcadero brand and product names are trademarks or registered trademarks of Embarcadero Technologies, Inc. in the United States and other countries. Oxygene is a trademark of RemObjects Software, LLC in the United States and other countries. All other marks are the property of their respective owners.

Dedicated to Rick Wright (1943-2008).
Enjoy the Great Gig in the Sky.

Entity Framework 4.1 Power Tools 1.0
Adds useful design-time DbContext features to the Visual Studio Solution Explorer context menu.

When right-clicking on a file containing a derived DbContext class, the following context menu functions are supported:

  1. View Entity Data Model - Displays the underlying Code First model in the Entity Framework designer.
  2. View Entity Data Model XML - Displays the EDMX XML representing the underlying Code First model.
  3. Optimize Entity Data Model - Generates pre-compiled views used by the EF runtime to improve start-up performance. Adds the generated views file to the containing project.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2529927) KB2529927
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2529927.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2548139) KB2548139
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2548139.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2549864) KB2549864
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2549864.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2565057) KB2565057
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2565057.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2635973) KB2635973
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2635973.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2736182) KB2736182
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2736182.

Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.

Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.40219
Microsoft Visual Studio 2010 SharePoint Developer Tools

NuGet Package Manager 1.4.20615.9020
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Oracle Developer Tools for Visual Studio 11.2.0.1.2
Oracle Developer Tools for Visual Studio Copyright © 2005, 2010

RemObjects Everwood 3.0.17.257
RemObjects Everwood for .NET
Copyright 2003-2010 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/everwood

RemObjects Oxygene 4.0.27.843
RemObjects Oxygene
Copyright 2003-2011 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/oxygene

Security Update for Microsoft Visual Studio 2010 Professional - ENU (KB2645410) KB2645410
This security update is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2645410.

SQL Server Data Tools 10.3.20905.0
Microsoft SQL Server Data Tools

VisualStudioIntegration2010 1.0
Information about my package

VMDebugger
For more information about VMware Inc, see their website at


Copyright © 2010 VMware, Inc.

I’m having to use Prism 2010 which means I’m in VS 2008. So it looks like I’m at least one version back from yours.

Hi,

unfortunately we don’t have plans implement disassemble tool for Oxygene or plugin for Reflector.

Don’t you already HAVE such code because you already did one for Reflector?

@slavad: Thanks. Maybe when I can start using a more up-to-date version of Oxygene/Visual Studio, I can use Oxidizer to paste code in Oxygene and it won’t be as big a problem. I won’t be able to just look at the code in Reflector to see how it works, but I can paste it into a text editor. It just won’t be as convenient/easy.

@mtiede: I assumed that the original author of Reflector had done it, but I could be wrong.

I think they must have had some help from the RemObjects guys, but maybe not.

And you don’t need Oxidizer to do the paste. I don’t have it.

No, I’m sure you don’t need Oxidizer. I mistakenly thought that it was the integration of Oxidizer into the IDE (instead of the command line utility I have) was what gave VS the ability to paste the code from C# to Pascal. My misunderstanding, then. It still doesn’t seem to exist in VS2008, though.

Along with the last version of Prism I purchased with XE, and the VS 2010 shell, came a sample Delphi project and all source files to make a new “Reflector” that I was told at the time was as good as the original displaying in Object Pascal! I never had the time to compile and try it out, but I know I still have a copy of it. I m happy to send a copy to anyone who asks, or post it anywhere wanted as well.

Telerik has JustDecompile. Wish that had Oxygene. Marc?

I am having the same question after 8 years now - is there a disassembly tool that can convert .NET assembly to Oxygene code? Or I need to use Oxydizer?

You’'ll need to use Oxidizer, I’m afaid. That, or just use the C#/VB code generated by Reflector or ILSpy, as is.