HomeCSharpPage 38

CSharp

Showing 741 - 760 of 961 results
In this post, you’ll learn all the C# compiler error and warnings from the code CS7001 to CS8000. C# Compiler...
C# Error CS0636 – The FieldOffset attribute can only be placed on members of types marked with the StructLayout(LayoutKind.Explicit) Reason...
This tutorial will demonstrate on how to delete a record using Dapper in .NET. Note that we will continue using...
C# Compiler Error CS0418 – ‘class name’: an abstract class cannot be sealed or static Reason for the Error You’ll...
C# Error CS1674 – ‘{0}’: type used in a using statement must be implicitly convertible to ‘System.IDisposable’. Reason for the...
C# Error CS1014 – A get or set accessor expected Reason for the Error & Solution A get or set...
C# Compiler Error CS0574 – Name of destructor must match name of class Reason for the Error You will get...
C# Compiler Error CS0266 – Cannot implicitly convert type ‘type1’ to ‘type2’. An explicit conversion exists (are you missing a...
C# Error CS8354 – Cannot return ‘this’ by reference. Reason for the Error & Solution Cannot return ‘this’ by reference....
C# Compiler Error CS0245 – Destructors and object.Finalize cannot be called directly. Consider calling IDisposable.Dispose if available. Reason for the...
Windows 8 App developers may need a developer license which lets you to develop, test and install Windows 8 Metro/Modern...
C# Error CS0699 – ‘{1}’ does not define type parameter ‘{0}’ Reason for the Error & Solution ‘generic’ does not...
The DebuggerDisplay is useful to quickly view the customized output of a class which in turn can display more meangful...
C# Error CS1029 – #error: ‘{0}’ Reason for the Error & Solution #error: ‘text’ Displays the text of an error...
C# Error CS1643 – Not all code paths return a value in {0} of type ‘{1}’ Reason for the Error...
C# Error CS1100 – Method ‘{0}’ has a parameter modifier ‘this’ which is not on the first parameter Reason for...
C# Compiler Error CS0221 – Constant value ‘value’ cannot be converted to a ‘type’ (use ‘unchecked’ syntax to override) Reason...
C# Error CS0708 – ‘{0}’: cannot declare instance members in a static class Reason for the Error & Solution ‘field’:...
Below is a simple example demonstrating the usage of the Anonymous Delegate which is assigned to the Fun class. The...
C# Compiler Error CS0505 – ‘member1’: cannot override because ‘member2’ is not a function Reason for the Error You’ll get...