Category: C#

C# Compiler Error – CS8868 a copy constructor in a record must call

In this blog post, you’ll learn more about the C# Compiler Error – CS8868 and the related message description C# Compiler Error Code CS8868 C# Compiler Description for the Code :CS8868 A copy constructor in a record must call a copy constructor of the base, or a parameterless object constructor if the record inherits from object.

How to Terminate an Windows Phone 8 App using C#?

If you want to programmatically terminate the windows phone 8 application , you can use the Application.Terminate() method . How to Terminate an Windows Phone 8 App using C#? When using the Application.Terminate() , the developers should make sure that all the necessary data is saved because , the Application Closing event handler wont be raised in this case.

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…