This is a migrated thread and some comments may be shown as answers.

Failed to decompile System.Linq.Enumerable::TakeIterator

3 Answers 280 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 07 Apr 2012, 07:17 PM
Hi,

While decompiling System.Linq.Enumerable::TakeIterator I get the following error.

Current member / type: System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable::TakeIterator(System.Collections.Generic.IEnumerable`1<TSource>,System.Int32)
 File path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Core.dll
 Product version: 2012.1.214.2
 Multiple invocations of finally method
    at ..( handlerInfo, Queue`1 bfsQueue, ILogicalConstruct currentNode)
    at ..( handlerInfo)
    at ..(BlockLogicalConstruct theBlock)
    at ..()
    at ..Process(DecompilationContext context, BlockStatement body)
    at Telerik.JustDecompiler.Decompiler.DecompilationPipeline.Run(MethodBody body, ILanguage language)
    at Telerik.JustDecompiler.Decompiler.Extensions.DecompileYieldStateMachine(MethodBody body, ILanguage language, YieldFieldsInformation& fieldsInformation)
    at ..()
    at ..Match(StatementCollection statements)
    at ..Process(DecompilationContext context, BlockStatement body)
    at Telerik.JustDecompiler.Decompiler.DecompilationPipeline.Run(MethodBody body, ILanguage language)
    at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(MethodDefinition method)
    at Telerik.JustDecompiler.Languages.BaseLanguageWriter.Write(IMemberDefinition member, Boolean showCompilerGeneratedMembers)
    at JustDecompile.CodeViewer.CodeWriter.Write() in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\CodeWriter.cs:line 34
    at JustDecompile.CodeViewer.ViewModels.CodeViewerViewModel.(AssemblyMemberNode member, CancellationToken cancellationToken) in c:\Builds\126\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 170

In addition, the following members from System.Linq.Enumerable fail to decompile

System.Linq.Enumerable::Count(System.Collections.Generic.IEnumerable`1<TSource>)System.Linq.Enumerable::DefaultIfEmptyIterator(System.Collections.Generic.IEnumerable`1<TSource>,TSource)

System.Linq.Enumerable::LongCount(System.Collections.Generic.IEnumerable`1<TSource>)

System.Linq.Enumerable::SkipIterator(System.Collections.Generic.IEnumerable`1<TSource>,System.Int32)

System.Linq.Enumerable::TakeWhileIterator(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,System.Boolean>)

System.Linq.Enumerable::TakeWhileIterator(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`3<TSource,System.Int32,System.Boolean>)

System.Linq.Enumerable::ZipIterator(System.Collections.Generic.IEnumerable`1<TFirst>,System.Collections.Generic.IEnumerable`1<TSecond>,System.Func`3<TFirst,TSecond,TResult>)

 

 
Best Regards,

Chris

3 Answers, 1 is accepted

Sort by
0
Accepted
Kaloyan
Telerik team
answered on 11 Apr 2012, 08:30 AM
Hello Chris,

The issue is fixed in the latest product update. So you can download it and give it a try.

All the best,
Kaloyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Chris
Top achievements
Rank 1
answered on 13 Apr 2012, 08:59 PM
Hi Kaloyan,

Just installed the new version and it looks great, above issues solved and it might be my imagination, but it seems a little snappier as well. You guys are doing a great job!

Best Regards,

Chris
0
Ashwani
Top achievements
Rank 1
answered on 11 Feb 2013, 02:41 PM
Hi Kaloyan,

We are using JD(2012.3.1119.12) to decompile an assembly into c# project.
The generated project has EF/ Linq  query/statements; and in these code blocks have some unknown type or members.
We are using free version, should we try paid version?

Thank you,
Ashwani
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Chris
Top achievements
Rank 1
Ashwani
Top achievements
Rank 1
Share this question
or