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