HomeCSharpPage 2

CSharp

Showing 21 - 40 of 961 results
In this post, youโ€™ll learn all the C# compiler error and warnings from the code CS4001 to CS6000. C# Compiler...
C# Error CS1751 โ€“ Cannot specify a default value for a parameter array Reason for the Error & Solution Cannot...
C# Error CS0739 โ€“ โ€˜{0}โ€™ duplicate TypeForwardedToAttribute Reason for the Error & Solution โ€˜type nameโ€™ duplicate TypeForwardedToAttribute. An assembly can...
C# Error CS1672 โ€“ Invalid option โ€˜{0}โ€™ for /platform; must be anycpu, x86, Itanium, arm, arm64 or x64 Reason for...
C# Error CS1625 โ€“ Cannot yield in the body of a finally clause Reason for the Error & Solution Cannot...
C# Error CS8145 โ€“ Auto-implemented properties cannot return by reference Reason for the Error & Solution Auto-implemented properties cannot return...
In the realm of student management systems, the assignment of unique register numbers is a fundamental task. Automation plays a...
C# Error CS8141 โ€“ The tuple element names in the signature of method โ€˜{0}โ€™ must match the tuple element names...
There are different ways in which the developers can get the computer name in their .NET application using C#. Using...
C# Compiler Error CS0533 โ€“ โ€˜derived-class memberโ€™ hides inherited abstract member โ€˜base-class memberโ€™ Reason for the Error Youโ€™ll get this...
C# Error CS0601 โ€“ The DllImport attribute must be specified on a method marked โ€˜staticโ€™ and โ€˜externโ€™ Reason for the...
Introduction This program developed using C# , .NET Framework and Visual Studio demonstrates how to generate random number in C#....
You can use the using statement in C# for ensuring that the object is disposed when it goes out of...
This blog post will explain one of the new feature called Records that was introduced in C# 9.0. Records in...
This article will provide a code snippet and explains how to return Dictionary as result from a LINQ Query in...
In this C# tips and tricks blog post , we look at how to use String.Format function to display the...
This blog post will explain in simple steps on how you can mark a method or function obsolete in C#...
C# Error CS1107 โ€“ A parameter can only have one โ€˜{0}โ€™ modifier Reason for the Error & Solution A parameter...
C# Error CS0828 โ€“ Cannot assign โ€˜{0}โ€™ to anonymous type property Reason for the Error & Solution Cannot assign โ€˜expressionโ€™...
Today , I was required to order a list of records based on a Name and then ID . A...