Category: C#

C# Compiler Error – CS0312 the type ‘{3}’ cannot be used as type pa

In this blog post, you’ll learn more about the C# Compiler Error – CS0312 and the related message description C# Compiler Error Code CS0312 C# Compiler Description for the Code :CS0312 The type ‘{3}’ cannot be used as type parameter ‘{2}’ in the generic type or method ‘{0}’. The nullable type ‘{3}’ does not satisfy the constraint of ‘{1}’.

C# Compiler Error – CS1773 invalid version {0} for /subsystemversio

In this blog post, you’ll learn more about the C# Compiler Error – CS1773 and the related message description C# Compiler Error Code CS1773 C# Compiler Description for the Code :CS1773 Invalid version {0} for /subsystemversion. The version must be 6.02 or greater for ARM or AppContainerExe, and 4.00 or greater otherwise

Example for Documentation Tags

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication1 { #region testregion /// <summary> /// This is a test Class Form1 /// </summary> public partial class Form1 : Form { /// <summary> /// Constructor for the Form1 /// </summary> public Form1() { InitializeComponent(); } /// <summary> /// Form Load Event of the…

WP8.1 Dev Guide – Download and Install Windows Phone 8.1 SDK

To get started with the development of windows phone 8.1 apps , the developers should have the Windows Phone 8.1 SDK installed on their system . You can download Visual Studio Express 2013 for Windows , a free tool that lets the developers to create Windows Phone and Windows Store apps, including universal Windows apps targeting all the Windows devices. The tools include the necessary…

Decimal Numeric Formatting in C#

The Decimal Numeric Formatting string returns the integer digit with the negative symbol (if provided). The Decimal Numeric formatting staring also accepts the precision specifier which indicates the Minimum number of digits to be returned. Decimal Numeric Formatting in C# Below is a sample sourecode demonstrating the Decimal Number formatting using the Numeric Format String “D” and “D5”. Here D5 formats the string to minimum…

Json.NET & C# – How to Serialize a Collection?

Do you want to serialize an collection in your C# application?. Json.NET supports this functionality with ease. The Collection can be an Array , Dictionary or List. You need to simply pass collection to the JsonConvert.SerializeObject static method which would serialize the collection and return you the Json string. How to Serialize a Collection in C# using JSON.NET ? For example , assume that you…

How to Populate XDocument from String in C# ?

To populate the XDocument from a string in C# , we can use the Parse method defined in the XDocument class. Below is a sample code snippet that demonstrates how to populate XDocument from string in C#. How to Populate XDocument from String in C# ?