HomeCSharpPage 45

CSharp

Showing 881 - 900 of 961 results
In this C# program, we will explore the practical application of conditional logical operators, namely the && (logical AND) and...
C# Error CS8334 – Members of {0} ‘{1}’ cannot be returned by writable reference because it is a readonly variable...
C# Error CS0818 – Implicitly-typed variables must be initialized Reason for the Error & Solution Implicitly typed locals must be...
C# Error CS1552 – Array type specifier, [], must appear before parameter name Reason for the Error & Solution Array...
C# Compiler Error CS0404 – ‘<‘ unexpected : attributes cannot be generic Reason for the Error You’ll get this error...
C# Error CS1728 – Cannot bind delegate to ‘{0}’ because it is a member of ‘System.Nullable‘ Reason for the Error...
C# Compiler Error CS0501 – ‘member function’ must declare a body because it is not marked abstract, extern, or partial...
C# Error CS1648 – Members of readonly field ‘{0}’ cannot be modified (except in a constructor or a variable initializer)...
C# Error CS1919 – Unsafe type ‘{0}’ cannot be used in object creation Reason for the Error & Solution Unsafe...
In this example, we will create a C# program to determine whether a given number is a perfect number, demonstrating...
C# Error CS8140 – ‘{0}’ is already listed in the interface list on type ‘{2}’ with different tuple element names,...
C# Error CS1750 – A value of type ‘{0}’ cannot be used as a default parameter because there are no...
C# Error CS1726 – Friend assembly reference ‘{0}’ is invalid. Strong-name signed assemblies must specify a public key in their...
C# Error CS0569 – ‘{0}’: cannot override ‘{1}’ because it is not supported by the language Reason for the Error...
C# Error CS1501 – No overload for method ‘{0}’ takes {1} arguments Reason for the Error & Solution No overload...
C# Compiler Error CS0140 – The label ‘label’ is a duplicate Reason for the Error This error is specific to...
C# Error CS0714 – ‘{0}’: static classes cannot implement interfaces Reason for the Error & Solution ‘static type’ : static...
In this tutorial, you’ll learn everything about the error “CS0120 – An object reference is required for the nonstatic field,...
C# Error CS0743 – Expected contextual keyword ‘on’ Reason for the Error & Solution Expected contextual keyword ‘on’ The pattern...
If you wanted to get the path to the Microsoft .NET Framework’s csc.exe from Visual Studio Command Prompt , you...