Category: C#

C# Compiler Error – CS8665 method ‘{0}’ specifies a ‘class’ constra

In this blog post, you’ll learn more about the C# Compiler Error – CS8665 and the related message description C# Compiler Error Code CS8665 C# Compiler Description for the Code :CS8665 Method ‘{0}’ specifies a ‘class’ constraint for type parameter ‘{1}’, but corresponding type parameter ‘{2}’ of overridden or explicitly implemented method ‘{3}’ is not a reference type.

C# Compiler Warning – CS1695 invalid #pragma checksum syntax; should

In this blog post, you’ll learn more about the C# Compiler Warning – CS1695 and the related message description C# Compiler Warning Code CS1695 C# Compiler Description for the Code :CS1695 Invalid #pragma checksum syntax; should be #pragma checksum “filename” “{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}” “XXXX…”

C# Compiler Warning – CS8769 nullability of reference types in type o

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

Example of Anonymous Type Indexes in For Loop in C#

The anonymous type (var) can be used to initialize the indexes in a for loop or the object within the for each loop. Below is a sample code snippet demonstrating the usage of the anonymous types in the For loop . Example of Anonymous Type Indexes in For Loop in C#

Backward Navigation in Windows Phone App

The NavigationService in Windows Phone 8 exposes the method GoBack () which lets the users to move back to the previous page in the page history stack. Backward Navigation in Windows Phone App Below is a sample code snippet demonstrating the Backward Navigation in Windows Phone App.