Tag: C# Errors

C# Compiler Error – CS1959 ‘{0}’ is of type ‘{1}’. the type specifi

In this blog post, you’ll learn more about the C# Compiler Error – CS1959 and the related message description C# Compiler Error Code CS1959 C# Compiler Description for the Code :CS1959 ‘{0}’ is of type ‘{1}’. The type specified in a constant declaration must be sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, decimal, bool, string, an enum-type, or a reference-type.

C# Compiler Error – CS0136 a local or parameter named ‘{0}’ cannot

In this blog post, you’ll learn more about the C# Compiler Error – CS0136 and the related message description C# Compiler Error Code CS0136 C# Compiler Description for the Code :CS0136 A local or parameter named ‘{0}’ cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

C# Compiler Error – CS8798 partial method ‘{0}’ must have accessibi

In this blog post, you’ll learn more about the C# Compiler Error – CS8798 and the related message description C# Compiler Error Code CS8798 C# Compiler Description for the Code :CS8798 Partial method ‘{0}’ must have accessibility modifiers because it has a ‘virtual’, ‘override’, ‘sealed’, ‘new’, or ‘extern’ modifier.