Examples of errors detected by the V3078 diagnostic

V3078. Original sorting order will be lost after repetitive call to 'OrderBy' method. Use 'ThenBy' method to preserve the original sorting.


SharpDevelop

V3078 Original sorting order will be lost after repetitive call to 'OrderBy' method. Use 'ThenBy' method to preserve the original sorting. CodeCoverageMethodElement.cs 124


void Init()
{
  ....
  this.SequencePoints.OrderBy(item => item.Line)
                     .OrderBy(item => item.Column);
}

Telerik UI for UWP

V3078 Original sorting order will be lost after repetitive call to 'OrderBy' method. Use 'ThenBy' method to preserve the original sorting. GridModel.Selection.cs 107


private void BuildCellSelectionRegions(....)
{
  ....
  this.MergeCellSelectionRegions(selectedItemsInView
      .OrderBy(c => c.Column.ItemInfo.LayoutInfo.Line)
      .OrderBy(c => c.RowItemInfo.LayoutInfo.Line));
}


Bugs Found

Checked Projects
409
Collected Errors
14 072
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →
Accept