Category: C#
C# Compiler Error – CS0248 cannot create an array with a negative s
In this blog post, you’ll learn more about the C# Compiler Error – CS0248 and the related message description C# Compiler Error Code CS0248 C# Compiler Description for the Code :CS0248 Cannot create an array with a negative size
C# Compiler Error – CS0446 foreach cannot operate on a ‘{0}’. did y
In this blog post, you’ll learn more about the C# Compiler Error – CS0446 and the related message description C# Compiler Error Code CS0446 C# Compiler Description for the Code :CS0446 Foreach cannot operate on a ‘{0}’. Did you intend to invoke the ‘{0}’?
C# Compiler Error – CS8362 __arglist cannot have an argument of voi
In this blog post, you’ll learn more about the C# Compiler Error – CS8362 and the related message description C# Compiler Error Code CS8362 C# Compiler Description for the Code :CS8362 __arglist cannot have an argument of void type
C# Compiler Warning – CS8766 nullability of reference types in return
In this blog post, you’ll learn more about the C# Compiler Warning – CS8766 and the related message description C# Compiler Warning Code CS8766 C# Compiler Description for the Code :CS8766 Nullability of reference types in return type of ‘{0}’ doesn’t match implicitly implemented member ‘{1}’ (possibly because of nullability attributes).
C# Compiler Warning – CS1701 assuming assembly reference ‘{0}’ used b
In this blog post, you’ll learn more about the C# Compiler Warning – CS1701 and the related message description C# Compiler Warning Code CS1701 C# Compiler Description for the Code :CS1701 Assuming assembly reference ‘{0}’ used by ‘{1}’ matches identity ‘{2}’ of ‘{3}’, you may need to supply runtime policy
C# Compiler Error – CS8420 the body of an async-iterator method mus
In this blog post, you’ll learn more about the C# Compiler Error – CS8420 and the related message description C# Compiler Error Code CS8420 C# Compiler Description for the Code :CS8420 The body of an async-iterator method must contain a ‘yield’ statement. Consider removing ‘async’ from the method declaration or adding a ‘yield’ statement.
How do Specify the Exit Code of Console Application in .NET?
There are times when you want to specify the exit code from the Main function for example when working on the Console Application in .NET . How do Specify the Exit Code of Console Application in .NET? You can use the Environment.Exit to specify the exit code in the Console Application.
System.Windows.Markup.XamlParseException when using MapControl in Windows Phone 8
When working with the MapControl in Windows Phone 8 , you might receive the following error when the right capabilities for the Map is not set in the Windows Phone Application Manifest file. System.Windows.Markup.XamlParseException when using MapControl in Windows Phone 8 To resolve this error , Open the WMAppmanifest.xml file and the check or enable the ID_CAP_MAP in the capabilities tab.
C# Compiler Warning – CS0618 ‘{0}’ is obsolete: ‘{1}’
In this blog post, you’ll learn more about the C# Compiler Warning – CS0618 and the related message description C# Compiler Warning Code CS0618 C# Compiler Description for the Code :CS0618 ‘{0}’ is obsolete: ‘{1}’
C# Compiler Error – CS8135 tuple with {0} elements cannot be conver
In this blog post, you’ll learn more about the C# Compiler Error – CS8135 and the related message description C# Compiler Error Code CS8135 C# Compiler Description for the Code :CS8135 Tuple with {0} elements cannot be converted to type ‘{1}’.
C# Compiler Error – CS0138 a ‘using namespace’ directive can only b
In this blog post, you’ll learn more about the C# Compiler Error – CS0138 and the related message description C# Compiler Error Code CS0138 C# Compiler Description for the Code :CS0138 A ‘using namespace’ directive can only be applied to namespaces; ‘{0}’ is a type not a namespace. Consider a ‘using static’ directive instead
C# Compiler Error – CS0229 ambiguity between ‘{0}’ and ‘{1}’
In this blog post, you’ll learn more about the C# Compiler Error – CS0229 and the related message description C# Compiler Error Code CS0229 C# Compiler Description for the Code :CS0229 Ambiguity between ‘{0}’ and ‘{1}’