Comments
4 comments
-
There is a bug in the addin that you have installed. You could report it to the addin author.
It is throwing an exception in the code to write an ObjectCreateExpression where the addin uses code like the following:
private void WriteObjectCreateExpression(IObjectCreateExpression iObjectCreateExpression)
{
ITypeReference reference = iObjectCreateExpression.get_Constructor().get_DeclaringType() as ITypeReference;
In the example you gave, the create expression is new RECT() and the constructor property is null leading to an exception being thrown. The other language generators check for the Constructor property being null and use WriteType in this case.
Reflector 5.1.6 used to bring up a dialog to report the exception - 6.0 seems to be redirecting to the Red Gate web page. I'll investigate further why this is. -
Thank you for your quick and nice reply. Is there any chance of using a older version of reflector? Mine always deletes itself?
-
Hi there,
I'm afraid that, due to .NET Reflector's popularity, we don't distribute older versions because we are unable to support them. As Clive suggests, your best bet is to try to contact the author of the add-in. Contact details are available on this page:
http://www.sandpapersoftware.com/Main/Reflector.html
It is odd that it opens the Red Gate site in that case though, so we'll try to figure out why and will aim to get a fix in the next release of .NET Reflector.
We're adding support for the C# 4.0 and VB 10 language extensions in .NET 4 at the moment, so we'd hope to have something out in April or possibly May.
Thanks,
Bart -
Hi again,
You should find that this bug is fixed in the .NET Reflector 6.1 release. Please see this post for more information:
http://www.red-gate.com/MessageBoard/viewtopic.php?t=10577
Hope that helps.
Thanks,
Bart
Add comment
Please sign in to leave a comment.
Install fresh Reflector
Install CPPCLiLanguage DLL file in the same directory
launch Reflector
Add Add-in
Go to System::Windows::Forms::ComboBox (or any other one)
Dissassemble
Expand Methods