Category: C#

Visual Assets Tab in Package Manifest file

The Visual Assets tab in the package manifest file lets the developers set the characteristics of the application’s title , splash screen and the images used within the application for various scenario. You will be able to specify the splash screen for your Windows Phone and Windows Store separately because the dimensions are different for phone and the tablet app. The Splash screen for the…

C# Compiler Error – CS1971 the call to method ‘{0}’ needs to be dyn

In this blog post, you’ll learn more about the C# Compiler Error – CS1971 and the related message description C# Compiler Error Code CS1971 C# Compiler Description for the Code :CS1971 The call to method ‘{0}’ needs to be dynamically dispatched, but cannot be because it is part of a base access expression. Consider casting the dynamic arguments or eliminating the base access.

Using the Namespace Alias Qualifier in C#

One of the advantages of the Namespace is the organization of your code and structure . You could use the Namespace Alias Qualifier that allows the developers to replace the namespace names with the alias so that the ambigous definitions of the classes/namespaces are prevented. An sample example of the Ambigous definition os class is below using System; using System.Collections.Generic; using System.Linq; using System.Text; using…

Initialize Read-only Properties from Constructor in C# 6.0

C# 6.0 lets the developers to initialize the read only properties directly when declaring them . Since it is a read-only property , it behaves the same as read only variable where you can initialize the read-only auto properties from a constructor. Initialize Read-only Properties from Constructor in C# 6.0 Below is a sample code snippet demonstrating how to initialize read-only properties from constructor in…

C# Compiler Error – CS1759 cannot embed interop types from assembly

In this blog post, you’ll learn more about the C# Compiler Error – CS1759 and the related message description C# Compiler Error Code CS1759 C# Compiler Description for the Code :CS1759 Cannot embed interop types from assembly ‘{0}’ because it is missing either the ‘{1}’ attribute or the ‘{2}’ attribute.