Properties and indexers not resolved in project

3 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    Nov 2015

    Posted 20 Nov 2015 Link to this post

    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. David
    David avatar
    2 posts
    Member since:
    Nov 2015

    Posted 20 Nov 2015 in reply to David Link to this post

    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.
  3. DevCraft banner
  4. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 23 Nov 2015 Link to this post

    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
Back to Top