Category: C#

C# Compiler Error – CS8138 cannot reference ‘system.runtime.compile

In this blog post, you’ll learn more about the C# Compiler Error – CS8138 and the related message description C# Compiler Error Code CS8138 C# Compiler Description for the Code :CS8138 Cannot reference ‘System.Runtime.CompilerServices.TupleElementNamesAttribute’ explicitly. Use the tuple syntax to define tuple names.

How to Remove Duplicates in List using LINQ?

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 = TamilID : 2 , Name = Rajni ,Language =…

C# Compiler Error – CS8702 ‘{0}’ cannot implement interface member

In this blog post, you’ll learn more about the C# Compiler Error – CS8702 and the related message description C# Compiler Error Code CS8702 C# Compiler Description for the Code :CS8702 ‘{0}’ cannot implement interface member ‘{1}’ in type ‘{2}’ because the target runtime doesn’t support default interface implementation.