Category: C#
C# Compiler Error – CS8822 method ‘{0}’ specifies a ‘default’ const
In this blog post, you’ll learn more about the C# Compiler Error – CS8822 and the related message description C# Compiler Error Code CS8822 C# Compiler Description for the Code :CS8822 Method ‘{0}’ specifies a ‘default’ constraint for type parameter ‘{1}’, but corresponding type parameter ‘{2}’ of overridden or explicitly implemented method ‘{3}’ is constrained to a reference type or a value type.
C# Compiler Error – CS0100 the parameter name ‘{0}’ is a duplicate
In this blog post, you’ll learn more about the C# Compiler Error – CS0100 and the related message description C# Compiler Error Code CS0100 C# Compiler Description for the Code :CS0100 The parameter name ‘{0}’ is a duplicate
C# Compiler Error – CS8821 a static anonymous function cannot conta
In this blog post, you’ll learn more about the C# Compiler Error – CS8821 and the related message description C# Compiler Error Code CS8821 C# Compiler Description for the Code :CS8821 A static anonymous function cannot contain a reference to ‘this’ or ‘base’.
Visual Assets Tab in Package Manifest file
The Visual Assets tab in the package manifest file lets the developers set the characteristics of the application’s title , splash screen and the images used within the application for various scenario. You will be able to specify the splash screen for your Windows Phone and Windows Store separately because the dimensions are different for phone and the tablet app. The Splash screen for the…
How to get the column names from a SqlDataReader in C#?
There are times when you might want to connect to a database and then get all the column names that was returned in the SqlDataReader object. How to get the column names from a SqlDataReader in C#? Here’s a code snippet demonstrating how to do it.
C# Compiler Error – CS0695 ‘{0}’ cannot implement both ‘{1}’ and ‘{
In this blog post, you’ll learn more about the C# Compiler Error – CS0695 and the related message description C# Compiler Error Code CS0695 C# Compiler Description for the Code :CS0695 ‘{0}’ cannot implement both ‘{1}’ and ‘{2}’ because they may unify for some type parameter substitutions
C# Compiler Error – CS1971 the call to method ‘{0}’ needs to be dyn
In this blog post, you’ll learn more about the C# Compiler Error – CS1971 and the related message description C# Compiler Error Code CS1971 C# Compiler Description for the Code :CS1971 The call to method ‘{0}’ needs to be dynamically dispatched, but cannot be because it is part of a base access expression. Consider casting the dynamic arguments or eliminating the base access.
C# Compiler Error – CS1565 conflicting options specified: win32 res
In this blog post, you’ll learn more about the C# Compiler Error – CS1565 and the related message description C# Compiler Error Code CS1565 C# Compiler Description for the Code :CS1565 Conflicting options specified: Win32 resource file; Win32 icon
C# Compiler Error – CS0101 the namespace ‘{1}’ already contains a d
In this blog post, you’ll learn more about the C# Compiler Error – CS0101 and the related message description C# Compiler Error Code CS0101 C# Compiler Description for the Code :CS0101 The namespace ‘{1}’ already contains a definition for ‘{0}’
Initialize Read-only Properties from Constructor in C# 6.0
C# 6.0 lets the developers to initialize the read only properties directly when declaring them . Since it is a read-only property , it behaves the same as read only variable where you can initialize the read-only auto properties from a constructor. Initialize Read-only Properties from Constructor in C# 6.0 Below is a sample code snippet demonstrating how to initialize read-only properties from constructor in…
C# Compiler Error – CS8935 the asyncmethodbuilder attribute is disa
In this blog post, you’ll learn more about the C# Compiler Error – CS8935 and the related message description C# Compiler Error Code CS8935 C# Compiler Description for the Code :CS8935 The AsyncMethodBuilder attribute is disallowed on anonymous methods without an explicit return type.
C# Compiler Error – CS7066 yield statements may not appear at the t
In this blog post, you’ll learn more about the C# Compiler Error – CS7066 and the related message description C# Compiler Error Code CS7066 C# Compiler Description for the Code :CS7066 Yield statements may not appear at the top level in interactive code.