Category: C#
C# Compiler Error – CS8421 a static local function cannot contain a
In this blog post, you’ll learn more about the C# Compiler Error – CS8421 and the related message description C# Compiler Error Code CS8421 C# Compiler Description for the Code :CS8421 A static local function cannot contain a reference to ‘{0}’.
C# Compiler Error – CS8891 type ‘{0}’ must be public to be used as
In this blog post, you’ll learn more about the C# Compiler Error – CS8891 and the related message description C# Compiler Error Code CS8891 C# Compiler Description for the Code :CS8891 Type ‘{0}’ must be public to be used as a calling convention.
C# Compiler Error – CS0616 ‘{0}’ is not an attribute class
In this blog post, you’ll learn more about the C# Compiler Error – CS0616 and the related message description C# Compiler Error Code CS0616 C# Compiler Description for the Code :CS0616 ‘{0}’ is not an attribute class
C# Compiler Error – CS2006 command-line syntax error: missing ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS2006 and the related message description C# Compiler Error Code CS2006 C# Compiler Description for the Code :CS2006 Command-line syntax error: Missing ‘{0}’ for ‘{1}’ option
C# Compiler Error – CS0717 ‘{0}’: static classes cannot be used as
In this blog post, you’ll learn more about the C# Compiler Error – CS0717 and the related message description C# Compiler Error Code CS0717 C# Compiler Description for the Code :CS0717 ‘{0}’: static classes cannot be used as constraints
How to send email in Windows Phone 8 Application Programatically using C#?
The Windows Phone 8 SDK provides the EmailComposeTask which can be used to send email in Windows Phone 8 Programatically. The EmailComposeTask launches the Email Compose screen which lets the user to verify the email content and tap on the “send” button to send email. How to send email in Windows Phone 8 Application Programatically using C#? Below is a sample code snippet that demonstrates…
C# Compiler Error – CS8660 cannot specify ‘readonly’ modifiers on b
In this blog post, you’ll learn more about the C# Compiler Error – CS8660 and the related message description C# Compiler Error Code CS8660 C# Compiler Description for the Code :CS8660 Cannot specify ‘readonly’ modifiers on both property or indexer ‘{0}’ and its accessor. Remove one of them.
C# Compiler Error – CS8899 application entry points cannot be attri
In this blog post, you’ll learn more about the C# Compiler Error – CS8899 and the related message description C# Compiler Error Code CS8899 C# Compiler Description for the Code :CS8899 Application entry points cannot be attributed with ‘UnmanagedCallersOnly’.
How to merge two lists using LINQ’s Union in C#?
Below is a sample code snippet demonstrating in simple steps on how to merge two lists using LINQ’s Union extension method in C#? How to merge two lists using LINQ’s Union in C#?
How to Implement Multiple order by in LINQ using C#?
There are scenarios where one might want to implement multiple order by statements when using LINQ in C#. For example, you might want to sort the list of article by category and then by date. Below is a sample code snippet that demonstrates how to How to Implement Multiple order by in LINQ using C# ? How to Implement Multiple order by in LINQ using…
C# Compiler Error – CS1008 type byte, sbyte, short, ushort, int, ui
In this blog post, you’ll learn more about the C# Compiler Error – CS1008 and the related message description C# Compiler Error Code CS1008 C# Compiler Description for the Code :CS1008 Type byte, sbyte, short, ushort, int, uint, long, or ulong expected
C# Compiler Error – CS8204 for type ‘{0}’ to be used as an asyncmet
In this blog post, you’ll learn more about the C# Compiler Error – CS8204 and the related message description C# Compiler Error Code CS8204 C# Compiler Description for the Code :CS8204 For type ‘{0}’ to be used as an AsyncMethodBuilder for type ‘{1}’, its Task property should return type ‘{1}’ instead of type ‘{2}’.
C# Compiler Warning – CS8784 generator ‘{0}’ failed to initialize. it
In this blog post, you’ll learn more about the C# Compiler Warning – CS8784 and the related message description C# Compiler Warning Code CS8784 C# Compiler Description for the Code :CS8784 Generator ‘{0}’ failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type ‘{1}’ with message ‘{2}’
C# Compiler Error – CS0316 the parameter name ‘{0}’ conflicts with
In this blog post, you’ll learn more about the C# Compiler Error – CS0316 and the related message description C# Compiler Error Code CS0316 C# Compiler Description for the Code :CS0316 The parameter name ‘{0}’ conflicts with an automatically-generated parameter name
How to Remove Duplicates and Get Distinct records from List using LINQ?
Below is a sample source code demonstrating on how to remove duplicates and get distinct records in List using LINQ and C#?
C# Compiler Error – CS1009 unrecognized escape sequence
In this blog post, you’ll learn more about the C# Compiler Error – CS1009 and the related message description C# Compiler Error Code CS1009 C# Compiler Description for the Code :CS1009 Unrecognized escape sequence
C# Compiler Error – CS0113 a member ‘{0}’ marked as override cannot
In this blog post, you’ll learn more about the C# Compiler Error – CS0113 and the related message description C# Compiler Error Code CS0113 C# Compiler Description for the Code :CS0113 A member ‘{0}’ marked as override cannot be marked as new or virtual
C# Compiler Warning – CS0659 ‘{0}’ overrides object.equals(object o)
In this blog post, you’ll learn more about the C# Compiler Warning – CS0659 and the related message description C# Compiler Warning Code CS0659 C# Compiler Description for the Code :CS0659 ‘{0}’ overrides Object.Equals(object o) but does not override Object.GetHashCode()
C# Compiler Error – CS1665 fixed size buffers must have a length gr
In this blog post, you’ll learn more about the C# Compiler Error – CS1665 and the related message description C# Compiler Error Code CS1665 C# Compiler Description for the Code :CS1665 Fixed size buffers must have a length greater than zero
C# Compiler Warning – CS3001 argument type ‘{0}’ is not cls-compliant
In this blog post, you’ll learn more about the C# Compiler Warning – CS3001 and the related message description C# Compiler Warning Code CS3001 C# Compiler Description for the Code :CS3001 Argument type ‘{0}’ is not CLS-compliant