Category: C#

C# Compiler Warning – CS0626 method, operator, or accessor ‘{0}’ is m

In this blog post, you’ll learn more about the C# Compiler Warning – CS0626 and the related message description C# Compiler Warning Code CS0626 C# Compiler Description for the Code :CS0626 Method, operator, or accessor ‘{0}’ is marked external and has no attributes on it. Consider adding a DllImport attribute to specify the external implementation.

C# and LINQ – Filter elements from object collection using where clause

Here’s a sample code snippet demonstrating how to filter elements from a list of objects using the where clause using LINQ in C#. This sample gets all the employees who salary is greater than 20000 GBP. How to Filter Employees List whose salary is greater than 20000 GBP using LINQ in C# ? Output Employees whose salary is greater than 20000 pounds Michael John