HomeCSharpPage 34

CSharp

Showing 661 - 680 of 961 results
C# Error CS1026 – ) expected Reason for the Error & Solution ) expected An incomplete statement was found. A...
C# Error CS0719 – ‘{0}’: array elements cannot be of static type Reason for the Error & Solution ‘type’: array...
C# Compiler Error CS0271 – The property or indexer ‘property/indexer’ cannot be used in this context because the get accessor...
C# Compiler Error Message CS0021 – Cannot apply indexing with [] to an expression of type ‘type’ Reason for the...
This C# program calculates and prints the edge values of a power function. Problem statement Given a base and an...
C# Error CS0742 – A query body must end with a select clause or a group clause Reason for the...
C# Compiler Error CS0200 – Property or indexer ‘property’ cannot be assigned to — it is read only Reason for...
C# Error CS1517 – Invalid preprocessor expression Reason for the Error & Solution Invalid preprocessor expression The compiler encountered an...
Although not a good practise , cometime you might want to hide a specific warning of your C# code. For...
C# Error CS1939 – Cannot pass the range variable ‘{0}’ as an out or ref parameter Reason for the Error...
C# Error CS8154 – The body of ‘{0}’ cannot be an iterator block because ‘{0}’ returns by reference Reason for...
C# Error CS2012 – Cannot open ‘{0}’ for writing — ‘{1}’ Reason for the Error & Solution Cannot open ‘file’...
This is my fouth and last post of the series of the Number Converter for Windows Phone 7 sourcecode ....
C# Compiler Error CS0261 – Partial declarations of ‘type’ must be all classes, all structs, or all interfaces Reason for...
C# Error CS1632 – Control cannot leave the body of an anonymous method or lambda expression Reason for the Error...
To pass an argument by reference in C# , we use the keyword ref . There is also another keyword...
C# Error CS0826 – No best type found for implicitly-typed array Reason for the Error & Solution No best type...
Here’s a quick one. Its rather a simple tip demonstrating how to repeat a character X times in C#. How...
C# Error CS2017 – Cannot specify /main if building a module or library Reason for the Error & Solution Cannot...
C# Error CS0579 – Duplicate ‘{0}’ attribute Reason for the Error & Solution Duplicate ‘attribute’ attribute It is not possible...