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

Properties and indexers not resolved in project

2 Answers 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 21 Nov 2015, 01:13 AM

When I open my assembly in JustDecompile, I see properties and indexers represented as such:

if (!service.InputParameters.Contains("Target") || !(service.InputParameters["Target"] is Entity))
{
    return;
}
item = (Entity)service.InputParameters["Target"];

But, when I export the source code using 'Create Project...' these same lines will look like this:

if (!service.get_InputParameters().Contains("Target") || !(service.get_InputParameters().get_Item("Target") is Entity))
{
    return;
}
item = (Entity)service.get_InputParameters().get_Item("Target");

This, of course, won't compile, and would require a lot of cleanup.

I've worked around it by simply copying and pasting the code from the JustDecompile window into my Visual Studio window. But, it would be nice to not have to, since I don't want to risk missing a file or pasting the wrong source.

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 21 Nov 2015, 01:16 AM
I also just noticed that LINQ query expressions are also a mess. I won't paste a sample, but in the generated project files the code does not appear anything like it does in the JustDecompile window.
0
Alexander
Telerik team
answered on 23 Nov 2015, 05:33 PM
Hello David,

Thanks for letting us know about this problem. I really appreciate this.

I tried to reproduce the problem you have with some sample codes, but without any success at all. Would it be possible that you zip the assembly where that happens and send it over to my email - alexander.dimitrov [at] telerik.com? Please, note that the [at] must be replaced with @.

Also, could you, please, elaborate some more on the LINQ expressions problem (for ex. sample code, assembly)?

Your help is very appreciated.

Regards,
Alexander
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or