Category: C#

Rules for using Anonymous Types in C#

The anonymous types (var) in C# is an interesting feature that the C# developers could use within their .NET application . When using the anonymous type , there are certain criteria or rules that needs to be followed . Rules for using Anonymous Types in C# Below are some of the rules that the developers should be following when using the anonymous type. 1. NULL…

C# Compiler Error – CS8852 init-only property or indexer ‘{0}’ can

In this blog post, you’ll learn more about the C# Compiler Error – CS8852 and the related message description C# Compiler Error Code CS8852 C# Compiler Description for the Code :CS8852 Init-only property or indexer ‘{0}’ can only be assigned in an object initializer, or on ‘this’ or ‘base’ in an instance constructor or an ‘init’ accessor.

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

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

How to Set the Windows Phone 8 icons in Visual Studio 2012?

You can set the icons for your Windows Phone 8 app in Visual Studio 2012 using the WMAppManifest.xml manifest file. The Visual Studio 2012 includes a GUI editor for editing WMAppManifest.xml manifest file. How to Set the Windows Phone 8 icons in Visual Studio 2012? You can find the WMAppManifest.xml, under the properties node of the project in the Visual Studio solution explorer. Just double…