SHARE
TWEET

Agrupar objetos duplicados de una lista C#

hussein87gabriel Feb 22nd, 2018 (edited) 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var dup = EntLstServicios
  2.           .GroupBy(x => new { x.ServicioId })
  3.           .Select(group => new { Name = group.Key, Count = group.Count() })
  4.            .OrderByDescending(x => x.Count);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top