Abundant Code

  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • F#
  • JavaScript
  • ASP.NET
  • C
  • Java
  • SQL Server
  • Assembly Lang
Home ยป duplicate

How to Remove Duplicates in List using LINQ?

November 28, 2020 by AbundantCode Leave a Comment

There are times when you have to remove duplicate entried from a List from Your C# program and one of the easiest way to do that is using the combination of the LINQ and IEqualityComparer interface. Assume that you have a list of Actors as shown below ID : 1 , Name = Vijay ,Language […]

Filed Under: C# Tagged With: duplicate, Duplicates, LINQ

Using HashSet to remove duplicates from array in C#

May 11, 2016 by AbundantCode Leave a Comment

If you want to remove duplicates from an array in C# , one of the options is to use HashSet as shown below. How to remove duplicates from an array in C# using HashSet?

Filed Under: C# Tagged With: Array, Collection, duplicate, Generic, HashSet

RSS
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval

Categories

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML

Blog Stats

  • 8,729,431 hits

Archives

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • C Program to display half-pyramid using alphabets
  • How to Extract number from a string using C# ?
  • Json.NET & VB.NET - How to Deserialize an Object ?
  • System Software - SIC/XE Program to clear 20 byte string to empty
  • How to Check if Integer is a multiple of a number in Java?
  • Tools to Convert Java to C# Source Code
  • How to Allow only numeric input in a Textbox in WPF ?

Categories

  • Android
  • Angular 2
  • ASP.NET
  • Assembly Language
  • C
  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • Excel
  • F#
  • HTML
  • Interview Questions
  • Java
  • JavaScript
  • jQuery
  • Microsoft Office
  • MySQL
  • NETWORK
  • News
  • PHP
  • popular
  • PowerShell
  • Python
  • Ruby
  • SharePoint
  • SQL Server
  • SQL Server
  • Unix
  • VB.NET
  • Visual Studio
  • WebAPI
  • Windows
  • Windows Azure
  • Windows Forms
  • XAML

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • C Program to display half-pyramid using alphabets
  • How to Extract number from a string using C# ?
  • Json.NET & VB.NET - How to Deserialize an Object ?
  • System Software - SIC/XE Program to clear 20 byte string to empty
  • How to Check if Integer is a multiple of a number in Java?
  • Tools to Convert Java to C# Source Code
  • How to Allow only numeric input in a Textbox in WPF ?

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval
  • Python Program to Check Prime Number
  • Python Program to Find the Largest Value Among Three Numbers
  • Python Program to Check If a Given Year is Leap Year
  • Python Program to Check if a Number is Odd or Even
  • Python Program to Check if a Number is Positive, Negative or Zero

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML