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...