This post covers all the .NET related articles covered as part of C# Tips & Tricks series and C# compiler errors in DeveloperPublish.com
List of C# Compiler Errors
- C# Program to Display Upper Triangular Matrix
- C# Program to Demonstrate Bitwise Operators
- C# Program to Interchange the Columns of a Matrix
- C# Program to Find Transpose of a Matrix
- C# Program to Interchange the Rows of a Matrix
- C# Program to Find the Sum of Each Row of the Matrix
- C# Program to Merge Two Arrays into Third Array
- C# Program to Convert a Positive Number into Negative
- C# Program to Find the Average of All the Array Elements
- C# Program to Find the Average of an Array
- C# Program to Find Minimum and Maximum of Numbers in an Array
- C# Program to Find the Length of Jagged Array using Predefined Functions
- C# Program to Display Lower Triangular Matrix
- C# Program to Add Two Matrices
- C# Program to Search an Element in an Array
- C# Program to Demonstrate Left-Shift Operations
- C# Program to Calculate Acceleration
- C# Program to Copy a Section of One Array to Another
- C# Program to Find Product of Two Numbers using Recursion
- C# Program to Count the Number of 1’s in the Entered Number
- C# Program to Find a Number using Pythagoras Theorem
- C# Program to Find nPr
- C# Program to Print the Edge Values in Power Function
- C# Program to Find the Mean
- C# Program to Find nCr
- C# Program to Find the Standard Deviation
- C# Program to Find the Cube Root of a Number
- C# Program to Find the Sum of First 50 Natural Numbers using For Loop
- C# Program to Find the Factors of the Given Number
- C# Program to Find the Largest of Two Numbers
- C# Program to Generate the Sum of N Numbers
- C# Program to Print the Factorial of a Given Number
- C# Program to Print Armstrong Number between 1 to 1000
- C# Program to Check Armstrong Number
- C# Program to Print All the Prime Numbers between 1 to 100
- C# Program to Find the Largest Prime Factor of a Number
- C# Program to Print Hello World Without using WriteLine
- C# Program to Create a Stop Watch
- C# Program to Check Whether a Given Number is Perfect Number
- C# Program to Generate Register Number Automatically for 100 Students using Static Constructor
- C# Program to Display the ATM Transaction
- C# Program to Display the Date in Various Formats
- C# Program to Get IP Address
- C# Program to Get the Local Time
- C# Program to Generate Random Numbers
- C# Program to Get the Universal Time
- C# Program to Compare Two Dates
- C# Program to Convert Days into Years, Months and Days
- C# Program to Implement PhoneBook
- C# Program to Get the DayLight Saving Information
- C# Program to Check if a Given Year is a Leap Year
- C# Program to Add Two Dates
- C# Program to Check Whether the Given Number is a Amicable Number or Not
- C# Program to Find Sum of Digits of a Number using Recursion
- C# Program to Demonstrate the use of Conditional Logical Operator
- C# Program to Find the Minimum Range of Data Types
- C# Program to Find Sum of Digits of a Number
- C# Program to Perform All Arithmetic Operations
- C# Program to Check Whether a Number is Positive or Not
- C# Program to Print Odd Numbers in a Given Range
- C# Program to Demonstrate Boxing Operations
- C# Program to Check Whether a Given Number is Even or Odd
- C# Error CS9050 – A ref field cannot refer to a ref struct.
- C# Error CS9043 – Ref returning properties cannot be required.
- C# Error CS8812 – Cannot convert &method group ‘{0}’ to non-function pointer type ‘{1}’.
- C# Error CS8803 – Top-level statements must precede namespace and type declarations.
- C# Error CS8515 – Parentheses are required around the switch governing expression.
- C# Error CS8411 – Asynchronous foreach statement cannot operate on variables of type ‘{0}’ because ‘{0}’ does not contain a suitable public instance or extension definition for ‘{1}’
- C# Error CS8410 – ‘{0}’: type used in an asynchronous using statement must be implicitly convertible to ‘System.IAsyncDisposable’ or implement a suitable ‘DisposeAsync’ method.
- C# Error CS8403 – Method ‘{0}’ with an iterator block must be ‘async’ to return ‘{1}’
- C# Error CS8401 – To use ‘@$’ instead of ‘$@’ for an interpolated verbatim string, please use language version ‘{0}’ or greater.
- C# Error CS8400 – Feature ‘{0}’ is not available in C# 8.0. Please use language version {1} or greater.
- C# Error CS8374 – Cannot ref-assign ‘{1}’ to ‘{0}’ because ‘{1}’ has a narrower escape scope than ‘{0}’.
- C# Error CS8373 – The left-hand side of a ref assignment must be a ref variable.
- C# Error CS8354 – Cannot return ‘this’ by reference.
- C# Error CS8334 – Members of {0} ‘{1}’ cannot be returned by writable reference because it is a readonly variable
- C# Error CS8333 – Cannot return {0} ‘{1}’ by writable reference because it is a readonly variable
- C# Error CS8210 – A tuple may not contain a value of type ‘void’.
- C# Error CS8178 – ‘await’ cannot be used in an expression containing a call to ‘{0}’ because it returns by reference
- C# Error CS8177 – Async methods cannot have by-reference locals
- C# Error CS8176 – Iterators cannot have by-reference locals
- C# Error CS8175 – Cannot use ref local ‘{0}’ inside an anonymous method, lambda expression, or query expression
- C# Error CS8174 – A declaration of a by-reference variable must have an initializer
- C# Error CS8173 – The expression must be of type ‘{0}’ because it is being assigned by reference
- C# Error CS8172 – Cannot initialize a by-reference variable with a value
- C# Error CS8171 – Cannot initialize a by-value variable with a reference
- C# Error CS8170 – Struct members cannot return ‘this’ or other instance members by reference
- C# Error CS8169 – Cannot return a member of local ‘{0}’ by reference because it is not a ref local
- C# Error CS8168 – Cannot return local ‘{0}’ by reference because it is not a ref local
- C# Error CS8167 – Cannot return by reference a member of parameter ‘{0}’ because it is not a ref or out parameter
- C# Error CS8166 – Cannot return a parameter by reference ‘{0}’ because it is not a ref parameter
- C# Error CS8163 – Fields of static readonly field ‘{0}’ cannot be returned by writable reference
- C# Error CS8162 – Members of readonly field ‘{0}’ cannot be returned by writable reference
- C# Error CS8161 – A static readonly field cannot be returned by writable reference
- C# Error CS8160 – A readonly field cannot be returned by writable reference
- C# Error CS8159 – Cannot return the range variable ‘{0}’ by reference
- C# Error CS8158 – Cannot return by reference a member of ‘{0}’ because it was initialized to a value that cannot be returned by reference
- C# Error CS8157 – Cannot return ‘{0}’ by reference because it was initialized to a value that cannot be returned by reference
- C# Error CS8156 – An expression cannot be used in this context because it may not be passed or returned by reference
- C# Error CS8155 – Lambda expressions that return by reference cannot be converted to expression trees