Bug Enumerable.OrderBy<> missing in decompiled code

4 posts, 0 answers
  1. Blamara
    Blamara avatar
    10 posts
    Member since:
    Dec 2014

    Posted 09 Apr 2015 Link to this post

    Not sure why it happened but noticed several times on Enumerable.OrderBy<> and I've manager to reproduce.

    Maybe it's missing because it's marked as Compiler Generated code!?

    Sample Code (full example will send you via email):

    public Bug(ListItemPointData pointData)
      : this()
    {
      this.Loops = new List<ListItem>(pointData.Loops);
      
      Enumerable.OrderBy<ListItem, DateTime>(
        this.Loops,
        delegate(ListItem point) { return point.OrderField; }
        );
    }

    Generated code (you can notice Enumerable.OrderBy<...>(...) is missing in any form:

    public Bug(BugEnumerationOrderByNotDecompiled.ListItemPointData pointData) : this()
    {
        this.Loops = new List<BugEnumerationOrderByNotDecompiled.ListItem>(pointData.Loops);
    }

  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 15 Apr 2015 Link to this post

    Hello,

    Thanks for reporting this problem.

    Could you, please, send us the assembly where that happens?

    Regards,
    Tsviatko Yovtchev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. DevCraft banner
  4. Blamara
    Blamara avatar
    10 posts
    Member since:
    Dec 2014

    Posted 20 Apr 2015 in reply to Tsviatko Yovtchev Link to this post

    sry on late answer

    Already sent to Alexander Dimitrov full project source with several bug.
    Among them is this one, with commented decompiled code.
    source file: BugEnumerationOrderByNotDecompiled.cs

    you can ask him to forward you same email/project,
    or give me your email and I'll forward same email sent to him.

    best regards

  5. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 22 Apr 2015 Link to this post

    Hello Blamara,

    Thank you for sharing the whole project with me. Also for reporting this bug. Your help is very appreciated.

    I already forwarded the project to my colleague. Don't worry about sending it again.

    Please, update regularly and stay tuned.

    Regards,
    Alexander
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top