JustDecompile Property Generation

5 posts, 0 answers
  1. Jason Kergosien
    Jason Kergosien avatar
    13 posts
    Member since:
    Mar 2007

    Posted 10 Jan 2014 Link to this post

    In JustDecompile, normally, a property would look like:
    Get:   var name = myUser.FirstName;
    Set:   myUser.FirstName = "Bob";

    But in Resharper, it is doing:
    Get:   var name = myUser.get_FirstName();
    Set:   myUser.set_FirstName("Bob");

    These are throwing compiler errors and take a lot to clean up. How do I set JustDecompile to generate them way I expect?
    Thanks!
  2. Jason Kergosien
    Jason Kergosien avatar
    13 posts
    Member since:
    Mar 2007

    Posted 13 Jan 2014 Link to this post

    Bump!  :)

  3. DevCraft banner
  4. Momchil
    Admin
    Momchil avatar
    31 posts

    Posted 14 Jan 2014 Link to this post

    Hi there,

    Thanks for contacting us.

    I am not quite sure whether I understood the issue correct -- could you please tell us whether JustDecompile shows (or generates via "Create Project") code with get_FirstName/set_FirstName method invocations?  If that is the case, the reason might be that these properties are from a class that is in a referenced assembly which hasn't been resolved in JustDecompile, that is, JustDecompile failed to find the referenced assembly.  However, if JustDecompile shows them correct and generates correct code, we could not possibly know what is Resharper doing after that.

    Thanks again.

    Regards,
    Momchil
    Telerik
    Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
  5. Jason Kergosien
    Jason Kergosien avatar
    13 posts
    Member since:
    Mar 2007

    Posted 14 Jan 2014 Link to this post

    Thanks, Momchil.  To clarify, I've noticed it when I look at the code after running Create Project. It does request an external reference. 

    I noticed I was referencing a newer version of the dll than was prompted for. It accepted it, but had the code errors. When I went back and added the exact version of  the dll, it seemed to work.  That's good, but shouldn't it warn/prompt me if it isn't satisfied that it has the right dll?

    Also, please disregard any reference to Resharper. It was a type-o I tried to remove.

    Jason
  6. Momchil
    Admin
    Momchil avatar
    31 posts

    Posted 17 Jan 2014 Link to this post

    Hi there,

    Thanks for the feedback.

    You are possibly right that JustDecompile might prompt a warning if there is no complete match with the provided reference dll, although at first glance this check is not always that easy.

    You can suggest your idea at our user voice page:

    http://justdecompile.uservoice.com/forums/113277-justdecompile-feature-suggestions

    Thanks again.

    Regards,
    Momchil
    Telerik
    Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
Back to Top
DevCraft banner