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 – CS7100 assembly culture strings may not contain
In this blog post, you’ll learn more about the C# Compiler Error – CS7100 and the related message description C# Compiler Error Code CS7100 C# Compiler Description for the Code :CS7100 Assembly culture strings may not contain embedded NUL characters.
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
C# Compiler Error – CS8910 the primary constructor conflicts with t
In this blog post, you’ll learn more about the C# Compiler Error – CS8910 and the related message description C# Compiler Error Code CS8910 C# Compiler Description for the Code :CS8910 The primary constructor conflicts with the synthesized copy constructor.
C# Compiler Error – CS0185 ‘{0}’ is not a reference type as require
In this blog post, you’ll learn more about the C# Compiler Error – CS0185 and the related message description C# Compiler Error Code CS0185 C# Compiler Description for the Code :CS0185 ‘{0}’ is not a reference type as required by the lock statement
C# Compiler Error – CS0466 ‘{0}’ should not have a params parameter
In this blog post, you’ll learn more about the C# Compiler Error – CS0466 and the related message description C# Compiler Error Code CS0466 C# Compiler Description for the Code :CS0466 ‘{0}’ should not have a params parameter since ‘{1}’ does not
C# Compiler Error – CS8635 unexpected character sequence ‘…’
In this blog post, you’ll learn more about the C# Compiler Error – CS8635 and the related message description C# Compiler Error Code CS8635 C# Compiler Description for the Code :CS8635 Unexpected character sequence ‘…’
C# Compiler Error – CS0220 the operation overflows at compile time
In this blog post, you’ll learn more about the C# Compiler Error – CS0220 and the related message description C# Compiler Error Code CS0220 C# Compiler Description for the Code :CS0220 The operation overflows at compile time in checked mode
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…
C# Compiler Error – CS4013 instance of type ‘{0}’ cannot be used in
In this blog post, you’ll learn more about the C# Compiler Error – CS4013 and the related message description C# Compiler Error Code CS4013 C# Compiler Description for the Code :CS4013 Instance of type ‘{0}’ cannot be used inside a nested function, query expression, iterator block or async method
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…
C# Compiler Hidden – CS8019 unnecessary using directive.
In this blog post, you’ll learn more about the C# Compiler Hidden – CS8019 and the related message description C# Compiler Hidden Code CS8019 C# Compiler Description for the Code :CS8019 Unnecessary using directive.
C# Compiler Error – CS8862 a constructor declared in a record with
In this blog post, you’ll learn more about the C# Compiler Error – CS8862 and the related message description C# Compiler Error Code CS8862 C# Compiler Description for the Code :CS8862 A constructor declared in a record with parameter list must have ‘this’ constructor initializer.
C# Compiler Warning – CS0472 the result of the expression is always ‘
In this blog post, you’ll learn more about the C# Compiler Warning – CS0472 and the related message description C# Compiler Warning Code CS0472 C# Compiler Description for the Code :CS0472 The result of the expression is always ‘{0}’ since a value of type ‘{1}’ is never equal to ‘null’ of type ‘{2}’
C# Compiler Error – CS8772 stdin argument ‘-‘ is specified, but inp
In this blog post, you’ll learn more about the C# Compiler Error – CS8772 and the related message description C# Compiler Error Code CS8772 C# Compiler Description for the Code :CS8772 stdin argument ‘-‘ is specified, but input has not been redirected from the standard input stream.
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# ?
How to use Find method with Lambda Expressions in C#?
Below is a sample source code demonstrating how to use Find method with Lambda Expression in C# How to use Find method with Lambda Expressions in C#?
C# Compiler Warning – CS0824 constructor ‘{0}’ is marked external
In this blog post, you’ll learn more about the C# Compiler Warning – CS0824 and the related message description C# Compiler Warning Code CS0824 C# Compiler Description for the Code :CS0824 Constructor ‘{0}’ is marked external