Generated Equality Methods

4 posts, 0 answers
  1. Matthias Bibo
    Matthias Bibo avatar
    72 posts
    Member since:
    Mar 2010

    Posted 17 Apr 2012 Link to this post

    Hi,

    I have been using JustCode to generate my Equals methods and noticed that the generated Equals and GetHashCode methods don't call the base Class methods. This causes Problems in my Project because Objects are only Equal if all Properties (including the base Class Properties) are Equal. I have build an example Application to illustrate my Problem, but I can't attach it.
    How can I attach the sample Project to this Post?

    I have also noticed that the generated code somethinge includes 'this.' and sometimes it dosen't which causes your code check (StyleCop)  to throw Warnings.

    Best regards,
    Matthias
  2. Stefan Avramov
    Admin
    Stefan Avramov avatar
    41 posts

    Posted 20 Apr 2012 Link to this post

    Hello,

    Thanks for writing to us about that. We fixed the command to add calls to 'base' if overrides of Equals or GetHashCode exist there. There was also a bug with not considering your option in JustCode->Options->CodeStyle->C#->"Use 'this' qualifier for field or member accesses"  which is also fixed for our next major release. You receive some Telerik Points for that.

    Also you should be able to attach files when posting: http://screencast.com/t/fVeptAHZ. However here is not the best place for that as it is public. Best open a support ticket for us and attach it there.

    Greetings,
    Stefan Avramov
    the Telerik team

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

  3. DevCraft banner
  4. Matthias Bibo
    Matthias Bibo avatar
    72 posts
    Member since:
    Mar 2010

    Posted 27 Apr 2012 Link to this post

    Hello,

    good to hear... 

    I can only attach pictures, not sample projects...

    When I tried to click the "For entire solution submit a support ticket with attachment."  I land on the "Get support" page, but where to open a ticket with a repro sample project?

    Best regards,
    Matthias

  5. Stefan Avramov
    Admin
    Stefan Avramov avatar
    41 posts

    Posted 27 Apr 2012 Link to this post

    Hello,

    Here is what you must do step by step:
    1. Go to Telerik's Contact Support Team Page: http://screencast.com/t/MDsNPLpgCG
    2. Locate JustCode's Submit support button: http://screencast.com/t/S3SvPRfCg
    3. Zip your solution to one file.
    4. At the bottom click attach files: http://screencast.com/t/015lv5cd
    5. Click 'Send' and you should be done

    Hope that helps! If you have any other issues do not hesitate to write back.

    Kind regards,
    Stefan Avramov
    the Telerik team

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

Back to Top