Category: C#

C# Compiler Warning – CS8766 nullability of reference types in return

In this blog post, you’ll learn more about the C# Compiler Warning – CS8766 and the related message description C# Compiler Warning Code CS8766 C# Compiler Description for the Code :CS8766 Nullability of reference types in return type of ‘{0}’ doesn’t match implicitly implemented member ‘{1}’ (possibly because of nullability attributes).

C# Compiler Error – CS8420 the body of an async-iterator method mus

In this blog post, you’ll learn more about the C# Compiler Error – CS8420 and the related message description C# Compiler Error Code CS8420 C# Compiler Description for the Code :CS8420 The body of an async-iterator method must contain a ‘yield’ statement. Consider removing ‘async’ from the method declaration or adding a ‘yield’ statement.

How do Specify the Exit Code of Console Application in .NET?

There are times when you want to specify the exit code from the Main function for example when working on the Console Application in .NET . How do Specify the Exit Code of Console Application in .NET? You can use the Environment.Exit to specify the exit code in the Console Application.

System.Windows.Markup.XamlParseException when using MapControl in Windows Phone 8

When working with the MapControl in Windows Phone 8 , you might receive the following error when the right capabilities for the Map is not set in the Windows Phone Application Manifest file. System.Windows.Markup.XamlParseException when using MapControl in Windows Phone 8 To resolve this error , Open the WMAppmanifest.xml file and the check or enable the ID_CAP_MAP in the capabilities tab.

C# Compiler Error – CS0138 a ‘using namespace’ directive can only b

In this blog post, you’ll learn more about the C# Compiler Error – CS0138 and the related message description C# Compiler Error Code CS0138 C# Compiler Description for the Code :CS0138 A ‘using namespace’ directive can only be applied to namespaces; ‘{0}’ is a type not a namespace. Consider a ‘using static’ directive instead