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