Category: C#

C# Compiler Error – CS8350 this combination of arguments to ‘{0}’ i

In this blog post, you’ll learn more about the C# Compiler Error – CS8350 and the related message description C# Compiler Error Code CS8350 C# Compiler Description for the Code :CS8350 This combination of arguments to ‘{0}’ is disallowed because it may expose variables referenced by parameter ‘{1}’ outside of their declaration scope

C# and Lambda – Filter elements from object collection using Where method

Here’s a sample code snippet demonstrating how to filter elements from a list of objects using the where clause using Lambda 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 Lambda in C# ? Output Employees whose salary is greater than 20000 pounds Michael John

C# Compiler Error – CS8511 an expression of type ‘{0}’ cannot be ha

In this blog post, you’ll learn more about the C# Compiler Error – CS8511 and the related message description C# Compiler Error Code CS8511 C# Compiler Description for the Code :CS8511 An expression of type ‘{0}’ cannot be handled by a pattern of type ‘{1}’. Please use language version ‘{2}’ or greater to match an open type with a constant pattern.

How to Create an Implicit Style in Windows Phone 8 ?

In one of the previous article , we demonstrated how to create an explicit style in Windows Phone 8 for TextBlock . In this article , we will explore how one can create an implicit style in Windows Phone 8. How to Create an Implicit Style in Windows Phone 8 ? To create an Implicit style , the steps are pretty simple , don’t specify…