HomeCSharpPage 43

CSharp

Showing 841 - 860 of 961 results
There are times when you want to mark a class or method as deprecated in your source codeย  so that...
C# Error CS1949 โ€“ The contextual keyword โ€˜varโ€™ cannot be used in a range variable declaration Reason for the Error...
In this post, youโ€™ll learn all the C# compiler error and warnings from the code CS8001 to CS8500. C# Compiler...
C# Error CS0832 โ€“ An expression tree may not contain an assignment operator Reason for the Error & Solution An...
C# Error CS8158 โ€“ Cannot return by reference a member of โ€˜{0}โ€™ because it was initialized to a value that...
C# Error CS1057 โ€“ โ€˜{0}โ€™: static classes cannot contain protected members Reason for the Error & Solution โ€˜memberโ€™: static classes...
C# Error CS0692 โ€“ Duplicate type parameter โ€˜{0}โ€™ Reason for the Error & Solution Duplicate type parameter โ€˜identifierโ€™ The same...
C# Compiler Error CS0502 โ€“ โ€˜memberโ€™ cannot be both abstract and sealed Reason for the Error Youโ€™ll get this error...
This blog post on the C# Questions and Answers โ€“ Data Types Part 1 focuses on C# multiple choice interview...
C# Error CS0662 โ€“ Cannot specify the Out attribute on a ref parameter without also specifying the In attribute. Reason...
C# Error CS0735 โ€“ Invalid type specified as an argument for TypeForwardedTo attribute Reason for the Error & Solution Invalid...
C# Error CS2036 โ€“ The /pdb option requires that the /debug option also be used Reason for the Error &...
C# Error CS1565 โ€“ Conflicting options specified: Win32 resource file; Win32 icon Reason for the Error & Solution Conflicting options...
There are times when you want to prevent overriding a method or property but still want the class be inheritable...
Are you looking at an sample demonstrating the usage of the regular expression to replace multiple spaces with single space...
The extension methods in C# provides one of the easiest way to add a method to an existing type ....
C# Compiler Error CS0180 โ€“ โ€˜memberโ€™ cannot be both extern and abstract. Reason for the Error You will receive this...
You can easily enumerate an enum in C# using the Enum.GetValues static method which returns the array. How to enumerate...
C# Compiler Error CS0573 โ€“ โ€˜field declarationโ€™ : cannot have instance field initializers in structs Reason for the Error You...
I was forced to explore something interesting when i was playing around with the Entity Framework and executing the below...