HomeCSharpPage 3

CSharp

Showing 41 - 60 of 961 results
C# Error CS0836 – Cannot use anonymous type in a constant expression Reason for the Error & Solution Cannot use...
C# Error CS1958 – Object and collection initializer expressions may not be applied to a delegate creation expression Reason for...
In this post, you’ll learn all the C# compiler error and warnings from the code CS2001 to CS3000. C# Compiler...
C# Compiler Error CS0231 – A params parameter must be the last parameter in a formal parameter list Reason for...
C# Compiler Error CS0558 – User-defined operator ‘{0}’ must be declared static and public Reason for the Error You will...
C# Error CS0578 – The Conditional attribute is not valid on ‘{0}’ because its return type is not void Reason...
C# Error CS1536 – Invalid parameter type ‘void’ Reason for the Error & Solution Invalid parameter type void It is...
C# Error CS1660 – Cannot convert {0} to type ‘{1}’ because it is not a delegate type Reason for the...
DebuggerDisplay attribute class in C# lets the developer control on how an object or property needs to be displayed in...
C# Compiler Error CS0522 – ‘constructor’ : structs cannot call base class constructors Reason for the Error You’ll get this...
C# Error CS7003 – Unexpected use of an unbound generic name Reason for the Error & Solution Unexpected use of...
C# Error CS0831 – An expression tree may not contain a base access Reason for the Error & Solution An...
Below is a sample code snippet demonstrating how to use the Sum extension method to get the sum of experience...
C# Error CS0712 – Cannot create an instance of the static class ‘{0}’ Reason for the Error & Solution Cannot...
C# Error CS0763 – Both partial method declarations must be static or neither may be static Reason for the Error...
C# Compiler Error CS0439 – An extern alias declaration must precede all other elements defined in the namespace Reason for...
In this example, we’ll explore a simple C# program to determine if a given number is even or odd, showcasing...
C# Error CS8169 – Cannot return a member of local ‘{0}’ by reference because it is not a ref local...
C# Error CS0594 – Floating-point constant is outside the range of type ‘{0}’ Reason for the Error & Solution Floating-point...
Visual Studio 2015 Preview includes some nice features in the editor which were once available via the extensions or third...