Category: C#
C# Compiler Warning – CS8770 method ‘{0}’ lacks [doesnotreturn] annot
In this blog post, you’ll learn more about the C# Compiler Warning – CS8770 and the related message description C# Compiler Warning Code CS8770 C# Compiler Description for the Code :CS8770 Method ‘{0}’ lacks [DoesNotReturn] annotation to match implemented or overridden member.
C# Compiler Error – CS0641 attribute ‘{0}’ is only valid on classes
In this blog post, you’ll learn more about the C# Compiler Error – CS0641 and the related message description C# Compiler Error Code CS0641 C# Compiler Description for the Code :CS0641 Attribute ‘{0}’ is only valid on classes derived from System.Attribute
C# Compiler Error – CS8340 instance fields of readonly structs must
In this blog post, you’ll learn more about the C# Compiler Error – CS8340 and the related message description C# Compiler Error Code CS8340 C# Compiler Description for the Code :CS8340 Instance fields of readonly structs must be readonly.
C# Compiler Error – CS0161 ‘{0}’: not all code paths return a value
In this blog post, you’ll learn more about the C# Compiler Error – CS0161 and the related message description C# Compiler Error Code CS0161 C# Compiler Description for the Code :CS0161 ‘{0}’: not all code paths return a value
C# Compiler Error – CS7038 failed to emit module ‘{0}’: {1}
In this blog post, you’ll learn more about the C# Compiler Error – CS7038 and the related message description C# Compiler Error Code CS7038 C# Compiler Description for the Code :CS7038 Failed to emit module ‘{0}’: {1}
C# Compiler Error – CS0076 the enumerator name ‘{0}’ is reserved an
In this blog post, you’ll learn more about the C# Compiler Error – CS0076 and the related message description C# Compiler Error Code CS0076 C# Compiler Description for the Code :CS0076 The enumerator name ‘{0}’ is reserved and cannot be used
C# Compiler Error – CS1100 method ‘{0}’ has a parameter modifier ‘t
In this blog post, you’ll learn more about the C# Compiler Error – CS1100 and the related message description C# Compiler Error Code CS1100 C# Compiler Description for the Code :CS1100 Method ‘{0}’ has a parameter modifier ‘this’ which is not on the first parameter
C# Compiler Error – CS0054 inconsistent accessibility: indexer retu
In this blog post, you’ll learn more about the C# Compiler Error – CS0054 and the related message description C# Compiler Error Code CS0054 C# Compiler Description for the Code :CS0054 Inconsistent accessibility: indexer return type ‘{1}’ is less accessible than indexer ‘{0}’
How to find if the Year is Leap Year or Not in C# ?
Below is a sample code snippet that demonstrates how to find if the year is a leap year or not. How to find if the Year is Leap Year or Not in C# ?
C# Compiler Error – CS7084 a windows runtime event may not be passe
In this blog post, you’ll learn more about the C# Compiler Error – CS7084 and the related message description C# Compiler Error Code CS7084 C# Compiler Description for the Code :CS7084 A Windows Runtime event may not be passed as an out or ref parameter.
C# Compiler Error – CS0070 the event ‘{0}’ can only appear on the l
In this blog post, you’ll learn more about the C# Compiler Error – CS0070 and the related message description C# Compiler Error Code CS0070 C# Compiler Description for the Code :CS0070 The event ‘{0}’ can only appear on the left hand side of += or -= (except when used from within the type ‘{1}’)
C# Compiler Error – CS8326 both conditional operator values must be
In this blog post, you’ll learn more about the C# Compiler Error – CS8326 and the related message description C# Compiler Error Code CS8326 C# Compiler Description for the Code :CS8326 Both conditional operator values must be ref values or neither may be a ref value
C# Compiler Error – CS4029 cannot return an expression of type ‘voi
In this blog post, you’ll learn more about the C# Compiler Error – CS4029 and the related message description C# Compiler Error Code CS4029 C# Compiler Description for the Code :CS4029 Cannot return an expression of type ‘void’
How to Find if the Number is a Power of 2 using Bitwise Operator in C# ?
If you need to find out if the number is a Power of 2 using BitWise Operator in C# , below is a sample code snippet that demonstrates how to do it. How to Find if the Number is a Power of 2 using Bitwise Operator in C# ?
C# Compiler Error – CS0544 ‘{0}’: cannot override because ‘{1}’ is
In this blog post, you’ll learn more about the C# Compiler Error – CS0544 and the related message description C# Compiler Error Code CS0544 C# Compiler Description for the Code :CS0544 ‘{0}’: cannot override because ‘{1}’ is not a property
C# Compiler Error – CS0718 ‘{0}’: static types cannot be used as ty
In this blog post, you’ll learn more about the C# Compiler Error – CS0718 and the related message description C# Compiler Error Code CS0718 C# Compiler Description for the Code :CS0718 ‘{0}’: static types cannot be used as type arguments
C# Compiler Error – CS1708 fixed size buffers can only be accessed
In this blog post, you’ll learn more about the C# Compiler Error – CS1708 and the related message description C# Compiler Error Code CS1708 C# Compiler Description for the Code :CS1708 Fixed size buffers can only be accessed through locals or fields
C# Compiler Error – CS7052 securityaction value ‘{0}’ is invalid fo
In this blog post, you’ll learn more about the C# Compiler Error – CS7052 and the related message description C# Compiler Error Code CS7052 C# Compiler Description for the Code :CS7052 SecurityAction value ‘{0}’ is invalid for PrincipalPermission attribute
C# Compiler Error – CS1025 single-line comment or end-of-line expec
In this blog post, you’ll learn more about the C# Compiler Error – CS1025 and the related message description C# Compiler Error Code CS1025 C# Compiler Description for the Code :CS1025 Single-line comment or end-of-line expected
C# Compiler Warning – CS1635 cannot restore warning ‘cs{0}’ because i
In this blog post, you’ll learn more about the C# Compiler Warning – CS1635 and the related message description C# Compiler Warning Code CS1635 C# Compiler Description for the Code :CS1635 Cannot restore warning ‘CS{0}’ because it was disabled globally