Category: C#
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
C# Compiler Error – CS8795 partial method ‘{0}’ must have an implem
In this blog post, you’ll learn more about the C# Compiler Error – CS8795 and the related message description C# Compiler Error Code CS8795 C# Compiler Description for the Code :CS8795 Partial method ‘{0}’ must have an implementation part because it has accessibility modifiers.
The Windows Phone Emulator wasn’t able to ensure the virtual machine was running
Today , I encountered the below error when trying to run my windows phone project after upgrading my system from Windows 8 to Windows 8.1 The Error Message was “The Windows Phone Emulator wasn’t able to ensure the virtual machine was running: Something happened while starting a virtual machine:”Emulator WVGA.<Name>” could not initialize(Virtual machine ID <ID>) Not enough memory in the system to start the…
C# Compiler Error – CS4010 cannot convert async {0} to delegate typ
In this blog post, you’ll learn more about the C# Compiler Error – CS4010 and the related message description C# Compiler Error Code CS4010 C# Compiler Description for the Code :CS4010 Cannot convert async {0} to delegate type ‘{1}’. An async {0} may return void, Task or Task, none of which are convertible to ‘{1}’.
C# Program to display "Hello, World!"
Problem Statement Write a program in Visual C# to print Hello World in the console Window. How to display Hello World in C# ? Output Hello, World!
C# Compiler Error – CS0674 do not use ‘system.paramarrayattribute’.
In this blog post, you’ll learn more about the C# Compiler Error – CS0674 and the related message description C# Compiler Error Code CS0674 C# Compiler Description for the Code :CS0674 Do not use ‘System.ParamArrayAttribute’. Use the ‘params’ keyword instead.
C# Compiler Warning – CS8383 the tuple element name ‘{0}’ is ignored
In this blog post, you’ll learn more about the C# Compiler Warning – CS8383 and the related message description C# Compiler Warning Code CS8383 C# Compiler Description for the Code :CS8383 The tuple element name ‘{0}’ is ignored because a different name or no name is specified on the other side of the tuple == or != operator.