Ludmal De Silva - .Net Programmer

Ludmal De Silva - .Net Programmer

Share this post

Ludmal De Silva - .Net Programmer
Ludmal De Silva - .Net Programmer
Generic List removing duplicates
Copy link
Facebook
Email
Notes
More

Generic List removing duplicates

Ludmal De Silva's avatar
Ludmal De Silva
Aug 27, 2008

Share this post

Ludmal De Silva - .Net Programmer
Ludmal De Silva - .Net Programmer
Generic List removing duplicates
Copy link
Facebook
Email
Notes
More
Share
static List removeDuplicates(List inputList)
{
   Dictionary uniqueStore = new Dictionary();
   List finalList = new List();
    foreach (string currValue in inputList)
   {
       if (!uniqueStore.ContainsKey(currValue))
       {
           uniqueStore.Add(currValue, 0);
           finalList.Add(currValue);
       }
   }
   return finalList;
}



Subscribe to Ludmal De Silva - .Net Programmer

Launched a year ago
Hello there, I have written many software applications mainly using .Net tech and has a great passion for AI.

Share this post

Ludmal De Silva - .Net Programmer
Ludmal De Silva - .Net Programmer
Generic List removing duplicates
Copy link
Facebook
Email
Notes
More
Share

Discussion about this post

User's avatar
Event-Driven Microservices Architecture with .NET
Microservices have gained immense popularity due to their scalability, flexibility, and alignment with modern distributed systems.
Sep 6, 2024 â€¢ 
Ludmal De Silva
1

Share this post

Ludmal De Silva - .Net Programmer
Ludmal De Silva - .Net Programmer
Event-Driven Microservices Architecture with .NET
Copy link
Facebook
Email
Notes
More
Azure Service Bus Queue RetryOptions
It's crucial to effectively handle transient errors during message processing.
Nov 15, 2023 â€¢ 
Ludmal De Silva

Share this post

Ludmal De Silva - .Net Programmer
Ludmal De Silva - .Net Programmer
Azure Service Bus Queue RetryOptions
Copy link
Facebook
Email
Notes
More
.NET Configuration with IOptions, IOptionsMonitor, and IOptionsSnapshot
Configuration management is a critical aspect of modern software development.
Jan 31, 2024 â€¢ 
Ludmal De Silva

Share this post

Ludmal De Silva - .Net Programmer
Ludmal De Silva - .Net Programmer
.NET Configuration with IOptions, IOptionsMonitor, and IOptionsSnapshot
Copy link
Facebook
Email
Notes
More

Ready for more?

© 2025 Ludmal De Silva
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.