HomeCSharpPage 13

CSharp

Showing 241 - 260 of 961 results
This C# program calculates the sum of the first 50 natural numbers. Natural numbers are the positive integers starting from...
C# Compiler Error CS0110 – The evaluation of the constant value for ‘const declaration’ involves a circular definition Reason for...
C# Error CS0673 – System.Void cannot be used from C# — use typeof(void) to get the void type object Reason...
When using the SQL Query, we could use the IN keyword to find the item something like this SELECT *...
Want to know what is the use of Tilde (~) symbol in C# especially when using enum definition?. Let’s have...
Ever wondered what is Flags attribute in C#? . Here’s the post that explains with an example on what is...
C# Compiler Error CS0076 – The enumerator name ‘value__’ is reserved and cannot be used Reason for the Error You...
C# Compiler Error CS0160 – A previous catch clause already catches all exceptions of this or of a super type...
C# Error CS1944 – An expression tree may not contain an unsafe pointer operation Reason for the Error & Solution...
C# Error CS1566 – Error reading resource ‘{0}’ — ‘{1}’ Reason for the Error & Solution Error reading resource file...
C# Error CS0643 – ‘{0}’ duplicate named attribute argument Reason for the Error & Solution ‘arg’ duplicate named attribute argument...
C# Error CS8159 – Cannot return the range variable ‘{0}’ by reference Reason for the Error & Solution Cannot return...
C# Compiler Error CS0175 – Use of keyword ‘base’ is not valid in this context Reason for the Error You...
C# Error CS1906 – Invalid option ‘{0}’; Resource visibility must be either ‘public’ or ‘private’ Reason for the Error &...
C# Error CS1637 – Iterators cannot have unsafe parameters or yield types Reason for the Error & Solution Iterators cannot...
C# Compiler Error Message Wrong number of indices inside [], expected ‘number’ Reason for the Error You will get the...
C# Compiler Error CS0542 – ‘user-defined type’ : member names cannot be the same as their enclosing type Reason for...
C# Error CS1038 – #endregion directive expected Reason for the Error & Solution #endregion directive expected A directive did not...
C# Compiler Error CS0188 – The ‘this’ object cannot be used before all of its fields are assigned to Reason...
When working in ADO.NET for data access , there are times when you want to check to see if a...