HomeCSharpPage 42

CSharp

Showing 821 - 840 of 961 results
For last few years , I had the opportunity to try LINQ to SQL and Entity Framework and have been...
C# Error CS1629 – Unsafe code may not appear in iterators Reason for the Error & Solution Unsafe code may...
C# Error CS1601 – Cannot make reference to variable of type ‘{0}’ Reason for the Error & Solution Method or...
C# Error CS2019 – Invalid target type for /target: must specify ‘exe’, ‘winexe’, ‘library’, or ‘module’ Reason for the Error...
Introduction This program in C# developed using .NET Framework , C# and Visual Studio  will demonstrate how to get the...
C# Error CS1012 – Too many characters in character literal Reason for the Error & Solution Too many characters in...
C# Error CS1626 – Cannot yield a value in the body of a try block with a catch clause Reason...
C# Error CS0833 – An anonymous type cannot have multiple properties with the same name Reason for the Error &...
C# Compiler Error Message Error CS0012 The type ‘type is defined in an assembly that is not referenced. You must...
Finding the sum of the digits of a number is a common problem in programming and mathematics. This task involves...
C# Compiler Error Message Error CS7013 – Name exceeds the maximum length allowed in metadata Reason for the Error You...
C# Error CS1627 – Expression expected after yield return Reason for the Error & Solution Expression expected after yield return...
C# Compiler Error CS0060 – Inconsistent accessibility: base class ‘class1’ is less accessible than class ‘class2’ Reason for the Error...
C# Compiler Error CS0470 – Method ‘method’ cannot implement interface accessor ‘accessor’ for type ‘type’. Use an explicit interface implementation...
Below is a sample code snippet demonstrating how to convert a string Eg: “Blue” to Enum value . How to...
C# Compiler Error CS0101 – The namespace ‘namespace’ already contains a definition for ‘type’ Reason for the Error You will...
C# Compiler Error CS0516 – Constructor ‘constructor’ can not call itself Reason for the Error You’ll get this error in...
In this post, you’ll learn all the C# compiler error and warnings from the code CS8501 to CS9000. C# Compiler...
C# Error CS1730 – Assembly and module attributes must precede all other elements defined in a file except using clauses...
C# Compiler Error CS0066 – ‘event’ : event property must have both add and remove accessors Reason for the Error...