linq unique count property

Code Example - linq unique count property

                
                        data.Select(x => x.Id).Distinct().Count();