csharp linq remove duplicate items from list of integer

Code Example - csharp linq remove duplicate items from list of integer

                
                        List<int> distinct = list.Distinct().ToList();