HomeCSharpPage 32

CSharp

Showing 621 - 640 of 961 results
C# Error CS1665 – Fixed size buffers must have a length greater than zero Reason for the Error & Solution...
C# Error CS0674 – Do not use ‘System.ParamArrayAttribute’. Use the ‘params’ keyword instead. Reason for the Error & Solution Do...
C# Compiler Error CS0077 – The as operator must be used with a reference type or nullable type (‘int’ is...
This program demonstrates a basic array merging operation in C#. This operation involves combining the elements of two separate arrays...
Do you want to convert a string to a stream in C# ? . Below is a sample code snippet...
This C# program calculates the cube root of a given number using the Newton-Raphson method for approximating cube roots. Problem...
This is my third post of the series of the Number Converter for Windows Phone 7 sourcecode. In my previous...
In statistics, the mean is the average of a set of numbers. In this task, we will write a C# program to find the...
C# Compiler Error Message Error CS0017 Program ‘output file name’ has more than one entry point defined. Compile with /main...
There are times when you might want to split a string to array of strings based on delimiter in C#....
C# Error CS0724 – A throw statement with no arguments is not allowed in a finally clause that is nested...
If you want to copy one array to another in C#, you can use the Array.Copy static method . The...
Sometimes you may want to create an temporary file . Instead of manipulating the user’s temporary directory and then manually...
This C# program is designed to calculate and display the factors of a specified positive integer. Factors are the numbers...
C# Error CS0629 – Conditional member ‘{0}’ cannot implement interface member ‘{1}’ in type ‘{2}’ Reason for the Error &...
This is one of the most commonly faced errors by the C# developers when they are working with the runtime...
C# Error CS8374 – Cannot ref-assign ‘{1}’ to ‘{0}’ because ‘{1}’ has a narrower escape scope than ‘{0}’. Reason for...
When you create a new Modern UI(Metro) Windows 8 Project in Visual Studio , a default start page MainPage.xaml will...
The .NET Framework provides the format strings like “D” and “X” which can be easily used by the developers to...
C# Error CS8373 – The left-hand side of a ref assignment must be a ref variable. Reason for the Error...