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