HomeCSharpPage 47

CSharp

Showing 921 - 940 of 961 results
C# Error CS1509 – The referenced file ‘{0}’ is not an assembly Reason for the Error & Solution Referenced file...
C# Compiler Error CS0316 – The parameter name ‘name’ conflicts with an automatically-generated parameter name. Reason for the Error You’ll...
C# Error CS1564 – Conflicting options specified: Win32 resource file; Win32 manifest Reason for the Error & Solution Conflicting options...
C# Error CS1716 – Do not use ‘System.Runtime.CompilerServices.FixedBuffer’ attribute. Use the ‘fixed’ field modifier instead. Reason for the Error &...
C# Compiler Error CS0525 – Interfaces cannot contain fields Reason for the Error You’ll get this error in your C#...
C# Error CS1667 – Attribute ‘{0}’ is not valid on property or event accessors. It is only valid on ‘{1}’...
C# Error CS1579 – foreach statement cannot operate on variables of type ‘{0}’ because ‘{0}’ does not contain a public...
Want to rename a file using .NET Framework and C# ? , below is a sample code snippet that illustrates...
C# Error CS1946 – An anonymous method expression cannot be converted to an expression tree Reason for the Error &...
Everwondered how you can use a ternary operator with-in a string interpolation in C#?. This simple tip shows you how...
C# Error CS1558 – ‘{0}’ does not have a suitable static ‘Main’ method Reason for the Error & Solution ‘class’...
C# Error CS1688 – Cannot convert anonymous method block without a parameter list to delegate type ‘{0}’ because it has...
C# Error CS1725 – Friend assembly reference ‘{0}’ is invalid. InternalsVisibleTo declarations cannot have a version, culture, public key token,...
If you require to compute exponential values like finding the square of the number etc , the Math.Pow method in...
C# Error CS1997 – Since ‘{0}’ is an async method that returns ‘Task’, a return keyword must not be followed...
In this task, we will write a C# program to find the average of all the elements in an array....
C# Compiler Error CS0198 – Fields of static readonly field ‘name’ cannot be assigned to (except in a static constructor...
C# Compiler Error CS0128 – A local variable named ‘variable’ is already defined in this scope Reason for the Error...
C# Error CS1065 – Default values are not valid in this context. Reason for the Error & Solution Default values...
C# Error CS0756 – A partial method may not have multiple defining declarations Reason for the Error & Solution A...